[klibc] Unable to cat raw /dev/fd0 more than one time
g.esp at free.fr
Wed Jun 11 17:36:35 PDT 2008
----- Original Message -----
From: "H. Peter Anvin" <hpa at zytor.com>
To: "Gilles Espinasse" <g.esp at free.fr>
Cc: <klibc at zytor.com>
Sent: Tuesday, June 10, 2008 4:29 PM
Subject: Re: [klibc] Unable to cat raw /dev/fd0 more than one time
> H. Peter Anvin wrote:
> > I just did a trace using glibc "cat", and it doesn't do any syncing or
> > anything like that, so I'm confused about how any of this would
> I tried reproducing this with klibc cat as well, to no avail.
> Everything works as it should.
I try in a klibc chroot from my building machine inside the building tree :
- no problem to read root-1 and root-2.
But rebooting with floppy on the same machine and the usual trouble happen.
Could it be something we forget to set inside klibc initramfs script or a
We mount /proc, /sys and create /dev/fd0 node reading cat
We use gcc-4.2.3, binutils-2.18
I have workaround reading another time the second floppy. Then it work.
If you want a quick test, I have uploaded images at
The first img boot the machine and after root-2 has been loaded, a newt
interface of an installer start. You need at least a 486 machine with
probably 16 MB memory ;-)
Don't care of the big warning at boot, installer do something only far later
after hw discovery, disk selection and confirmation.
The init code (with the workaround) is at
More information about the klibc