Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: gentoo-embedded@l.g.o
Cc: Natanael Copa <natanael.copa@×××××.com>
Subject: Re: [gentoo-embedded] can't load ramdisk correctly on nslu2
Date: Tue, 02 Oct 2007 15:48:10
Message-Id: 200710021137.20403.vapier@gentoo.org
In Reply to: Re: [gentoo-embedded] can't load ramdisk correctly on nslu2 by Natanael Copa
1 On Tuesday 02 October 2007, Natanael Copa wrote:
2 > On Tue, 2007-10-02 at 10:44 -0400, Jason wrote:
3 > > Ok, I'm frustrated. :-)
4 > >
5 > > I have the kernel loaded and running via serial/TFTP into an NSLU2. It
6 > > may not be configured correctly (duh), and the kernel command line might
7 > > not be correct (also, duh). I've tried so many variants of the two, I
8 > > can't see straight. I've also tried a gzip'd ramdisk, bzip2'd ramdisk,
9 > > and a cpio ramdisk. Nothing works. /sbin/init is in the ramdisk.
10 > > /dev/console and /dev/null are there also.
11 > >
12 > > I'm missing something basic. Could someone look over the output below
13 > > and point me in the right direction?
14 > >
15 > > I suspect 'invalid compressed format (err=1)' might be a good indicator
16 > > of what is wrong, but google isn't being cooperative today.
17 >
18 > http://google.com/search?q=initramfs+cpio
19 >
20 > first hit.
21 >
22 >
23 > cd myramfs/
24 > find . | cpio -H newc --create --verbose | gzip -9 > ../myramfs.gz
25
26 ugh, no ... there are helper scripts in the kernel so people dont have to use
27 cpio themselves ... the easiest is:
28 make CONFIG_INITRAMFS_SOURCE=/path/to/your/rootfs/ ...

Attachments

File name MIME type
signature.asc application/pgp-signature