https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121432
--- Comment #49 from Neal Frager <neal.frager at amd dot com> --- (In reply to Neal Frager from comment #43) > Unfortunately, when I switch from > > this config: > https://gitlab.com/buildroot.org/buildroot/-/blob/master/board/qemu/ > microblazeel-mmu/linux.config > > to this config: > https://github.com/numato/samplecode/blob/master/FPGA/MimasA7Mini/ > MimasA7MiniLinux-BSP/mimasa7mini_defconfig > > The boot does not even start with the qemu. > > output/host/bin/qemu-system-microblazeel -M petalogix-s3adsp1800 -kernel > output/images/linux.bin -serial stdio > VNC server running on 127.0.0.1:5900 > > > But I am still thinking the most likely issue is a Linux config option that > enables something which is not covered by Gopi's patch. Hopefully we can > figure out how to duplicate the failure with the qemu, so that Gopi can > easily work on it. > > Otherwise, can your bitstream run on an Artix-7 AC701 board? > https://www.amd.com/en/products/adaptive-socs-and-fpgas/evaluation-boards/ek- > a7-ac701-g.html I figured out what the issue was. If I use your defconfig: https://github.com/numato/samplecode/blob/master/FPGA/MimasA7Mini/MimasA7MiniLinux-BSP/mimasa7mini_defconfig And remove the following config: CONFIG_KERNEL_BASE_ADDR=0x80000000 Then I can boot as shown below using your defconfig. The qemu is expecting a base address of 0x90000000 instead of 0x80000000, which was the reason I could not boot with your config previously. This means that the qemu is not able to duplicate the issue and real hardware is indeed needed. output/host/bin/qemu-system-microblazeel -M petalogix-s3adsp1800 -kernel output/images/linux.bin -serial stdio VNC server running on 127.0.0.1:5900 random: crng init done Ramdisk addr 0x00000000, FDT at 0x9098e8dc Linux version 6.18.18 (nealf@xirengwts09) (microblazeel-buildroot-linux-gnu-gcc.br_real (Buildroot 2026.02-292-gc897438742-dirty) 15.2.0, GNU ld (GNU Binutils) 2.45.1) #16 Tue Apr 21 15:33:14 IST 2026 setup_memory: min_low_pfn: 0x90000 setup_memory: max_low_pfn: 0x98000 setup_memory: max_pfn: 0x98000 Zone ranges: DMA [mem 0x0000000090000000-0x0000000097ffffff] Normal empty Movable zone start for each node Early memory node ranges node 0: [mem 0x0000000090000000-0x0000000097ffffff] Initmem setup node 0 [mem 0x0000000090000000-0x0000000097ffffff] OF: reserved mem: Reserved memory: No reserved-memory node in the DT setup_cpuinfo: initialising setup_cpuinfo: No PVR support. Using static CPU info from FDT ERROR: Microblaze BARREL, MSR, PCMP or DIV-different for kernel and DTS ERROR: Microblaze HW_MUL-different for kernel and DTS wt_msr_noirq pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Kernel command line: console=ttyUL0 printk: log buffer data + meta data: 131072 + 409600 = 540672 bytes Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) Built 1 zonelists, mobility grouping on. Total pages: 32768 mem auto-init: stack:all(zero), heap alloc:off, heap free:off SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 irq-xilinx: /plb/interrupt-controller@81800000: num_irq=4, edge=0xa ERROR: CPU CCF input clock not found /plb/timer@83c00000: irq=1 ERROR: timer CCF input clock not found ERROR: Using CPU clock frequency clocksource: xilinx_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 30580167144 ns xilinx_timer_shutdown xilinx_timer_set_periodic sched_clock: 32 bits at 63MHz, resolution 16ns, wraps every 34359738360ns Calibrating delay loop... 1718.68 BogoMIPS (lpj=8593408) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) BUG: rwlock cpu recursion on CPU#0, swapper/0/0, (ptrval) CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.18.18 #16 NONE Kernel Stack: (ptrval): c000a860 c06ede24 (ptrval): 00000000 c0002298 c057db78 c06f71d8 c0037bfc 00000000 c06edf40 00800300 (ptrval): c0002260 c0037c28 c057da84 c057dbfc c1401280 00000001 c10079e0 c006bfb4 (ptrval): c0596a40 c0596a80 00000000 c06f472c 00000000 c06ee000 c057dd48 c00141f0 (ptrval): 000061a2 c00141e0 c06edf40 c06edf40 00800300 c0014230 c06ee000 ffffffff (ptrval): 00000000 c101c2b4 00000000 c06f72ac c00149c0 c1002400 00000dc0 00000cc0 (ptrval): c00cb19c 00000040 c1006d80 00000000 00000000 00000000 c06f4cf0 c014f05c (ptrval): 00000000 c1018000 c1018000 00800300 c06edf40 c0573678 00000000 00000000 (ptrval): 00000000 00000000 00000000 01000000 c0014e88 c1007980 00000000 ffffffff (ptrval): c016f348 c1005300 c1015400 00000000 00000000 00000000 00000000 00000000 (ptrval): 00000000 00000000 c0151108 00000000 00000000 c0573678 00000000 00000000 (ptrval): 00000000 c05735c8 00000005 c1006d90 c1005300 c01511a8 c1005300 00000002 (ptrval): 00800300 00000000 00000000 00000000 00000000 00000000 00000000 00000000 (ptrval): 00000000 00000000 00000000 00000000 00000000 00000000 00000000 c0573678 (ptrval): 00000000 00000000 00000000 00000000 00000001 c06f4094 c0799c38 c0771fd0 (ptrval): 00000000 00000000 00000000 00000000 00000000 00000000 c000054c c058e268 (ptrval): c7efc6c0 00000001 0000000d 0000006c ffffffff 00000000 c07712c8 c0799c38 (ptrval): 9098e8dc 3ffff001 00000000 00000000 00000000 00000000 00000000 00000000 Call Trace: [<c000defc>] microblaze_unwind+0xc0/0x100 [<c000084c>] show_stack+0x128/0x16c [<c000a81c>] dump_stack_lvl+0x44/0x78 [<c000a85c>] dump_stack+0xc/0x24 [<c000225c>] rwlock_bug.part.0+0x28/0x40 [<c006bfb0>] do_raw_write_lock+0xbc/0xd0 [<c057dd44>] _raw_write_lock_irq+0x10/0x28 [<c001422c>] copy_process+0xe64/0x14cc [<c00149bc>] kernel_clone+0xac/0x378 [<c0014e84>] user_mode_thread+0x58/0x7c [<c05735c4>] rest_init+0x20/0xd4 [<c0771fcc>] start_kernel+0x84c/0x858 [<c0000548>] machine_shutdown+0x1c/0x20 Memory: 119504K/131072K available (5623K kernel code, 529K rwdata, 1400K rodata, 2158K init, 190K bss, 11276K reserved, 0K cma-reserved) devtmpfs: initialized clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns posixtimers hash table entries: 512 (order: 2, 10240 bytes, linear) NET: Registered PF_NETLINK/PF_ROUTE protocol family DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]> PTP clock support registered clocksource: Switched to clocksource xilinx_clocksource NET: Registered PF_INET protocol family IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear) tcp_listen_portaddr_hash hash table entries: 256 (order: 1, 5120 bytes, linear) Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) TCP bind hash table entries: 1024 (order: 4, 40960 bytes, linear) TCP: Hash tables configured (established 1024 bind 1024) UDP hash table entries: 256 (order: 3, 20480 bytes, linear) UDP-Lite hash table entries: 256 (order: 3, 20480 bytes, linear) NET: Registered PF_UNIX/PF_LOCAL protocol family RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp-with-tls transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. workingset: timestamp_bits=30 max_order=15 bucket_order=0 Key type cifs.idmap registered io scheduler mq-deadline registered io scheduler kyber registered 84000000.serial: ttyUL0 at MMIO 0x84000000 (irq = 3, base_baud = 0) is a uartlite printk: legacy console [ttyUL0] enabled brd: module loaded xilinx_emaclite 81000000.ethernet: Device Tree Probing xilinx_emaclite 81000000.ethernet: Failed to register mdio bus. xilinx_emaclite 81000000.ethernet: MAC address is now 02:00:00:00:00:00 xilinx_emaclite 81000000.ethernet: Xilinx EmacLite at 0x81000000 mapped to 0xe1d363f5, irq=2 NET: Registered PF_PACKET protocol family Key type dns_resolver registered clk: Disabling unused clocks Freeing unused kernel image (initmem) memory: 2156K This architecture does not have kernel memory protection. Run /init as init process with arguments: /init with environment: HOME=/ TERM=linux Saving 256 bits of creditable seed for next boot Starting syslogd: OK Starting klogd: OK Running sysctl: OK Starting network: udhcpc: started, v1.37.0 udhcpc: broadcasting discover udhcpc: broadcasting select for 10.0.2.15, server 10.0.2.2 udhcpc: lease of 10.0.2.15 obtained from 10.0.2.2, lease time 86400 deleting routers adding dns 10.0.2.3 OK Starting crond: OK Welcome to Buildroot buildroot login: root #
