Hi Friends,
Yesterday I compiled(recompiled) the kernel for linux 2.4.2-2 (RHL7.1 default). The steps what I followed are like this... (I'm telling you steps just to check whether I procced in proper way or not.)
1. cd /usr/src/linux2.4.2-2 [this is the dir where the kernel is stored.] 2. make xconfig 3. make dep [ what happens if we change step 3 & 4 ] 4. make clean [i.e. first step 4 & then 3 ] 5. make bzImage [ can we change this name to something like newkernel 6. make modules 7. make modules_install [Do I need to make & install modules before making bzImage?] 8. cp bzImage /boot/bzImage 9. lilo configration.
What additional steps I required if I want to install kernel from new source i.e. eigther from cdrom or from another drive? How can I create new dir called linux2.4.x ( for that respective kernel.)
The compilation come up with 2 errors. They are, Now my modem is not accessable to me even with root. whenever I try to connect to the internel with kppp it gives the message, "Sorry, can't open modem".
Secondly, whenever I boot into linux it gives the following message, "mounting local file system: mount: fs type is not supported by kernel. [ Failed ] "
Same message appears for remote file system. In this case remote file system is my windows partitions. Due to this, during shut down I get the message, stoppin automount [ Failed ] What are the changes I need to do to avoid this?
Thanks & Regards, $AMEER :)
P.S. Can any body give me latest kernel, > 2.4.7. I can't download it from the net. It is too big ( at least for me.)
~~~~~ My Messanger IDs MSN: s2sameer Yahoo!: s9sameer RediffBol: s2sameer Indiatimes: s2sameer AIM: s2sameer ICQ : 126769285
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