Hey all, first of all I really appreciate all the work this community is doing to get allwinner hardware working with linux.
My hardware is a ClockworkPi Devterm R01: https://www.clockworkpi.com/product-page/devterm-kit-r01. The "official" linux is a 5.4 linux distro which is a slightly modified version of the official allwinner linux sources for that device: https://github.com/ardera/clockworkpi-r01-linux (linking my repo since it has the git history restored) I'd like to boot Samuel Hollands linux fork on it, since the hardware seems to be very close to the Nezha board. So I just built his fork (`riscv/d1-wip` branch, with `nezha_defconfig`) and replaced the kernel on the official image with my custom-built kernel. However, when booting, i get kernel panic pretty early on in the boot (see attachment). I'm not that experienced with hw bringup so I'm a bit lost here. Is that just the kernel equivalent of a segfault? Could that mean something with the device tree is wrong? Could it be caused by an incompatible u-boot? -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/25e390af-b39e-4bdf-921c-01cb10cc8e1bn%40googlegroups.com.
[313]HELLO! BOOT0 is starting! [316]BOOT0 commit : [318]set pll start [320]periph0 has been enabled [323]set pll end [324]board init ok [326]DRAM only have internal ZQ!! [329]get_pmu_exist() = -1 [332]ddr_efuse_type: 0x0 [335][AUTO DEBUG] two rank and full DQ! [339]ddr_efuse_type: 0x0 [342][AUTO DEBUG] rank 0 row = 15 [345][AUTO DEBUG] rank 0 bank = 8 [348][AUTO DEBUG] rank 0 page size = 2 KB [352][AUTO DEBUG] rank 1 row = 15 [355][AUTO DEBUG] rank 1 bank = 8 [358][AUTO DEBUG] rank 1 page size = 2 KB [362]rank1 config same as rank0 [365]DRAM BOOT DRIVE INFO: V0.24 [368]DRAM CLK = 792 MHz [371]DRAM Type = 3 (2:DDR2,3:DDR3) [374]DRAMC ZQ value: 0x7b7bfb [376]DRAM ODT value: 0x42. [379]ddr_efuse_type: 0x0 [382]DRAM SIZE =1024 M [386]DRAM simple test OK. [388]dram size =1024 [390]key press : [392]card no is 0 [393]sdcard 0 line count 4 [396][mmc]: mmc driver ver 2021-04-2 16:45 [405][mmc]: Wrong media type 0x0 [408][mmc]: ***Try SD card 0*** [429][mmc]: HSSDR52/SDR25 4 bit [432][mmc]: 50000000 Hz [434][mmc]: 30436 MB [436][mmc]: ***SD/MMC 0 init OK!!!*** [485]Loading boot-pkg Succeed(index=0). [489]Entry_name = opensbi [492]Entry_name = dtb [495]Entry_name = u-boot [498]Jump to second Boot. OpenSBI v0.9-204-gc9024b5 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : Allwinner D1 NeZha Platform Features : medeleg Platform HART Count : 1 Platform IPI Device : aclint-mswi Platform Timer Device : aclint-mtimer @ 24000000Hz Platform Console Device : uart8250 Platform HSM Device : --- Platform Reboot Device : sunxi-wdt-reset Platform Shutdown Device : --- Firmware Base : 0x40000000 Firmware Size : 248 KB Runtime SBI Version : 0.3 Domain0 Name : root Domain0 Boot HART : 0 Domain0 HARTs : 0* Domain0 Region00 : 0x0000000014008000-0x000000001400bfff (I) Domain0 Region01 : 0x0000000014000000-0x0000000014007fff (I) Domain0 Region02 : 0x0000000040000000-0x000000004003ffff () Domain0 Region03 : 0x0000000000000000-0xffffffffffffffff (R,W,X) Domain0 Next Address : 0x000000004a000000 Domain0 Next Arg1 : 0x0000000044000000 Domain0 Next Mode : S-mode Domain0 SysReset : yes Boot HART ID : 0 Boot HART Domain : root Boot HART ISA : rv64imafdcvsux Boot HART Features : scounteren,mcounteren,mcountinhibit,time Boot HART PMP Count : 16 Boot HART PMP Granularity : 2048 Boot HART PMP Address Bits: 38 Boot HART MHPM Count : 0 Boot HART MIDELEG : 0x0000000000000222 Boot HART MEDELEG : 0x000000000000b109 U-Boot 2022.01-17750-gd5c119c132 (Feb 08 2022 - 20:37:17 +0800) CPU: rv64imafdc Model: Allwinner D1 NeZha DRAM: 512 MiB Core: 57 devices, 21 uclasses, devicetree: separate WDT: Started watchdog@6011000 with servicing (16s timeout) MMC: mmc@4020000: 0, mmc@4021000: 1 Loading Environment from nowhere... OK In: serial@2500000 Out: serial@2500000 Err: serial@2500000 Net: Could not get PHY for ethernet@4500000: addr 1 No ethernet found. Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:3... Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf 1: DevTerm Retrieving file: /vmlinuz append: earlycon=sbi clk_ignore_unused initcall_debug=0 console=tty0 root=/dev/mmcblk0p4 cma=8M mac_addr=84:10:12:12:01:04 LANG=en_US.UTF-8 fbcon=rotate:1 Retrieving file: /board.dtb Uncompressing Kernel Image ## Flattened Device Tree blob at 4fa00000 Booting using the fdt blob at 0x4fa00000 Loading Device Tree to 0000000049ff5000, end 0000000049fff019 ... OK Starting kernel ... [ 0.000000] Linux version 5.19.0-rc1 (root@pop-os) (riscv64-linux-gnu-gcc (Ubuntu 11.2.0-16ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #4 PREEMPT Sat Jul 9 12:50:11 CEST 2022 [ 0.000000] Machine model: Allwinner D1 Nezha [ 0.000000] earlycon: sbi0 at I/O port 0x0 (options '') [ 0.000000] printk: bootconsole [sbi0] enabled [ 0.000000] Unable to handle kernel paging request at virtual address ffffffd8013a2af0 [ 0.000000] Oops [#1] [ 0.000000] Modules linked in: [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.19.0-rc1 #4 [ 0.000000] Hardware name: Allwinner D1 Nezha (DT) [ 0.000000] epc : vmalloc_fault.constprop.0+0x64/0x168 [ 0.000000] ra : do_page_fault+0x60/0x342 [ 0.000000] epc : ffffffff8000711e ra : ffffffff80007282 sp : ffffffff81203d30 [ 0.000000] gp : ffffffff81393a70 tp : ffffffff8120a9c0 t0 : ffffffff80007222 [ 0.000000] t1 : ffffffff80c001e0 t2 : ffffffff80c00260 s0 : ffffffff81203d50 [ 0.000000] s1 : ffffffd7bfe00001 a0 : ffffffff813932c0 a1 : ffffffff80e05de0 [ 0.000000] a2 : ffffffff813a2af0 a3 : 0000000000000000 a4 : 0000000000000af0 [ 0.000000] a5 : ffffffd8013a2af0 a6 : 0000000000000000 a7 : 0000000000000018 [ 0.000000] s2 : ffffffff81203dd0 s3 : 000000000000000d s4 : 0000000000000000 [ 0.000000] s5 : ffffffff8120a9c0 s6 : 0000000000000000 s7 : 0000000000000000 [ 0.000000] s8 : 000000005ff26184 s9 : 0000000000000002 s10: 0000000000000000 [ 0.000000] s11: 000000005fb13e00 t3 : 7000000000000000 t4 : ffffffff80a0de90 [ 0.000000] t5 : ffffffff80a0de90 t6 : ffffffff80a0dea8 [ 0.000000] status: 8000000201800100 badaddr: ffffffd8013a2af0 cause: 000000000000000f [ 0.000000] [<ffffffff80007282>] do_page_fault+0x60/0x342 [ 0.000000] [<ffffffff8000247c>] ret_from_exception+0x0/0xc [ 0.000000] ---[ end trace 0000000000000000 ]--- [ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task! [ 0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---