On Mit, 18 Okt 2000 you wrote:
> 
> I'm trying to make a boot floppy using busybox and ash. The goal is 
> to have a single floppy that will boot up into a shell where I can 
> execute a few commands, fdisk, mke2fs, mount, etc... I have all the 
> components trimmed down to fit on a single floppy. I have a kernel 
> with the few modules that I need compiled in. I am using LILO as the 
> bootloader. /etc/lilo.conf  has the lines :
> 
> boot = /dev/fd0
> 
> image=/bzImage
> root=/dev/fd0
> append="init=/bin/sh"
> 
> The system boots fine but then I'm prompted for a root disk. When I 
> hit return the system fails with a kernel panic can't find init. Even 
> though I have init compiled into busybox.
> 
> I've tried using rdev to set the ramdisk word to 0 and set the root 
> device to /dev/fd0. This still does not solve the problem.
> 
> I made an initrd with roughly the same results.
> 
> Has anyone successfully made a single floppy system like this? If so, 
> how? Do you have a floppy image you are willing to share?

Yes: look at http://www.elinos.com/demos/busybox.html. Grab the busybox.flp
image from there and write it to a floppy with "cat busybox.flp >/dev/fd0".

BTW: This floppy uses syslinux, not lilo (it's better suited for floppy disks).
The disk has an MSDOS filesystem, thus you can mount it and look at it. The file
busybox.tgz on the disk contains a gziped tar image of the root filesystem
(which lives in a RAMdisk). Thus you can easily extract it, make modifications
and put together your own version with tar.

HTH

Rob

----------------------------------------------------------------
Robert Kaiser                         email: [EMAIL PROTECTED]
SYSGO RTS GmbH
Am Pfaffenstein 14                    phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany   fax:   (49) 6136 9948-10

--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to