On Wed, 2010-11-10 at 22:11 +0100, KP Kirchdoerfer wrote:
> Am Mittwoch, 10. November 2010, 22:05:40 schrieb davidMbrooke:
> > 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=marku
> > > > > p
> > > > > 
> > > > > 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 :-)
> 
> I understand that with your change a fixed leaf.cfg on CD is possible, which 
> wasn't the case before.
> 
> We have to be shure, that the leaf.cfg from floppy overwrites the one from 
> sr0 
> so user can adjust the leaf.cfg to their needs.
> 
> kp

I tested that scenario (extra .lrp's in the floppy leaf.cfg compared to
the CD-ROM leaf.cfg) and it worked, plus there are extra messages in the
new code (with VERBOSE=1) which confirm where leaf.cfg was found.

To be honest it didn't work at my first (or second) attempt - it was
reading leaf.cfg from the floppy *then also* from the CD-ROM, re-setting
the value of LEAFCFG. That is why I am confident the behaviour is
correct now.

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