Joseph Smith wrote:
>>> Add string support to nvramtool.
>>>>>> To add a string to your cmos.layout, you need to specify type 's':
>>>>>> #start len type unused name
>>> 416 512 s 0 boot_devices
>>>>>> With this patch you can do
>>>>>> $ nvramtool -w boot_devices="(hd0,0);(hd2,1);(hd3)"
>>>>>> And FILO will attempt to load a menu.lst from any of these devices in
>>>> that
>>>> order.
>>>>>> The patch is not exactly pretty, but a cleaner solution might have
>>>> resulted in
>>>> a complete rewrite of the tool, which I did not want.
>>>>>> Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
>>>>> Cool I like it :-)
>> But, it may just all change with FILO1.0...
>>>>> And what I mean by that is if Carl-Daniel can come through with his 1 block
> flashing idea (expected in Oct), there will be no need for FILO in CMOS.
> FILO will have it's own data block for settings. Plenty of space for a FILO
> configuration. I will ack this for the intrim though.
>Yes, we might consider additional storage for options in the future, if
that's needed. Right now every machine has 256 bytes of CMOS nvram these
days, of which 14 are reserved for the clock registers. Another byte is
written by Linux, so we shouldn't use that either. This leaves us with
241 bytes of nvram. One of those bytes is actually used by coreboot. So
the payload has 240 bytes left for its own use. For additional features
(boot order support) FILO can use a given number of bytes (I gave it 64
bytes on the board I'm working on). This means we could put 3.75 such
payloads in a ROM, combined with bayou. I really don't think we're
anywhere close to exhausting nvram storage. So no need to worry, all
features of FILO 1.0 can be implemented without us worrying where the
options are actually saved (and, from a payload perspective, we
shouldn't care anyways)
> Acked-by: Joseph Smith <joe at settoplinux.org>
>
Thanks, r3613
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.de • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866