On Thu, 23 Aug 2001, Sameer Shinde wrote:
- make dep [ what happens if we change step 3 & 4 ]
- make clean [i.e. first step 4 & then 3 ]
Not much difference. make dep creates a dependency file, while make clean removes old object files and core dumps that will be created with make bzImage and make modules. You can also do `make dep clean' to do both of them.
- make bzImage [ can we change this name to something like newkernel
bzImage is the name of a rule in the makefile. You could edit the Makefile, but there are saner ways of doing it. See later.
- make modules
- make modules_install
[Do I need to make & install modules before making bzImage?]
Nope, just before you run depmod, and reboot.
- cp bzImage /boot/bzImage
You can rename the kernel here: cp bzImage /boot/vmlinuz-`uname -r`
`uname -r` will append the kernel release number to the kernel name.
You should also copy System.map, and run depmod -ae kernel-version-number
What additional steps I required if I want to install kernel from new source i.e. eigther from cdrom or from another drive?
Assuming your new kernel is called linux-2.4.9.tar.bz2, follow these steps:
% cd /usr/src % rm -f linux (linux is a symlink to linux-2.4.2) % tar jxvf /path/to/linux-2.4.9.tar.bz2 % mv linux linux-2.4.9.tar.bz2 % ln -s linux-2.4.9.tar.bz2 linux % cd linux then follow the steps as above.
The compilation come up with 2 errors. They are,
Were you planning on inserting the actual errors here?
following message, "mounting local file system: mount: fs type is not supported by kernel. [ Failed ] "
Let me guess, you compiled support for all file systems either as modules, or not at all. ext2 file system needs to be compiled static, and any other file system that you have (eg msdos/vfat) needs to be compiled in.
Same message appears for remote file system. In this case remote file system is my windows partitions.
remote file system == another machine? Then you need smbfs support in your kernel. It can be compiled as a module.
Philip