From: Vlad Lungu <vlad@comsys.ro>
To: Alexander Voropay <alec@nwpi.ru>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Qemu and Linux 2.4
Date: Thu, 27 Sep 2007 02:53:09 -0700 [thread overview]
Message-ID: <46FB7D85.8010201@comsys.ro> (raw)
In-Reply-To: <029001c80059$d7a14960$e90d11ac@spb.in.rosprint.ru>
Alexander Voropay wrote:
> <vlad@comsys.ro> 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
next prev parent reply other threads:[~2007-09-27 9:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-11 12:31 [Qemu-devel] Qemu and Linux 2.4 Vlad Lungu
2007-09-11 12:54 ` Thiemo Seufer
2007-09-11 13:39 ` Vlad Lungu
2007-09-26 16:25 ` Alexander Voropay
2007-09-26 16:59 ` Ralf Baechle
2007-09-27 10:06 ` Vlad Lungu
2007-09-26 17:12 ` Blue Swirl
2007-09-27 9:59 ` Vlad Lungu
2007-09-29 8:44 ` [Qemu-devel] U-Boot Vlad Lungu
2007-09-27 9:53 ` Vlad Lungu [this message]
2007-09-11 13:31 ` [Qemu-devel] Re: Qemu and Linux 2.4 ralf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46FB7D85.8010201@comsys.ro \
--to=vlad@comsys.ro \
--cc=alec@nwpi.ru \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).