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

NanoPC T4 not booting #54

Open msdos03 opened 1 year ago

msdos03 commented 1 year ago
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.0-9-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.27-1 (2023-05-08)
[    0.000000] Machine model: FriendlyElec NanoPC-T4
[    0.000000] efi: UEFI not found.
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xf77dc380-0xf77defff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x00000000f7ffffff]
[    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 0x0000000000200000-0x00000000f7ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] cma: Reserved 64 MiB at 0x00000000ebc00000
[    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 30 pages/cpu s83560 r8192 d31128 u122880
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    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: 999432
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=PARTUUID=092ec43d-02 rw rootwait
[    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:all(zero), heap alloc:on, heap free:off
[    0.000000] Memory: 227924K/4061184K available (12992K kernel code, 2790K rwdata, 9252K rodata, 6400K init, 628K bss, 145272K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] ftrace: allocating 43693 entries in 171 pages
[    0.000000] ftrace: allocated 171 pages with 5 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=6.
[    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=6
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 256 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000
[    0.000000] ITS [mem 0xfee20000-0xfee3ffff]
[    0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @600000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x00000000005a0000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000000005b0000
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] }
[    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.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.002499] Console: colour dummy device 80x25
[    0.003191] printk: console [tty0] enabled
[    0.003416] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.003456] pid_max: default: 32768 minimum: 301
[    0.003985] LSM: Security Framework initializing
[    0.004099] landlock: Up and running.
[    0.004116] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.004317] AppArmor: AppArmor initialized
[    0.004345] TOMOYO Linux initialized
[    0.004388] LSM support for eBPF active
[    0.004678] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.004729] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.007115] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.008416] cblist_init_generic: Setting adjustable number of callback queues.
[    0.008451] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.008640] cblist_init_generic: Setting shift to 3 and lim to 1.
[    0.009016] rcu: Hierarchical SRCU implementation.
[    0.009037] rcu:     Max phase no-delay instances is 1000.
[    0.011267] Platform MSI: interrupt-controller@fee20000 domain created
[    0.011803] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created
[    0.012084] fsl-mc MSI: interrupt-controller@fee20000 domain created
[    0.015038] EFI services will not be available.
[    0.016121] smp: Bringing up secondary CPUs ...
[    0.017168] Detected VIPT I-cache on CPU1
[    0.017286] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    0.017305] GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000
[    0.017327] GICv3: CPU1: using allocated LPI pending table @0x00000000005c0000
[    0.017388] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.018503] Detected VIPT I-cache on CPU2
[    0.018610] cacheinfo: Unable to detect cache hierarchy for CPU 2
[    0.018626] GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000
[    0.018645] GICv3: CPU2: using allocated LPI pending table @0x00000000005d0000
[    0.018686] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.019711] Detected VIPT I-cache on CPU3
[    0.019814] cacheinfo: Unable to detect cache hierarchy for CPU 3
[    0.019831] GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000
[    0.019849] GICv3: CPU3: using allocated LPI pending table @0x00000000005e0000
[    0.019888] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.020994] CPU features: detected: Spectre-v2
[    0.021006] CPU features: detected: Spectre-v3a
[    0.021015] CPU features: detected: Spectre-BHB
[    0.021024] CPU features: detected: ARM erratum 1742098
[    0.021032] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.021037] Detected PIPT I-cache on CPU4
[    0.021146] cacheinfo: Unable to detect cache hierarchy for CPU 4
[    0.021163] GICv3: CPU4: found redistributor 100 region 0:0x00000000fef80000
[    0.021181] GICv3: CPU4: using allocated LPI pending table @0x00000000005f0000
[    0.021221] CPU4: Booted secondary processor 0x0000000100 [0x410fd082]
[    0.022304] Detected PIPT I-cache on CPU5
[    0.022396] cacheinfo: Unable to detect cache hierarchy for CPU 5
[    0.022410] GICv3: CPU5: found redistributor 101 region 0:0x00000000fefa0000
[    0.022427] GICv3: CPU5: using allocated LPI pending table @0x0000000000680000
[    0.022459] CPU5: Booted secondary processor 0x0000000101 [0x410fd082]
[    0.022593] smp: Brought up 1 node, 6 CPUs
[    0.022959] SMP: Total of 6 processors activated.
[    0.022978] CPU features: detected: 32-bit EL0 Support
[    0.022994] CPU features: detected: 32-bit EL1 Support
[    0.023013] CPU features: detected: CRC32 instructions
[    0.023157] CPU: All CPU(s) started at EL2
[    0.023201] alternatives: applying system-wide alternatives
[    0.109210] node 0 deferred pages initialised in 84ms
[    0.110912] devtmpfs: initialized
[    0.128276] Registered cp15_barrier emulation handler
[    0.128315] Registered setend emulation handler
[    0.128573] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.128638] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.130081] pinctrl core: initialized pinctrl subsystem
[    0.132805] DMI not present or invalid.
[    0.133788] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.135903] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.136482] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.137060] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.137150] audit: initializing netlink subsys (disabled)
[    0.137409] audit: type=2000 audit(0.136:1): state=initialized audit_enabled=0 res=1
[    0.138879] thermal_sys: Registered thermal governor 'fair_share'
[    0.138888] thermal_sys: Registered thermal governor 'bang_bang'
[    0.138907] thermal_sys: Registered thermal governor 'step_wise'
[    0.138920] thermal_sys: Registered thermal governor 'user_space'
[    0.138932] thermal_sys: Registered thermal governor 'power_allocator'
[    0.139000] cpuidle: using governor ladder
[    0.139050] cpuidle: using governor menu
[    0.139183] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.139404] ASID allocator initialised with 65536 entries
[    0.139997] Serial: AMBA PL011 UART driver
[    0.165885] platform fe330000.mmc: Fixed dependency cycle(s) with /syscon@ff770000/phy@f780
[    0.171054] platform ff900000.vop: Fixed dependency cycle(s) with /hdmi@ff940000
[    0.171159] platform ff8f0000.vop: Fixed dependency cycle(s) with /hdmi@ff940000
[    0.179981] rockchip-gpio ff720000.gpio: probed /pinctrl/gpio@ff720000
[    0.180785] rockchip-gpio ff730000.gpio: probed /pinctrl/gpio@ff730000
[    0.181593] rockchip-gpio ff780000.gpio: probed /pinctrl/gpio@ff780000
[    0.182351] rockchip-gpio ff788000.gpio: probed /pinctrl/gpio@ff788000
[    0.182994] rockchip-gpio ff790000.gpio: probed /pinctrl/gpio@ff790000
[    0.189495] KASLR disabled due to lack of seed
[    0.196898] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.196922] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.196939] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.196972] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.196988] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.197002] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.197017] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.197030] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.240857] ACPI: Interpreter disabled.
[    0.241921] iommu: Default domain type: Translated
[    0.241941] iommu: DMA domain TLB invalidation policy: strict mode
[    0.242269] EDAC MC: Ver: 3.0.0
[    0.245300] NetLabel: Initializing
[    0.245322] NetLabel:  domain hash size = 128
[    0.245335] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.245409] NetLabel:  unlabeled traffic allowed by default
[    0.245606] vgaarb: loaded
[    0.245968] clocksource: Switched to clocksource arch_sys_counter
[    0.246629] VFS: Disk quotas dquot_6.6.0
[    0.246730] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.247660] AppArmor: AppArmor Filesystem Enabled
[    0.247738] pnp: PnP ACPI: disabled
[    0.260255] NET: Registered PF_INET protocol family
[    0.260574] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.265558] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.265705] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.265845] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.266465] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.267752] TCP: Hash tables configured (established 32768 bind 32768)
[    0.268113] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.268285] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.268451] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.268845] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.268903] NET: Registered PF_XDP protocol family
[    0.268925] PCI: CLS 0 bytes, default 64
[    0.269655] Trying to unpack rootfs image as initramfs...
[    0.283306] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.284372] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.285624] kvm [1]: IPA Size Limit: 40 bits
[    0.289022] kvm [1]: vgic-v2@fff20000
[    0.289074] kvm [1]: GIC system register CPU interface enabled
[    0.289410] kvm [1]: vgic interrupt IRQ18
[    0.290098] kvm [1]: Hyp mode initialized successfully
[    0.317329] Initialise system trusted keyrings
[    0.317562] Key type blacklist registered
[    0.317924] workingset: timestamp_bits=42 max_order=20 bucket_order=0
[    0.325551] zbud: loaded
[    0.326813] integrity: Platform Keyring initialized
[    0.326867] integrity: Machine keyring initialized
[    0.326886] Key type asymmetric registered
[    0.326900] Asymmetric key parser 'x509' registered
[    2.828824] Freeing initrd memory: 34200K
[    2.870880] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    2.871009] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    2.871223] io scheduler mq-deadline registered
[    2.888829] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    2.908268] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.911142] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 33, base_baud = 1500000) is a 16550A
[    2.911338] serial serial0: tty port ttyS0 registered
[    2.912387] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 34, base_baud = 1500000) is a 16550A
[    3.023535] printk: console [ttyS2] enabled
[    3.025575] Serial: AMBA driver
[    3.025899] SuperH (H)SCI(F) driver initialized
[    3.027433] msm_serial: driver initialized
[    3.033480] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    3.035416] mousedev: PS/2 mouse device common for all mice
[    3.040727] ledtrig-cpu: registered to indicate activity on CPUs
[    3.042411] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    3.098003] NET: Registered PF_INET6 protocol family
[    3.135281] Segment Routing with IPv6
[    3.135699] In-situ OAM (IOAM) with IPv6
[    3.136146] mip6: Mobile IPv6
[    3.136436] NET: Registered PF_PACKET protocol family
[    3.137398] mpls_gso: MPLS GSO support
[    3.139220] registered taskstats version 1
[    3.139633] Loading compiled-in X.509 certificates
[    3.256166] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[    3.257051] Loaded X.509 cert 'Debian Secure Boot Signer 2022 - linux: 14011249c2675ea8e5148542202005810584b25f'
[    3.261403] zswap: loaded using pool lzo/zbud
[    3.263308] Key type .fscrypt registered
[    3.263684] Key type fscrypt-provisioning registered
[    3.303541] Key type encrypted registered
[    3.303939] AppArmor: AppArmor sha1 policy hashing enabled
[    3.304473] ima: No TPM chip found, activating TPM-bypass!
[    3.304995] ima: Allocated hash algorithm: sha256
[    3.305480] ima: No architecture policies found
[    3.305940] evm: Initialising EVM extended attributes:
[    3.306463] evm: security.selinux
[    3.306766] evm: security.SMACK64 (disabled)
[    3.307152] evm: security.SMACK64EXEC (disabled)
[    3.307567] evm: security.SMACK64TRANSMUTE (disabled)
[    3.308020] evm: security.SMACK64MMAP (disabled)
[    3.308434] evm: security.apparmor
[    3.308743] evm: security.ima
[    3.309014] evm: security.capability
[    3.309338] evm: HMAC attrs: 0x1
[    3.889487] dw-apb-uart ff1a0000.serial: forbid DMA for kernel console
[    3.900320] Freeing unused kernel memory: 6400K
[    3.959912] Checked W+X mappings: passed, no W+X pages found
[    3.960456] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.6-1
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 ... 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.
[   14.047118] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges:
[   14.047817] rockchip-pcie f8000000.pcie:      MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000
[   14.048597] rockchip-pcie f8000000.pcie:       IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000
[   14.050966] platform f8000000.pcie: deferred probe pending
[   14.051482] platform sdio-pwrseq: 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.
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=092ec43d-02 does not exist.  Dropping to a shell!
(initramfs)

I've built a debian using debootstrap manually and, same error appears. Initramfs doesn't contain full mmc core support, and there is no mmc-core packages for arm64 in debian sources. So I gave up my work to use your project. But it seems that here is the same problem.

johang commented 1 year ago

Try the Experimental image. Possibly same root cause as #49.

msdos03 commented 1 year ago

@johang Thanks for replying. I have another question In my build of debian, why didn't init insert any .ko modules in initrd? Do I need to do something to let it load the modules I need?

johang commented 1 year ago

It clearly loaded many modules. You can see that in the log.