From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4Lpr-0005ff-KJ for qemu-devel@nongnu.org; Mon, 17 Dec 2007 14:41:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4Lpn-0005aP-F8 for qemu-devel@nongnu.org; Mon, 17 Dec 2007 14:41:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4Lpn-0005a6-AC for qemu-devel@nongnu.org; Mon, 17 Dec 2007 14:41:03 -0500 Received: from gateway-1237.mvista.com ([63.81.120.158]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J4Lpm-0002Gm-SC for qemu-devel@nongnu.org; Mon, 17 Dec 2007 14:41:03 -0500 Message-ID: <4766D0CB.4010903@kama-aina.net> Date: Mon, 17 Dec 2007 09:40:59 -1000 From: Armin MIME-Version: 1.0 Subject: Re: [Qemu-devel] [Patch 1/2] switch support v2 References: <47657715.9020402@kama-aina.net> <4766B205.50204@kama-aina.net> <1197915422.17512.3.camel@frecb07144> In-Reply-To: <1197915422.17512.3.camel@frecb07144> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: qemu-devel@nongnu.org Laurent Vivier wrote: > Hi, > > if you just want to configure which bank to use with pflash, perhaps yo= u > can do something like: > > qemu -drive if=3Dpflash,unit=3D0 > > to use the first bank, and > > qemu -drive if=3Dpflash,unit=3D1 > > to use the second bank. > =20 Yes, that might work for the flash case but does not address other=20 switches settings. In my case, the Mainstone has two rotary switches=20 that define which frequency to boot up in. - Armin > Laurent > > Le lundi 17 d=C3=A9cembre 2007 =C3=A0 07:29 -1000, Armin a =C3=A9crit : > =20 >> Johannes Schindelin wrote: >> =20 >>> Hi, >>> >>> On Sun, 16 Dec 2007, Armin wrote: >>> >>> =20 >>> =20 >>>> This may be one way to simulate switch or jumper settings one may ch= ange=20 >>>> on a board before booting. It uses a simple text file for input. The= =20 >>>> file name is pointed to by -config on the command lin= e. >>>> >>>> example: >>>> config file: >>>> [switches] >>>> 7:on >>>> [jumpers] >>>> =20 >>>> =20 >>> I find this format utterly ugly. =20 >>> =20 >> I can only make it better then : ) >> =20 >>> You have sections like INI files, but=20 >>> then refuse to keep to that format. >>> >>> Besides, I fail to see why this has to be a config file? =20 >>> =20 >> It can be named anything , I suppose "switch"would be better >> =20 >>> All other=20 >>> settings are command line switches and/or monitor settings, and there= is=20 >>> no good reason why switches and jumpers should not be handled that wa= y. >>> =20 >>> =20 >> Do you mean something like -sw or -jp?=20 >> >> regards, >> -Armin >> >> >> >> >> =20