Laurent Vivier wrote:
Hi,
if you just want to configure which bank to use with pflash, perhaps you
can do something like:
qemu -drive if=pflash,unit=0
to use the first bank, and
qemu -drive if=pflash,unit=1
to use the second bank.
Yes, that might work for the flash case but does not address other
switches settings. In my case, the Mainstone has two rotary switches
that define which frequency to boot up in.
- Armin
Laurent
Le lundi 17 décembre 2007 à 07:29 -1000, Armin a écrit :
Johannes Schindelin wrote:
Hi,
On Sun, 16 Dec 2007, Armin wrote:
This may be one way to simulate switch or jumper settings one may change
on a board before booting. It uses a simple text file for input. The
file name is pointed to by -config <path to file> on the command line.
example:
config file:
[switches]
7:on
[jumpers]
I find this format utterly ugly.
I can only make it better then : )
You have sections like INI files, but
then refuse to keep to that format.
Besides, I fail to see why this has to be a config file?
It can be named anything , I suppose "switch"would be better
All other
settings are command line switches and/or monitor settings, and there is
no good reason why switches and jumpers should not be handled that way.
Do you mean something like -sw or -jp?
regards,
-Armin