U-Boot SPL 2022.07-rc3-00118-g55103cc657a4 (Jan 01 1970 - 00:00:00 +0000) sunxi_ram_probe: dram-controller@3102000: probing DRAM only have internal ZQ!! ddr_efuse_type: 0x0 [AUTO DEBUG] single rank and full DQ! ddr_efuse_type: 0x0 [AUTO DEBUG] rank 0 row = 15 [AUTO DEBUG] rank 0 bank = 8 [AUTO DEBUG] rank 0 page size = 2 KB DRAM BOOT DRIVE INFO: V0.24 DRAM CLK = 792 MHz DRAM Type = 3 (2:DDR2,3:DDR3) DRAMC ZQ value: 0x7b7bfb DRAM ODT value: 0x42. ddr_efuse_type: 0x0 DRAM SIZE =512 M DRAM simple test OK. mxstatus=0xc0408000 mhcr=0x00000109 mcor=0x00000003 mhint=0x00004000 Trying to boot from MMC1 PLL reg = 0xf8216300, freq = 1200000000 sunxi_ram_get_info: dram-controller@3102000: getting info OpenSBI v1.0-94-g6e138bd ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : Allwinner D1 Nezha Platform Features : medeleg Platform HART Count : 1 Platform IPI Device : --- Platform Timer Device : --- @ 0Hz Platform Console Device : uart8250 Platform HSM Device : sun20i-d1-ppu Platform Reboot Device : sunxi-wdt-reset Platform Shutdown Device : --- Firmware Base : 0x40000000 Firmware Size : 240 KB Runtime SBI Version : 0.3 Domain0 Name : root Domain0 Boot HART : 0 Domain0 HARTs : 0* Domain0 Region00 : 0x0000000040000000-0x000000004003ffff () Domain0 Region01 : 0x0000000000000000-0xffffffffffffffff (R,W,X) Domain0 Next Address : 0x000000004a000000 Domain0 Next Arg1 : 0x000000004a0d7278 Domain0 Next Mode : S-mode Domain0 SysReset : yes Boot HART ID : 0 Boot HART Domain : root Boot HART Priv Version : v1.11 Boot HART Base ISA : rv64imafdcvx Boot HART ISA Extensions : time Boot HART PMP Count : 8 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.07-rc3-00118-g55103cc657a4 (Jan 01 1970 - 00:00:00 +0000) CPU: rv64imafdc Model: Allwinner D1 Nezha DRAM: 512 MiB sunxi_set_gate: (CLK#24) unhandled Core: 66 devices, 24 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: Warning: ethernet@4500000 (eth0) using random MAC address - b2:f3:fd:61:26:6b eth0: ethernet@4500000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! : -110 PLL reg = 0xf8216300, freq = 1200000000 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found /boot/extlinux/extlinux.conf Retrieving file: /boot/extlinux/extlinux.conf 1: default Retrieving file: /boot/extlinux/../Image append: console=ttyS0,115200n8 earlycon=sbi root=/dev/mmcblk0p1 rootwait Moving Image from 0x40040000 to 0x40200000, end=413deeb8 ## Flattened Device Tree blob at 5fb11c10 Booting using the fdt blob at 0x5fb11c10 Loading Device Tree to 0000000042df2000, end 0000000042dff1a7 ... OK Starting kernel ... [ 0.000000] Linux version 5.18.0-rc4-00190-gf4bce410a6b4 (samuel@titanium) (riscv64-linux-musl-gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #2 Sun Jun 12 11:36:47 CDT 2022 [ 0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000 [ 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] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000040200000-0x000000005fffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000040200000-0x000000005fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000005fffffff] [ 0.000000] riscv: SBI specification v0.3 detected [ 0.000000] riscv: SBI implementation ID=0x1 Version=0x10000 [ 0.000000] riscv: SBI TIME extension detected [ 0.000000] riscv: SBI IPI extension detected [ 0.000000] riscv: SBI RFENCE extension detected [ 0.000000] riscv: SBI SRST extension detected [ 0.000000] riscv: base ISA extensions acdfim [ 0.000000] riscv: ELF capabilities acdfim [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 128520 [ 0.000000] Kernel command line: console=ttyS0,115200n8 earlycon=sbi root=/dev/mmcblk0p1 rootwait [ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 494604K/522240K available (6096K kernel code, 5550K rwdata, 4096K rodata, 2187K init, 319K bss, 27636K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] trace event string verifier disabled [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] OF: of_irq_init: found /cpus/cpu@0/interrupt-controller with parent (null) [ 0.000000] OF: of_irq_init: found /soc/interrupt-controller@6010000 with parent /soc/interrupt-controller@10000000 [ 0.000000] OF: of_irq_init: found /soc/interrupt-controller@10000000 with parent /cpus/cpu@0/interrupt-controller [ 0.000000] OF: of_irq_init: init /cpus/cpu@0/interrupt-controller with parent (null) [ 0.000000] riscv-intc: 64 local interrupts mapped [ 0.000000] OF: of_irq_init: init /soc/interrupt-controller@10000000 with parent /cpus/cpu@0/interrupt-controller [ 0.000000] plic: interrupt-controller@10000000: mapped 176 interrupts with 1 handlers for 2 contexts. [ 0.000000] OF: of_irq_init: init /soc/interrupt-controller@6010000 with parent /soc/interrupt-controller@10000000 [ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0] [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000001] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.008702] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.019018] Console: colour dummy device 80x25 [ 0.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000) [ 0.033819] pid_max: default: 32768 minimum: 301 [ 0.038776] random: get_random_bytes called from setup_net+0x2e/0x1a0 with crng_init=0 [ 0.038973] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.054223] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.064900] ASID allocator using 16 bits (65536 entries) [ 0.071274] devtmpfs: initialized [ 0.090420] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.100162] futex hash table entries: 256 (order: 0, 6144 bytes, linear) [ 0.107061] pinctrl core: initialized pinctrl subsystem [ 0.114290] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.120786] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations [ 0.127979] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.137043] thermal_sys: Registered thermal governor 'bang_bang' [ 0.137065] thermal_sys: Registered thermal governor 'step_wise' [ 0.143048] thermal_sys: Registered thermal governor 'user_space' [ 0.149554] cpuidle: using governor menu [ 0.207547] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer [ 0.215563] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer [ 0.224566] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top [ 0.234402] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top [ 0.244416] platform 5500000.hdmi: Fixing up cyclic dependency with 5460000.tcon-top [ 0.258281] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller [ 0.269667] platform connector: Fixing up cyclic dependency with 5500000.hdmi [ 0.298262] iommu: Default domain type: Translated [ 0.303129] iommu: DMA domain TLB invalidation policy: strict mode [ 0.310168] SCSI subsystem initialized [ 0.314404] usbcore: registered new interface driver usbfs [ 0.319998] usbcore: registered new interface driver hub [ 0.325375] usbcore: registered new device driver usb [ 0.330870] mc: Linux media interface: v0.10 [ 0.335260] videodev: Linux video capture interface: v2.00 [ 0.341881] Advanced Linux Sound Architecture Driver Initialized. [ 0.349424] clocksource: Switched to clocksource riscv_clocksource [ 0.798935] NET: Registered PF_INET protocol family [ 0.804095] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.813705] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.822115] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.829963] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.837160] TCP: Hash tables configured (established 4096 bind 4096) [ 0.843630] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.850195] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.857488] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.864848] workingset: timestamp_bits=46 max_order=17 bucket_order=0 [ 0.888392] SGI XFS with ACLs, security attributes, no debug enabled [ 0.898997] NET: Registered PF_ALG protocol family [ 0.904133] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248) [ 0.961323] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled [ 0.984768] sun8i-mixer 5100000.mixer: Adding to iommu group 0 [ 0.991259] sun8i-mixer 5200000.mixer: Adding to iommu group 0 [ 1.002705] zram: Added device: zram0 [ 1.012363] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.018878] ehci-platform: EHCI generic platform driver [ 1.024750] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.030943] ohci-platform: OHCI generic platform driver [ 1.037087] usbcore: registered new interface driver uas [ 1.042535] usbcore: registered new interface driver usb-storage [ 1.048728] usbcore: registered new interface driver ch341 [ 1.054271] usbserial: USB Serial support registered for ch341-uart [ 1.061631] UDC core: couldn't find an available UDC - added [g_ether] to list of pending drivers [ 1.075220] sun6i-rtc 7090000.rtc: registered as rtc0 [ 1.080366] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T00:00:07 UTC (86407) [ 1.088604] sun6i-rtc 7090000.rtc: RTC enabled [ 1.093588] i2c_dev: i2c /dev entries driver [ 1.102142] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 1.110943] sun50i-cpufreq-nvmem: probe of sun50i-cpufreq-nvmem failed with error -2 [ 1.119557] cpuidle-riscv-sbi: idle driver registered for all CPUs [ 1.128538] ledtrig-cpu: registered to indicate activity on CPUs [ 1.135188] sun8i-ce 3040000.crypto: Set mod clock to 300000000 (300 Mhz) from 400000000 (400 Mhz) [ 1.144638] sun8i-ce 3040000.crypto: will run requests pump with realtime priority [ 1.152491] sun8i-ce 3040000.crypto: will run requests pump with realtime priority [ 1.160327] sun8i-ce 3040000.crypto: will run requests pump with realtime priority [ 1.168172] sun8i-ce 3040000.crypto: will run requests pump with realtime priority [ 1.175876] sun8i-ce 3040000.crypto: Register cbc(aes) [ 1.181025] sun8i-ce 3040000.crypto: Register ecb(aes) [ 1.186214] sun8i-ce 3040000.crypto: Register cbc(des3_ede) [ 1.191837] sun8i-ce 3040000.crypto: Register ecb(des3_ede) [ 1.197469] sun8i-ce 3040000.crypto: Register md5 [ 1.202237] sun8i-ce 3040000.crypto: Register sha1 [ 1.207089] sun8i-ce 3040000.crypto: Register sha224 [ 1.212116] sun8i-ce 3040000.crypto: Register sha256 [ 1.217146] sun8i-ce 3040000.crypto: Register sha384 [ 1.222173] sun8i-ce 3040000.crypto: Register sha512 [ 1.227206] sun8i-ce 3040000.crypto: Register stdrng [ 1.233116] sun8i-ce 3040000.crypto: CryptoEngine Die ID 0 [ 1.239576] usbcore: registered new interface driver usbhid [ 1.245146] usbhid: USB HID core driver [ 1.255349] Unable to handle kernel NULL pointer dereference at virtual address 000000000000004f [ 1.264142] Oops [#1] [ 1.266410] Modules linked in: [ 1.269533] CPU: 0 PID: 1 Comm: swapper Not tainted 5.18.0-rc4-00190-gf4bce410a6b4 #2 [ 1.277417] Hardware name: Allwinner D1 Nezha (DT) [ 1.282270] epc : class_dir_child_ns_type+0x2/0x6 [ 1.287036] ra : kobject_uevent_env+0x216/0x410 [ 1.291717] epc : ffffffff8035cea4 ra : ffffffff802a0a40 sp : ffffffc80400bc70 [ 1.298996] gp : ffffffff8118b3f8 tp : ffffffd801340000 t0 : ffffffd801f6f300 [ 1.306276] t1 : 0000006100000000 t2 : 0000000000000040 s0 : 0000000000000000 [ 1.313556] s1 : ffffffff811d60a0 a0 : ffffffd801f9f0c0 a1 : 0000000000000030 [ 1.320836] a2 : 0000000000000040 a3 : ffffffd8015b6281 a4 : 0000000000000007 [ 1.328116] a5 : ffffffffffffffff a6 : 0000000000000002 a7 : 0000000000000064 [ 1.335396] s2 : 0000000000000000 s3 : 0000000000000000 s4 : ffffffff80b93d48 [ 1.342676] s5 : ffffffd8015b6000 s6 : ffffffff80a64320 s7 : ffffffd801f6f2e0 [ 1.349956] s8 : ffffffff80be7f68 s9 : ffffffff80600082 s10: 0000000000000000 [ 1.357236] s11: 0000000000000000 t3 : ffffffff81091500 t4 : 0000000000000002 [ 1.364516] t5 : 0000000000000000 t6 : ffffffd8015b6288 [ 1.369890] status: 0000000200000120 badaddr: 000000000000004f cause: 000000000000000d [ 1.377863] [] class_dir_child_ns_type+0x2/0x6 [ 1.383932] [] rdinit_setup+0x28/0x2c [ 1.389219] [] device_add+0x2ac/0x6d2 [ 1.394504] [] kmem_cache_alloc_trace+0x290/0x424 [ 1.400832] [] rdinit_setup+0x28/0x2c [ 1.406119] [] snd_register_device+0xca/0x12e [ 1.412099] [] alsa_timer_init+0x146/0x1ce [ 1.417818] [] alsa_hwdep_init+0x5e/0x62 [ 1.423364] [] do_one_initcall+0x1c/0x126 [ 1.428998] [] rdinit_setup+0x28/0x2c [ 1.434286] [] kernel_init_freeable+0x196/0x20c [ 1.440439] [] rest_init+0xc4/0xc8 [ 1.445463] [] kernel_init+0x18/0x100 [ 1.450751] [] rest_init+0xc4/0xc8 [ 1.455777] [] ret_from_syscall_rejected+0x8/0xc [ 1.462104] ---[ end trace 0000000000000000 ]--- [ 1.466742] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 1.474420] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---