Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Bookworm Image for the Neo 2 Black seems to be broken #7367

Open
peedy2495 opened this issue Jan 22, 2025 · 8 comments
Open

Latest Bookworm Image for the Neo 2 Black seems to be broken #7367

peedy2495 opened this issue Jan 22, 2025 · 8 comments

Comments

@peedy2495
Copy link

Writing on different SD-Cards doesn't matter.

I tried the "normal" neo2 image, too.
This one is working like a charm.

Therefore it seems that the neo2 black image has an issue.

@MichaIng
Copy link
Owner

Many thanks for your report.

Hmm, the images are identical despite the bootloader. Do you have a USB-UART adapter to check serial console output? I also just see it seems to support a serial console via USB, but it would need to be enabled. Can you access the ext4 partition from another system, in case?

@peedy2495
Copy link
Author

Yes, I'm able to access the rootfs partition using a card adapter for my laptop.

With the black edition image the firstboot is alwasy stopping on the same place.
First, i had to solder the serial debug pins ... ;-))
Here is the full debug output:

U-Boot SPL 2024.01-armbian-2024.01-S866c-Pa395-Ha9af-Vbe06-Bda0a-R448a (Oct 02 2024 - 03:34:11 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.9(debug):armbian
NOTICE:  BL31: Built : 03:33:22, Oct  2 2024
NOTICE:  BL31: Detected Allwinner H5 SoC (1718)
NOTICE:  BL31: Found U-Boot DTB at 0x20a2340, model: FriendlyARM NanoPi NEO Core 2
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
NOTICE:  PMIC: Assuming H5 reference regulator design
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
SCP/INF: Crust v0.6.10000
INFO:    PSCI: Suspend is available via SCPI
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9
ns16550_serial serial@1c28000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19


U-Boot 2024.01-armbian-2024.01-S866c-Pa395-Ha9af-Vbe06-Bda0a-R448a (Oct 02 2024 - 03:34:11 +0000) Allwinner Technology

CPU:   Allwinner H5 (SUN50I)
Model: FriendlyARM NanoPi NEO Core 2
DRAM:  1 GiB
Core:  61 devices, 19 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0, mmc@1c11000: 1
Loading Environment from FAT... Unable to use mmc 0:1...
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
Net:   No ethernet found.
starting USB...
Bus usb@1c1b000: USB EHCI 1.00
scanning bus usb@1c1b000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2765 bytes read in 2 ms (1.3 MiB/s)
## Executing script at 4fc00000
308 bytes read in 1 ms (300.8 KiB/s)
23443464 bytes read in 971 ms (23 MiB/s)
9957636 bytes read in 442 ms (21.5 MiB/s)
34618 bytes read in 6 ms (5.5 MiB/s)
Working FDT set to 4fa00000
504 bytes read in 5 ms (97.7 KiB/s)
Applying kernel provided DT overlay sun50i-h5-usbhost1.dtbo
504 bytes read in 5 ms (97.7 KiB/s)
Applying kernel provided DT overlay sun50i-h5-usbhost2.dtbo
4191 bytes read in 5 ms (818.4 KiB/s)
Applying kernel provided DT fixup script sun50i-h5-fixup.scr
## Executing script at 45000000
Moving Image from 0x40080000 to 0x40200000, end=418f0000
## Loading init Ramdisk from Legacy Image at 4ff00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    9957572 Bytes = 9.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
Working FDT set to 4fa00000
   Loading Ramdisk to 49680000, end 49fff0c4 ... OK
   Loading Device Tree to 000000004960f000, end 000000004967ffff ... OK
Working FDT set to 4960f000

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.6.44-current-sunxi64 (build@armbian) (aarch64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu)
 2.38) #1 SMP Sat Aug  3 06:54:42 UTC 2024
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: FriendlyARM NanoPi NEO Core2
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7fdca040-0x7fdcbfff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-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 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] cma: Reserved 128 MiB at 0x0000000076c00000 on node -1
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 20 pages/cpu s42664 r8192 d31064 u81920
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: root=UUID=b9f4e083-970f-4acd-af45-965d42bbf81f rootfstype=ext4 rootwait console=ttyS0,115200 consoleblank=0 coherent_pool=2M u
sb-storage.quirks= net.ifnames=0
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Policy zone: DMA
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x0000000072b80000-0x0000000076b80000] (64MB)
[    0.000000] Memory: 797444K/1048576K available (14144K kernel code, 1454K rwdata, 4088K rodata, 3072K init, 520K bss, 120060K reserved, 131072K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    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] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    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.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000425] Console: colour dummy device 80x25
[    0.000527] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000542] pid_max: default: 32768 minimum: 301
[    0.000646] LSM: initializing lsm=capability,yama,apparmor,integrity
[    0.000679] Yama: becoming mindful.
[    0.000775] AppArmor: AppArmor initialized
[    0.000890] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.000907] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.002163] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.003165] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.003424] rcu: Hierarchical SRCU implementation.
[    0.003429] rcu: 	Max phase no-delay instances is 1000.
[    0.004914] smp: Bringing up secondary CPUs ...
[    0.006729] Detected VIPT I-cache on CPU1
[    0.006847] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.007937] Detected VIPT I-cache on CPU2
[    0.008011] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.008956] Detected VIPT I-cache on CPU3
[    0.009018] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.009110] smp: Brought up 1 node, 4 CPUs
[    0.009119] SMP: Total of 4 processors activated.
[    0.009124] CPU features: detected: 32-bit EL0 Support
[    0.009130] CPU features: detected: CRC32 instructions
[    0.009226] CPU: All CPU(s) started at EL2
[    0.009230] alternatives: applying system-wide alternatives
[    0.011213] devtmpfs: initialized
[    0.018084] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.018116] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.023340] pinctrl core: initialized pinctrl subsystem
[    0.024858] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.026331] DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
[    0.026839] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.027257] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.027322] audit: initializing netlink subsys (disabled)
[    0.027547] audit: type=2000 audit(0.024:1): state=initialized audit_enabled=0 res=1
[    0.028089] thermal_sys: Registered thermal governor 'fair_share'
[    0.028096] thermal_sys: Registered thermal governor 'bang_bang'
[    0.028100] thermal_sys: Registered thermal governor 'step_wise'
[    0.028104] thermal_sys: Registered thermal governor 'user_space'
[    0.028160] cpuidle: using governor menu
[    0.028393] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.028518] ASID allocator initialised with 65536 entries
[    0.028782] Serial: AMBA PL011 UART driver
[    0.033456] platform 1100000.mixer: Fixed dependency cycle(s) with /soc/lcd-controller@1c0d000
[    0.033493] platform 1100000.mixer: Fixed dependency cycle(s) with /soc/lcd-controller@1c0c000
[    0.033733] platform 1200000.mixer: Fixed dependency cycle(s) with /soc/lcd-controller@1c0d000
[    0.033766] platform 1200000.mixer: Fixed dependency cycle(s) with /soc/lcd-controller@1c0c000
[    0.034128] platform 1200000.mixer: Fixed dependency cycle(s) with /soc/lcd-controller@1c0c000
[    0.034213] platform 1100000.mixer: Fixed dependency cycle(s) with /soc/lcd-controller@1c0c000
[    0.034308] platform 1c0c000.lcd-controller: Fixed dependency cycle(s) with /soc/mixer@1200000
[    0.034391] platform 1c0c000.lcd-controller: Fixed dependency cycle(s) with /soc/mixer@1100000
[    0.034627] platform 1200000.mixer: Fixed dependency cycle(s) with /soc/lcd-controller@1c0d000
[    0.034712] platform 1100000.mixer: Fixed dependency cycle(s) with /soc/lcd-controller@1c0d000
[    0.034801] platform 1c0d000.lcd-controller: Fixed dependency cycle(s) with /soc/mixer@1200000
[    0.034883] platform 1c0d000.lcd-controller: Fixed dependency cycle(s) with /soc/mixer@1100000
[    0.044333] Modules: 26896 pages in range for non-PLT usage
[    0.044349] Modules: 518416 pages in range for PLT usage
[    0.045351] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.045362] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.045369] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.045373] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.045379] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.045384] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.045390] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.045395] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.046335] cryptd: max_cpu_qlen set to 1000
[    0.112254] raid6: neonx8   gen()  1457 MB/s
[    0.180348] raid6: neonx4   gen()  1498 MB/s
[    0.248443] raid6: neonx2   gen()  1421 MB/s
[    0.316552] raid6: neonx1   gen()  1224 MB/s
[    0.384634] raid6: int64x8  gen()   929 MB/s
[    0.452730] raid6: int64x4  gen()  1090 MB/s
[    0.520815] raid6: int64x2  gen()   950 MB/s
[    0.588933] raid6: int64x1  gen()   703 MB/s
[    0.588938] raid6: using algorithm neonx4 gen() 1498 MB/s
[    0.656991] raid6: .... xor() 1064 MB/s, rmw enabled
[    0.656997] raid6: using neon recovery algorithm
[    0.657706] iommu: Default domain type: Translated
[    0.657716] iommu: DMA domain TLB invalidation policy: strict mode
[    0.658064] SCSI subsystem initialized
[    0.658277] usbcore: registered new interface driver usbfs
[    0.658310] usbcore: registered new interface driver hub
[    0.658356] usbcore: registered new device driver usb
[    0.658735] pps_core: LinuxPPS API ver. 1 registered
[    0.658740] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.658757] PTP clock support registered
[    0.659374] ARM FF-A: FFA_VERSION returned not supported
[    0.659435] scmi_core: SCMI protocol bus registered
[    0.659799] Advanced Linux Sound Architecture Driver Initialized.
[    0.660802] NetLabel: Initializing
[    0.660807] NetLabel:  domain hash size = 128
[    0.660812] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.660891] NetLabel:  unlabeled traffic allowed by default
[    0.660895] mctp: management component transport protocol core
[    0.660901] NET: Registered PF_MCTP protocol family
[    0.661383] clocksource: Switched to clocksource arch_sys_counter
[    0.661701] VFS: Disk quotas dquot_6.6.0
[    0.661749] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.662404] AppArmor: AppArmor Filesystem Enabled
[    0.671077] NET: Registered PF_INET protocol family
[    0.671290] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.672698] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.672726] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.672743] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.672829] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.673152] TCP: Hash tables configured (established 8192 bind 8192)
[    0.673298] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.673336] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.673590] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.673894] Trying to unpack rootfs image as initramfs...
[    0.683597] Initialise system trusted keyrings
[    0.683696] Key type blacklist registered
[    0.684037] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[    0.684102] zbud: loaded
[    0.684844] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.686733] integrity: Platform Keyring initialized
[    0.733096] xor: automatically using best checksumming function   32regs    
[    0.733118] async_tx: api initialized (async)
[    0.733134] Key type asymmetric registered
[    0.733140] Asymmetric key parser 'x509' registered
[    0.733299] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.733663] io scheduler mq-deadline registered
[    0.733670] io scheduler kyber registered
[    0.733741] io scheduler bfq registered
[    0.746011] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.760435] loop: module loaded
[    0.764546] usbcore: registered new interface driver usb-storage
[    0.765239] mousedev: PS/2 mouse device common for all mice
[    0.766615] sun6i-rtc 1f00000.rtc: registered as rtc0
[    0.766673] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01T00:00:06 UTC (6)
[    0.767040] i2c_dev: i2c /dev entries driver
[    0.768323] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.770021] sdhci: Secure Digital Host Controller Interface driver
[    0.770037] sdhci: Copyright(c) Pierre Ossman
[    0.770080] Synopsys Designware Multimedia Card Interface Driver
[    0.770867] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.774173] ledtrig-cpu: registered to indicate activity on CPUs
[    0.775027] SMCCC: SOC_ID: ID = jep106:091e:1718 Revision = 0x00000001
[    0.775460] sun8i-ce 1c15000.crypto: Set mod clock to 300000000 (300 Mhz) from 24000000 (24 Mhz)
[    0.775955] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[    0.776107] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[    0.776230] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[    0.776369] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[    0.776466] sun8i-ce 1c15000.crypto: Register cbc(aes)
[    0.776543] sun8i-ce 1c15000.crypto: Register ecb(aes)
[    0.776564] sun8i-ce 1c15000.crypto: Register cbc(des3_ede)
[    0.776583] sun8i-ce 1c15000.crypto: Register ecb(des3_ede)
[    0.776602] sun8i-ce 1c15000.crypto: Register md5
[    0.776621] sun8i-ce 1c15000.crypto: Register sha1
[    0.776641] sun8i-ce 1c15000.crypto: Register sha224
[    0.776661] sun8i-ce 1c15000.crypto: Register sha256
[    0.776682] sun8i-ce 1c15000.crypto: DEBUG: Algo of sha384 not supported
[    0.776689] sun8i-ce 1c15000.crypto: DEBUG: Algo of sha512 not supported
[    0.776697] sun8i-ce 1c15000.crypto: Register stdrng
[    0.776738] sun8i-ce 1c15000.crypto: TRNG not supported
[    0.776744] sun8i-ce 1c15000.crypto: CryptoEngine Die ID 0
[    0.777218] hid: raw HID events driver (C) Jiri Kosina
[    0.777327] usbcore: registered new interface driver usbhid
[    0.777334] usbhid: USB HID core driver
[    0.780496] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.790402] NET: Registered PF_INET6 protocol family
[    1.366268] Freeing initrd memory: 9724K
[    1.418413] Segment Routing with IPv6
[    1.418508] In-situ OAM (IOAM) with IPv6
[    1.418639] NET: Registered PF_PACKET protocol family
[    1.418769] 8021q: 802.1Q VLAN Support v1.8
[    1.418848] 9pnet: Installing 9P2000 support
[    1.418975] Key type dns_resolver registered
[    1.427871] registered taskstats version 1
[    1.428052] Loading compiled-in X.509 certificates
[    1.437978] zswap: loaded using pool zstd/z3fold
[    1.450719] Key type .fscrypt registered
[    1.450737] Key type fscrypt-provisioning registered
[    1.452495] Btrfs loaded, zoned=yes, fsverity=no
[    1.452690] Key type encrypted registered
[    1.452703] AppArmor: AppArmor sha1 policy hashing enabled
[    1.452735] ima: No TPM chip found, activating TPM-bypass!
[    1.452781] ima: Allocated hash algorithm: sha1
[    1.452816] ima: No architecture policies found
[    1.452867] evm: Initialising EVM extended attributes:
[    1.452871] evm: security.selinux
[    1.452876] evm: security.SMACK64
[    1.452880] evm: security.SMACK64EXEC
[    1.452883] evm: security.SMACK64TRANSMUTE
[    1.452887] evm: security.SMACK64MMAP
[    1.452891] evm: security.apparmor
[    1.452895] evm: security.ima
[    1.452898] evm: security.capability
[    1.452902] evm: HMAC attrs: 0x1
[    1.463774] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.465486] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    1.466459] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.470423] sun50i-h5-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.471067] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    1.471753] printk: console [ttyS0] disabled
[    1.472158] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 155, base_baud = 1500000) is a 16550A
[    1.472212] printk: console [ttyS0] enabled
[    2.903694] phy phy-1c19400.phy.0: Changing dr_mode to 1
[    2.903816] ehci-platform 1c1b000.usb: EHCI Host Controller
[    2.904493] ehci-platform 1c1c000.usb: EHCI Host Controller
[    2.904520] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 1
[    2.904665] ehci-platform 1c1c000.usb: irq 158, io mem 0x01c1c000
[    2.905620] ehci-platform 1c1d000.usb: EHCI Host Controller
[    2.905648] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 2
[    2.905673] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[    2.905777] ehci-platform 1c1d000.usb: irq 159, io mem 0x01c1d000
[    2.909064] ehci-platform 1c1a000.usb: EHCI Host Controller
[    2.909065] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    2.909093] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 3
[    2.909113] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 4
[    2.909235] ehci-platform 1c1a000.usb: irq 156, io mem 0x01c1a000
[    2.909289] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[    2.909308] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 5
[    2.909635] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    2.909648] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.909657] usb usb5: Product: MUSB HDRC host driver
[    2.909664] usb usb5: Manufacturer: Linux 6.6.44-current-sunxi64 musb-hcd
[    2.909671] usb usb5: SerialNumber: musb-hdrc.2.auto
[    2.910027] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    2.910405] hub 5-0:1.0: USB hub found
[    2.910450] hub 5-0:1.0: 1 port detected
[    2.910712] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    2.910889] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 6
[    2.911024] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 7
[    2.911029] ohci-platform 1c1c400.usb: irq 163, io mem 0x01c1c400
[    2.911110] ohci-platform 1c1b400.usb: irq 162, io mem 0x01c1b400
[    2.911826] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    2.911847] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[    2.911935] ohci-platform 1c1d400.usb: irq 164, io mem 0x01c1d400
[    2.914685] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 9
[    2.920301] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    2.920354] ohci-platform 1c1a400.usb: irq 161, io mem 0x01c1a400
[    2.928108] ehci-platform 1c1b000.usb: irq 157, io mem 0x01c1b000
[    2.934450] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    2.939733] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[    2.940564] sun8i-h3-r-pinctrl 1f02c00.pinctrl: supply vcc-pl not found, using dummy regulator
[    2.945274] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    2.946995] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    2.947451] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.947462] usb usb1: Product: EHCI Host Controller
[    2.947469] usb usb1: Manufacturer: Linux 6.6.44-current-sunxi64 ehci_hcd
[    2.947476] usb usb1: SerialNumber: 1c1c000.usb
[    2.947906] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    2.948008] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[    2.948995] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    2.950750] hub 1-0:1.0: USB hub found
[    2.950798] hub 1-0:1.0: 1 port detected
[    2.951671] scpi_protocol scpi: SCP Protocol 1.2 Firmware 0.6.10000 version
[    2.952392] sun50i-h5-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    2.952553] of_cfs_init
[    2.952696] of_cfs_init: OK
[    2.952790] clk: Disabling unused clocks
[    2.952923] ALSA device list:
[    2.952927]   #0: H3 Audio Codec
[    2.957055] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    2.957407] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    2.977391] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    2.982759] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.985977] sunxi-mmc 1c11000.mmc: initialized, max. request size: 2048 KB
[    2.989702] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    3.064616] mmc2: Failed to initialize a non-removable card
[    3.071032] usb usb2: Product: EHCI Host Controller
[    3.177382] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.184589] usb usb2: Manufacturer: Linux 6.6.44-current-sunxi64 ehci_hcd
[    3.184598] usb usb2: SerialNumber: 1c1d000.usb
[    3.184617] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    3.205275] mmc0: new high speed SDHC card at address aaaa
[    3.211120] hub 2-0:1.0: USB hub found
[    3.219984] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    3.222857] hub 2-0:1.0: 1 port detected
[    3.230432]  mmcblk0: p1 p2
[    3.234574] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    3.235086] mmc1: Failed to initialize a non-removable card
[    3.368316] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.368328] usb usb4: Product: EHCI Host Controller
[    3.386014] usb usb4: Manufacturer: Linux 6.6.44-current-sunxi64 ehci_hcd
[    3.392816] usb usb4: SerialNumber: 1c1a000.usb
[    3.397959] hub 4-0:1.0: USB hub found
[    3.401765] hub 4-0:1.0: 1 port detected
[    3.406401] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.06
[    3.414677] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.421903] usb usb6: Product: Generic Platform OHCI controller
[    3.427824] usb usb6: Manufacturer: Linux 6.6.44-current-sunxi64 ohci_hcd
[    3.434617] usb usb6: SerialNumber: 1c1c400.usb
[    3.439683] hub 6-0:1.0: USB hub found
[    3.443491] hub 6-0:1.0: 1 port detected
[    3.448069] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.06
[    3.456346] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.463571] usb usb8: Product: Generic Platform OHCI controller
[    3.469493] usb usb8: Manufacturer: Linux 6.6.44-current-sunxi64 ohci_hcd
[    3.476281] usb usb8: SerialNumber: 1c1d400.usb
[    3.481316] hub 8-0:1.0: USB hub found
[    3.485126] hub 8-0:1.0: 1 port detected
[    3.489716] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.06
[    3.497991] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.505216] usb usb7: Product: Generic Platform OHCI controller
[    3.511139] usb usb7: Manufacturer: Linux 6.6.44-current-sunxi64 ohci_hcd
[    3.517927] usb usb7: SerialNumber: 1c1b400.usb
[    3.522970] hub 7-0:1.0: USB hub found
[    3.526778] hub 7-0:1.0: 1 port detected
[    3.531354] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.06
[    3.539634] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.546860] usb usb3: Product: Generic Platform OHCI controller
[    3.552783] usb usb3: Manufacturer: Linux 6.6.44-current-sunxi64 ohci_hcd
[    3.559571] usb usb3: SerialNumber: 1c1a400.usb
[    3.564588] hub 3-0:1.0: USB hub found
[    3.568392] hub 3-0:1.0: 1 port detected
[    3.572972] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    3.581258] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.588487] usb usb9: Product: EHCI Host Controller
[    3.593369] usb usb9: Manufacturer: Linux 6.6.44-current-sunxi64 ehci_hcd
[    3.600159] usb usb9: SerialNumber: 1c1b000.usb
[    3.605197] hub 9-0:1.0: USB hub found
[    3.609002] hub 9-0:1.0: 1 port detected
[    3.615084] Freeing unused kernel memory: 3072K
[    3.619754] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.31-1~deb12u1
[    4.171932] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    4.178415] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    4.184740] dwmac-sun8i 1c30000.ethernet: supply phy-io not found, using dummy regulator
[    4.193535] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    4.305732] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    4.313000] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    4.320225] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    4.325194] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    4.331984] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    4.337646] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    4.345184] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    4.351915] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    4.358311] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    4.383036] dwmac-sun8i 1c30000.ethernet: Switch mux to external PHY
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: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1 
/dev/mmcblk0p1: clean, 18327/65280 files, 202078/261120 blocks
done.
[    4.587552] EXT4-fs (mmcblk0p1): mounted filesystem b9f4e083-970f-4acd-af45-965d42bbf81f ro with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[    5.354210] systemd[1]: System time before build time, advancing clock.
[    5.470218] systemd[1]: systemd 252.31-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLK
ID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XK
BCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    5.502963] systemd[1]: Detected architecture arm64.

Welcome to Debian GNU/Linux 12 (bookworm)!

[    5.530353] systemd[1]: Hostname set to <DietPi>.
[    6.266414] systemd[1]: Queued start job for default target graphical.target.
[    6.302397] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[  OK  ] Created slice system-getty.slice - Slice /system/getty.
[    6.327759] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[  OK  ] Created slice system-modpr…lice - Slice /system/modprobe.
[    6.355692] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[  OK  ] Created slice system-seria… - Slice /system/serial-getty.
[    6.382259] systemd[1]: Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started systemd-ask-passwo…quests to Console Directory Watch.
[    6.409875] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[  OK  ] Started systemd-ask-passwo… Requests to Wall Directory Watch.
[    6.438439] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount proc-sys-…rmats File System Automount Point.
[    6.469661] systemd[1]: Expecting device dev-ttyS0.device - /dev/ttyS0...
         Expecting device dev-ttyS0.device - /dev/ttyS0...
[    6.493576] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
[  OK  ] Reached target cryptsetup.…get - Local Encrypted Volumes.
[    6.517643] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[  OK  ] Reached target integrityse…Local Integrity Protected Volumes.
[    6.545662] systemd[1]: Reached target paths.target - Path Units.
[  OK  ] Reached target paths.target - Path Units.
[    6.565559] systemd[1]: Reached target remote-fs.target - Remote File Systems.
[  OK  ] Reached target remote-fs.target - Remote File Systems.
[    6.589524] systemd[1]: Reached target slices.target - Slice Units.
[  OK  ] Reached target slices.target - Slice Units.
[    6.613719] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[  OK  ] Reached target veritysetup… - Local Verity Protected Volumes.
[    6.638354] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket.
[  OK  ] Listening on systemd-fsckd…sck to fsckd communication Socket.
[    6.665982] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[  OK  ] Listening on systemd-initc… initctl Compatibility Named Pipe.
[    6.694965] systemd[1]: Listening on systemd-journald-audit.socket - Journal Audit Socket.
[  OK  ] Listening on systemd-journ…socket - Journal Audit Socket.
[    6.722443] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[  OK  ] Listening on systemd-journ…t - Journal Socket (/dev/log).
[    6.750390] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[  OK  ] Listening on systemd-journald.socket - Journal Socket.
[    6.774511] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[  OK  ] Listening on systemd-udevd….socket - udev Control Socket.
[    6.802205] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[  OK  ] Listening on systemd-udevd…l.socket - udev Kernel Socket.
[    6.825583] systemd[1]: Reached target sockets.target - Socket Units.
[  OK  ] Reached target sockets.target - Socket Units.
[    6.881815] systemd[1]: Mounting dev-hugepages.mount - Huge Pages File System...
         Mounting dev-hugepages.mount - Huge Pages File System...
[    6.910944] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
         Mounting dev-mqueue.mountPOSIX Message Queue File System...
[    6.942905] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
         Mounting sys-kernel-debug.… - Kernel Debug File System...
[    6.970196] systemd[1]: sys-kernel-tracing.mount - Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tr
acing).
[    7.010203] systemd[1]: Starting fake-hwclock.service - Restore / save the current clock...
         Starting fake-hwclock.serv…estore / save the current clock...
[    7.043458] systemd[1]: Starting keyboard-setup.service - Set the console keyboard layout...
         Starting keyboard-setup.se…Set the console keyboard layout...
[    7.102337] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
         Starting kmod-static-nodes…ate List of Static Device Nodes...
[    7.135700] systemd[1]: Starting [email protected] - Load Kernel Module configfs...
         Starting modprobe@configfs…m - Load Kernel Module configfs...
[    7.167919] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
         Starting modprobe@dm_mod.s…[0m - Load Kernel Module dm_mod...
[    7.208331] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[    7.221192] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: [email protected]
[    7.242238] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
         Starting modprobe@efi_psto…- Load Kernel Module efi_pstore...
[    7.279729] systemd[1]: Starting [email protected] - Load Kernel Module fuse...
         Starting [email protected]…e - Load Kernel Module fuse...
[    7.315921] systemd[1]: Starting [email protected] - Load Kernel Module loop...
         Startin[    7.324224] fuse: init (API version 7.39)
g [email protected]…e - Load Kernel Module loop...
[    7.345932] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run
/initramfs/fsck-root).
[    7.386234] systemd[1]: Starting systemd-journald.service - Journal Service...
         Starting systemd-journald.service - Journal Service...
[    7.422685] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
         Starting systemd-modules-l…rvice - Load Kernel Modules...
[    7.456022] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
         Starting systemd-remount-f…nt Root and Kernel File Systems...
[    7.492401] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
         Starting systemd-udev-trig…[0m - Coldplug All udev Devices...
[    7.531243] EXT4-fs (mmcblk0p1): re-mounted b9f4e083-970f-4acd-af45-965d42bbf81f r/w. Quota mode: none.
[    7.531295] systemd[1]: Mounted dev-hugepages.mount - Huge Pages File System.
[  OK  ] Mounted dev-hugepages.mount - Huge Pages File System.
[    7.574010] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[  OK  ] Mounted dev-mqueue.mountOSIX Message Queue File System.
[    7.602588] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[  OK  ] Mounted sys-kernel-debug.m…nt - Kernel Debug File System.
[    7.635199] systemd[1]: Finished fake-hwclock.service - Restore / save the current clock.
[  OK  ] Finished fake-hwclock.serv… Restore / save the current clock.
[    7.667672] systemd[1]: Finished keyboard-setup.service - Set the console keyboard layout.
[  OK  ] Finished keyboard-setup.se…- Set the console keyboard layout.
[    7.699415] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes.
[  OK  ] Finished kmod-static-nodes…reate List of Static Device Nodes.
[    7.726465] systemd[1]: Started systemd-journald.service - Journal Service.
[  OK  ] Started systemd-journald.service - Journal Service.
[  OK  ] Finished modprobe@configfs…[0m - Load Kernel Module configfs.
[  OK  ] Finished modprobe@dm_mod.s…e - Load Kernel Module dm_mod.
[  OK  ] Finished modprobe@efi_psto…m - Load Kernel Module efi_pstore.
[  OK  ] Finished [email protected] - Load Kernel Module fuse.
[  OK  ] Finished [email protected] - Load Kernel Module loop.
[  OK  ] Finished systemd-modules-l…service - Load Kernel Modules.
[  OK  ] Finished systemd-remount-f…ount Root and Kernel File Systems.
         Mounting sys-fs-fuse-conne… - FUSE Control File System...
         Mounting sys-kernel-config…ernel Configuration File System...
         Starting dietpi-fs_partiti…0m - DietPi-FS_partition_resize...
         Starting systemd-random-se…ice - Load/Save Random Seed...
         Starting systemd-sysctl.se…ce - Apply Kernel Variables...
         Starting systemd-sysusers.…rvice - Create System Users...
[  OK  ] Finished systemd-udev-trig…e - Coldplug All udev Devices.
[  OK  ] Mounted sys-fs-fuse-connec…nt - FUSE Control File System.
[  OK  ] Mounted sys-kernel-config.… Kernel Configuration File System.
[  OK  ] Finished systemd-sysctl.service - Apply Kernel Variables.
[  OK  ] Finished systemd-sysusers.service - Create System Users.
         Starting ifupdown-pre.serv…ynchronize boot up for ifupdown...
         Starting systemd-tmpfiles-…ate Static Device Nodes in /dev...
[  OK  ] Finished systemd-tmpfiles-…reate Static Device Nodes in /dev.
         Starting systemd-udevd.ser…ger for Device Events and Files...
Removed "/etc/systemd/system/local-fs.target.wants/dietpi-fs_partition_resize.service".
[ INFO ] Detected root drive /dev/mmcblk0 with root partition 1
[ INFO ] Detected trailing DietPi setup partition /dev/mmcblk0p2
[  OK  ] Started systemd-udevd.serv…nager for Device Events and Files.
mount: /dev/mmcblk0p2 mounted on /tmp/tmp.BTVnHP4nNN.
umount: /tmp/tmp.BTVnHP4nNN (/dev/mmcblk0p2) unmounted
rmdir: removing directory, '/tmp/tmp.BTVnHP4nNN'

The partition table has been altered.
[  OK  ] Found device dev-ttyS0.device - /dev/ttyS0.
Disk /dev/mmcblk0: 14.84 GiB, 15931539456 bytes, 31116288 sectors
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: 0x05a39192

Old situation:

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk0p1 *     8192 2097151 2088960 1020M 83 Linux

/dev/mmcblk0p1: 
New situation:
Disklabel type: dos
Disk identifier: 0x05a39192

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1 *     8192 31116287 31108096 14.8G 83 Linux

The partition table has been altered.

Sometimes it's waiting for emmc for infinity.

Here the header of the working neo2 image:

U-Boot SPL 2024.01-armbian-2024.01-S866c-Pa395-Ha9af-Vec5c-Bda0a-R448a (Oct 09 2024 - 02:27:14 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.9(debug):armbian
NOTICE:  BL31: Built : 02:26:31, Oct  9 2024
NOTICE:  BL31: Detected Allwinner H5 SoC (1718)
NOTICE:  BL31: Found U-Boot DTB at 0x20a5240, model: FriendlyARM NanoPi NEO 2
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
NOTICE:  PMIC: Assuming H5 reference regulator design
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
SCP/INF: Crust v0.6.10000
INFO:    PSCI: Suspend is available via SCPI
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2024.01-armbian-2024.01-S866c-Pa395-Ha9af-Vec5c-Bda0a-R448a (Oct 09 2024 - 02:27:14 +0000) Allwinner Technology

CPU:   Allwinner H5 (SUN50I)
Model: FriendlyARM NanoPi NEO 2
DRAM:  1 GiB
Core:  65 devices, 20 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... Unable to use mmc 0:1...
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
NanoPi NEO2 v1.1 detected
Net:   eth0: ethernet@1c30000
starting USB...
Bus usb@1c1a000: sun4i_usb_phy phy@1c19400: External vbus detected, not enabling our own vbus
USB EHCI 1.00
Bus usb@1c1a400: USB OHCI 1.0
Bus usb@1c1d000: USB EHCI 1.00
Bus usb@1c1d400: USB OHCI 1.0
scanning bus usb@1c1a000 for devices... 1 USB Device(s) found
scanning bus usb@1c1a400 for devices... 1 USB Device(s) found
scanning bus usb@1c1d000 for devices... 1 USB Device(s) found
scanning bus usb@1c1d400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2765 bytes read in 3 ms (899.4 KiB/s)
## Executing script at 4fc00000
308 bytes read in 2 ms (150.4 KiB/s)
23443464 bytes read in 970 ms (23 MiB/s)
9957524 bytes read in 435 ms (21.8 MiB/s)
34367 bytes read in 6 ms (5.5 MiB/s)
Working FDT set to 4fa00000
504 bytes read in 5 ms (97.7 KiB/s)
Applying kernel provided DT overlay sun50i-h5-usbhost1.dtbo
504 bytes read in 5 ms (97.7 KiB/s)
Applying kernel provided DT overlay sun50i-h5-usbhost2.dtbo
4191 bytes read in 5 ms (818.4 KiB/s)
Applying kernel provided DT fixup script sun50i-h5-fixup.scr
## Executing script at 45000000
Moving Image from 0x40080000 to 0x40200000, end=418f0000
## Loading init Ramdisk from Legacy Image at 4ff00000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    9957460 Bytes = 9.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
Working FDT set to 4fa00000
   Loading Ramdisk to 49680000, end 49fff054 ... OK
   Loading Device Tree to 000000004960f000, end 000000004967ffff ... OK
Working FDT set to 4960f000

Starting kernel ...

Take a look at the ethernet device, too!
In the black edition it hasn't been recognized.

@MichaIng
Copy link
Owner

Okay, while the bootloader does not detect the Ethernet, it detects the eMMC directly and loads kernel etc successfully. So you say at the end of the output, it does not do anything anymore? This is from the filesystem expansion script, which did expand partition successfully at this point. The next commands are partprobe and partx -u to tell the kernel about the new partition size, and then resize2fs runs to max the filesystem size as well. The first two commands do not produce any output, but resize2fs does, at least once it finished. It actually indeed takes a little time sometimes, on slower SD cards, or very large devices. But it should finish eventually within a minute max. It any of those 2 commands is failing, a reboot is triggered.

What caught my eyes is that the bootloader is actually not for the NEO2 Black, but the NEO Core2. This is intentional, but not sure whether correct. At least it is two dedicated SBCs:

Mainline U-Boot does not support any of those two, but they are patched inside by the Armbian build system:

While FriendlyELEC's U-Boot fork does not provide a dedicated defconf for that board, the board detection code seems to indicate the the NEO2 Black is closer to the NEO2, than the NEO Core2: https://github.com/friendlyarm/u-boot/blob/sunxi-v2017.x/common/board_r.c#L842-L871

But it is probably a particular one particular hardware feature which lead to taking the Core2 config and device tree. Does the NEO2 image probably limit available RAM to 512 MiB on the 1 GiB RAM variant of the NEO2 Black? The U-Boot output however shows 1 GiB in both cases.

@peedy2495
Copy link
Author

The image of the Neo2 takes only a few minutes when resizing the partitions with resize2fs.
I gave the Black image a bit more than half an hour ... it really seems to get stuck here.
For the Neo2 Black, the only additional requirement should be the eMMC kernel driver.
I think that the memory is allocated dynamically.

@MichaIng
Copy link
Owner

MichaIng commented Jan 27, 2025

Ah right, the eMMC which the NEO Core2 has as well will e the reason why its bootloader is used. And since there is no other/dedicated one for the NEO2 Black in mainline U-Boot or compatible vendor branch, that one was seen and likely just worked well enough.

So the problem is not in the bootloader, but actually in the kernel/device tree. Let me check how it looks like:

Difference in the SD card node: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit?id=aee2eca
This is for disabling write-protection. I mean, before the filesystem is expended, the SD card has already been written to, but probably it somehow has connected. Let me add this to the patch and see whether it makes a difference.

Also, regarding Ethernet and U-Boot we can try to fix it, taking recent updates from mainline U-Boot: https://github.com/u-boot/u-boot/blob/master/arch/arm/dts/sun50i-h5-nanopi-neo2.dts
... makes sense, as the NEO Core2 does not have any Ethernet, and it is not defined in the U-Boot device tree. It was however added to the Linux device tree. Quite a quick hacky implementation. As we do not support the NEO Core2, I'll just add it to our U-Boot patch in our fork. For such old SBC it is probably not worth it anymore to split both and have a proper own NEO2 Black device tree in both, Linux and U-Boot.

@MichaIng MichaIng linked a pull request Jan 27, 2025 that will close this issue
@MichaIng MichaIng removed a link to a pull request Jan 27, 2025
@MichaIng MichaIng added this to the v9.10 milestone Jan 27, 2025
MichaIng added a commit to MichaIng/build that referenced this issue Jan 27, 2025
@MichaIng
Copy link
Owner

U-Boot is ready for testing: MichaIng/build@03b248f

cd /tmp
wget https://dietpi.com/downloads/binaries/testing/linux-u-boot-nanopineo2black-current.deb
dpkg -i linux-u-boot-nanopineo2black-current.deb
/boot/dietpi/func/dietpi-set_hardware flash-uboot-mmc

Then check whether it detects the Ethernet device now. As far as I can see, the kernel drive is enabled with the existing patch already.

@MichaIng
Copy link
Owner

Can you test the image from here? It shops with the patched kernel and bootloader: https://dietpi.com/downloads/images/testing/

@peedy2495
Copy link
Author

Ok, I'll do it. But for now I have an hardware issue. I'll be back, soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants