|
Main (PHP)
3rd Party Streams
Resources
Code Snippets
Affiliates
|
|
|
Compiling The Kernel |
|
2005-01-17 16:11:05, 7352 views, from category Top Level -> Sysadmin Resources -> OS Level -> FreeBSD
|
|
DANGER - make sure you know what you're doing with this!
This works on FreeBSD 4.10 (and maybe others)
1. Go to /usr/src/sys/i386/conf
2. Copy a kernel config file for your new kernel. A good one to go with is the GENERIX kernel so you might issue cp GENERIC MYKERNEL if yoy wanted to create a new kernel called 'MYKERNEL'.
3. Make any necessary changes to the MYKERNEL file.
4. Run /usr/sbin/config MYKERNEL.
5. Type cd ../../compile/MYKERNEL to go to the kernel compile directory.
6. Type make depend
7. Type make
8. Type make install
Now your new kernel will be loaded when you reboot.
If it fails to load and you get no access at all, you'll need access to a serial console to load an old kernel. When the OS is booting, you'll get an option to 'hit any key' to stop the boot; do this and then:
1. Type unload
2. Type load kernel.GENERIC
3. Type boot
That will boot the old GENERIC kernel up. |
| |
|
|
|
|
|
|
Top Sponsor
Sponsors
Sponsors
Advertisting
Affiliates
|
|