Re: [Qemu-devel] [Patch 1/2] switch support v2

2007-12-18 Thread Armin
Laurent Vivier wrote: Le mardi 18 décembre 2007 à 08:40 -1000, Armin a écrit : Laurent Vivier wrote: Le lundi 17 décembre 2007 à 09:40 -1000, Armin a écrit : Laurent Vivier wrote: Hi, if you just want to configure which bank to use with pflash, perhaps you can

Re: [Qemu-devel] [Patch 1/2] switch support v2

2007-12-18 Thread Laurent Vivier
Le mardi 18 décembre 2007 à 08:40 -1000, Armin a écrit : > Laurent Vivier wrote: > > Le lundi 17 décembre 2007 à 09:40 -1000, Armin a écrit : > > > >> Laurent Vivier wrote: > >> > >>> Hi, > >>> > >>> if you just want to configure which bank to use with pflash, perhaps you > >>> can do somet

Re: [Qemu-devel] [Patch 1/2] switch support v2

2007-12-18 Thread Armin
Laurent Vivier wrote: Le lundi 17 décembre 2007 à 09:40 -1000, Armin a écrit : 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

Re: [Qemu-devel] [Patch 1/2] switch support v2

2007-12-17 Thread Laurent Vivier
Le lundi 17 décembre 2007 à 09:40 -1000, Armin a écrit : > 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,

Re: [Qemu-devel] [Patch 1/2] switch support v2

2007-12-17 Thread Armin
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 addre

Re: [Qemu-devel] [Patch 1/2] switch support v2

2007-12-17 Thread Laurent Vivier
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. Laurent Le lundi 17 décembre 2007 à 07:29 -1000, Armin a écrit : > Johannes Schinde

Re: [Qemu-devel] [Patch 1/2] switch support v2

2007-12-17 Thread Johannes Schindelin
Hi, On Mon, 17 Dec 2007, Armin wrote: > Johannes Schindelin wrote: > > > 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? More like "-swi

Re: [Qemu-devel] [Patch 1/2] switch support v2

2007-12-17 Thread Armin
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 on the command line. example: config file: [s

Re: [Qemu-devel] [Patch 1/2] switch support v2

2007-12-17 Thread Johannes Schindelin
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 on the command line. > > example: > config file: > [switches] > 7:on > [

[Qemu-devel] [Patch 1/2] switch support v2

2007-12-16 Thread Armin
Hello, Here is a set of patches against the latest cvs and fixed a bad patch also. I have wanted a scheme to change switch settings at boot time so I change the behavior of the Linux kernel and here is one solution I put together. This may be one way to simulate switch or jumper settings o