hello,
i try to run linux on a leon3-digilent-arty-a7 based design and everything goes fine until i get the following message
Run /init as init process
Unimplemented Sparc TRAP, type = 2b
init(1): Whee… Hello Mr. Penguin [#1]
CPU: 0 PID: 1 Comm: init Not tainted 5.10.246-leon1.10 #78
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
hello,
if i disable casa in kernel, it boots until loading /init - which contains casa instructions.
if i enable casa in linux kernel, it hangs at output/build/linux-5.10.246/arch/sparc/prom//init_32.c, in the first printk
(which calls #ifdef CONFIG_SPARC_LEON_CAS __cmpxchg_u32(volatile int *m, int old, int new) {..“casa [%2] 0xb, %3, %0”)}
if i comment the printk also hangs.
in all cases, the image.ram output of buildroot works in qemu.
i have express tested casa in mklinuxing boot_main and it works.
can sparc-gaisler-linux-gcc be set to not generate casa instructions