From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iaq3u-0008IH-QX for qemu-devel@nongnu.org; Thu, 27 Sep 2007 05:53:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iaq3s-0008H1-0l for qemu-devel@nongnu.org; Thu, 27 Sep 2007 05:53:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iaq3r-0008Gs-3c for qemu-devel@nongnu.org; Thu, 27 Sep 2007 05:53:35 -0400 Received: from [85.186.197.132] (helo=swpark.galati.ro) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Iaq3q-0002GI-AP for qemu-devel@nongnu.org; Thu, 27 Sep 2007 05:53:34 -0400 Message-ID: <46FB7D85.8010201@comsys.ro> Date: Thu, 27 Sep 2007 02:53:09 -0700 From: Vlad Lungu MIME-Version: 1.0 Subject: Re: [Qemu-devel] Qemu and Linux 2.4 References: <46E68AA3.2010907@comsys.ro> <20070911125421.GE10713@networkno.de> <46E69AAF.2090509@comsys.ro> <029001c80059$d7a14960$e90d11ac@spb.in.rosprint.ru> In-Reply-To: <029001c80059$d7a14960$e90d11ac@spb.in.rosprint.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Voropay , qemu-devel@nongnu.org Alexander Voropay wrote: > wrote: > >>>> - QEMU malta emulation is not really complete, to put it mildly >>> Out of curiosity, what parts did you miss? >> Like, for example, the PCI stuff. So I can use the network card. > > PCI stuff in the QEMU/Malta works fine, but pseudo-bootrom > does not perform PCI enumeration and leaves uninitialized PCI BARs. > > Linux MIPS/Malta 2.4 can not perform PCI enumeration too. The LANCE > Ethernet driver *requres* a pre-initialized BARs. The situation even worse, > since current Linux 2.4 can't be even built with NEW_PCI and PCI_AUTO > options at all (due to linkage error). > > http://www.linux-mips.org/wiki/PCI_Subsystem > > There is the same PCI problem with NetBSD/evbmips and seems VxWorks/Malta. Well, that's a pretty big showstopper, don't you think? [snip] > The only thing we need is a good bootrom (BIOS) for the MIPS/Malta > (Free-YAMON ;) > > As a quick'n'disty solution you could initialize PCI BARs of the > device number 12 (0x0b, LANCE) with GDB: > > (gdb) set variable {int}0xbbe00cf8=0x80005810 <--- I/O address > (gdb) set variable {int}0xbbe00cfc=0x00002001 > (gdb) set variable {int}0xbbe00cf8=0x80005814 <--- Mem address > (gdb) set variable {int}0xbbe00cfc=0xfc200000 > (gdb) set variable {int}0xbbe00cf8=0x80005804 <--- Enable Mem and I/O > (gdb) set variable {int}0xbbe00cfc=0x00000003 > (gdb) set variable {int}0xbbe00cf8=0x8000583c <---- IRQ=10 tied to Pin A > (gdb) set variable {int}0xbbe00cfc=0xff06010a > (gdb) cont > Continuing. That's dirty alright, but not exactly quick. You kind of need gdb :-) Vlad