orangepi-xunlong / linux-orangepi

Other
200 stars 173 forks source link

orangepizero3: orange-pi-6.1-sun50iw9 branch does not boot, dts missing vcc- supply? #53

Open halmartin opened 1 year ago

halmartin commented 1 year ago

Hello,

I am trying to compile 6.1.31 to enable kvm since this is not enabled in the default kernel from leeboby images. The kernel is compiled from the branch orange-pi-6.1-sun50iw9 with /proc/config.gz from the armbian image as the base configuration, modified to enable KVM.

The system does not boot with the compiled kernel, because the SD card is not detected in initramfs:

Starting kernel ...

Loading, please wait...
Starting systemd-udevd version 252.6-1
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... 1;-1fdone.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Waiting for root file system ... 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.
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!  UUID=29255239-4f31-4d74-8af8-d56e72fbcab3 does not exist.  Dropping to a shell!
(initramfs) dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.31-custom (root@042ab3c5c237) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0, GNU ld (GNU Bin
utils for Ubuntu) 2.34) #2 SMP Fri Nov 17 10:51:24 UTC 2023
[    0.000000] Machine model: OrangePi Zero3
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x13f7bf040-0x13f7c0fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000004007ffff]
[    0.000000]   node   0: [mem 0x0000000040080000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] cma: Reserved 128 MiB at 0x00000000f8000000
[    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.4
[    0.000000] percpu: Embedded 20 pages/cpu s41704 r8192 d32024 u81920
[    0.000000] pcpu-alloc: s41704 r8192 d32024 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    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: 1032192
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: root=UUID=29255239-4f31-4d74-8af8-d56e72fbcab3 rootwait rootfstype=ext4 splash=verbose console=ttyS0,115
200 consoleblank=0 loglevel=1 ubootpart=02e6d072-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=memory swapaccount=1
[    0.000000] The swapaccount= commandline option is deprecated. Please report your usecase to linux-mm@kvack.org if you depend on this fun
ctionality.
[    0.000000] Unknown kernel command line parameters "splash=verbose ubootpart=02e6d072-01 cgroup_enable=memory", will be passed to user sp
ace.
[    0.000000] printk: log_buf_len individual max cpu contribution: 131072 bytes
[    0.000000] printk: log_buf_len total cpu_extra contributions: 393216 bytes
[    0.000000] printk: log_buf_len min size: 131072 bytes
[    0.000000] printk: log_buf_len: 524288 bytes
[    0.000000] printk: early log buf free: 128600(98%)
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    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 0x00000000f4000000-0x00000000f8000000] (64MB)
[    0.000000] Memory: 3877936K/4194304K available (12544K kernel code, 1418K rwdata, 3300K rodata, 2688K init, 486K bss, 185296K 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 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] 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.000553] Console: colour dummy device 80x25
[    0.000641] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000653] pid_max: default: 32768 minimum: 301
[    0.000723] LSM: Security Framework initializing
[    0.000748] Yama: becoming mindful.
[    0.000842] AppArmor: AppArmor initialized
[    0.000927] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000951] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.001947] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.002509] cblist_init_generic: Setting adjustable number of callback queues.
[    0.002518] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.002673] rcu: Hierarchical SRCU implementation.
[    0.002676] rcu:     Max phase no-delay instances is 1000.
[    0.003833] smp: Bringing up secondary CPUs ...
[    0.004368] Detected VIPT I-cache on CPU1
[    0.004443] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    0.004480] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.004957] Detected VIPT I-cache on CPU2
[    0.005015] cacheinfo: Unable to detect cache hierarchy for CPU 2
[    0.005033] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.005479] Detected VIPT I-cache on CPU3
[    0.005536] cacheinfo: Unable to detect cache hierarchy for CPU 3
[    0.005553] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005612] smp: Brought up 1 node, 4 CPUs
[    0.005619] SMP: Total of 4 processors activated.
[    0.005623] CPU features: detected: 32-bit EL0 Support
[    0.005626] CPU features: detected: 32-bit EL1 Support
[    0.005630] CPU features: detected: CRC32 instructions
[    0.005695] CPU: All CPU(s) started at EL2
[    0.005715] alternatives: applying system-wide alternatives
[    0.008362] devtmpfs: initialized
[    0.014356] Registered cp15_barrier emulation handler
[    0.014366] Registered setend emulation handler
[    0.014510] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.014529] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.019473] pinctrl core: initialized pinctrl subsystem
[    0.020761] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.021821] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.022026] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.022193] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.022226] audit: initializing netlink subsys (disabled)
[    0.022336] audit: type=2000 audit(0.020:1): state=initialized audit_enabled=0 res=1
[    0.022665] thermal_sys: Registered thermal governor 'fair_share'
[    0.022670] thermal_sys: Registered thermal governor 'bang_bang'
[    0.022673] thermal_sys: Registered thermal governor 'step_wise'
[    0.022677] thermal_sys: Registered thermal governor 'user_space'
[    0.022711] cpuidle: using governor menu
[    0.022890] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.022965] ASID allocator initialised with 65536 entries
[    0.023082] Serial: AMBA PL011 UART driver
[    0.027968] platform 3001000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[    0.032026] platform 6000000.hdmi: Fixed dependency cycle(s) with /soc/tcon-top@6510000
[    0.032464] platform 6510000.tcon-top: Fixed dependency cycle(s) with /soc/lcd-controller@6515000
[    0.032481] platform 6510000.tcon-top: Fixed dependency cycle(s) with /soc/bus@1000000/mixer@100000
[    0.033138] platform 7010000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[    0.034406] platform 6000000.hdmi: Fixed dependency cycle(s) with /connector
[    0.035946] KASLR disabled due to lack of seed
[    0.041226] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.041231] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.041237] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.041241] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.041246] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.041249] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.041254] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.041258] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.041950] cryptd: max_cpu_qlen set to 1000
[    0.108095] raid6: neonx8   gen()  1849 MB/s
[    0.176147] raid6: neonx4   gen()  1895 MB/s
[    0.244207] raid6: neonx2   gen()  1796 MB/s
[    0.312260] raid6: neonx1   gen()  1557 MB/s
[    0.380333] raid6: int64x8  gen()  1209 MB/s
[    0.448379] raid6: int64x4  gen()  1378 MB/s
[    0.516446] raid6: int64x2  gen()  1203 MB/s
[    0.584504] raid6: int64x1  gen()   909 MB/s
[    0.584509] raid6: using algorithm neonx4 gen() 1895 MB/s
[    0.652553] raid6: .... xor() 1370 MB/s, rmw enabled
[    0.652557] raid6: using neon recovery algorithm
[    0.653806] iommu: Default domain type: Translated
[    0.653810] iommu: DMA domain TLB invalidation policy: strict mode
[    0.654065] SCSI subsystem initialized
[    0.654238] usbcore: registered new interface driver usbfs
[    0.654274] usbcore: registered new interface driver hub
[    0.654300] usbcore: registered new device driver usb
[    0.654555] pps_core: LinuxPPS API ver. 1 registered
[    0.654559] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.654572] PTP clock support registered
[    0.654853] ARM FF-A: FFA_VERSION returned not supported
[    0.655154] Advanced Linux Sound Architecture Driver Initialized.
[    0.655766] NetLabel: Initializing
[    0.655770] NetLabel:  domain hash size = 128
[    0.655773] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.655832] NetLabel:  unlabeled traffic allowed by default
[    0.655836] mctp: management component transport protocol core
[    0.655840] NET: Registered PF_MCTP protocol family
[    0.656193] clocksource: Switched to clocksource arch_sys_counter
[    0.656387] VFS: Disk quotas dquot_6.6.0
[    0.656424] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.656922] AppArmor: AppArmor Filesystem Enabled
[    0.663179] NET: Registered PF_INET protocol family
[    0.663399] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.666678] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.666727] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.666746] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.667005] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.668255] TCP: Hash tables configured (established 32768 bind 32768)
[    0.668367] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.668457] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.668691] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.669281] Trying to unpack rootfs image as initramfs...
[    0.677125] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.677773] kvm [1]: IPA Size Limit: 40 bits
[    0.679181] kvm [1]: vgic interrupt IRQ9
[    0.679931] kvm [1]: Hyp mode initialized successfully
[    0.681342] Initialise system trusted keyrings
[    0.681390] Key type blacklist registered
[    0.681580] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.686515] zbud: loaded
[    0.687885] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.689456] integrity: Platform Keyring initialized
[    0.731039] xor: measuring software checksum speed
[    0.735750]    8regs           :  2100 MB/sec
[    0.740310]    32regs          :  2169 MB/sec
[    0.745150]    arm64_neon      :  2036 MB/sec
[    0.745155] xor: using function: 32regs (2169 MB/sec)
[    0.745166] async_tx: api initialized (async)
[    0.745176] Key type asymmetric registered
[    0.745182] Asymmetric key parser 'x509' registered
[    1.376458] Freeing initrd memory: 15008K
[    1.398313] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    1.398448] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.398564] io scheduler mq-deadline registered
[    1.398569] io scheduler kyber registered
[    1.398756] io scheduler bfq registered
[    1.411266] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.413472] misc dump reg init
[    1.413951] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.417548] loop: module loaded
[    1.419984] usbcore: registered new interface driver usb-storage
[    1.420433] mousedev: PS/2 mouse device common for all mice
[    1.421185] sun6i-rtc 7000000.rtc: registered as rtc0
[    1.421206] sun6i-rtc 7000000.rtc: setting system clock to 2023-11-17T11:49:06 UTC (1700221746)
[    1.421297] sun6i-rtc 7000000.rtc: RTC enabled
[    1.421502] i2c_dev: i2c /dev entries driver
[    1.421729] mv64xxx_i2c 7081400.i2c: can't get pinctrl, bus recovery not supported
[    1.422210] axp20x-i2c 0-0036: AXP20x variant AXP313a found
[    1.422353] axp20x-i2c 0-0036: AXP20X driver loaded
[    1.423028] sunxi-wdt 30090a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.424280] sdhci: Secure Digital Host Controller Interface driver
[    1.424284] sdhci: Copyright(c) Pierre Ossman
[    1.424313] Synopsys Designware Multimedia Card Interface Driver
[    1.424963] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.425330] ledtrig-cpu: registered to indicate activity on CPUs
[    1.425592] SMCCC: SOC_ID: ID = jep106:091e:1823 Revision = 0x00000002
[    1.426027] hid: raw HID events driver (C) Jiri Kosina
[    1.426102] usbcore: registered new interface driver usbhid
[    1.426106] usbhid: USB HID core driver
[    1.469311] NET: Registered PF_INET6 protocol family
[    1.490510] Segment Routing with IPv6
[    1.490585] In-situ OAM (IOAM) with IPv6
[    1.490688] NET: Registered PF_PACKET protocol family
[    1.490782] 8021q: 802.1Q VLAN Support v1.8
[    1.490923] 9pnet: Installing 9P2000 support
[    1.491005] Key type dns_resolver registered
[    1.491483] registered taskstats version 1
[    1.491508] Loading compiled-in X.509 certificates
[    1.493664] zswap: loaded using pool zstd/z3fold
[    1.493998] Key type .fscrypt registered
[    1.494002] Key type fscrypt-provisioning registered
[    1.494223] Key type encrypted registered
[    1.494235] AppArmor: AppArmor sha1 policy hashing enabled
[    1.494256] ima: No TPM chip found, activating TPM-bypass!
[    1.494285] ima: Allocated hash algorithm: sha1
[    1.494320] ima: No architecture policies found
[    1.494380] evm: Initialising EVM extended attributes:
[    1.494383] evm: security.selinux
[    1.494387] evm: security.SMACK64
[    1.494391] evm: security.SMACK64EXEC
[    1.494394] evm: security.SMACK64TRANSMUTE
[    1.494397] evm: security.SMACK64MMAP
[    1.494400] evm: security.apparmor
[    1.494403] evm: security.ima
[    1.494406] evm: security.capability
[    1.494409] evm: HMAC attrs: 0x1
[    1.517216] sun50i-h616-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[    1.517764] sun50i-h616-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[    1.517997] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.518455] printk: console [ttyS0] disabled
[    1.518529] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 285, base_baud = 1500000) is a 16550A
[    1.518724] printk: console [ttyS0] enabled
[    1.519226] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pc not found, using dummy regulator
[    1.520370] spi-nor spi0.0: ZB25VQ128A (16384 Kbytes)
[    1.535878] sun50i-cpufreq-nvmem: will use speed0 CPU OPPs
[    1.536378] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pg not found, using dummy regulator
[    1.537274] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.538164] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[    1.539422] ehci-platform 5200000.usb: EHCI Host Controller
[    1.539446] ehci-platform 5200000.usb: new USB bus registered, assigned bus number 1
[    1.539567] ehci-platform 5200000.usb: irq 289, io mem 0x05200000
[    1.539731] ehci-platform 5310000.usb: EHCI Host Controller
[    1.539748] ehci-platform 5310000.usb: new USB bus registered, assigned bus number 2
[    1.539821] ehci-platform 5310000.usb: irq 290, io mem 0x05310000
[    1.539882] ehci-platform 5311000.usb: EHCI Host Controller
[    1.539898] ehci-platform 5311000.usb: new USB bus registered, assigned bus number 3
[    1.539996] ehci-platform 5311000.usb: irq 291, io mem 0x05311000
[    1.540133] usb_phy_generic usb_phy_generic.1.auto: supply vcc not found, using dummy regulator
[    1.540281] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[    1.540488] ohci-platform 5200400.usb: Generic Platform OHCI controller
[    1.540504] ohci-platform 5200400.usb: new USB bus registered, assigned bus number 4
[    1.540554] ohci-platform 5310400.usb: Generic Platform OHCI controller
[    1.540571] ohci-platform 5310400.usb: new USB bus registered, assigned bus number 5
[    1.540576] ohci-platform 5200400.usb: irq 292, io mem 0x05200400
[    1.540634] ohci-platform 5310400.usb: irq 293, io mem 0x05310400
[    1.541649] ohci-platform 5311400.usb: Generic Platform OHCI controller
[    1.541665] ohci-platform 5311400.usb: new USB bus registered, assigned bus number 6
[    1.541730] ohci-platform 5311400.usb: irq 295, io mem 0x05311400
[    1.541843] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.542802] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.543725] ALSA device list:
[    1.543732]   #0: audiocodec
[    1.543737]   #1: ahubdam
[    1.543956] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.552204] ehci-platform 5200000.usb: USB 2.0 started, EHCI 1.00
[    1.552447] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.552459] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.552468] usb usb1: Product: EHCI Host Controller
[    1.552475] usb usb1: Manufacturer: Linux 6.1.31-custom ehci_hcd
[    1.552482] usb usb1: SerialNumber: 5200000.usb
[    1.552916] hub 1-0:1.0: USB hub found
[    1.552951] hub 1-0:1.0: 1 port detected
[    1.553927] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.568196] ehci-platform 5310000.usb: USB 2.0 started, EHCI 1.00
[    1.568401] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.568413] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.568421] usb usb2: Product: EHCI Host Controller
[    1.568428] usb usb2: Manufacturer: Linux 6.1.31-custom ehci_hcd
[    1.568435] usb usb2: SerialNumber: 5310000.usb
[    1.568769] hub 2-0:1.0: USB hub found
[    1.568802] hub 2-0:1.0: 1 port detected
[    1.569710] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.584187] ehci-platform 5311000.usb: USB 2.0 started, EHCI 1.00
[    1.584388] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.584401] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.584409] usb usb3: Product: EHCI Host Controller
[    1.584416] usb usb3: Manufacturer: Linux 6.1.31-custom ehci_hcd
[    1.584424] usb usb3: SerialNumber: 5311000.usb
[    1.584757] hub 3-0:1.0: USB hub found
[    1.584792] hub 3-0:1.0: 1 port detected
[    1.585698] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.604379] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    1.604391] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.604399] usb usb6: Product: Generic Platform OHCI controller
[    1.604406] usb usb6: Manufacturer: Linux 6.1.31-custom ohci_hcd
[    1.604413] usb usb6: SerialNumber: 5311400.usb
[    1.604772] hub 6-0:1.0: USB hub found
[    1.604813] hub 6-0:1.0: 1 port detected
[    1.605268] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    1.605280] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.605288] usb usb4: Product: Generic Platform OHCI controller
[    1.605295] usb usb4: Manufacturer: Linux 6.1.31-custom ohci_hcd
[    1.605302] usb usb4: SerialNumber: 5200400.usb
[    1.605646] hub 4-0:1.0: USB hub found
[    1.605680] hub 4-0:1.0: 1 port detected
[    1.605733] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.606183] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    1.606195] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.606204] usb usb5: Product: Generic Platform OHCI controller
[    1.606211] usb usb5: Manufacturer: Linux 6.1.31-custom ohci_hcd
[    1.606218] usb usb5: SerialNumber: 5310400.usb
[    1.606616] hub 5-0:1.0: USB hub found
[    1.606651] hub 5-0:1.0: 1 port detected
[    1.606775] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.607797] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.768757] sunxi-mmc 4021000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.769648] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.769803] Freeing unused kernel memory: 2688K
[    1.769937] Run /init as init process
[    1.769944]   with arguments:
[    1.769949]     /init
[    1.769954]   with environment:
[    1.769958]     HOME=/
[    1.769963]     TERM=linux
[    1.769967]     splash=verbose
[    1.769972]     ubootpart=02e6d072-01
[    1.769977]     cgroup_enable=memory
[    1.786005] mmc1: new high speed SDIO card at address 8800
[    2.344782] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[    2.345207] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[    5.144208] random: crng init done
[   12.517185] platform cpufreq-dt: deferred probe pending
[   12.517208] platform soc:ahub1_mach: deferred probe pending
[   12.517491] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
(initramfs) ls /dev/mmc*
/dev/mmc*: No such file or directory

There are multiple messages about sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-* not found, using dummy regulator throughout the boot, which makes me suspect that the device tree sun50i-h616-orangepi-zero3.dts in git is incorrect, and the reason for not booting is that the SD card is not receiving the correct voltage from the axp313a PMIC.

There are no such errors during boot in the armbian kernel/image provided in leeboby images. The sun50i-h616-orangepi-zero2.dts includes &pio with a mapping of the supply-vcc to PMIC. No such mapping exists in sun50i-h616-orangepi-zero3.dts.

I tried to add the appropriate mapping based on the Zero3 schematic, but board does not output anything over UART after handover from u-boot:

--- a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero3.dts
@@ -218,6 +219,14 @@ reg_dldo1: ldo2 {
        };
 };

+&pio {
+        vcc-pc-supply = <&reg_dldo1>;
+        vcc-pf-supply = <&reg_dldo1>;
+        vcc-pg-supply = <&reg_aldo1>;
+        vcc-ph-supply = <&reg_aldo1>;
+        vcc-pi-supply = <&reg_aldo1>;
+};
+
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_ph_pins>;

It seems like the repository is not matching the binaries shipped, otherwise I would expect a kernel with the same .config to boot. Could someone please take a look?

broadblues commented 1 year ago

Which model of orangepi zero 3 do you have? If the 4Gb you will need to replace both the uboot and the dtb as it needs a different ones from those generated for 2 & 4 Gb builds by the orangepi build system. There a choice of two board types I'm guessing it should be 3!

There are instructions from the link you gave above IIRC. Apply those steps to your custom image.

I don't know what the exact issue is. I have decompiled that 4gb dtb and patched it to enable Mali GPU.

broadblues commented 1 year ago

https://github.com/leeboby/opizero3-uboot-dtb in chinese so use google translate if you can't read it.

halmartin commented 1 year ago

Which model of orangepi zero 3 do you have? If the 4Gb you will need to replace both the uboot and the dtb as it needs a different ones from those generated for 2 & 4 Gb builds by the orangepi build system.

Yes, I am aware of this and have already done it. The stock images boot fine.

Compiling your own kernel with the same configuration (/proc/config.gz from the armbian image), for me, does not boot.

broadblues commented 1 year ago

Hmm I started from the configs provided in the orangepi-build/next branch and then applied the fixes described to get a booting image. It would be better if it would "just work" for all variants of the board.

halmartin commented 1 year ago

I started from the configs provided in the orangepi-build/next branch and then applied the fixes described to get a booting image

Could you link to the repository and fixes you're describing?

The orangepi-build base repository has not been updated in years.

broadblues commented 1 year ago

https://github.com/orangepi-xunlong/orangepi-build/tree/next

Arcayr commented 10 months ago

i actually got it working last night with wifi on kernel 6.1. i've detailed my process below. it's a bit of a mess and i was doing it with nixos so i don't have a list of commands i ran or anything, but here are the sources I used:

i had to patch the uwe5622 driver, which is the driver for the wifi chip on the zero 3, in a couple of ways:

the driver attempts to load two files:

both of these can be obtained from the root of https://github.com/orangepi-xunlong/firmware - i used them straight from master.

it doesn't use the normal firmware loading mechanism though. it actually tries to rip them off the filesystem directly, so you'll need to ensure that directory exists (hence patch 3 for my nixos use), and make sure they are not compressed.

on top of all this i had to fiddle with the official defconfig, however i didn't version this in any way to separate anything i had to enable specifically for nixos so some things may be unnecessarily enabled.

i've pushed what i'm using for nix to https://github.com/arcayr/orangepizero3-nix if you're interested. when i get the chance to clean up the kconfig more i'll do that as well.

overall it seems okay - it's been online and holding a stable connection overnight with this configuration.

for the record, i can confirm the latest mainline kernel and 24.05-rc5+ of uboot will boot the device, but the wifi driver is in no shape to be forward ported to mainline by someone like me who has limited experience in kernelspace.

i also noticed the devicetree also differs between the vendor trees and upstream trees but i haven't investigated if they will improve the board's stability in any way. i'm using the vendor one presently.

qichunren commented 10 months ago

I got same issue, orangepi zero3

I followed wiki I have built a Debian 12 server image with the kernel version 6.1 on the next branch. However, the device fails to boot and gets stuck at the message 'Starting kernel.' What could be the issue?"