Author: wmb
Date: 2007-04-30 23:08:30 +0200 (Mon, 30 Apr 2007)
New Revision: 339
Modified:
dev/olpc/cafenand/configure.fth
Log:
OLPC CaFe- removed an innocuous but annoying message that happens when
probing a nonexistent second chip.
Modified: dev/olpc/cafenand/configure.fth
===================================================================
--- dev/olpc/cafenand/configure.fth 2007-04-30 16:42:32 UTC (rev 338)
+++ dev/olpc/cafenand/configure.fth 2007-04-30 21:08:30 UTC (rev 339)
@@ -38,6 +38,8 @@
: configure-size ( adr -- adr )
\ These are all 2K-page devices
dup 1+ c@ case ( adr device-code )
+ h# 0 of abort endof \ This is the result for nonexistent chips
+ h# ff of abort endof \ Another likely result for nonexistent chips
h# f2 of h# 01.0000 endof \ 128 MB, 1 Gbit, 64K pages
h# f1 of h# 02.0000 endof \ 256 MB, 2 Gbit, 128K pages
h# dc of h# 04.0000 endof \ 512 MB, 4 Gbit, 256K pages
Hi,
I'm adding support for nvram variables to Qemu (see attached patches), like:
qemu-system-sparc -prom-env "boot-device=zorg"
But this only works if the variable does not have any default value in
nvram.fs. I'd like to change this so that the nvram values override
defaults, but how?
For example:
qemu-system-sparc -boot n -prom-env "boot-device=foobar" -prom-env
"boot-device-foobar=foobar" -nographic -monitor stdio -hda /dev/null
Nvram id QEMU_BIOS, version 1, machine id 0x80
CPUs: 1
Welcome to OpenBIOS v1.0RC1 built on Apr 29 2007 07:39
Type 'help' for detailed information
[sparc] Booting file 'net' without parameters.
0 > printenv
name "options"
boot-from "disk"
boot-device "disk"
boot-device-foobar "foobar"
boot-args ""
[cut]
Here boot-device is overridden to "disk" somewhere later but
boot-device-foobar survives.