I finally tried to compile the linux kernel from src for my first time. I took the simple steps as in:
1. make clean; make mrproper 2. make xconfig 3. make dep 4. make 5. make bzImage 6. make modules 7. make modules_install 8. make install 9. configure LILO or GRUB. 10.Optional - make clean (If you want to free up disk space)
wow.. i've been compiling my own kernel for a long time, and i've never seen anyone using that process (especially the 'make install').. what i've always done: 1. su to root (usually 'su -') 2. cd /usr/src 3. extract kernel source and/or apply any patches (if applying patches, i always created a new kernel source tree to apply them against) 4. ln -s linux-<kernelversion> linux 5. cd linux 6. vi Makefile (change EXTRAVERSION to something to make the kernel unique) 7. make menuconfig (always liked it better than xconfig) 8. make dep && make clean && make bzImage && make modules && \ make modules_install (the '&&' means that if any step fails, it stops the whole process) 9. cp arch/i386/boot/bzImage /boot/vmlinuz-<kernelversion> 10. cp System.map /boot/System.map-<kernelversion> 11. cp .config /boot/config-<kernelversion> 12. configure lilo/grub 13. boot into new kernel it's always been my understanding that 'make mrproper' wasn't something the end user should ever have to do and that it will basically give you a completely cleaned source tree (just like fresh from a tarball). i've also been told that you can drop the 'make modules' step and just do 'make modules_install', but i still do it out of habit. the reason i make a new kernel tree and change EXTRAVERSION in the Makefile is so that 'make modules_install' doesn't wipe out modules of a working kernel (in case something goes wrong). for instance, if i have a working 2.4.20-1, and i build 2.4.20-2 and it doesn't work, i want to be able to go back to 2.4.20-1 with no problems.
OK all seems to go well and take a while too. But during the 8th command, "make install" I get:
fs/fs.o(.text+0xbc276): In function `user_get': : undefined reference to `reiserfs_permission_locked'
fs/fs.o(.text+0xbc32a): In function `user_set': : undefined reference to `reiserfs_permission_locked'
fs/fs.o(.text+0xbc3d1): In function `user_del': : undefined reference to `reiserfs_permission_locked'
make: *** [vmlinux] Error 1
Hum' I have no idea what to think of this error/oops or how to read it. Is there an official SuSE kernel recompile how to? I reading: file:/usr/share/doc/howto/en/html/Kernel-HOWTO.html Any suggestions for me to help in the first time SuSE kernel compile?
if you're getting past 'make bzImage' and 'make modules', there shouldn't be any more compiling needed. perhaps there is something wrong with 'make install'? (never having used it, i can't be sure what it's supposed to do) -- trey