On Tue, 2010-11-09 at 23:34 +0100, KP Kirchdoerfer wrote:
> Am Dienstag, 9. November 2010, 23:09:52 schrieb davidMbrooke:
> > On Tue, 2010-11-09 at 22:39 +0100, KP Kirchdoerfer wrote:
> > > Am Dienstag, 9. November 2010, 22:08:10 schrieb davidMbrooke:
> > > > Hi,
> > > > 
> > > > I am just fixing up buildimage.pl to cope with multiple kernel
> > > > variants. (Actually the script is fixed but not in CVS yet; I am still
> > > > working on the accompanying configuration files.)
> > > > 
> > > > With BuC 3.x and earlier, one of the supported configurations was a
> > > > CD-ROM for the "static" files and a floppy disk only for the modified
> > > > configuration (confifdb.lrp and moddb.lrp). This is still *just about*
> > > > workable provided moddb.lrp is kept small.
> > > > 
> > > > For this configuration, PKGPATH needs to be set to something like:
> > > >     /dev/fd0:vfat,/dev/sr0:iso9660
> > > > 
> > > > (note "vfat" rather than "msdos" on a 2.6 Kernel, I think)
> > > > This seems to work OK.
> > > > 
> > > > It seems reasonable to have LEAFCFG adopt the same approach (so that
> > > > leaf.cfg can be modified on the floppy disk), and some of the template
> > > > config files (tools/iso/syslinux.ser) show this same format for the
> > > > LEAFCFG variable, but it does not work (for me). Does anyone know if
> > > > this worked with 3.x?
> > > > 
> > > > My reading of source/initrd/root.linuxrc is that it handles
> > > > device:fstype but *not* device1:fstype1,device2:fstype2 for LEAFCFG.
> > > > 
> > > > It would not be hard to fix but I am wondering whether to bother. Will
> > > > anyone actually use a floppy disk for 4.x? (Then again, what use is a
> > > > CD-ROM if you cannot save the modified configuration?)
> > > 
> > > David;
> > > 
> > > sorry I had long exhaustive day at work and so I'm a bit slow...
> > > 
> > > I've read you're mail three times and I'm not shure I understand.
> > > 
> > > Do you ask how to make use of a leaf.cfg with a CDROM and a floppy to
> > > store the configuration?
> > > The path to leaf.cfg is set by the kernel command line in syslinux.cfg.
> > > see
> > > http://leaf.cvs.sourceforge.net/viewvc/leaf/src/bering-
> > > uclibc/buildtool/tools/image/iso/syslinux.cfg?revision=1.6&view=markup
> > > 
> > > kp
> > 
> > Hi kp. Thanks for your response. Sorry that I did not make myself clear.
> 
> not your fault :)
> 
> > I think I understand how CD-ROM + Floppy is meant to work, but I cannot
> > see any logic in root.linuxrc which will handle a LEAFCFG of the form
> > "/dev/fd0:vfat,/dev/sr0:iso9660"
> 
> Where do you see that? I don't think that's needed...
> 
> > When I try that I get a boot error. When I try simply "/dev/sr0:iso9660"
> > it works OK.
> 
> What if you choose "/dev/fd0:vfat"? In Bering-uClibc3 leaf.cfg was declared 
> in 
> syslinux.cfg to be on the floppy (/dev/fd0:msdos).
> 
> > I can see how to fix it but I do not know whether it is worth the
> > effort, if nobody will actually use the CD-ROM + Floppy configuration...
> 
> Using a floppy with CD-ROM is necessary to save configdb, moddb.lrp (as you 
> said) and to use a modifiable leaf.cfg on the floppy disk.
> So that's the most common usage.
> 
> kp

In the end I decided the "right" thing to do was to change root.linuxrc
to have the LEAFCFG processing match the PKGPATH processing. There is
therefore a modified root.linuxrc in the "initrd" package in CVS.

I realize how important root.linuxrc is so I tested on pure CD-ROM, on
CR-ROM + Floppy Disk and on a syslinux (CF) "hard drive". All works OK,
at least for me :-)

dMb



------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to