First kernel recompile: Kernel too big...

Lunarcade

Member
Apr 5, 2002
190
0
0
Sorry if this is a common repost, I searched for posts but found nothing. Compiling my first kernel on my Slackware 8.1 system, Lilo keeps telling me that the kernel is "too big". First I modularized just the things I use only occasionally, still too big. So I went ahead and modularized pretty much everything I was including apart from the bare essentials such as FS. Still too big? I don't know how to make it any smaller. Is this a Lilo problem or am I making some newbie mistake?
 

PowerMacG5

Diamond Member
Apr 14, 2002
7,701
0
0
I'm thinking you probably took the vmlinux that was created in the directory you were in when you compiled. If that is so, then you took the wrong thing. You need to take the image from /usr/src/linux-2.x.yy/arch/i386/boot/bzImage (where bzImage is the image you created during the compile). Good old gentoo install taught me this one. Good Luck.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Lunarcade
And newbie mistake it is! Thanks ;)

Its only a mistake if you dont learn from it. This isnt even an "oops" (which is on par with an "oh sh*t!"). This is more of a "d'oh!". ;)
 

PowerMacG5

Diamond Member
Apr 14, 2002
7,701
0
0
Originally posted by: n0cmonkey
Originally posted by: Lunarcade
And newbie mistake it is! Thanks ;)

Its only a mistake if you dont learn from it. This isnt even an "oops" (which is on par with an "oh sh*t!"). This is more of a "d'oh!". ;)

That's a good point. When I did my first kernel compilation, I made the same mistake. So, I learned from it as well as you are going to.
 

Lunarcade

Member
Apr 5, 2002
190
0
0
Ok... that problem left... and I have a new one. Kernel says it can't mount the root fs. I checked and made sure the FS (ext3) is supported by the kernel, and lilo.conf is set with the correct device for root. Nothing from the failed boots seems to be logged anywhere so I can't quote the error messages... probably cause the root filesystem was never mounted. I'll try to provide any information I can. Hopefully the AT heads can get my kernel going :)
 

Lunarcade

Member
Apr 5, 2002
190
0
0
Ok... that problem left... and I have a new one. Kernel says it can't mount the root fs. I checked and made sure the FS (ext3) is supported by the kernel, and lilo.conf is set with the correct device for root. Nothing from the failed boots seems to be logged anywhere so I can't quote the error messages... probably cause the root filesystem was never mounted. I'll try to provide any information I can. Hopefully the AT heads can get my kernel going :)
 

Lunarcade

Member
Apr 5, 2002
190
0
0
Ok... that problem left... and I have a new one. Kernel says it can't mount the root fs. I checked and made sure the FS (ext3) is supported by the kernel, and lilo.conf is set with the correct device for root. Nothing from the failed boots seems to be logged anywhere so I can't quote the error messages... probably cause the root filesystem was never mounted. I'll try to provide any information I can. Hopefully the AT heads can get my kernel going :)
 

Lunarcade

Member
Apr 5, 2002
190
0
0
Ok... that problem left... and I have a new one. Kernel says it can't mount the root fs. I checked and made sure the FS (ext3) is supported by the kernel, and lilo.conf is set with the correct device for root. Nothing from the failed boots seems to be logged anywhere so I can't quote the error messages... probably cause the root filesystem was never mounted. I'll try to provide any information I can. Hopefully the AT heads can get my kernel going :)
 

Lunarcade

Member
Apr 5, 2002
190
0
0
Ok... that problem left... and I have a new one. Kernel says it can't mount the root fs. I checked and made sure the FS (ext3) is supported by the kernel, and lilo.conf is set with the correct device for root. Nothing from the failed boots seems to be logged anywhere so I can't quote the error messages... probably cause the root filesystem was never mounted. I'll try to provide any information I can. Hopefully the AT heads can get my kernel going :)
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Lunarcade
Ok... that problem left... and I have a new one. Kernel says it can't mount the root fs. I checked and made sure the FS (ext3) is supported by the kernel, and lilo.conf is set with the correct device for root. Nothing from the failed boots seems to be logged anywhere so I can't quote the error messages... probably cause the root filesystem was never mounted. I'll try to provide any information I can. Hopefully the AT heads can get my kernel going :)

Stop already!

:p
 

oniq

Banned
Feb 17, 2002
4,196
0
0
Originally posted by: Lunarcade
Ok... that problem left... and I have a new one. Kernel says it can't mount the root fs. I checked and made sure the FS (ext3) is supported by the kernel, and lilo.conf is set with the correct device for root. Nothing from the failed boots seems to be logged anywhere so I can't quote the error messages... probably cause the root filesystem was never mounted. I'll try to provide any information I can. Hopefully the AT heads can get my kernel going :)

Seems like your kernel is overlapping and causing it to repeat over and over...
 

Lunarcade

Member
Apr 5, 2002
190
0
0
Ok... that problem left... and I have a new one. Kernel says it can't mount the root fs. I checked and made sure the FS (ext3) is supported by the kernel, and lilo.conf is set with the correct device for root. Nothing from the failed boots seems to be logged anywhere so I can't quote the error messages... probably cause the root filesystem was never mounted. I'll try to provide any information I can. Hopefully the AT heads can get my kernel going :)
 

Buddha Bart

Diamond Member
Oct 11, 1999
3,064
0
0
well you could track it down peice by piece... or be lazy and go back an reconfigure a less-modularized kernel.

bart
 

Lunarcade

Member
Apr 5, 2002
190
0
0
Ok... that problem left... and I have a new one. Kernel says it can't mount the root fs. I checked and made sure the FS (ext3) is supported by the kernel, and lilo.conf is set with the correct device for root. Nothing from the failed boots seems to be logged anywhere so I can't quote the error messages... probably cause the root filesystem was never mounted. I'll try to provide any information I can. Hopefully the AT heads can get my kernel going :)
 

Lunarcade

Member
Apr 5, 2002
190
0
0
woah... i dont know how i managed to repeat so many times without even realizing it. very sorry about that
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
What does the kernel spit out before panicing about not being able to mount the root fs?

You didn't exclude anything like your storage controller or anything from the kernel did you?
 

ProviaFan

Lifer
Mar 17, 2001
14,993
1
0
Originally posted by: Sunner
What does the kernel spit out before panicing about not being able to mount the root fs?

You didn't exclude anything like your storage controller or anything from the kernel did you?
That sounds like it might be the problem. If you modularized everything except your FS module and a few other things, chances are you modularized your IDE controller as well. Not a good idea. ;)