I
iic2
Guest
Installing a Custom Kernel
http://aplawrence.com/Unixart/compiling_freebsd.html - BABYBSD
http://nixdoc.net/man-pages/FreeBSD/man1/mkdir.1.html - Great on-line Man Pages
http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=ln - more about ln -s
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
My Note: My 3rd major experience with UNIX type. Mind Blown Again
BACK-UP ORIGINAL KERNEL FIRST * Kernel is in the boot directory under /
# cd /boot
# cp -pvr kernel kernel.orig
* Be patience .. This process takes about 2 ½ minutes. FreeBSD will display the results "-pvr".
* To manually install the Kern-Developer source you will be creating this directory – /usr/src/sys
* First insert FreeBSD Disk-1 into CD drive.
mount /cdrom
mkdir -p /usr/src/sys
ln -s /usr/src/sys /sys
cat /cdrom/7.2-RELEASE/src/ssys.[a-d]* | tar -xzvf -
cat /cdrom/7.2-RELEASE/src/sbase.[a-d]* | tar -xzvf - Not needed - include anyway
This process takes about 9 ½ minutes. . All file from the CD start with (x) so don't get worry.
Now we (cd) and go make a copy of GENERIC in same directory (short-name it what you wish).
# cd /usr/src/sys/i386/conf
# cp -pvr GENERIC BABYBSD
# ee BABYBSD
At 4th line (ident) change the name from GENERIC to BABYBSD
Start commenting out SCSI controllers ,RAID ,PCI/ISA NIC etc. depending on what you have. But my first time I did not comment out anything cause I wanted to see it work first.
FREEZE: Don't go no where! Save the file. Now type: #make LINT in this directory. It will create a file named LINT real fast. This file will list all the options supported by the kernel.
NOW YOU ARE READY TO COMPILE YOUR NEW TINY KERN - Takes about 30 min Text may halt for long time don't worry. Just wait until you will get command line prompt agin.
HANDS-UP: You MUST type this while in same DIR. I guest we are calling the c compiler? That is really a question.
# /usr/sbin/config BABYBSD
# cd ../compile/BABYBSD
# make depend
# make
# make install
* Test by Re-Booting .... IF FAIL: at Boot Prompt type - "boot kernel.orig"
_________________
-----------------
I had to note myself this way so I can remember. I got lost so many times. I spelled src, scr after sooo many time of trying. But I learn a lot in this latest 24-24. I got to get a life some day.
I hope this be where some members will post future pros and cons about this method and how to build a better file. Things like what to include and what should never be remove. I know that most hardware is personal but every one need pf. That's where the real work comes in. But for right now, it seems to be a real winner. But It got to be missing something special.
Thank you Amarjyoti Krishnan ... FreeBSD is truly flexible
http://aplawrence.com/Unixart/compiling_freebsd.html - BABYBSD
http://nixdoc.net/man-pages/FreeBSD/man1/mkdir.1.html - Great on-line Man Pages
http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=ln - more about ln -s
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
My Note: My 3rd major experience with UNIX type. Mind Blown Again

BACK-UP ORIGINAL KERNEL FIRST * Kernel is in the boot directory under /
# cd /boot
# cp -pvr kernel kernel.orig
* Be patience .. This process takes about 2 ½ minutes. FreeBSD will display the results "-pvr".
* To manually install the Kern-Developer source you will be creating this directory – /usr/src/sys
* First insert FreeBSD Disk-1 into CD drive.
mount /cdrom
mkdir -p /usr/src/sys
ln -s /usr/src/sys /sys
cat /cdrom/7.2-RELEASE/src/ssys.[a-d]* | tar -xzvf -
cat /cdrom/7.2-RELEASE/src/sbase.[a-d]* | tar -xzvf - Not needed - include anyway
This process takes about 9 ½ minutes. . All file from the CD start with (x) so don't get worry.
Now we (cd) and go make a copy of GENERIC in same directory (short-name it what you wish).
# cd /usr/src/sys/i386/conf
# cp -pvr GENERIC BABYBSD
# ee BABYBSD
At 4th line (ident) change the name from GENERIC to BABYBSD
Start commenting out SCSI controllers ,RAID ,PCI/ISA NIC etc. depending on what you have. But my first time I did not comment out anything cause I wanted to see it work first.
FREEZE: Don't go no where! Save the file. Now type: #make LINT in this directory. It will create a file named LINT real fast. This file will list all the options supported by the kernel.
NOW YOU ARE READY TO COMPILE YOUR NEW TINY KERN - Takes about 30 min Text may halt for long time don't worry. Just wait until you will get command line prompt agin.
HANDS-UP: You MUST type this while in same DIR. I guest we are calling the c compiler? That is really a question.

# /usr/sbin/config BABYBSD
# cd ../compile/BABYBSD
# make depend
# make
# make install
* Test by Re-Booting .... IF FAIL: at Boot Prompt type - "boot kernel.orig"
_________________
-----------------
I had to note myself this way so I can remember. I got lost so many times. I spelled src, scr after sooo many time of trying. But I learn a lot in this latest 24-24. I got to get a life some day.
I hope this be where some members will post future pros and cons about this method and how to build a better file. Things like what to include and what should never be remove. I know that most hardware is personal but every one need pf. That's where the real work comes in. But for right now, it seems to be a real winner. But It got to be missing something special.
Thank you Amarjyoti Krishnan ... FreeBSD is truly flexible