[OLPC-devel] the 512MB developer image.

Marcelo Tosatti marcelo at kvack.org
Fri Jun 30 19:57:16 EDT 2006


On Fri, Jun 30, 2006 at 05:15:46PM -0600, Ronald G Minnich wrote:
> 
> If I want to boot this kernel/initrd, how does it work? I can only get 
> error messages about the initrd being bad.
> 
> Here is what is there.
> 
> initrd-2.6.16-1.2289_FC6-desktop.img 
> vmlinuz-2.6.16-1.2289_FC6
>      initrd-2.6.16-1.2289_FC6-simulator.img
> 
> I have been assuming I can do something like this.
> 
> qemu -append "root=/dev/ram0 console=tty0 console=ttyS0,115200 rw 
> earlyprintk=ttyS0,115200 rdinit=/bin/ash" -initrd
> initrd-2.6.16-1.2289_FC6-desktop.img
> -kernel vmlinuz-2.6.16-1.2289_FC6 -hda junk -boot c
> 
> and ...
> 
> Local APIC not detected. Using dummy APIC emulation.
> Brought up 1 CPUs
> checking if image is initramfs...it isn't (bad gzip magic numbers); 
> looks like an initrd
> 
> 
> so it seems that kernel is not set up to use an initrd? Except ... it's 
> not an initrd. It's a compressed cpio archive. hm.. bad gzip magic #s?
> 
> I have a kernel that knows how to use initramfs ...
> 
> drivers/usb/input/hid-core.c: v2.6:USB HID core driver
> Using IPI Shortcut mode
> Freeing unused kernel memory: 100k freed
> Red Hat nash version 5.0.41 starting
> 
> so this is pretty clearly a good initramfs image. I think that the 
> kernel is not really set up correctly? Is anyone booting this yet? I am 
> getting nowhere with it.

Apparently the initramfs is corrupt. Try downloading build34:

http://olpc.download.redhat.com/olpc/streams/development/build34-20060622_1017/images/olpc-stream-development-34-20060622_1017-ext3.img.bz2

And use this hand generated initrd (the ones shipped in the image are
broken):

http://hera.kernel.org/~marcelo/olpc/initrd-2.6.17-1.2293_FC6-olpc.gz

Works for me (well, the partition table is corrupt, but one can fix that by hand
after booting in).

Reminder: losetup -o $((32 * 512)) olpc-stream-development-34-20060622_1017-ext3.img /dev/loop0 



More information about the Devel mailing list