Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel won't boot from floppy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dj015
n00b
n00b


Joined: 05 Jul 2004
Posts: 11

PostPosted: Mon Aug 02, 2004 9:16 am    Post subject: kernel won't boot from floppy Reply with quote

I've got Gentoo 1.4 with gentoo-sources-2.4.22-r2, and everything works fine. If I do "cat /boot/bzImage > /dev/fd0" and reboot, I get back into my system just fine.

I am trying to set up a small Linux version I can use to boot from my USB flash drive, and I set up a chroot-ed Gentoo installation, exactly the same as my main installation (well, less agressive optimizations: only -Os -g0). I built a kernel like before (with make dep && make bzImage modules modules_install, in my chroot-ed directory) but with slightly different options (almost everything in the kernel instead of modules). This kernel can boot my system if I load it through grub, but if I do "cat bzImage > /dev/fd0", or even "dd if=bzImage of=/dev/fd0 bs=1k", I get this when I reboot:

Loading Linux......
Uncompressing Linux...
invalid compression format (err=1)
System halted

I've tried changing the CPU type (even to i386) - no effect.
I've tried unmerging gentoo-sources and doing "rm -rf /usr/src/*" then re-emerging it - no luck.
I've tried compiling and installing the kernel without chrooting - no difference.
I've tried playing around with ramdisk support, rdev options, just about everything - nothing.

I might have gotten err=2 once, but I can't remember how :-).

Googled around - seems to happen a lot for no apparent reason.

Why can grub load it?

Oh, and do the current versions of Gentoo come with a 2.6 kernel?
Back to top
View user's profile Send private message
Catach
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 268
Location: Australia

PostPosted: Mon Aug 02, 2004 1:44 pm    Post subject: Reply with quote

Not sure I can help you with the USB flash drive problem, except perhaps suggest a vmlinuz kernel image (not bzImage) which I dont believe is compressed. Regarding the 2.6 kernel, it's been out for a while, however it is under a different ebuild name. gentoo-sources is being kept as 2.4 AFAIK, and the 2.6 source tree is named gentoo-dev-sources.
_________________
Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum