[adelie-devel]Re: Adelie on QEMU PPC

From: BALATON Zoltan <balaton_at_eik.bme.hu>
Date: Mon, 08 Jul 2019 13:01:03 +0200


Referring to my previous message:
(still not subscribed so please cc replies to me, although there weren't
any for previous message either)

I've tested beta3 with latest QEMU on x86_64 with TCG (you mention testing
on PPC hardware with KVM in the beta3 release notes but I don't have PPC
host so I use TCG). The exception is still there by just booting the
livecd iso but now pressing c then linux /bzImage; initrd /initrd; boot
from grub> prompt is enough to avoid it. However then it hangs after Linux
kernel is started. With my patched openbios-qemu.elf the exception does
not happen with beta3 and starts from menu but the hang is the same after
that. I still can only boot beta2 with my patched openbios version as
described in previous message so it's not related to QEMU changes but I
think it depends on how things are laid out in memory. Is there anything
else I should know about running Adelie Linux on QEMU?

I can get some more logs if I run it as:

qemu-system-ppc -M mac99,via=pmu -m 1024 \
-boot d -cdrom adelie-live-ppc-1.0-beta3.iso \
-d unimp,guest_errors -nographic -serial stdio -monitor null

still need to go to grub> prompt and do linux initrd boot, then I get:

Quiescing Open Firmware ...
Booting Linux via __start() _at_ 0x02000000 ...
Hello World !
boot stdout isn't a display !
Using PowerMac machine description
CPU maps initialized for 1 thread per core
  (thread shift is 0)
Hash_size = 0x200000
phys_mem_size = 0x40000000
dcache_bsize = 0x20
icache_bsize = 0x20
cpu_features = 0x000000000022047a
   possible = 0x0000000005a6fd7f
   always = 0x0000000000020000
cpu_user_features = 0x9c000001 0x00000000
mmu_features = 0x00000001
Hash = 0xcfe00000
Hash_mask = 0x7fff
Found UniNorth PCI host bridge at 0x00000000f2000000. Firmware bus number: 0->0
PCI host bridge /pci(a)f2000000 (primary) ranges:
   IO 0x00000000f2000000..0x00000000f27fffff -> 0x0000000000000000
  MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000000
via-pmu: Server Mode is disabled
PMU driver v2 initialized for Core99, firmware: 01
nvram: Checking bank 0...
Invalid signature
Invalid checksum
nvram: gen0=0, gen1=0
nvram: Active bank is: 0
nvram: OF partition at 0xffffffff
nvram: XP partition at 0xffffffff
nvram: NR partition at 0xffffffff
Top of RAM: 0x40000000, Total RAM: 0x40000000
Memory hole size: 0MB
Zone ranges:
   DMA [mem 0x0000000000000000-0x000000002fffffff]
   Normal empty
   HighMem [mem 0x0000000030000000-0x000000003fffffff]
Movable zone start for each node
Early memory node ranges
   node 0: [mem 0x0000000000000000-0x000000003fffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
On node 0 totalpages: 262144
free_area_init_node: node 0, pgdat c0e289a0, node_mem_map ef6ee000
   DMA zone: 1728 pages used for memmap
   DMA zone: 0 pages reserved
   DMA zone: 196608 pages, LIFO batch:31
   HighMem zone: 65536 pages, LIFO batch:15
percpu: Embedded 17 pages/cpu _at_ef6db000 s40080 r8192 d21360 u69632
pcpu-alloc: s40080 r8192 d21360 u69632 alloc=17*4096
pcpu-alloc: [0] 0
Built 1 zonelists, mobility grouping on. Total pages: 260416
Kernel command line: BOOT_IMAGE=/bzImage
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1018852K/1048576K available (10608K kernel code, 724K rwdata, 2856K rodata, 472K init, 1323K bss, 29724K reserved, 0K cma-reserved, 262144K highmem)
Kernel virtual memory layout:
   * 0xfff9f000..0xfffff000 : fixmap
   * 0xff800000..0xffc00000 : highmem PTEs
   * 0xfef35000..0xff800000 : early ioremap
   * 0xf1000000..0xfef35000 : vmalloc & ioremap
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
         RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
         Tasks RCU enabled.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS: 384, nr_irqs: 384, preallocated irqs: 16
mpic: Resetting
mpic: Setting up MPIC " MPIC 1 " version 1.2 at 80040000, max 1 CPUs
mpic: ISU size: 64, shift: 6, mask: 3f
mpic: Initializing for 64 sources
GMT Delta read from XPRAM: 0 minutes, DST: on
time_init: decrementer frequency = 100.000000 MHz
time_init: processor frequency = 900.000000 MHz
clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x171024e7e0,
max_idle_ns: 440795205315 ns
clocksource: timebase mult[a000000] shift[24] registered
clockevent: decrementer mult[1999999a] shift[32] cpu[0]
Console: colour dummy device 80x25
console [tty0] enabled
bootconsole [udbg0] disabled

After this I see it's poking PCI BARs then nothing else happens.
That's all I could find out, any idea how to debug this further?
(As this may be OpenBIOS related also cc-ing OpenBIOS maintainer.)

Received on Tue Jul 09 2019 - 02:57:27 UTC

This archive was generated by hypermail 2.4.0 : Sat May 08 2021 - 22:54:40 UTC