johang / sd-card-images

Scripts to build bootable SD card images with Debian for various single-board computers
https://sd-card-images.johang.se
GNU General Public License v3.0
140 stars 32 forks source link

Nanopi K2 Bookworm boot hangs up #115

Closed jusik0 closed 4 months ago

jusik0 commented 4 months ago

Hello, I have tried all the bookworm images and they all hang. The log is from the last release. HDMI doesn't work either... Regards

[ 259.200981] random: crng init done \00GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:F3;SD:0;READ:0;CHK:0; no sdio debug board detected TE: 255240

BL2 Built : 12:06:06, Jun 13 2016. gxb g176ecdb - laiyin.mo@droid12-sz

set vcck to 1100 mv set vddee to 1000 mv Board ID = 8 CPU clk: 1536MHz DDR chl: Rank0+1 same @ 792MHz DDR0: 2048MB(auto)-2T-11 DataBus test pass! AddrBus test pass! Load fip header from SD, src: 0x0000c000, des: 0x01400000, size: 0x00004000 New fip structure! Load bl30 from SD, src: 0x00010000, des: 0x01000000, size: 0x0000d460 Sending bl30......................................................OK. Run bl30... Load bl31 from SD, src: 0x00020000, des: 0x101000[0, size: 0x00013140 Image: gxb_v1.1.3134-b387442 2016-06-16 14:48:44 yun.cai@droid06]

OPS=0x13

23 3 1a 4 91 57 fd 8f 73 12 e6 84 [0.351859 Inits done]

secure task start! high task start! low task start! Load bl33 from SD, src: 0x00034000, des: 0x01000000, size: 0x000a0120 NOTICE: BL3-1: v1.0(debug):c813a61 NOTICE: BL3-1: Built : 14:47:05, Jun 16 2016 INFO: BL3-1: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader ERROR: Error initializing runtime service opteed_fast INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9

U-Boot 2024.01johang-dirty (Feb 01 2024 - 02:31:56 +0000) nanopi-k2 Model: FriendlyARM NanoPi K2 SoC: Amlogic Meson GXBB (S905) Revision 1f:c (13:1) DRAM: 2 GiB Core: 154 devices, 21 uclasses, devicetree: separate MMC: mmc@70000: 0, mmc@72000: 1 Loading Environment from nowhere... OK In: serial@4c0 Out: serial@4c0 Err: serial@4c0 Net: Warning: ethernet@c9410000 (eth0) using random MAC address - 8a:6e:d2:9d:91:2b eth0: ethernet@c9410000 Hit any key to stop autoboot: 2  1  0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:2... Found U-Boot script /boot/boot.scr 962 bytes read in 3 ms (312.5 KiB/s) ## Executing script at 08000000 32622528 bytes read in 1374 ms (22.6 MiB/s) 14884783 bytes read in 654 ms (21.7 MiB/s) 28763 bytes read in 8 ms (3.4 MiB/s) Moving Image from 0x8080000 to 0x8200000, end=a1c0000 ## Flattened Device Tree blob at 08008000 Booting using the fdt blob at 0x8008000 Working FDT set to 8008000 Loading Ramdisk to 7c103000, end 7cf34faf ... OK Loading Device Tree to 000000007c0f8000, end 000000007c10205a ... OK Working FDT set to 7c0f8000 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 6.1.0-17-arm64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP Debian 6.1.69-1 (2023-12-30) [ 0.000000] Machine model: FriendlyARM NanoPi K2 [ 0.000000] efi: UEFI not found. [ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'hwrom@0': base 0x0000000000000000, size 16 MiB [ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'secmon@10000000': base 0x0000000010000000, size 2 MiB [ 0.000000] Reserved memory: created CMA memory pool at 0x000000006c000000, size 256 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000007fffffff] [ 0.000000] NUMA: NODE_DATA [mem 0x7fbe0380-0x7fbe2fff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000007fffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000004ffffff] [ 0.000000] node 0: [mem 0x0000000005000000-0x00000000072fffff] [ 0.000000] node 0: [mem 0x0000000007300000-0x000000007fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff] [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv0.2 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: Trusted OS migration not required [ 0.000000] percpu: Embedded 30 pages/cpu s83560 r8192 d31128 u122880 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: ARM erratum 843419 [ 0.000000] CPU features: detected: ARM erratum 845719 [ 0.000000] alternatives: applying boot alternatives [ 0.000000] Fallback order for Node 0: 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096 [ 0.000000] Policy zone: DMA [ 0.000000] Kernel command line: root=PARTUUID=00000000-02 rw rootwait [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] mem auto-init: stack:all(zero), heap alloc:on, heap free:off [ 0.000000] Memory: 78848K/2097152K available (13056K kernel code, 2800K rwdata, 9436K rodata, 6400K init, 628K bss, 141960K reserved, 262144K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 43915 entries in 172 pages [ 0.000000] ftrace: allocated 172 pages with 4 groups [ 0.000000] trace event string verifier disabled [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] Root IRQ handler: gic_handle_irq [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000536] Console: colour dummy device 80x25 [ 0.000781] printk: console [tty0] enabled [ 0.000873] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000) [ 0.000890] pid_max: default: 32768 minimum: 301 [ 0.001066] LSM: Security Framework initializing [ 0.001128] landlock: Up and running. [ 0.001135] Yama: disabled by default; enable with sysctl kernel.yama.* [ 0.001255] AppArmor: AppArmor initialized [ 0.001266] TOMOYO Linux initialized [ 0.001290] LSM support for eBPF active [ 0.001425] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.001451] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.003220] cblist_init_generic: Setting adjustable number of callback queues. [ 0.003244] cblist_init_generic: Setting shift to 2 and lim to 1. [ 0.003319] cblist_init_generic: Setting adjustable number of callback queues. [ 0.003329] cblist_init_generic: Setting shift to 2 and lim to 1. [ 0.003516] rcu: Hierarchical SRCU implementation. [ 0.003525] rcu: Max phase no-delay instances is 1000. [ 0.005489] EFI services will not be available. [ 0.005927] smp: Bringing up secondary CPUs ... [ 0.006524] Detected VIPT I-cache on CPU1 [ 0.006633] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.007240] Detected VIPT I-cache on CPU2 [ 0.007312] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.007817] Detected VIPT I-cache on CPU3 [ 0.007877] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.007931] smp: Brought up 1 node, 4 CPUs [ 0.008014] SMP: Total of 4 processors activated. [ 0.008022] CPU features: detected: 32-bit EL0 Support [ 0.008028] CPU features: detected: 32-bit EL1 Support [ 0.008035] CPU features: detected: CRC32 instructions [ 0.008110] CPU: All CPU(s) started at EL2 [ 0.008132] alternatives: applying system-wide alternatives [ 0.045421] node 0 deferred pages initialised in 36ms [ 0.046718] devtmpfs: initialized [ 0.053266] Registered cp15_barrier emulation handler [ 0.053300] Registered setend emulation handler [ 0.053476] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.053520] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.059753] pinctrl core: initialized pinctrl subsystem [ 0.061254] DMI not present or invalid. [ 0.061882] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.063252] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 0.063403] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.063647] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.063697] audit: initializing netlink subsys (disabled) [ 0.063896] audit: type=2000 audit(0.060:1): state=initialized audit_enabled=0 res=1 [ 0.064956] thermal_sys: Registered thermal governor 'fair_share' [ 0.064963] thermal_sys: Registered thermal governor 'bang_bang' [ 0.064972] thermal_sys: Registered thermal governor 'step_wise' [ 0.064979] thermal_sys: Registered thermal governor 'user_space' [ 0.064986] thermal_sys: Registered thermal governor 'power_allocator' [ 0.065038] cpuidle: using governor ladder [ 0.065064] cpuidle: using governor menu [ 0.065177] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.065269] ASID allocator initialised with 65536 entries [ 0.065679] Serial: AMBA PL011 UART driver [ 0.075304] platform c883a000.hdmi-tx: Fixed dependency cycle(s) with /soc/vpu@d0100000/port@1/endpoint [ 0.077948] platform hdmi-connector: Fixed dependency cycle(s) with /soc/hdmi-tx@c883a000/port@1/endpoint [ 0.078548] KASLR disabled due to lack of seed [ 0.083806] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages [ 0.083835] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page [ 0.083844] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages [ 0.083852] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page [ 0.083860] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 0.083867] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page [ 0.083876] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages [ 0.083883] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page [ 0.086008] ACPI: Interpreter disabled. [ 0.086500] iommu: Default domain type: Translated [ 0.086514] iommu: DMA domain TLB invalidation policy: strict mode [ 0.086730] pps_core: LinuxPPS API ver. 1 registered [ 0.086740] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 0.086759] PTP clock support registered [ 0.086790] EDAC MC: Ver: 3.0.0 [ 0.088412] NetLabel: Initializing [ 0.088430] NetLabel: domain hash size = 128 [ 0.088437] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.088492] NetLabel: unlabeled traffic allowed by default [ 0.088713] vgaarb: loaded [ 0.089006] clocksource: Switched to clocksource arch_sys_counter [ 0.089481] VFS: Disk quotas dquot_6.6.0 [ 0.089533] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.090167] AppArmor: AppArmor Filesystem Enabled [ 0.090232] pnp: PnP ACPI: disabled [ 0.097177] NET: Registered PF_INET protocol family [ 0.097424] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.098887] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 0.099016] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.099123] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.099376] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear) [ 0.099750] TCP: Hash tables configured (established 16384 bind 16384) [ 0.100044] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear) [ 0.100160] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.100210] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.100422] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.100466] NET: Registered PF_XDP protocol family [ 0.100481] PCI: CLS 0 bytes, default 64 [ 0.101118] Trying to unpack rootfs image as initramfs... [ 0.101631] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available [ 0.102173] kvm [1]: IPA Size Limit: 40 bits [ 0.103989] kvm [1]: vgic interrupt IRQ9 [ 0.104146] kvm [1]: Hyp mode initialized successfully [ 0.143386] Initialise system trusted keyrings [ 0.143461] Key type blacklist registered [ 0.143797] workingset: timestamp_bits=42 max_order=19 bucket_order=0 [ 0.149321] zbud: loaded [ 0.150336] integrity: Platform Keyring initialized [ 0.150389] integrity: Machine keyring initialized [ 0.150400] Key type asymmetric registered [ 0.150410] Asymmetric key parser 'x509' registered [ 0.643925] Freeing initrd memory: 14532K [ 0.665631] alg: self-tests for CTR-KDF (hmac(sha256)) passed [ 0.665770] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 0.665906] io scheduler mq-deadline registered [ 0.669256] irq_meson_gpio: 133 to 8 gpio interrupt mux initialized [ 0.676244] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 0.685988] soc soc0: Amlogic Meson GXBB (S905) Revision 1f:c (13:1) Detected [ 0.687957] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.689782] Serial: AMBA driver [ 0.689817] SuperH (H)SCI(F) driver initialized [ 0.690451] c11084c0.serial: ttyAML6 at MMIO 0xc11084c0 (irq = 18, base_baud = 1500000) is a meson_uart [ 0.690587] serial serial0: tty port ttyAML6 registered [ 0.691137] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 19, base_baud = 1500000) is a meson_uart [ 1.718079] printk: console [ttyAML0] enabled [ 1.723082] msm_serial: driver initialized [ 1.728629] mousedev: PS/2 mouse device common for all mice [ 1.733918] ledtrig-cpu: registered to indicate activity on CPUs [ 1.738408] meson-sm: secure-monitor enabled [ 1.793069] NET: Registered PF_INET6 protocol family [ 1.813786] Segment Routing with IPv6 [ 1.813881] In-situ OAM (IOAM) with IPv6 [ 1.815778] mip6: Mobile IPv6 [ 1.818679] NET: Registered PF_PACKET protocol family [ 1.823791] mpls_gso: MPLS GSO support [ 1.828113] registered taskstats version 1 [ 1.831462] Loading compiled-in X.509 certificates [ 1.895761] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1' [ 1.898876] Loaded X.509 cert 'Debian Secure Boot Signer 2022 - linux: 14011249c2675ea8e5148542202005810584b25f' [ 1.910149] zswap: loaded using pool lzo/zbud [ 1.913629] Key type .fscrypt registered [ 1.917101] Key type fscrypt-provisioning registered [ 1.941609] Key type encrypted registered [ 1.941661] AppArmor: AppArmor sha1 policy hashing enabled [ 1.945492] ima: No TPM chip found, activating TPM-bypass! [ 1.950914] ima: Allocated hash algorithm: sha256 [ 1.955569] ima: No architecture policies found [ 1.960056] evm: Initialising EVM extended attributes: [ 1.965106] evm: security.selinux [ 1.968377] evm: security.SMACK64 (disabled) [ 1.972608] evm: security.SMACK64EXEC (disabled) [ 1.977179] evm: security.SMACK64TRANSMUTE (disabled) [ 1.982181] evm: security.SMACK64MMAP (disabled) [ 1.986753] evm: security.apparmor [ 1.990116] evm: security.ima [ 1.993048] evm: security.capability [ 1.996581] evm: HMAC attrs: 0x1 [ 2.352024] Freeing unused kernel memory: 6400K [ 2.391958] Checked W+X mappings: passed, no W+X pages found [ 2.392033] Run /init as init process Loading, please wait... Starting systemd-udevd version 252.19-1~deb12u1 [ 2.944485] meson_uart c11084c0.serial: Failed to create device link (0x180) with regulator-vddio-ao18 [ 2.972404] meson_uart c11084c0.serial: Failed to create device link (0x180) with regulator-vddio-ao3v3 [ 3.020534] usbcore: registered new interface driver usbfs [ 3.020619] usbcore: registered new interface driver hub [ 3.026639] usbcore: registered new device driver usb [ 3.036323] meson-gx-mmc d0072000.mmc: Got CD GPIO [ 3.102433] dwc2 c9000000.usb: supply vusb_d not found, using dummy regulator [ 3.104063] dwc2 c9000000.usb: supply vusb_a not found, using dummy regulator [ 3.122821] dwc2 c9000000.usb: DWC OTG Controller [ 3.122881] dwc2 c9000000.usb: new USB bus registered, assigned bus number 1 [ 3.128944] dwc2 c9000000.usb: irq 21, io mem 0xc9000000 [ 3.134373] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01 [ 3.142353] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.144608] mmc0: new ultra high speed DDR50 SDHC card at address 0007 [ 3.149505] usb usb1: Product: DWC OTG Controller [ 3.149509] usb usb1: Manufacturer: Linux 6.1.0-17-arm64 dwc2_hsotg [ 3.157761] mmcblk0: mmc0:0007 SD08G 7.42 GiB [ 3.160658] usb usb1: SerialNumber: c9000000.usb [ 3.171100] mmcblk0: p1 p2 [ 3.171944] hub 1-0:1.0: USB hub found [ 3.182404] hub 1-0:1.0: 1 port detected [ 3.187037] dwc2 c9100000.usb: supply vusb_d not found, using dummy regulator [ 3.193630] dwc2 c9100000.usb: supply vusb_a not found, using dummy regulator [ 3.261226] dwc2 c9100000.usb: DWC OTG Controller [ 3.261297] dwc2 c9100000.usb: new USB bus registered, assigned bus number 2 [ 3.267419] dwc2 c9100000.usb: irq 22, io mem 0xc9100000 [ 3.272754] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01 [ 3.280804] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.287951] usb usb2: Product: DWC OTG Controller [ 3.292600] usb usb2: Manufacturer: Linux 6.1.0-17-arm64 dwc2_hsotg [ 3.298803] usb usb2: SerialNumber: c9100000.usb [ 3.303981] hub 2-0:1.0: USB hub found [ 3.307162] hub 2-0:1.0: 1 port detected Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Waiting for root file system ... [ 3.609026] usb 2-1: new high-speed USB device number 2 using dwc2 [ 3.818294] usb 2-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98 [ 3.820816] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 3.827901] usb 2-1: Product: USB2.0 Hub [ 3.833524] hub 2-1:1.0: USB hub found [ 3.835813] hub 2-1:1.0: 4 ports detected Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. [ 13.536103] platform scpi: deferred probe pending [ 13.536164] platform sdio-pwrseq: deferred probe pending [ 13.540480] platform wifi-32k: deferred probe pending Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. done. Gave up waiting for root file system device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Missing modules (cat /proc/modules; ls /dev) ALERT! PARTUUID=00000000-02 does not exist. Dropping to a shell! (initramfs)
johang commented 4 months ago

Try the the other images (Trixie, Sid and Experimental). They have newer kernels.

jusik0 commented 4 months ago

@johang I have tried all the images - Debian and Ubuntu, neither of them boots, the problem is u-boot... Armbian bullseye runs, bookworm doesn't. Dietpi Bookworm runs, but I need "pure" Debian. I added Armbian and Dietpi logs.

Isn't the problem RAMdisk?

Log UART Armbian Bookworm

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2024.02.10 19:41:05 =~=~=~=~=~=~=~=~=~=~=~= GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:F3;SD:0;READ:0;CHK:0; no sdio debug board detected TE: 249976

BL2 Built : 11:58:33, May 27 2017. gxb gc3c9a84 - xiaobo.gu@droid05

set vcck to 1100 mv set vddee to 1000 mv Board ID = 8 CPU clk: 1536MHz DDR chl: Rank0+1 same @ 912MHz DDR0: 2048MB-2T-13 DataBus test pass! AddrBus test pass! Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000 New fip structure! Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460 Sending bl30......................................................OK. Run bl30... Load bl31 from SD, src: 0x00020200, des: 0x051000[00, size: 0x00016180 Image: gxb_v1.1.3221-2cfba69 2017-05-27 16:04:23 qiufang.dai@droid07]

OPS=0x13

efuse_setup() 573: HDCP=0x0c REG32(SEC_AO_SEC_SD_CFG9)=0x00000007

23 3 1a 4 91 57 fd 8f 73 12 e6 84 [0.351615 Inits done]

secure task start! high task start! low task start! Load bl33 from SD, src: 0x00038200, des: 0x01000000, size: 0x0008e9b0 NOTICE: BL3-1: v1.0(release):1108808 NOTICE: BL3-1: Built : 15:14:26, Jun 12 2017 ERROR: Error initializing runtime service opteed_fast

U-Boot 2022.07-armbian (May 27 2023 - 19:30:42 +0000) nanopi-k2 Model: FriendlyARM NanoPi K2 SoC: Amlogic Meson GXBB (S905) Revision 1f:c (13:1) DRAM: 2 GiB Core: 156 devices, 19 uclasses, devicetree: separate MMC: mmc@70000: 0, mmc@72000: 1, mmc@74000: 2 Loading Environment from nowhere... OK In: serial@4c0 Out: serial@4c0 Err: serial@4c0 [BL31]: tee size: 0 [BL31]: tee size: 0 Net: Warning: ethernet@c9410000 (eth0) using random MAC address - 5a:dd:bb:0e:a2:30 eth0: ethernet@c9410000 Hit any key to stop autoboot: 2  1  0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found U-Boot script /boot/boot.scr 8147 bytes read in 4 ms (1.9 MiB/s) ## Executing script at 08000000 U-boot default fdtfile: amlogic/meson-gxbb-nanopi-k2.dtb Current variant: 112 bytes read in 3 ms (36.1 KiB/s) Current fdtfile after armbianEnv: amlogic/meson-gxbb-nanopi-k2.dtb Mainline bootargs: root=UUID=36eaae9c-6c20-4a90-9bd5-9af643eac312 rootwait rootfstype=ext4 splash=verbose console=ttyAML0,115200 console=tty1 consoleblank=0 coherent_pool=2M loglevel=1 ubootpart=078c74ba-01 libata.force=noncq usb-storage.quirks= cgroup_enable=memory swapaccount=1 22707470 bytes read in 997 ms (21.7 MiB/s) 27034112 bytes read in 1186 ms (21.7 MiB/s) 39269 bytes read in 8 ms (4.7 MiB/s) 232 bytes read in 6 ms (37.1 KiB/s) Applying kernel provided DT fixup script (meson-fixup.scr) ## Executing script at 32000000 ## Loading init Ramdisk from Legacy Image at 13000000 ... Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 22707406 Bytes = 21.7 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 04080000 Booting using the fdt blob at 0x4080000 Loading Ramdisk to 7c9a6000, end 7df4dcce ... OK Loading Device Tree to 000000007c934000, end 000000007c9a5fff ... OK "Synchronous Abort" handler, esr 0x96000004 elr: 000000000104f408 lr : 000000000103f7a4 (reloc) elr: 000000007ffaf408 lr : 000000007ff9f7a4 x0 : 70eb2fdeb7b68226 x1 : 000000007ffb6878 x2 : 0000000000000010 x3 : 000000007df654c0 x4 : 0000000000000000 x5 : 70eb2fdeb7b68226 x6 : 0000000001000000 x7 : 0000000000000000 x8 : 0000000000000007 x9 : 0000000000000000 x10: 0000000000000194 x11: 000000007df5241c x12: 0000000000000094 x13: 000000007df523d8 x14: 000000007c934000 x15: 0000000000000020 x16: 000000007ff8c8cc x17: 0000000000000000 x18: 000000007df5ddc0 x19: 000000007cf52040 x20: 000000007ff60b18 x21: 000000007ffb6878 x22: 0000000000001000 x23: 000000007df65410 x24: 000000007ffcf728 x25: 0000000001000000 x26: 0000000000000000 x27: 0000000001000000 x28: 0000000000001000 x29: 000000007df523d0 Code: eb04005f 54000061 52800000 14000006 (386468a3) Resetting CPU ... resetting ... bl31 reboot reason: 0xd bl31 reboot reason: 0x0 system cmd 1. **Log Dietpi Bookworm** =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2024.02.21 14:15:22 =~=~=~=~=~=~=~=~=~=~=~= GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:F3;SD:0;READ:0;CHK:0; no sdio debug board detected TE: 224709 BL2 Built : 11:58:33, May 27 2017. gxb gc3c9a84 - xiaobo.gu@droid05 set vcck to 1100 mv set vddee to 1000 mv Board ID = 8 CPU clk: 1536MHz DDR chl: Rank0+1 same @ 912MHz DDR0: 2048MB-2T-13 DataBus test pass! AddrBus test pass! Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000 New fip structure! Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460 Sending bl30......................................................OK. Run bl30... Load bl31 from SD, src: 0x00020200, des: 0x051000[0, size: 0x00016180 Image: gxb_v1.1.3221-2cfba69 2017-05-27 16:04:23 qiufang.dai@droid07] OPS=0x13 efuse_setup() 573: HDCP=0x0c REG32(SEC_AO_SEC_SD_CFG9)=0x00000007 23 3 1a 4 91 57 fd 8f 73 12 e6 84 [0.328025 Inits done] secure task start! high task start! low task start! Load bl33 from SD, src: 0x00038200, des: 0x01000000, size: 0x0008e9b0 NOTICE: BL3-1: v1.0(release):1108808 NOTICE: BL3-1: Built : 15:14:26, Jun 12 2017 ERROR: Error initializing runtime service opteed_fast U-Boot 2022.07-armbian (Nov 25 2023 - 12:48:05 +0000) nanopi-k2 Model: FriendlyARM NanoPi K2 SoC: Amlogic Meson GXBB (S905) Revision 1f:c (13:1) DRAM: 2 GiB Core: 156 devices, 19 uclasses, devicetree: separate MMC: mmc@70000: 0, mmc@72000: 1, mmc@74000: 2 Loading Environment from nowhere... OK In: serial@4c0 Out: serial@4c0 Err: serial@4c0 [BL31]: tee size: 0 [BL31]: tee size: 0 Net: Warning: ethernet@c9410000 (eth0) using random MAC address - e2:fc:bc:ed:ea:17 eth0: ethernet@c9410000 Hit any key to stop autoboot: 2  1  0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found U-Boot script /boot/boot.scr 2829 bytes read in 6 ms (460 KiB/s) ## Executing script at 08000000 277 bytes read in 4 ms (67.4 KiB/s) 27433472 bytes read in 1211 ms (21.6 MiB/s) 13501087 bytes read in 598 ms (21.5 MiB/s) 39269 bytes read in 11 ms (3.4 MiB/s) ## Loading init Ramdisk from Legacy Image at 13000000 ... Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 13501023 Bytes = 12.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 04080000 Booting using the fdt blob at 0x4080000 Loading Ramdisk to 7d26e000, end 7df4e25f ... OK Loading Device Tree to 000000007d261000, end 000000007d26d964 ... OK Starting kernel ... domain-0 init dvfs: 4 [BL31]: tee size: 0
johang commented 4 months ago

Maybe PARTUUID=00000000-02 is the problem. It looks strange. Can you do fdisk -l or your SD card (fdisk -l /dev/sdXXX) and blkid (blkid /dev/sdXXX)?

jusik0 commented 4 months ago

@johang The error is the same...

sudo fdisk -l /dev/sdb Disk /dev/sdb: 7,42 GiB, 7969177600 bytes, 15564800 sectors Disk model: SD MMC Reader
Units: sectors of 1 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000 Device Boot Start End Sectors Size Id Type /dev/sdb1 8192 65535 57344 28M c W95 FAT32 (LBA) /dev/sdb2 65536 7419903 7354368 3,5G 83 Linux

sudo blkid /dev/sdb /dev/sdb: PTTYPE="dos"

sudo blkid /dev/sdb1: SEC_TYPE="msdos" UUID="296E-800D" BLOCK_SIZE="512" TYPE="vfat" /dev/sdb2: UUID="957d433c-13c5-466f-8b45-12dcc84ed631" BLOCK_SIZE="4096" TYPE="ext4"

johang commented 4 months ago

Made a fix in the boot image. Problem was that the disk identifier was overwritten.