Re: [expert] kernel recompile
Success Thanks everyone for your help - I've finally learned how to recompile my kernel Ya-hoo!!! The only problem I had on the last round was that lilo choked because make install chose to long of a name for the "label" tag in lilo.conf. I fixed that and everything else went great! Thanks again everyone! Mike -- Michael Holt Banning, CA(o_ [EMAIL PROTECTED](o_ (o_ //\ www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com < Bad or missing mouse driver. Spank the cat? (Y/N) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
On Thursday 07 November 2002 2:41 pm, Michael Holt wrote: > Hey Simon, > This is what I did: > > cd to /usr/src/2.4.19-xx > > make mrproper (didn't bother saving .config since I > hadn't put anything in it yet.) > edit makefile changing extraversion to 'mikescustom' > delete /lib/modules/2.4.19-xx (as instructed to if you're not patching > your kernel) > make menuconfig (load /boot/config) > make dep > make clean bzImage modules > make modules_install install > > I'm think that since I'm changing the extraversion entry in the makefile > that it should create a new modules directory under /lib/modules and that > I may not have to delete the old one - at least then I should be able to > do the work around, which is 'modprobe loop'. I tried restarting service > devfsd last night, but there was no rescuing from where I was at, so I > reloaded mdk 9.0 and I'm planning to try rebuilding again today. Any > thoughts on that plan of action? I would love any suggestions. > > Thanks, Mike Hi Mike, I wouldn't recommend deleting the default installed modules. I always just change the makefile extraversion and that leaves the new modules installed in their own directory. This way if your reboot fails then at least you still have the originals to fall back on. If you've already deleted them you might try forceing a reinstallation of the mandrake kernel to get them back. On your original problem of mkinitrd, did you include TCP/IP networking(under Networking options)? I think I'm correct in saying that this contains the loop device mentioned in Documentation/initrd.txt that is required for initrd. Having said that, I manage to boot my kernel without initrd (I have removed the line in the section of lilo.conf "initrd=/boot/initrd..." from where I boot my kernel). I just made sure that IDE/UDMA and ext3 drivers that I use for my root disk partition were compiled into the kernel. It seems to work fine for me and both simplifies and speeds up the boot process. If you can get your kernel compiled with whatever drivers are needed to mount the root file system and if you can install any modules(after adjusting the makefile extraversion to suit) with make modules_install, then perhaps you could just copy the bzImage to /boot/vmlinuz-whatever along with the system map and then make manual entries in /etc/lilo.conf to boot that kernel and forget about an initrd entry. Don't forget to run lilo after all this to update the mbr As far as I understand, initrd's main purpose is to enable the loading of whatever modules are required to mount the root file system. If those are already compiled into the kernel then basically initrd is not required to mount the root file system. Hope this helps, Robin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
That's what I figured. It's running 'make modules' right now and I didn't delete the /lib/modules/KERNEL_VERSION directory this time so we'll see what happens. I was trying to follow the directions word for word last time and I keep writing down every step - this time it's GOT to work! Mike On Thu, 7 Nov 2002 [EMAIL PROTECTED] wrote: > You shouldn't really delete lib/modules/KERNEL_VERSION, and is not > necessary if you're changing the EXTRAVERSION flag. > > > -- Michael Holt Banning, CA(o_ [EMAIL PROTECTED](o_ (o_ //\ www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com < Bad or missing mouse driver. Spank the cat? (Y/N) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
On Thu, 7 Nov 2002, Michael Holt wrote: > edit makefile changing extraversion to 'mikescustom' > delete /lib/modules/2.4.19-xx (as instructed to if you're not patching > your kernel) You shouldn't really delete lib/modules/KERNEL_VERSION, and is not necessary if you're changing the EXTRAVERSION flag. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
Hi, Try running it from my directions, it will automatically rename the new kernel to -XXcustom. You will end up with a complete new kernel and all the drakboot entries. I have tried using your approach and it never left me with a usable system. The method I listed is what I have been using in travels in cooker land and it has never failed me yet. Give it a try. On Thu, 7 Nov 2002 06:41:53 -0800 (PST) Michael Holt <[EMAIL PROTECTED]> wrote: > Hey Simon, > This is what I did: > > cd to /usr/src/2.4.19-xx > > make mrproper (didn't bother saving .config since I > hadn't put anything in it yet.) > edit makefile changing extraversion to 'mikescustom' > delete /lib/modules/2.4.19-xx (as instructed to if > you're not patching your kernel) > make menuconfig (load /boot/config) > make dep > make clean bzImage modules > make modules_install install > > I'm think that since I'm changing the extraversion entry > in the makefile that it should create a new modules > directory under /lib/modules and that I may not have to > delete the old one - at least then I should be able to do > the work around, which is 'modprobe loop'. I tried > restarting service devfsd last night, but there was no > rescuing from where I was at, so I reloaded mdk 9.0 and > I'm planning to try rebuilding again today. Any thoughts > on that plan of action? I would love any suggestions. > > Thanks, Mike > > > On Thu, 7 Nov 2002, Simon Ree wrote: > > > Did you try to rebuild your kernel from source? I had > > no luck at all on my laptop till I followed this > > procedure. > > > > /usr/src/kernel-2.4.19-Xmdk/ > > > > save .config > > make mrproper > > restore .config if you want > > make *config > > make bzImage modules > > make modules_install install > > > > Should allways work. Try it. Also, if your laptop > > support acpi, download the new -18mdk kernel and enable > > acpi support. Seems to be working for me. > > > > Regards, > > > > Simon Ree > > [EMAIL PROTECTED] > -- > Michael Holt > Banning, CA(o_ > [EMAIL PROTECTED](o_ (o_ //\ > www.holt-tech.net(/)_ (/)_ V_/_ > www.mandrake.com > = > ===< > > Bad or missing mouse driver. Spank the cat? (Y/N) > > > Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
Hey Simon, This is what I did: cd to /usr/src/2.4.19-xx make mrproper (didn't bother saving .config since I hadn't put anything in it yet.) edit makefile changing extraversion to 'mikescustom' delete /lib/modules/2.4.19-xx (as instructed to if you're not patching your kernel) make menuconfig (load /boot/config) make dep make clean bzImage modules make modules_install install I'm think that since I'm changing the extraversion entry in the makefile that it should create a new modules directory under /lib/modules and that I may not have to delete the old one - at least then I should be able to do the work around, which is 'modprobe loop'. I tried restarting service devfsd last night, but there was no rescuing from where I was at, so I reloaded mdk 9.0 and I'm planning to try rebuilding again today. Any thoughts on that plan of action? I would love any suggestions. Thanks, Mike On Thu, 7 Nov 2002, Simon Ree wrote: > Did you try to rebuild your kernel from source? I had no > luck at all on my laptop till I followed this procedure. > > /usr/src/kernel-2.4.19-Xmdk/ > > save .config > make mrproper > restore .config if you want > make *config > make bzImage modules > make modules_install install > > Should allways work. Try it. Also, if your laptop support > acpi, download the new -18mdk kernel and enable acpi > support. Seems to be working for me. > > Regards, > > Simon Ree > [EMAIL PROTECTED] -- Michael Holt Banning, CA(o_ [EMAIL PROTECTED](o_ (o_ //\ www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com < Bad or missing mouse driver. Spank the cat? (Y/N) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
Did you try to rebuild your kernel from source? I had no luck at all on my laptop till I followed this procedure. /usr/src/kernel-2.4.19-Xmdk/ save .config make mrproper restore .config if you want make *config make bzImage modules make modules_install install Should allways work. Try it. Also, if your laptop support acpi, download the new -18mdk kernel and enable acpi support. Seems to be working for me. Regards, Simon Ree [EMAIL PROTECTED] On Wed, 06 Nov 2002 14:39:18 -0800 Rolf Pedersen <[EMAIL PROTECTED]> wrote: > Michael Holt wrote: > > Hello, > > I just finished trying to recompile my kernel for the > > third time; I'm sure I followed all the steps exactly as > > described on the MUO pages and when it gets to the make > > install part - it fails on mkinitrd. I try doing it > > manually as the error message suggests and I get: > > > > mke2fs 1.27 (14-Mar-2002) > > could not find any device /dev/loop# > > Can't get a loopback device > > > > > > I've left my laptop sitting as is and I'm hoping that I > > can rescue it from where it is - if not, at least find > > out what the problem is. > > > > Thanks for any help, Mike > > > > I remembered some disussion of a like issue on cooker; > gather modprobe loop and retry mkinitrd worked-around for > some; the threads can be found with a search on 'could not > find any device /dev/loop#' at > http://www.mail-archive.com/cooker@;linux-mandrake.com/ > > > Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
Cool, give me a little bit and I'll send it - I've got to see if I can extract that stuff now. Mike On Wed, 6 Nov 2002, Todd Lyons wrote: > Rolf Pedersen wrote on Wed, Nov 06, 2002 at 02:39:18PM -0800 : > > Michael Holt wrote: > > >Hello, > > >I just finished trying to recompile my kernel for the third time; I'm sure > > >I > > >followed all the steps exactly as described on the MUO pages and when it > > >gets to the make install part - it fails on mkinitrd. I try doing it > > >manually as the error message suggests and I get: > > >mke2fs 1.27 (14-Mar-2002) > > >could not find any device /dev/loop# > > >Can't get a loopback device > > >I've left my laptop sitting as is and I'm hoping that I can rescue it from > > >where it is - if not, at least find out what the problem is. > > I remembered some disussion of a like issue on cooker; gather modprobe > > loop and retry mkinitrd worked-around for some; the threads can be found > > But before you do that, the real problem is that for some reason devfsd > has died. Can you send me (offlist) your /var/log/messages and > /var/log/daemons/info and /var/log/daemons/errors files? It would help > to figure out _what_ caused devfsd to die, then we can know what to look > for in the future. > > Blue skies... Todd > -- Michael Holt Banning, CA(o_ [EMAIL PROTECTED](o_ (o_ //\ www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com < Bad or missing mouse driver. Spank the cat? (Y/N) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
Cool, I'm on it! Mike On Wed, 6 Nov 2002, Rolf Pedersen wrote: > I remembered some disussion of a like issue on cooker; gather modprobe > loop and retry mkinitrd worked-around for some; the threads can be found > with a search on 'could not find any device /dev/loop#' at > http://www.mail-archive.com/cooker@;linux-mandrake.com/ > > > -- Michael Holt Banning, CA(o_ [EMAIL PROTECTED](o_ (o_ //\ www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com < Bad or missing mouse driver. Spank the cat? (Y/N) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
:-) yup - number 3 is the answer. I know from the previous times at this point that it's not going to boot; now I just want to see if maybe there's a bug in mkinitrd or something like that? Mike On 6 Nov 2002, James Sparenberg wrote: > Mike when you say rescue do you mean it can't boot or it can boot but > the new kernel isn't usable? OR you don't know if it will reboot and > don't dare find out *grin* > > James > > > On Wed, 2002-11-06 at 12:03, Michael Holt wrote: > > Hello, > > I just finished trying to recompile my kernel for the third time; I'm sure I > > followed all the steps exactly as described on the MUO pages and when it > > gets to the make install part - it fails on mkinitrd. I try doing it > > manually as the error message suggests and I get: > > > > mke2fs 1.27 (14-Mar-2002) > > could not find any device /dev/loop# > > Can't get a loopback device > > > > > > I've left my laptop sitting as is and I'm hoping that I can rescue it from > > where it is - if not, at least find out what the problem is. > > > > Thanks for any help, Mike > > > > > > > > > > > Want to buy your Pack or Services from MandrakeSoft? > > Go to http://www.mandrakestore.com > > > > -- Michael Holt Banning, CA(o_ [EMAIL PROTECTED](o_ (o_ //\ www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com < Bad or missing mouse driver. Spank the cat? (Y/N) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
Rolf Pedersen wrote on Wed, Nov 06, 2002 at 02:39:18PM -0800 : > Michael Holt wrote: > >Hello, > >I just finished trying to recompile my kernel for the third time; I'm sure > >I > >followed all the steps exactly as described on the MUO pages and when it > >gets to the make install part - it fails on mkinitrd. I try doing it > >manually as the error message suggests and I get: > >mke2fs 1.27 (14-Mar-2002) > >could not find any device /dev/loop# > >Can't get a loopback device > >I've left my laptop sitting as is and I'm hoping that I can rescue it from > >where it is - if not, at least find out what the problem is. > I remembered some disussion of a like issue on cooker; gather modprobe > loop and retry mkinitrd worked-around for some; the threads can be found But before you do that, the real problem is that for some reason devfsd has died. Can you send me (offlist) your /var/log/messages and /var/log/daemons/info and /var/log/daemons/errors files? It would help to figure out _what_ caused devfsd to die, then we can know what to look for in the future. Blue skies... Todd -- MandrakeSoft USA http://www.mandrakesoft.com Easy things should be easy, and hard things should be possible. --Larry Wall Cooker Version mandrake-release-9.1-0.1mdk Kernel 2.4.19-18mdkenterprise msg60655/pgp0.pgp Description: PGP signature
Re: [expert] kernel recompile
Michael Holt wrote: Hello, I just finished trying to recompile my kernel for the third time; I'm sure I followed all the steps exactly as described on the MUO pages and when it gets to the make install part - it fails on mkinitrd. I try doing it manually as the error message suggests and I get: mke2fs 1.27 (14-Mar-2002) could not find any device /dev/loop# Can't get a loopback device I've left my laptop sitting as is and I'm hoping that I can rescue it from where it is - if not, at least find out what the problem is. Thanks for any help, Mike I remembered some disussion of a like issue on cooker; gather modprobe loop and retry mkinitrd worked-around for some; the threads can be found with a search on 'could not find any device /dev/loop#' at http://www.mail-archive.com/cooker@;linux-mandrake.com/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] kernel recompile
Mike when you say rescue do you mean it can't boot or it can boot but the new kernel isn't usable? OR you don't know if it will reboot and don't dare find out *grin* James On Wed, 2002-11-06 at 12:03, Michael Holt wrote: > Hello, > I just finished trying to recompile my kernel for the third time; I'm sure I > followed all the steps exactly as described on the MUO pages and when it > gets to the make install part - it fails on mkinitrd. I try doing it > manually as the error message suggests and I get: > > mke2fs 1.27 (14-Mar-2002) > could not find any device /dev/loop# > Can't get a loopback device > > > I've left my laptop sitting as is and I'm hoping that I can rescue it from > where it is - if not, at least find out what the problem is. > > Thanks for any help, Mike > > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com