To create the initrd image, you will want to create a 
filesystem of appropriate size, format, etc on a ram disk
or appropriately sized partition on your development machine.
Once it is mounted, you can create your root file system. 
When you are ready to go, unmount it, then create the image
with dd (i.e., something like 
"dd if=/dev/ram bs=1k count=15000 | gzip -9 > initrd.img.gz").
This would be appropriate for a 15 meg ram filesystem.
                                                                Matt

> -----Original Message-----
> From: Troy Davis [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: [rtl] Booting from flash disk
> 
> 
> Hello-
>       I am following the instructions of Bernd Stahlbock on 
> his method of booting
> from a flashdisk using initrd and a ram drive.  Everything 
> works fine up
> until just after the partion check on boot:
> 
> Partition check:
>   sda:  sda1
>   hda:  hda1
> RAMDISK: Compressed image found at block 0
> [MS-DOS FS Rel.  12.FAT 0,check=n,conv=b,uid=0,gid=0,umask=022,bmap]
> [me=0x0,cs=0,#f=0,fs=0,fl=0,ds=0,de=0,data=0,se=0,ts=0,ls=0,rc
> =0,fc=42949672
> 95]
> Transaction block size = 512
> Kernel panic: VFS: Unable to mount root fs on 01:00
> 
>       I have initrd and ramdisk support compiled into the kernel.
>       I've never used initrd before, so I don't know if it is 
> working correctly.
> My flashdisk is formatted as e2fs and only contains a boot 
> directory and
> initrd.img.gz.  One thing I could not do in following Bernd's 
> instructions
> is to use gzip to compress my file structure image.  I got 
> errors stating
> all of my devices in /dev were not 'a directory or a regular file -
> ignored'.  I used tar czf but I'm not sure that this will work.
>       Is this error a file system error?  Or initrd?
> 
> 
> Troy Davis
> Airborne Data Systems, Inc.
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
> 

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to