From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4hN1-00072I-3j for qemu-devel@nongnu.org; Tue, 18 Dec 2007 13:40:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4hN0-00070K-8k for qemu-devel@nongnu.org; Tue, 18 Dec 2007 13:40:46 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4hN0-000701-5O for qemu-devel@nongnu.org; Tue, 18 Dec 2007 13:40:46 -0500 Received: from gateway-1237.mvista.com ([63.81.120.158]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J4hMz-0007TU-Vd for qemu-devel@nongnu.org; Tue, 18 Dec 2007 13:40:46 -0500 Message-ID: <4768142A.3040703@kama-aina.net> Date: Tue, 18 Dec 2007 08:40:42 -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> <4766D0CB.4010903@kama-aina.net> <1197921612.17512.6.camel@frecb07144> In-Reply-To: <1197921612.17512.6.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: > Le lundi 17 d=C3=A9cembre 2007 =C3=A0 09:40 -1000, Armin a =C3=A9crit : > =20 >> Laurent Vivier wrote: >> =20 >>> Hi, >>> >>> if you just want to configure which bank to use with pflash, perhaps = you >>> 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 >>> =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. >> =20 > > But I don't think qemu able to emulate frequency ? > So it should be useless. > =20 I am sure that is true and my example might be very week in the above cas= e. I think if a board we are trying to emulate has boot time configurations=20 governed by jumpers or switches for enabling or disabling certain=20 hardware devices , then having a runtime solution seems more=20 appropriate. It seems silly to have to rebuild to qemu if one wants to=20 switch device A to be uart #2 from an IrdA device when using "-switches=20 1=3Don" could do the same. regards, Armin