From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4la3-0005k0-2a for qemu-devel@nongnu.org; Tue, 18 Dec 2007 18:10:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4la2-0005ji-L1 for qemu-devel@nongnu.org; Tue, 18 Dec 2007 18:10:30 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4la2-0005jZ-6p for qemu-devel@nongnu.org; Tue, 18 Dec 2007 18:10:30 -0500 Received: from gateway-1237.mvista.com ([63.81.120.158]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J4la1-00009J-PF for qemu-devel@nongnu.org; Tue, 18 Dec 2007 18:10:30 -0500 Message-ID: <47685354.5020302@kama-aina.net> Date: Tue, 18 Dec 2007 13:10:12 -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> <4768142A.3040703@kama-aina.net> <1198017115.1998.10.camel@frecb07144> In-Reply-To: <1198017115.1998.10.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 mardi 18 d=C3=A9cembre 2007 =C3=A0 08:40 -1000, Armin a =C3=A9crit : > =20 >> Laurent Vivier wrote: >> =20 >>> Le lundi 17 d=C3=A9cembre 2007 =C3=A0 09:40 -1000, Armin a =C3=A9crit= : >>> =20 >>> =20 >>>> Laurent Vivier wrote: >>>> =20 >>>> =20 >>>>> Hi, >>>>> >>>>> if you just want to configure which bank to use with pflash, perhap= s 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 >>>>> =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 >>>> =20 >>> But I don't think qemu able to emulate frequency ? >>> So it should be useless. >>> =20 >>> =20 >> I am sure that is true and my example might be very week in the above = case. >> I think if a board we are trying to emulate has boot time configuratio= ns=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 t= o=20 >> switch device A to be uart #2 from an IrdA device when using "-switche= s=20 >> 1=3Don" could do the same. >> =20 > > Well, my opinion is not really important here, but I think "-switches > 1=3Don" is too low level... using the "meaning" could be more > user-friendly, something like "-deviceA uart2". > =20 Sure your opinion matters, I can get an idea stuck in my little brain=20 and not see the trees in the forest. "-device", that got me thinking... Lets say I have a mips port that has one PCI slot on it. I could get a=20 listing of PCI cards supported by this port and select one for use by=20 that PCI slot. This could be extended for local bus (i.e switches & jumpers) , PCMCIA=20 and SD slots. Regards, Armin