|
| From: | BALATON Zoltan |
| Subject: | Re: OpenMPIC controller emulation in qemu ? |
| Date: | Sun, 19 May 2024 00:47:37 +0200 (CEST) |
On Sun, 19 May 2024, BALATON Zoltan wrote:
On Sun, 19 May 2024, Andrew Randrianasulu wrote:сб, 18 мая 2024 г., 23:33 BALATON Zoltan <balaton@eik.bme.hu>:On Sat, 18 May 2024, Andrew Randrianasulu wrote:On Sat, May 18, 2024 at 11:14 PM BALATON Zoltan <balaton@eik.bme.hu>wrote:On Sat, 18 May 2024, Andrew Randrianasulu wrote:On Sat, May 18, 2024 at 10:24 PM BALATON Zoltan <balaton@eik.bme.hu>wrote:On Sat, 18 May 2024, Andrew Randrianasulu wrote:Using attached patch I get this new dmesg: Quiescing Open Firmware ...of_client_interface: quiesce of_client_interface return:Booting Linux via __start() @ 0x01000000 ... Hello World ! [ 0.000000] Total memory = 512MB; using 1024kB for hash table [ 0.000000] Activating Kernel Userspace Execution Prevention [ 0.000000] Activating Kernel Userspace Access Protection [ 0.000000] Linux version 5.13.12_1 (voidlinux@voidlinux) (gcc(GCC)10.2.1 20201203, GNU ld (GNU Binutils) 2.35.1) #1 SMP Thu Aug 1914:12:26UTC 2021[ 0.000000] ioremap() called early frompmac_feature_init+0xd4/0xad4.Use early_ioremap() instead[ 0.000000] Found UniNorth memory controller & host bridge @0xf8000000 revision: 0x07[ 0.000000] Mapped at 0xf73c0000 [ 0.000000] ioremap() called early fromprobe_one_macio+0x17c/0x2b4.Use early_ioremap() instead[ 0.000000] Found a Keylargo mac-io controller, rev: 0, mapped at0x(ptrval)
So the MACIO_OUT8 macro pokes macio->base and it's not listed here unlike in the log from real machine so not sure it's writing the right address. You can check witn info mtree in QEMU monitor where things appear but may need another kernel which logs thinks similar to the log you got from real machine. Does the finnix kernel work better with -append debuglevel=<some number here but I don't know what's a good number". Maybe can also enable openpic and macio traces to see if their regs are accessed. Something like QEMU option -trace enable="macio*" maybe?
Regards, BALATON Zoltan
| [Prev in Thread] | Current Thread | [Next in Thread] |