MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.9k stars 499 forks source link

Image | Radxa Zero #4831

Closed almirus closed 3 years ago

almirus commented 3 years ago
Err:3 https://deb.debian.org/debian bullseye/main arm64 bash arm64 5.1-2+b3
  Temporary failure resolving 'deb.debian.org'
Err:4 https://deb.debian.org/debian bullseye/main arm64 bsdutils arm64 1:2.36.1-8
  Temporary failure resolving 'deb.debian.org'
Err:5 https://deb.debian.org/debian bullseye/main arm64 gcc-10-base arm64 10.2.1-6
  Temporary failure resolving 'deb.debian.org'
Err:6 https://deb.debian.org/debian bullseye/main arm64 libgcc-s1 arm64 10.2.1-6
  Temporary failure resolving 'deb.debian.org'
Err:7 https://deb.debian.org/debian bullseye/main arm64 libcrypt1 arm64 1:4.4.18-4
  Temporary failure resolving 'deb.debian.org'
Err:8 https://deb.debian.org/debian bullseye/main arm64 libc6 arm64 2.31-13+deb11u2
  Temporary failure resolving 'deb.debian.org'
Err:9 https://deb.debian.org/debian bullseye/main arm64 libc-bin arm64 2.31-13+deb11u2
  Temporary failure resolving 'deb.debian.org'
Err:10 https://deb.debian.org/debian bullseye/main arm64 libpcre2-8-0 arm64 10.36-2
  Temporary failure resolving 'deb.debian.org'
Err:11 https://deb.debian.org/debian bullseye/main arm64 libselinux1 arm64 3.1-3
  Temporary failure resolving 'deb.debian.org'
Err:12 https://deb.debian.org/debian bullseye/main arm64 coreutils arm64 8.32-4
  Temporary failure resolving 'deb.debian.org'
Err:13 https://deb.debian.org/debian bullseye/main arm64 tar arm64 1.34+dfsg-1
  Temporary failure resolving 'deb.debian.org'
dhry commented 3 years ago

Hi folks, I've been speaking with Joulinar on the DietPi forum regarding a Radxa Zero issue running the prep script - I'm not sure if it's the same issue as is being discussed here, but the forum post is at https://dietpi.com/phpbb/viewtopic.php?p=38942 and I'm happy to run/test any betas to make sure it works fine. --Dhry

MichaIng commented 3 years ago

So your issue is that PREP freezes when purging dbus? almirus didn't face that, AFAIK, but one issue was breaking network due to NetworkManager (a known issue when NetMan manages the network when running the script) uninstall, which is a later step, and then due to overwritten WiFi firmware.

Hanging tasks could be related to the above mentioned entropy issue, so please try to install those two packages first:

apt update
apt install rng-tools5 haveged

And it would be interesting to know whether it has a hardware random generator at all:

journalctl -u rngd
dhry commented 3 years ago

After installing rng-tools5 and havegd:

root@zero:/home/rock# journalctl -u rngd -- Logs begin at Sun 2021-10-10 08:07:01 UTC, end at Fri 2021-10-22 15:52:03 UTC. -- Oct 22 15:52:01 zero systemd[1]: Started Start entropy gathering daemon (rngd).

Then I installed the dev branch of the script, selected the dev branch of DietPi, chose Generic Device, chose to retain wifi functionality and began the install. Once again it froze up after the uninstall of dbus. See screenshots. showing the KiTTY window with package deletions, and the Radxa screen. The detection of the mouse continues every 60 seconds, but no additional activity after that. The start image I'm using is https://github.com/radxa/radxa-zero-images-released/releases/download/radxa-zero-v20211010/zero_debian_buster_xfce4_arm64_20211010_0810-mbr.img.gz

Dhry 20211022_090052_700 Image 1

MichaIng commented 3 years ago

I generated an image now: https://dietpi.com/downloads/images/DietPi_RadxaZero-ARMv8-Bullseye.7z Please see whether this works, especially whether it boots without the long delay until "random: crng init done". I skipped all firmware packages now, which are not present on Radxa's image either and it is unlikely that someone plugs a USB Ethernet or WiFi adapter on first boot, I guess.


If this generally works, I'm open to add general support for this SBC. Currently it shows "Generic Device" but we can add a regular hardware ID for it and also migrate the systems on next DietPi update to use the specific Radxa Zero hardware ID. It is still a bit a beta image, there is no bootloader package, the kernel is from the Radxa testing repository, the manually placed WiFi firmware files which are not attached to any package and conflict with Debian firmware packages etc, but we can keep an eye on this and migrate/update those packages on future DietPi updates as well, when they appear in the stable Radxa repo.

almirus commented 3 years ago

@MichaIng

full log from UART G12A:BL:0253b8:61aa2d;FEAT:E0F83180:2000;POC:F;RCY:0;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;0.0 l2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0001 - pwm id 0x00 bl2_stage_init 0xc0 bl2_stage_init 0x02 no sdio debug board detected L0:00000000 L1:00000703 L2:00008067 L3:04000000 S1:00000000 B2:00002000 B1:e0f83180 TE: 257572 BL2 Built : 15:21:48, Aug 28 2019. g12a g1bf2b53 - luan.yuan@droid15-sz Board ID = 2 Set cpu clk to 24M Set clk81 to 24M CPU clk: 1200 MHz Set clk81 to 166.6M DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:21:45 board id: 2 Load FIP HDR from SD, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0 fw parse done Load ddrfw from SD, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0 Load ddrfw from SD, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0 PIEI prepare done fastboot data load fastboot data verify verify result: 266 Cfg max: 2, cur: 1. Board id: 255. Force loop cfg LPDDR4 probe ddr clk to 792MHz Load ddrfw from SD, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0 dmc_version 0000 Check phy result INFO : ERROR : Training has failed! 1D training failed Cfg max: 2, cur: 2. Board id: 255. Force loop cfg LPDDR4 probe ddr clk to 792MHz Load ddrfw from SD, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0 dmc_version 0000 Check phy result INFO : End of CA training INFO : End of initialization INFO : Training has run successfully! Check phy result INFO : End of initialization INFO : End of read enable training INFO : End of fine write leveling INFO : End of Write leveling coarse delay INFO : Training has run successfully! Check phy result INFO : End of initialization INFO : End of read dq deskew training INFO : End of MPR read delay center optimization INFO : End of write delay center optimization INFO : End of read delay center optimization INFO : End of max read latency training INFO : Training has run successfully! 1D training succeed Load ddrfw from SD, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part: 0 Check phy result INFO : End of initialization INFO : End of 2D read delay Voltage center optimization INFO : End of 2D read delay Voltage center optimization INFO : End of 2D write delay Voltage center optimization INFO : End of 2D write delay Voltage center optimization INFO : Training has run successfully! channel==0 RxClkDly_Margin_A0==256 ps 13 TxDqDly_Margin_A0==256 ps 13 RxClkDly_Margin_A1==0 ps 0 TxDqDly_Margin_A1==0 ps 0 TrainedVREFDQ_A0==74 TrainedVREFDQ_A1==0 VrefDac_Margin_A0==29 DeviceVref_Margin_A0==40 VrefDac_Margin_A1==0 DeviceVref_Margin_A1==0 channel==1 RxClkDly_Margin_A0==216 ps 11 TxDqDly_Margin_A0==256 ps 13 RxClkDly_Margin_A1==0 ps 0 TxDqDly_Margin_A1==0 ps 0 TrainedVREFDQ_A0==74 TrainedVREFDQ_A1==0 VrefDac_Margin_A0==29 DeviceVref_Margin_A0==40 VrefDac_Margin_A1==0 DeviceVref_Margin_A1==0 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004 soc_vref_reg_value 0x 00000019 0000001b 00000018 00000019 00000019 00000017 0000001b 00000016 00000017 00000019 00000019 0000001d 0000001a 0000001b 0000001b 0000001c 0000001c 00000018 0000001a 00000018 0000001d 00000019 0000001a 00000018 00000019 00000019 00000018 0000001b 0000001b 00000018 00000018 00000018 dram_vref_reg_value 0x 00000062 2D training succeed aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:53:31 auto size-- 65535DDR cs0 size: 1024MB DDR cs1 size: 0MB DMC_DDR_CTRL: 00c0002bDDR size: 1024MB cs0 DataBus test pass cs0 AddrBus test pass 100bdlr_step_size ps== 454 result report boot times 0Enable ddr reg access Load FIP HDR from SD, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0 Load BL3X from SD, src: 0x0006c200, des: 0x0175c000, size: 0x000ec000, part: 0 bl2z: ptr: 05129330, size: 00001e40 0.0;M3 CHK:0;cm4_sp_mode 0 MVN_1=0x00000000 MVN_2=0x00000000 [Image: g12a_v1.1.3390-6ac5299 2019-09-26 14:09:46 luan.yuan@droid15-sz] OPS=0x30 ring efuse init 28 0b 30 00 01 19 39 00 00 14 35 39 53 42 56 50 [0.017150 Inits done] secure task start! high task start! low task start! run into bl31 NOTICE: BL31: v1.3(release):4fc40b1 NOTICE: BL31: Built : 15:57:33, May 22 2019 NOTICE: BL31: G12A normal boot! ERROR: Error initializing runtime service opteed_fast U-Boot 2021.07-24129-g105a2deb65 (Oct 10 2021 - 15:29:12 +0800) radxa-zero Model: Radxa Zero SoC: Amlogic Meson G12A (S905Y2) Revision 28:b (30:2) DRAM: 1 GiB MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2 Loading Environment from nowhere... OK In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 Card did not respond to voltage select! : -110 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found U-Boot script /boot.scr 3260 bytes read in 1 ms (3.1 MiB/s) ## Executing script at 08000000 317 bytes read in 1 ms (309.6 KiB/s) 12383134 bytes read in 531 ms (22.2 MiB/s) 25526784 bytes read in 1092 ms (22.3 MiB/s) 72075 bytes read in 7 ms (9.8 MiB/s) 232 bytes read in 4 ms (56.6 KiB/s) Applying kernel provided DT fixup script (meson-fixup.scr) ## Executing script at 01600000 initrdsize = 0x Moving Image from 0x8080000 to 0x8200000, end=9af0000 ## Flattened Device Tree blob at 08008000 Booting using the fdt blob at 0x8008000 Loading Ramdisk to 40000000, end 40000000 ... OK Loading Device Tree to 000000003bec3000, end 000000003bf3cfff ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.10.69-2-amlogic-g981b0a3cef (root@mrs-ella) (aarch64-none-elf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #g981b0a3cef SMP PREEMPT Sun Oct 10 15:41:00 CST 2021 [ 0.000000] Machine model: Radxa Zero [ 0.000000] efi: UEFI not found. [ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'secmon@5000000': base 0x0000000005000000, size 3 MiB [ 0.000000] Reserved memory: created CMA memory pool at 0x000000002bc00000, size 256 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] NUMA: NODE_DATA [mem 0x3fda8100-0x3fda9fff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 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.1 [ 0.000000] percpu: Embedded 23 pages/cpu s56920 r8192 d29096 u94208 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048 [ 0.000000] Policy zone: DMA [ 0.000000] Kernel command line: initrd=initrd.img-5.10.69-2-amlogic-g981b0a3cef root=UUID=59a99a38-c4bc-4887-bcf8-dd93e10c4f2a rootwait rw rootfstype=ext4 console=tty1 console=ttyAML0,115200 panic=10 consoleblank=0 loglevel=7 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 [ 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] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.000000] Memory: 737048K/1048576K available (14336K kernel code, 1760K rwdata, 5452K rodata, 3264K init, 589K bss, 49384K reserved, 262144K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU event tracing is enabled. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] irq_meson_gpio: 100 to 8 gpio interrupt mux initialized [ 0.000000] random: get_random_bytes called from start_kernel+0x364/0x528 with crng_init=0 [ 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.000004] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000200] Console: colour dummy device 80x25 [ 0.000614] printk: console [tty1] enabled [ 0.000698] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000) [ 0.000723] pid_max: default: 32768 minimum: 301 [ 0.000802] LSM: Security Framework initializing [ 0.000832] Yama: becoming mindful. [ 0.000922] AppArmor: AppArmor initialized [ 0.000969] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.000989] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.002608] rcu: Hierarchical SRCU implementation. [ 0.004739] EFI services will not be available. [ 0.005068] smp: Bringing up secondary CPUs ... [ 0.005572] Detected VIPT I-cache on CPU1 [ 0.005641] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.006159] Detected VIPT I-cache on CPU2 [ 0.006189] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.006677] Detected VIPT I-cache on CPU3 [ 0.006703] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.006762] smp: Brought up 1 node, 4 CPUs [ 0.006822] SMP: Total of 4 processors activated. [ 0.006834] CPU features: detected: 32-bit EL0 Support [ 0.006846] CPU features: detected: CRC32 instructions [ 0.006858] CPU features: detected: 32-bit EL1 Support [ 0.015071] CPU: All CPU(s) started at EL2 [ 0.015134] alternatives: patching kernel code [ 0.016496] devtmpfs: initialized [ 0.027258] Registered cp15_barrier emulation handler [ 0.027295] Registered setend emulation handler [ 0.027494] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.027541] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.034134] pinctrl core: initialized pinctrl subsystem [ 0.035052] DMI not present or invalid. [ 0.035565] NET: Registered protocol family 16 [ 0.037293] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations [ 0.037404] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.037527] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.037617] audit: initializing netlink subsys (disabled) [ 0.037815] audit: type=2000 audit(0.036:1): state=initialized audit_enabled=0 res=1 [ 0.039964] thermal_sys: Registered thermal governor 'fair_share' [ 0.039975] thermal_sys: Registered thermal governor 'bang_bang' [ 0.040001] thermal_sys: Registered thermal governor 'step_wise' [ 0.040012] thermal_sys: Registered thermal governor 'user_space' [ 0.040580] cpuidle: using governor menu [ 0.040952] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.041070] ASID allocator initialised with 65536 entries [ 0.042340] Serial: AMBA PL011 UART driver [ 0.085473] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.085506] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 0.085520] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.085532] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 0.087727] cryptd: max_cpu_qlen set to 1000 [ 0.161260] raid6: neonx8 gen() 2144 MB/s [ 0.229302] raid6: neonx8 xor() 1598 MB/s [ 0.297373] raid6: neonx4 gen() 2196 MB/s [ 0.365460] raid6: neonx4 xor() 1567 MB/s [ 0.433508] raid6: neonx2 gen() 2086 MB/s [ 0.501554] raid6: neonx2 xor() 1444 MB/s [ 0.569606] raid6: neonx1 gen() 1793 MB/s [ 0.637658] raid6: neonx1 xor() 1220 MB/s [ 0.705712] raid6: int64x8 gen() 1438 MB/s [ 0.773774] raid6: int64x8 xor() 771 MB/s [ 0.841840] raid6: int64x4 gen() 1600 MB/s [ 0.909882] raid6: int64x4 xor() 823 MB/s [ 0.977931] raid6: int64x2 gen() 1399 MB/s [ 1.045983] raid6: int64x2 xor() 750 MB/s [ 1.114036] raid6: int64x1 gen() 1033 MB/s [ 1.182081] raid6: int64x1 xor() 517 MB/s [ 1.182092] raid6: using algorithm neonx4 gen() 2196 MB/s [ 1.182102] raid6: .... xor() 1567 MB/s, rmw enabled [ 1.182113] raid6: using neon recovery algorithm [ 1.182808] ACPI: Interpreter disabled. [ 1.183237] reg-fixed-voltage regulator-flash_1v8: Failed to register regulator: -517 [ 1.183611] reg-fixed-voltage regulator-vcc_1v8: Failed to register regulator: -517 [ 1.183703] reg-fixed-voltage regulator-vcc_3v3: Failed to register regulator: -517 [ 1.183842] reg-fixed-voltage regulator-vddao_1v8: Failed to register regulator: -517 [ 1.183921] VDDAO_3V3: supplied by DC_IN [ 1.184701] iommu: Default domain type: Translated [ 1.184915] vgaarb: loaded [ 1.186103] SCSI subsystem initialized [ 1.186516] usbcore: registered new interface driver usbfs [ 1.186593] usbcore: registered new interface driver hub [ 1.186671] usbcore: registered new device driver usb [ 1.187086] pps_core: LinuxPPS API ver. 1 registered [ 1.187110] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 1.187145] PTP clock support registered [ 1.187517] EDAC MC: Ver: 3.0.0 [ 1.189392] NetLabel: Initializing [ 1.189422] NetLabel: domain hash size = 128 [ 1.189431] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 1.189511] NetLabel: unlabeled traffic allowed by default [ 1.189993] clocksource: Switched to clocksource arch_sys_counter [ 1.190387] VFS: Disk quotas dquot_6.6.0 [ 1.190450] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 1.191001] AppArmor: AppArmor Filesystem Enabled [ 1.191083] pnp: PnP ACPI: disabled [ 1.198085] NET: Registered protocol family 2 [ 1.198229] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 1.198992] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear) [ 1.199078] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 1.199174] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear) [ 1.199285] TCP: Hash tables configured (established 8192 bind 8192) [ 1.199450] MPTCP token hash table entries: 1024 (order: 2, 24576 bytes, linear) [ 1.199509] UDP hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.199547] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.199704] NET: Registered protocol family 1 [ 1.199735] PCI: CLS 0 bytes, default 64 [ 1.200877] kvm [1]: IPA Size Limit: 40 bits [ 1.201819] kvm [1]: vgic interrupt IRQ9 [ 1.201941] kvm [1]: Hyp mode initialized successfully [ 1.207098] Initialise system trusted keyrings [ 1.207173] Key type blacklist registered [ 1.207311] workingset: timestamp_bits=44 max_order=18 bucket_order=0 [ 1.212090] zbud: loaded [ 1.213634] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.214331] fuse: init (API version 7.32) [ 1.215359] integrity: Platform Keyring initialized [ 1.250825] xor: measuring software checksum speed [ 1.255031] 8regs : 2363 MB/sec [ 1.258563] 32regs : 2799 MB/sec [ 1.262737] arm64_neon : 2367 MB/sec [ 1.262747] xor: using function: 32regs (2799 MB/sec) [ 1.262763] Key type asymmetric registered [ 1.262774] Asymmetric key parser 'x509' registered [ 1.262843] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 1.262988] io scheduler mq-deadline registered [ 1.263000] io scheduler kyber registered [ 1.263149] io scheduler bfq registered [ 1.270569] EINJ: ACPI disabled. [ 1.278124] soc soc0: Amlogic Meson G12A (Unknown) Revision 28:b (30:2) Detected [ 1.279955] VDDCPU: supplied by regulator-dummy [ 1.281109] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled [ 1.284263] Serial: AMBA driver [ 1.284669] ff803000.serial: ttyAML0 at MMIO 0xff803000 (irq = 21, base_baud = 1500000) is a meson_uart [ 2.304481] printk: console [ttyAML0] enabled [ 2.309877] ffd24000.serial: ttyAML2 at MMIO 0xffd24000 (irq = 26, base_baud = 1500000) is a meson_uart [ 2.318274] serial serial0: tty port ttyAML2 registered [ 2.486022] loop: module loaded [ 2.488913] libphy: Fixed MDIO Bus: probed [ 2.490703] tun: Universal TUN/TAP device driver, 1.6 [ 2.493425] thunder_xcv, ver 1.0 [ 2.495876] thunder_bgx, ver 1.0 [ 2.499034] nicpf, ver 1.0 [ 2.502239] e1000e: Intel(R) PRO/1000 Network Driver [ 2.506591] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 2.512527] igb: Intel(R) Gigabit Ethernet Network Driver [ 2.517800] igb: Copyright (c) 2007-2014 Intel Corporation. [ 2.523368] igbvf: Intel(R) Gigabit Virtual Function Network Driver [ 2.529527] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 2.535640] sky2: driver version 1.30 [ 2.539578] VFIO - User Level meta-driver version: 0.3 [ 2.545893] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 2.550617] ehci-pci: EHCI PCI platform driver [ 2.555024] ehci-platform: EHCI generic platform driver [ 2.560340] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 2.566285] ohci-pci: OHCI PCI platform driver [ 2.570722] ohci-platform: OHCI generic platform driver [ 2.576351] usbcore: registered new interface driver usb-storage [ 2.583334] mousedev: PS/2 mouse device common for all mice [ 2.587992] i2c /dev entries driver [ 2.597608] sdhci: Secure Digital Host Controller Interface driver [ 2.598177] sdhci: Copyright(c) Pierre Ossman [ 2.602727] Synopsys Designware Multimedia Card Interface Driver [ 2.609068] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.609564] meson-gx-mmc ffe05000.sd: Got CD GPIO [ 2.618770] ledtrig-cpu: registered to indicate activity on CPUs [ 2.625377] meson-sm: secure-monitor enabled [ 2.629222] hid: raw HID events driver (C) Jiri Kosina [ 2.634106] usbcore: registered new interface driver usbhid [ 2.639477] usbhid: USB HID core driver [ 2.645121] NET: Registered protocol family 10 [ 2.648358] Segment Routing with IPv6 [ 2.651464] NET: Registered protocol family 17 [ 2.655764] 8021q: 802.1Q VLAN Support v1.8 [ 2.659877] Key type dns_resolver registered [ 2.664501] registered taskstats version 1 [ 2.668119] Loading compiled-in X.509 certificates [ 2.674830] Loaded X.509 cert 'Build time autogenerated kernel key: 34811813b8a704b907ec76bad4d3b818baef1c24' [ 2.684560] zswap: loaded using pool zstd/z3fold [ 2.687504] Key type ._fscrypt registered [ 2.690031] mmc1: new high speed SDHC card at address aaaa [ 2.691250] Key type .fscrypt registered [ 2.697555] mmcblk1: mmc1:aaaa SC32G 29.7 GiB [ 2.700539] Key type fscrypt-provisioning registered [ 2.702388] Btrfs loaded, crc32c=crc32c-generic [ 2.710099] mmcblk1: p1 p2 [ 2.715074] Key type encrypted registered [ 2.721096] AppArmor: AppArmor sha1 policy hashing enabled [ 2.737826] reg-fixed-voltage regulator-flash_1v8: Failed to register regulator: -517 [ 2.740446] reg-fixed-voltage regulator-vcc_1v8: Failed to register regulator: -517 [ 2.747813] VCC_3V3: supplied by VDDAO_3V3 [ 2.752226] VCC_5V: supplied by DC_IN [ 2.755601] VDDAO_1V8: supplied by VDDAO_3V3 [ 2.762918] dwc3-meson-g12a ffe09000.usb: USB2 ports: 2 [ 2.764684] dwc3-meson-g12a ffe09000.usb: USB3 ports: 1 [ 2.773141] dwc2 ff400000.usb: supply vusb_d not found, using dummy regulator [ 2.777068] dwc2 ff400000.usb: supply vusb_a not found, using dummy regulator [ 2.784196] dwc2 ff400000.usb: EPs: 7, dedicated fifos, 712 entries in SPRAM [ 2.792452] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 2.796459] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 [ 2.804144] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228fe6c hci version 0x110 quirks 0x0000000000010010 [ 2.813368] xhci-hcd xhci-hcd.0.auto: irq 35, io mem 0xff500000 [ 2.819416] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10 [ 2.827391] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.834548] usb usb1: Product: xHCI Host Controller [ 2.839371] usb usb1: Manufacturer: Linux 5.10.69-2-amlogic-g981b0a3cef xhci-hcd [ 2.846704] usb usb1: SerialNumber: xhci-hcd.0.auto [ 2.851938] hub 1-0:1.0: USB hub found [ 2.855274] hub 1-0:1.0: 2 ports detected [ 2.859448] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 2.864660] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 [ 2.872246] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed [ 2.878744] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 2.886799] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10 [ 2.894923] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.902077] usb usb2: Product: xHCI Host Controller [ 2.906904] usb usb2: Manufacturer: Linux 5.10.69-2-amlogic-g981b0a3cef xhci-hcd [ 2.914237] usb usb2: SerialNumber: xhci-hcd.0.auto [ 2.919441] hub 2-0:1.0: USB hub found [ 2.922807] hub 2-0:1.0: 1 port detected [ 2.928711] FLASH_1V8: supplied by VCC_3V3 [ 2.929595] meson-gx-mmc ffe03000.sd: allocated mmc-pwrseq [ 2.931136] VCC_1V8: supplied by VCC_3V3 [ 2.944150] meson-gx-mmc ffe07000.mmc: allocated mmc-pwrseq [ 2.977226] Waiting for root device UUID=59a99a38-c4bc-4887-bcf8-dd93e10c4f2a... [ 2.994754] mmc2: queuing unknown CIS tuple 0x80 (2 bytes) [ 2.996860] mmc2: queuing unknown CIS tuple 0x80 (3 bytes) [ 3.002113] mmc2: queuing unknown CIS tuple 0x80 (3 bytes) [ 3.009200] mmc2: queuing unknown CIS tuple 0x80 (7 bytes) [ 3.015475] mmc2: queuing unknown CIS tuple 0x81 (9 bytes) [ 3.074027] random: fast init done [ 3.121997] usb 1-1: new high-speed USB device number 2 using xhci-hcd [ 3.130993] mmc2: new high speed SDIO card at address 0001 [ 3.271126] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.36 [ 3.273653] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 3.280727] usb 1-1: Product: USB2.0 Hub [ 3.327179] hub 1-1:1.0: USB hub found [ 3.327482] hub 1-1:1.0: 4 ports detected [ 3.618001] usb 1-1.2: new full-speed USB device number 3 using xhci-hcd [ 3.721892] usb 1-1.2: New USB device found, idVendor=0b95, idProduct=6802, bcdDevice= 0.12 [ 3.724597] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3.731838] usb 1-1.2: Product: AX68002 [ 3.735628] usb 1-1.2: Manufacturer: ASIX Electronics [ 3.740633] usb 1-1.2: SerialNumber: 00000001 [ 3.807056] hub 1-1.2:1.0: USB hub found [ 3.807541] hub 1-1.2:1.0: 7 ports detected [ 4.098001] usb 1-1.2.1: new full-speed USB device number 4 using xhci-hcd [ 4.201692] usb 1-1.2.1: New USB device found, idVendor=c0f4, idProduct=02e0, bcdDevice= 1.10 [ 4.204561] usb 1-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 4.211975] usb 1-1.2.1: Product: usb keyboard [ 4.216369] usb 1-1.2.1: Manufacturer: USB [ 4.289325] input: USB usb keyboard as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:C0F4:02E0.0001/input/input0 [ 4.358706] hid-generic 0003:C0F4:02E0.0001: input,hidraw0: USB HID v1.10 Keyboard [USB usb keyboard] on usb-xhci-hcd.0.auto-1.2.1/input0 [ 4.368709] input: USB usb keyboard Consumer Control as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.1/0003:C0F4:02E0.0002/input/input1 [ 4.442301] input: USB usb keyboard System Control as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.1/0003:C0F4:02E0.0002/input/input2 [ 4.453377] hid-generic 0003:C0F4:02E0.0002: input,hidraw1: USB HID v1.10 Device [USB usb keyboard] on usb-xhci-hcd.0.auto-1.2.1/input1 [ 4.546003] usb 1-1.2.2: new full-speed USB device number 5 using xhci-hcd [ 4.649692] usb 1-1.2.2: New USB device found, idVendor=046d, idProduct=c542, bcdDevice= 3.02 [ 4.652560] usb 1-1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 4.659974] usb 1-1.2.2: Product: Wireless Receiver [ 4.664800] usb 1-1.2.2: Manufacturer: Logitech [ 4.705752] input: Logitech Wireless Receiver Mouse as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2:1.0/0003:046D:C542.0003/input/input3 [ 4.716960] hid-generic 0003:046D:C542.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech Wireless Receiver] on usb-xhci-hcd.0.auto-1.2.2/input0 ^[[A^[[B^[[D^[[C^[[D^[[Atest test застряло ту[ 33.766010] VCC_5V: disabling тtest tstett stett[ 208.550016] random: crng init done

[ 4.716960] hid-generic 0003:046D:C542.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech Wireless Receiver] ...typing random keys [ 33.766010] VCC_5V: disabling ...typing random keys [ 208.550016] random: crng init done

stuck here, same as my early image https://github.com/MichaIng/DietPi/issues/4831#issuecomment-942571528

almirus commented 3 years ago

at the same time there is no image on the HDMI port

dhry commented 3 years ago

I don't know how to do the UART thing. I see nothing via HDMI so can't proceed further.

almirus commented 3 years ago

@dhry you need this cp2102 and connect with https://wiki.radxa.com/Zero/hardware/gpio 6,8,10 PIN

image

almirus commented 3 years ago

after restart, same ..... [ 6.440808] usb 1-1.3.2: USB disconnect, device number 6 [ 33.766046] VCC_5V: disabling [ 207.526052] random: crng init done

dhry commented 3 years ago

@dhry you need this cp2102 and connect with https://wiki.radxa.com/Zero/hardware/gpio 6,8,10 PIN

I don't have any of that, so I'll have to stand by until the HDMI is working and I can see what's happening via my monitor.

MichaIng commented 3 years ago

stuck here, same as my early image

Hmm quite confusing since bootloader, kernel, device tree and firmware are all untouched. The only thing that is automatically rebuilt is the initramfs. Since I don't see any systemd call in our outputs, entropy daemons have not yet a chance to fix it, so it seems to be something with the initial entropy seed. Not 100% sure but I guess this can be affected by the initramfs as well, depending on which modules are loaded.

I will extract the initrd.img- file from the original Radxa image and upload it. You can easily replace it on your images as the boot partition is FAT and can hence be accessed from Windows and macOS hosts easily. Actually the initramfs-tools should add a large amount of modules by default, and I cannot imaging that Radxa added additional ones only for the single initramfs build without changing the config file to have this done as well for all future builds, but we should rule it out. Probably it is also a change in the newer initramfs-tools on Bullseye which cause the issue.

MichaIng commented 3 years ago

I think I found it: There is a custom script invoked on initramfs build which calculates its size and adjusts /boot/uEnv.txt accordingly which is loaded then by the bootloader. I never saw something like this and I guess without applying this size explicitly (in boot.cmd/boot.scr) it would work as well, but when applying a wrong (too small) size, then it will most likely fail. And since this script uses bc (command line calculator), which is not by default installed on DietPi, it fails.

As a quick test for you both: Could you download the uEnv.txt and initrd.img- from https://dietpi.com/downloads/ and replace the ones in the boot partition of your Radxa Zero image?

I also updated the image (linked above) with those two files, so that initramfs size and actual image match. If this indeed solves the issue, I'll make this persistent by installing bc into the image for future initramfs updates. You should do the same if and once booted:

apt install bc
almirus commented 3 years ago

@MichaIng success!

G12A:BL:0253b8:61aa2d;FEAT:E0F83180:2000;POC:F;RCY:0;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;0.0 bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0001 - pwm id 0x00 bl2_stage_init 0xc0 bl2_stage_init 0x02 no sdio debug board detected L0:00000000 L1:00000703 L2:00008067 L3:04000000 S1:00000000 B2:00002000 B1:e0f83180 TE: 255067 BL2 Built : 15:21:48, Aug 28 2019. g12a g1bf2b53 - luan.yuan@droid15-sz Board ID = 2 Set cpu clk to 24M Set clk81 to 24M CPU clk: 1200 MHz Set clk81 to 166.6M DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:21:45 board id: 2 Load FIP HDR from SD, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0 fw parse done Load ddrfw from SD, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0 Load ddrfw from SD, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0 PIEI prepare done fastboot data load fastboot data verify verify result: 266 Cfg max: 2, cur: 1. Board id: 255. Force loop cfg LPDDR4 probe ddr clk to 792MHz Load ddrfw from SD, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0 dmc_version 0000 Check phy result INFO : ERROR : Training has failed! 1D training failed Cfg max: 2, cur: 2. Board id: 255. Force loop cfg LPDDR4 probe ddr clk to 792MHz Load ddrfw from SD, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0 dmc_version 0000 Check phy result INFO : End of CA training INFO : End of initialization INFO : Training has run successfully! Check phy result INFO : End of initialization INFO : End of read enable training INFO : End of fine write leveling INFO : End of Write leveling coarse delay INFO : Training has run successfully! Check phy result INFO : End of initialization INFO : End of read dq deskew training INFO : End of MPR read delay center optimization INFO : End of write delay center optimization INFO : End of read delay center optimization INFO : End of max read latency training INFO : Training has run successfully! 1D training succeed Load ddrfw from SD, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part: 0 Check phy result INFO : End of initialization INFO : End of 2D read delay Voltage center optimization INFO : End of 2D read delay Voltage center optimization INFO : End of 2D write delay Voltage center optimization INFO : End of 2D write delay Voltage center optimization INFO : Training has run successfully! channel==0 RxClkDly_Margin_A0==256 ps 13 TxDqDly_Margin_A0==256 ps 13 RxClkDly_Margin_A1==0 ps 0 TxDqDly_Margin_A1==0 ps 0 TrainedVREFDQ_A0==74 TrainedVREFDQ_A1==0 VrefDac_Margin_A0==29 DeviceVref_Margin_A0==40 VrefDac_Margin_A1==0 DeviceVref_Margin_A1==0 channel==1 RxClkDly_Margin_A0==216 ps 11 TxDqDly_Margin_A0==256 ps 13 RxClkDly_Margin_A1==0 ps 0 TxDqDly_Margin_A1==0 ps 0 TrainedVREFDQ_A0==74 TrainedVREFDQ_A1==0 VrefDac_Margin_A0==29 DeviceVref_Margin_A0==40 VrefDac_Margin_A1==0 DeviceVref_Margin_A1==0 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004 soc_vref_reg_value 0x 00000019 0000001b 00000018 00000019 00000019 00000017 0000001b 00000017 00000017 00000019 00000019 0000001d 0000001b 0000001a 0000001b 0000001c 0000001b 00000018 0000001a 00000018 0000001b 00000019 00000019 00000018 00000019 00000019 00000018 0000001b 0000001b 00000018 00000018 00000017 dram_vref_reg_value 0x 00000063 2D training succeed aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:53:31 auto size-- 65535DDR cs0 size: 1024MB DDR cs1 size: 0MB DMC_DDR_CTRL: 00c0002bDDR size: 1024MB cs0 DataBus test pass cs0 AddrBus test pass 100bdlr_step_size ps== 447 result report boot times 0Enable ddr reg access Load FIP HDR from SD, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0 Load BL3X from SD, src: 0x0006c200, des: 0x0175c000, size: 0x000ec000, part: 0 bl2z: ptr: 05129330, size: 00001e40 0.0;M3 CHK:0;cm4_sp_mode 0 MVN_1=0x00000000 MVN_2=0x00000000 [Image: g12a_v1.1.3390-6ac5299 2019-09-26 14:09:46 luan.yuan@droid15-sz] OPS=0x30 ring efuse init 28 0b 30 00 01 19 39 00 00 14 35 39 53 42 56 50 [0.017149 Inits done] secure task start! high task start! low task start! run into bl31 NOTICE: BL31: v1.3(release):4fc40b1 NOTICE: BL31: Built : 15:57:33, May 22 2019 NOTICE: BL31: G12A normal boot! ERROR: Error initializing runtime service opteed_fast U-Boot 2021.07-24129-g105a2deb65 (Oct 10 2021 - 15:29:12 +0800) radxa-zero Model: Radxa Zero SoC: Amlogic Meson G12A (S905Y2) Revision 28:b (30:2) DRAM: 1 GiB MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2 Loading Environment from nowhere... OK In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 Card did not respond to voltage select! : -110 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found U-Boot script /boot.scr 3260 bytes read in 1 ms (3.1 MiB/s) ## Executing script at 08000000 323 bytes read in 1 ms (315.4 KiB/s) 12196651 bytes read in 522 ms (22.3 MiB/s) 25526784 bytes read in 1092 ms (22.3 MiB/s) 72075 bytes read in 7 ms (9.8 MiB/s) 232 bytes read in 5 ms (44.9 KiB/s) Applying kernel provided DT fixup script (meson-fixup.scr) ## Executing script at 01600000 initrdsize = 0xba1b2b Moving Image from 0x8080000 to 0x8200000, end=9af0000 ## Flattened Device Tree blob at 08008000 Booting using the fdt blob at 0x8008000 Loading Ramdisk to 3b39b000, end 3bf3cb2b ... OK Loading Device Tree to 000000003b321000, end 000000003b39afff ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.10.69-2-amlogic-g981b0a3cef (root@mrs-ella) (aarch64-none-elf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #g981b0a3cef SMP PREEMPT Sun Oct 10 15:41:00 CST 2021 [ 0.000000] Machine model: Radxa Zero [ 0.000000] efi: UEFI not found. [ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'secmon@5000000': base 0x0000000005000000, size 3 MiB [ 0.000000] Reserved memory: created CMA memory pool at 0x000000002b000000, size 256 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] NUMA: NODE_DATA [mem 0x3fda8100-0x3fda9fff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 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.1 [ 0.000000] percpu: Embedded 23 pages/cpu s56920 r8192 d29096 u94208 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048 [ 0.000000] Policy zone: DMA [ 0.000000] Kernel command line: initrd=initrd.img-5.10.69-2-amlogic-g981b0a3cef root=UUID=59a99a38-c4bc-4887-bcf8-dd93e10c4f2a rootwait rw rootfstype=ext4 console=tty1 console=ttyAML0,115200 panic=10 consoleblank=0 loglevel=7 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 [ 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] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.000000] Memory: 725136K/1048576K available (14336K kernel code, 1760K rwdata, 5452K rodata, 3264K init, 589K bss, 61296K reserved, 262144K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU event tracing is enabled. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] irq_meson_gpio: 100 to 8 gpio interrupt mux initialized [ 0.000000] random: get_random_bytes called from start_kernel+0x364/0x528 with crng_init=0 [ 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.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000201] Console: colour dummy device 80x25 [ 0.000614] printk: console [tty1] enabled [ 0.000701] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000) [ 0.000725] pid_max: default: 32768 minimum: 301 [ 0.000806] LSM: Security Framework initializing [ 0.000836] Yama: becoming mindful. [ 0.000928] AppArmor: AppArmor initialized [ 0.000975] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.000995] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.002605] rcu: Hierarchical SRCU implementation. [ 0.004693] EFI services will not be available. [ 0.005026] smp: Bringing up secondary CPUs ... [ 0.005531] Detected VIPT I-cache on CPU1 [ 0.005599] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.006124] Detected VIPT I-cache on CPU2 [ 0.006154] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.006637] Detected VIPT I-cache on CPU3 [ 0.006664] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.006722] smp: Brought up 1 node, 4 CPUs [ 0.006782] SMP: Total of 4 processors activated. [ 0.006793] CPU features: detected: 32-bit EL0 Support [ 0.006806] CPU features: detected: CRC32 instructions [ 0.006818] CPU features: detected: 32-bit EL1 Support [ 0.015043] CPU: All CPU(s) started at EL2 [ 0.015108] alternatives: patching kernel code [ 0.016465] devtmpfs: initialized [ 0.027216] Registered cp15_barrier emulation handler [ 0.027253] Registered setend emulation handler [ 0.027453] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.027501] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.034102] pinctrl core: initialized pinctrl subsystem [ 0.034997] DMI not present or invalid. [ 0.035496] NET: Registered protocol family 16 [ 0.037076] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations [ 0.037191] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.037313] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.037406] audit: initializing netlink subsys (disabled) [ 0.037584] audit: type=2000 audit(0.036:1): state=initialized audit_enabled=0 res=1 [ 0.039252] thermal_sys: Registered thermal governor 'fair_share' [ 0.039262] thermal_sys: Registered thermal governor 'bang_bang' [ 0.039289] thermal_sys: Registered thermal governor 'step_wise' [ 0.039302] thermal_sys: Registered thermal governor 'user_space' [ 0.039962] cpuidle: using governor menu [ 0.040343] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.040451] ASID allocator initialised with 65536 entries [ 0.041830] Serial: AMBA PL011 UART driver [ 0.084996] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.085030] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 0.085043] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.085056] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 0.088042] cryptd: max_cpu_qlen set to 1000 [ 0.161211] raid6: neonx8 gen() 2138 MB/s [ 0.229255] raid6: neonx8 xor() 1596 MB/s [ 0.297327] raid6: neonx4 gen() 2196 MB/s [ 0.365399] raid6: neonx4 xor() 1565 MB/s [ 0.433486] raid6: neonx2 gen() 2086 MB/s [ 0.501541] raid6: neonx2 xor() 1439 MB/s [ 0.569620] raid6: neonx1 gen() 1793 MB/s [ 0.637687] raid6: neonx1 xor() 1220 MB/s [ 0.705766] raid6: int64x8 gen() 1438 MB/s [ 0.773825] raid6: int64x8 xor() 771 MB/s [ 0.841940] raid6: int64x4 gen() 1599 MB/s [ 0.909963] raid6: int64x4 xor() 817 MB/s [ 0.978044] raid6: int64x2 gen() 1398 MB/s [ 1.046111] raid6: int64x2 xor() 749 MB/s [ 1.114190] raid6: int64x1 gen() 1033 MB/s [ 1.182249] raid6: int64x1 xor() 517 MB/s [ 1.182260] raid6: using algorithm neonx4 gen() 2196 MB/s [ 1.182270] raid6: .... xor() 1565 MB/s, rmw enabled [ 1.182282] raid6: using neon recovery algorithm [ 1.182933] ACPI: Interpreter disabled. [ 1.183350] reg-fixed-voltage regulator-flash_1v8: Failed to register regulator: -517 [ 1.183703] reg-fixed-voltage regulator-vcc_1v8: Failed to register regulator: -517 [ 1.183795] reg-fixed-voltage regulator-vcc_3v3: Failed to register regulator: -517 [ 1.183933] reg-fixed-voltage regulator-vddao_1v8: Failed to register regulator: -517 [ 1.184013] VDDAO_3V3: supplied by DC_IN [ 1.184823] iommu: Default domain type: Translated [ 1.185025] vgaarb: loaded [ 1.186604] SCSI subsystem initialized [ 1.187148] usbcore: registered new interface driver usbfs [ 1.187217] usbcore: registered new interface driver hub [ 1.187273] usbcore: registered new device driver usb [ 1.187818] pps_core: LinuxPPS API ver. 1 registered [ 1.187841] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 1.187877] PTP clock support registered [ 1.188208] EDAC MC: Ver: 3.0.0 [ 1.190185] NetLabel: Initializing [ 1.190215] NetLabel: domain hash size = 128 [ 1.190224] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 1.190291] NetLabel: unlabeled traffic allowed by default [ 1.190786] clocksource: Switched to clocksource arch_sys_counter [ 1.191117] VFS: Disk quotas dquot_6.6.0 [ 1.191184] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 1.191764] AppArmor: AppArmor Filesystem Enabled [ 1.191849] pnp: PnP ACPI: disabled [ 1.198825] NET: Registered protocol family 2 [ 1.198976] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 1.199752] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear) [ 1.199836] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 1.199933] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear) [ 1.200044] TCP: Hash tables configured (established 8192 bind 8192) [ 1.200208] MPTCP token hash table entries: 1024 (order: 2, 24576 bytes, linear) [ 1.200268] UDP hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.200307] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.200449] NET: Registered protocol family 1 [ 1.200485] PCI: CLS 0 bytes, default 64 [ 1.200717] Trying to unpack rootfs image as initramfs... [ 1.740844] Freeing initrd memory: 11908K [ 1.741839] kvm [1]: IPA Size Limit: 40 bits [ 1.742849] kvm [1]: vgic interrupt IRQ9 [ 1.742983] kvm [1]: Hyp mode initialized successfully [ 1.748106] Initialise system trusted keyrings [ 1.748179] Key type blacklist registered [ 1.748312] workingset: timestamp_bits=44 max_order=18 bucket_order=0 [ 1.753067] zbud: loaded [ 1.754571] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.755254] fuse: init (API version 7.32) [ 1.756320] integrity: Platform Keyring initialized [ 1.792343] xor: measuring software checksum speed [ 1.796544] 8regs : 2363 MB/sec [ 1.800077] 32regs : 2799 MB/sec [ 1.804251] arm64_neon : 2367 MB/sec [ 1.804261] xor: using function: 32regs (2799 MB/sec) [ 1.804277] Key type asymmetric registered [ 1.804288] Asymmetric key parser 'x509' registered [ 1.804349] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 1.804476] io scheduler mq-deadline registered [ 1.804489] io scheduler kyber registered [ 1.804623] io scheduler bfq registered [ 1.812427] EINJ: ACPI disabled. [ 1.820059] soc soc0: Amlogic Meson G12A (Unknown) Revision 28:b (30:2) Detected [ 1.821904] VDDCPU: supplied by regulator-dummy [ 1.823151] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled [ 1.826248] Serial: AMBA driver [ 1.826656] ff803000.serial: ttyAML0 at MMIO 0xff803000 (irq = 21, base_baud = 1500000) is a meson_uart [ 2.855784] printk: console [ttyAML0] enabled [ 2.861133] ffd24000.serial: ttyAML2 at MMIO 0xffd24000 (irq = 26, base_baud = 1500000) is a meson_uart [ 2.869587] serial serial0: tty port ttyAML2 registered [ 3.034818] loop: module loaded [ 3.037641] libphy: Fixed MDIO Bus: probed [ 3.039479] tun: Universal TUN/TAP device driver, 1.6 [ 3.042254] thunder_xcv, ver 1.0 [ 3.044680] thunder_bgx, ver 1.0 [ 3.047837] nicpf, ver 1.0 [ 3.051066] e1000e: Intel(R) PRO/1000 Network Driver [ 3.055396] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 3.061346] igb: Intel(R) Gigabit Ethernet Network Driver [ 3.066599] igb: Copyright (c) 2007-2014 Intel Corporation. [ 3.072162] igbvf: Intel(R) Gigabit Virtual Function Network Driver [ 3.078326] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 3.084436] sky2: driver version 1.30 [ 3.088332] VFIO - User Level meta-driver version: 0.3 [ 3.094721] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.099423] ehci-pci: EHCI PCI platform driver [ 3.103828] ehci-platform: EHCI generic platform driver [ 3.109151] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 3.115086] ohci-pci: OHCI PCI platform driver [ 3.119522] ohci-platform: OHCI generic platform driver [ 3.125209] usbcore: registered new interface driver usb-storage [ 3.132159] mousedev: PS/2 mouse device common for all mice [ 3.136820] i2c /dev entries driver [ 3.146442] sdhci: Secure Digital Host Controller Interface driver [ 3.147023] sdhci: Copyright(c) Pierre Ossman [ 3.151667] Synopsys Designware Multimedia Card Interface Driver [ 3.157972] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.158469] meson-gx-mmc ffe05000.sd: Got CD GPIO [ 3.167862] ledtrig-cpu: registered to indicate activity on CPUs [ 3.174272] meson-sm: secure-monitor enabled [ 3.178046] hid: raw HID events driver (C) Jiri Kosina [ 3.182937] usbcore: registered new interface driver usbhid [ 3.188333] usbhid: USB HID core driver [ 3.193905] NET: Registered protocol family 10 [ 3.197221] Segment Routing with IPv6 [ 3.200286] NET: Registered protocol family 17 [ 3.204605] 8021q: 802.1Q VLAN Support v1.8 [ 3.208716] Key type dns_resolver registered [ 3.213349] registered taskstats version 1 [ 3.216954] Loading compiled-in X.509 certificates [ 3.223687] Loaded X.509 cert 'Build time autogenerated kernel key: 34811813b8a704b907ec76bad4d3b818baef1c24' [ 3.233365] zswap: loaded using pool zstd/z3fold [ 3.236345] Key type ._fscrypt registered [ 3.239115] mmc1: new high speed SDHC card at address aaaa [ 3.240061] Key type .fscrypt registered [ 3.246421] mmcblk1: mmc1:aaaa SC32G 29.7 GiB [ 3.249373] Key type fscrypt-provisioning registered [ 3.251188] Btrfs loaded, crc32c=crc32c-generic [ 3.258957] mmcblk1: p1 p2 [ 3.275613] Key type encrypted registered [ 3.275662] AppArmor: AppArmor sha1 policy hashing enabled [ 3.290768] reg-fixed-voltage regulator-flash_1v8: Failed to register regulator: -517 [ 3.293410] reg-fixed-voltage regulator-vcc_1v8: Failed to register regulator: -517 [ 3.300969] VCC_3V3: supplied by VDDAO_3V3 [ 3.305119] VCC_5V: supplied by DC_IN [ 3.308461] VDDAO_1V8: supplied by VDDAO_3V3 [ 3.315280] dwc3-meson-g12a ffe09000.usb: USB2 ports: 2 [ 3.317661] dwc3-meson-g12a ffe09000.usb: USB3 ports: 1 [ 3.325955] dwc2 ff400000.usb: supply vusb_d not found, using dummy regulator [ 3.330007] dwc2 ff400000.usb: supply vusb_a not found, using dummy regulator [ 3.337229] dwc2 ff400000.usb: EPs: 7, dedicated fifos, 712 entries in SPRAM [ 3.345196] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 3.349490] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 [ 3.357122] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228fe6c hci version 0x110 quirks 0x0000000000010010 [ 3.366346] xhci-hcd xhci-hcd.0.auto: irq 35, io mem 0xff500000 [ 3.372365] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10 [ 3.380368] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.387520] usb usb1: Product: xHCI Host Controller [ 3.392347] usb usb1: Manufacturer: Linux 5.10.69-2-amlogic-g981b0a3cef xhci-hcd [ 3.399680] usb usb1: SerialNumber: xhci-hcd.0.auto [ 3.404947] hub 1-0:1.0: USB hub found [ 3.408250] hub 1-0:1.0: 2 ports detected [ 3.412423] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 3.417634] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 [ 3.425222] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed [ 3.431734] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 3.439770] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10 [ 3.447904] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.455055] usb usb2: Product: xHCI Host Controller [ 3.459882] usb usb2: Manufacturer: Linux 5.10.69-2-amlogic-g981b0a3cef xhci-hcd [ 3.467215] usb usb2: SerialNumber: xhci-hcd.0.auto [ 3.472418] hub 2-0:1.0: USB hub found [ 3.475779] hub 2-0:1.0: 1 port detected [ 3.480974] FLASH_1V8: supplied by VCC_3V3 [ 3.481855] meson-gx-mmc ffe03000.sd: allocated mmc-pwrseq [ 3.484206] VCC_1V8: supplied by VCC_3V3 [ 3.495377] meson-gx-mmc ffe07000.mmc: allocated mmc-pwrseq [ 3.528154] Freeing unused kernel memory: 3264K [ 3.547402] mmc2: queuing unknown CIS tuple 0x80 (2 bytes) [ 3.549515] mmc2: queuing unknown CIS tuple 0x80 (3 bytes) [ 3.552847] Run /init as init process [ 3.554782] mmc2: queuing unknown CIS tuple 0x80 (3 bytes) [ 3.565496] mmc2: queuing unknown CIS tuple 0x80 (7 bytes) Loading, please wait... [ 3.571792] mmc2: queuing unknown CIS tuple 0x81 (9 bytes) Starting version 241 [ 3.636600] random: fast init done [ 3.670827] usb 1-1: new high-speed USB device number 2 using xhci-hcd [ 3.701564] mmc2: new high speed SDIO card at address 0001 [ 3.820018] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.36 [ 3.821430] meson-vrtc ff8000a8.rtc: registered as rtc0 [ 3.822562] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 3.834849] meson-vrtc ff8000a8.rtc: setting system clock to 1970-01-01T00:00:03 UTC (3) [ 3.844090] usb 1-1: Product: USB2.0 Hub [ 3.880214] hub 1-1:1.0: USB hub found [ 3.880547] hub 1-1:1.0: 4 ports detected Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Warning: fsck not present, so skipping root file system [ 4.120091] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. [ 4.174845] usb 1-1.2: new full-speed USB device number 3 using xhci-hcd [ 4.278871] usb 1-1.2: New USB device found, idVendor=0b95, idProduct=6802, bcdDevice= 0.12 [ 4.281617] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4.288860] usb 1-1.2: Product: AX68002 [ 4.292622] usb 1-1.2: Manufacturer: ASIX Electronics [ 4.297658] usb 1-1.2: SerialNumber: 00000001 [ 4.360119] hub 1-1.2:1.0: USB hub found [ 4.360618] hub 1-1.2:1.0: 7 ports detected [ 4.650816] usb 1-1.2.1: new full-speed USB device number 4 using xhci-hcd [ 4.758426] usb 1-1.2.1: New USB device found, idVendor=c0f4, idProduct=02e0, bcdDevice= 1.10 [ 4.761363] usb 1-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 4.768737] usb 1-1.2.1: Product: usb keyboard [ 4.768756] systemd[1]: System time before build time, advancing clock. [ 4.773116] usb 1-1.2.1: Manufacturer: USB [ 4.842277] input: USB usb keyboard as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/0003:C0F4:02E0.0001/input/input0 [ 4.870211] systemd[1]: Inserted module 'autofs4' [ 4.911252] hid-generic 0003:C0F4:02E0.0001: input,hidraw0: USB HID v1.10 Keyboard [USB usb keyboard] on usb-xhci-hcd.0.auto-1.2.1/input0 [ 4.921310] input: USB usb keyboard Consumer Control as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.1/0003:C0F4:02E0.0002/input/input1 [ 4.955303] systemd[1]: systemd 247.3-6 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified) [ 4.972261] systemd[1]: Detected architecture arm64. [ 4.991077] input: USB usb keyboard System Control as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.1/0003:C0F4:02E0.0002/input/input2 [ 5.002119] hid-generic 0003:C0F4:02E0.0002: input,hidraw1: USB HID v1.10 Device [USB usb keyboard] on usb-xhci-hcd.0.auto-1.2.1/input1 Welcome to Debian GNU/Linux 11 (bullseye)! [ 5.034066] systemd[1]: Set hostname to . [ 5.094879] usb 1-1.2.2: new full-speed USB device number 5 using xhci-hcd [ 5.202389] usb 1-1.2.2: New USB device found, idVendor=046d, idProduct=c542, bcdDevice= 3.02 [ 5.205295] usb 1-1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 5.212712] usb 1-1.2.2: Product: Wireless Receiver [ 5.217519] usb 1-1.2.2: Manufacturer: Logitech [ 5.259060] input: Logitech Wireless Receiver Mouse as /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2:1.0/0003:046D:C542.0003/input/input3 [ 5.270261] hid-generic 0003:046D:C542.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech Wireless Receiver] on usb-xhci-hcd.0.auto-1.2.2/input0 [ 5.465215] systemd[1]: Queued start job for default target Graphical Interface. [ 5.467890] random: systemd: uninitialized urandom read (16 bytes read) [ 5.475556] systemd[1]: Created slice system-getty.slice. [ OK ] Created slice system-getty.slice. [ 5.494917] random: systemd: uninitialized urandom read (16 bytes read) [ 5.496825] systemd[1]: Created slice system-modprobe.slice. [ OK ] Created slice system-modprobe.slice. [ 5.518895] random: systemd: uninitialized urandom read (16 bytes read) [ 5.521020] systemd[1]: Created slice system-serial\x2dgetty.slice. [ OK ] Created slice system-serial\x2dgetty.slice. [ 5.543775] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ OK ] Created slice system-systemd\x2dfsck.slice. [ 5.563136] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ OK ] Started Dispatch Password …ts to Console Directory Watch. [ 5.583014] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ OK ] Started Forward Password R…uests to Wall Directory Watch. [ 5.603394] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ OK ] Set up automount Arbitrary…s File System Automount Point. [ 5.626993] systemd[1]: Reached target Local Encrypted Volumes. [ OK ] Reached target Local Encrypted Volumes. [ 5.646951] systemd[1]: Reached target Paths. [ OK ] Reached target Paths. [ 5.662864] systemd[1]: Reached target Remote File Systems. [ OK ] Reached target Remote File Systems. [ 5.682856] systemd[1]: Reached target Slices. [ OK ] Reached target Slices. [ 5.699383] systemd[1]: Listening on fsck to fsckd communication Socket. [ OK ] Listening on fsck to fsckd communication Socket. [ 5.719088] systemd[1]: Listening on initctl Compatibility Named Pipe. [ OK ] Listening on initctl Compatibility Named Pipe. [ 5.739475] systemd[1]: Listening on Journal Audit Socket. [ OK ] Listening on Journal Audit Socket. [ 5.759274] systemd[1]: Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket (/dev/log). [ 5.779314] systemd[1]: Listening on Journal Socket. [ OK ] Listening on Journal Socket. [ 5.798170] systemd[1]: Listening on udev Control Socket. [ OK ] Listening on udev Control Socket. [ 5.815283] systemd[1]: Listening on udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. [ 5.830909] systemd[1]: Reached target Sockets. [ OK ] Reached target Sockets. [ 5.849479] systemd[1]: Mounting Huge Pages File System... Mounting Huge Pages File System... [ 5.869567] systemd[1]: Mounting POSIX Message Queue File System... Mounting POSIX Message Queue File System... [ 5.889889] systemd[1]: Mounting Kernel Debug File System... Mounting Kernel Debug File System... [ 5.907252] systemd[1]: Condition check resulted in Kernel Trace File System being skipped. [ 5.915890] systemd[1]: Starting Restore / save the current clock... Starting Restore / save the current clock... [ 5.938236] systemd[1]: Starting Set the console keyboard layout... Starting Set the console keyboard layout... [ 5.962029] systemd[1]: Starting Create list of static device nodes for the current kernel... Starting Create list of st…odes for the current kernel... [ 5.986270] systemd[1]: Starting Load Kernel Module configfs... Starting Load Kernel Module configfs... [ 6.006126] systemd[1]: Starting Load Kernel Module fuse... Starting Load Kernel Module fuse... [ 6.026624] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped. [ 6.030270] systemd[1]: Condition check resulted in File System Check on Root Device being skipped. [ 6.043773] systemd[1]: Starting Journal Service... Starting Journal Service... [ 6.066669] systemd[1]: Starting Load Kernel Modules... Starting Load Kernel Modules... [ 6.086418] systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems... [ 6.106144] systemd[1]: Starting Coldplug All udev Devices... Starting Coldplug All udev Devices... [ 6.117152] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null) [ 6.128202] systemd[1]: Mounted Huge Pages File System. [ OK ] Mounted Huge Pages File System. [ 6.143516] systemd[1]: Mounted POSIX Message Queue File System. [ OK ] Mounted POSIX Message Queue File System. [ 6.163627] systemd[1]: Mounted Kernel Debug File System. [ OK ] Mounted Kernel Debug File System. [ 6.179344] systemd[1]: Started Journal Service. [ OK ] Started Journal Service. [ OK ] Finished Restore / save the current clock. [ OK ] Finished Set the console keyboard layout. [ OK ] Finished Create list of st… nodes for the current kernel. [ OK ] Finished Load Kernel Module configfs. [ OK ] Finished Load Kernel Module fuse. [ OK ] Finished Load Kernel Modules. [ OK ] Finished Remount Root and Kernel File Systems. Mounting FUSE Control File System... Mounting Kernel Configuration File System... Starting DietPi-FS_partition_resize... Starting Load/Save Random Seed... Starting Apply Kernel Variables... Starting Create System Users... [ OK ] Mounted FUSE Control File System. [ OK ] Mounted Kernel Configuration File System. [ OK ] Finished Apply Kernel Variables. [ OK ] Finished Create System Users. Starting Create Static Device Nodes in /dev... [ OK ] Finished Coldplug All udev Devices. Starting Helper to synchronize boot up for ifupdown... [ OK ] Finished Helper to synchronize boot up for ifupdown. [ OK ] Finished Create Static Device Nodes in /dev. Starting Rule-based Manage…for Device Events and Files... Removed /etc/systemd/system/local-fs.target.wants/dietpi-fs_partition_resize.service. [ OK ] Started Rule-based Manager for Device Events and Files. [ 7.042200] mc: Linux media interface: v0.10 [ 7.125483] videodev: Linux video capture interface: v2.00 [ 7.127723] meson-drm ff900000.vpu: Queued 2 outputs on vpu [ 7.174343] meson-drm ff900000.vpu: CVBS Output connector not available [ OK ] Found device /dev/ttyAML0. [ 7.202907] meson-dw-hdmi ff600000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy) [ 7.211593] meson-dw-hdmi ff600000.hdmi-tx: registered DesignWare HDMI I2C bus driver [ 7.218177] meson-drm ff900000.vpu: bound ff600000.hdmi-tx (ops meson_dw_hdmi_ops [meson_dw_hdmi]) [ 7.227942] [drm] Initialized meson 1.0.0 20161109 for ff900000.vpu on minor 0 [ 7.349986] panfrost ffe40000.gpu: clock rate = 24000000 [ 7.350066] panfrost ffe40000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19 [ 7.351042] panfrost ffe40000.gpu: mali-g31 id 0x7093 major 0x0 minor 0x0 status 0x0 [ 7.351050] panfrost ffe40000.gpu: features: 00000000,3fde77ff, issues: 00000000,00000400 [ 7.351054] panfrost ffe40000.gpu: Features: L2:0x07100206 Shader:0x00000000 Tiler:0x00000209 Mem:0x1 MMU:0x00002821 AS:0xff JS:0x7 [ 7.351057] panfrost ffe40000.gpu: shader_present=0x1 l2_present=0x1 [ 7.360604] [drm] Initialized panfrost 1.1.0 20180908 for ffe40000.gpu on minor 1 Disk /dev/mm[ 7.371766] meson_vdec: module is from the staging directory, the quality is unknown, you have been warned. cb[ 7.399663] Console: switching to colour frame buffer device 128x48 [ 7.488816] meson-drm ff900000.vpu: [drm] fb0: mesondrmfb frame buffer device lk1: 29.72 GiB, 31914983424 bytes, 62333952 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: 0xd9636b01 Old situation: Device Boot Start End Sectors Size Id Type /dev/mmcblk1p1 * 32768 1081343 1048576 512M ef EFI (FAT-12/16/32) /dev/mmcblk1p2 1081344 2048631 967288 472.3M 83 Linux /dev/mmcblk1p2: New situation: Disklabel type: dos Disk identifier: 0xd9636b01 Device Boot Start End Sectors Size Id Type /dev/mmcblk1p1 * 32768 1081343 1048576 512M ef EFI (FAT-12/16/32) /dev/mmcblk1p2 1081344 62333951 61252608 29.2G 83 Linux The partition table has been altered. [ OK ] Reached target Hardw[ 7.569064] cfg80211: Loading compiled-in X.509 certificates for regulatory database are activated USB gadget. [ 7.578936] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 7.602192] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid [ 7.707340] brcmfmac: brcmf_of_probe: interrupt could not be mapped [ OK ] Found device /dev/disk/by-uuid/DFA8-81C0 7.715042] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 m. [ 7.730514] usbcore: registered new interface driver brcmfmac [ OK ] Listening on Load/Save RF …itch Status /dev/rfkill Watch. [ 7.749964] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.radxa,zero.txt failed with error -2 [ OK ] Reached target Sound Card. resize2fs 1.46.2 (28-Feb-2021) [ 7.948098] EXT4-fs (mmcblk1p2): resizing filesystem from 120911 to 7656576 blocks [ 7.986901] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 7.990162] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available [ 8.010925] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Mar 30 2016 11:30:56 version 7.45.77.h8.4 FWID 01-ee8a6268 Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ 8.462810] random: crng init done [ 8.466052] random: 7 urandom warning(s) missed due to ratelimiting [ OK ] Finished Load/Save Random Seed. [ 9.343301] EXT4-fs (mmcblk1p2): resized filesystem to 7656576 Filesystem at /dev/mmcblk1p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 4 The filesystem on /dev/mmcblk1p2 is now 7656576 (4k) blocks long. [ OK ] Finished DietPi-FS_partition_resize. [ OK ] Reached target Local File Systems (Pre). [ OK ] Reached target Swap. Mounting /tmp... Mounting /var/log... Starting File System Check…/dev/disk/by-uuid/DFA8-81C0... [ OK ] Mounted /tmp. [ OK ] Mounted /var/log. [ OK ] Started File System Check Daemon to report status. Starting Flush Journal to Persistent Storage... [ 9.788539] systemd-journald[1453]: Received client request to flush runtime journal. [ OK ] Finished Flush Journal to Persistent Storage. [ OK ] Finished File System Check…n /dev/disk/by-uuid/DFA8-81C0. Mounting /boot... [ OK ] Mounted /boot. [ OK ] Reached target Local File Systems. Starting Set console font and keymap... Starting Create Volatile Files and Directories... [ OK ] Started vmtouch. [ OK ] Finished Set console font and keymap. [ OK ] Finished Create Volatile Files and Directories. Starting Network Time Synchronization... Starting Update UTMP about System Boot/Shutdown... [ OK ] Finished Update UTMP about System Boot/Shutdown. [ OK ] Started Network Time Synchronization. [ OK ] Reached target System Initialization. [ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Reached target Basic System. [ OK ] Reached target System Time Set. [ OK ] Reached target System Time Synchronized. [ OK ] Started Discard unused blocks once a week. [ OK ] Reached target Timers. Starting DietPi-RAMlog... Starting LSB: Lightweight SSH server... [ OK ] Started Start entropy gathering daemon (rngd). [ OK ] Finished DietPi-RAMlog. Starting DietPi-PreBoot... [ OK ] Started LSB: Lightweight SSH server. [ 10.555304] DietPi-PreBoot[1590]: DietPi-CPU_set [ 10.564485] DietPi-PreBoot[1590]: ───────────────────────────────────────────────────── [ 10.588565] DietPi-PreBoot[1590]: Mode: Applying CPU governor settings: schedutil [ 10.605488] DietPi-PreBoot[1590]: [ INFO ] DietPi-CPU_set | Setting CPU frequency limits : Max = Disabled MHz | Min = Disabled MHz [ 10.625109] DietPi-PreBoot[1590]: [ OK ] DietPi-CPU_set | Applied CPU governor settings: schedutil [ OK ] Finished DietPi-PreBoot. Starting DietPi-FirstBoot setup... [ SUB1 ] DietPi-Set_swapfile > Applying 1 /var/swap [ INFO ] DietPi-Set_swapfile | Disabling and deleting all existing swap files [ .... ] DietPi-Set_swapfile | swapoff -a [ OK ] DietPi-Set_swapfile | swapoff -a [ OK ] DietPi-Set_swapfile | Free space check: path=/var/ | available=27787 MiB | required=1070 MiB [ OK ] DietPi-Set_swapfile | Generating new swap space [ INFO ] DietPi-Set_swapfile | Size = 1070 MiB [ INFO ] DietPi-Set_swapfile | Path = /var/swap [ .... ] DietPi-Set_swapfile | fallocate -l 1070M /var/swap [ OK ] DietPi-Set_swapfile | fallocate -l 1070M /var/swap [ .... ] DietPi-Set_swapfile | mkswap /var/swap [ OK ] DietPi-Set_swapfile | mkswap /var/swap [ .... ] DietPi-Set_swapfile | swapon /var/swap [ 11.082854] Adding 1095676k swap on /var/swap. Priority:-2 extents:5 across:1144828k SSFS [ OK ] DietPi-Set_swapfile | swapon /var/swap [ .... ] DietPi-Set_swapfile | chmod 0600 /var/swap [ OK ] DietPi-Set_swapfile | chmod 0600 /var/swap [ .... ] DietPi-Set_swapfile | eval echo '/var/swap none swap sw' >> /etc/fstab [ OK ] DietPi-Set_swapfile | eval echo '/var/swap none swap sw' >> /etc/fstab [ OK ] DietPi-Set_swapfile | Setting in /boot/dietpi.txt adjusted: AUTO_SETUP_SWAPFILE_SIZE=1070 [ OK ] DietPi-Set_swapfile | Desired setting in /boot/dietpi.txt was already set: AUTO_SETUP_SWAPFILE_LOCATION=/var/swap [ INFO ] DietPi-Set_swapfile | Setting /tmp tmpfs size: 1024 MiB [ .... ] DietPi-Set_swapfile | mount -o remount /tmp [ OK ] DietPi-Set_swapfile | mount -o remount /tmp [ INFO ] DietPi-FirstBoot | Setting time zone Europe/London. Please wait... removed '/etc/localtime' Current default time zone: 'Europe/London' Local time is now: Sat Oct 23 02:05:34 BST 2021. Universal Time is now: Sat Oct 23 01:05:34 UTC 2021. [ SUB1 ] DietPi-Set_hardware > eth-forcespeed (disable) [ OK ] eth-forcespeed disable | Completed [ OK ] DietPi-Change_hostname | Desired setting in /etc/hosts was already set: 127.0.1.1 DietPi [ .... ] DietPi-Change_hostname | hostname DietPi [ OK ] DietPi-Change_hostname | hostname DietPi [ SUB1 ] DietPi-Set_software > apt-mirror (https://deb.debian.org/debian/) [ .... ] DietPi-Set_software | eval echo 'deb https://deb.debian.org/debian/ bullseye main contrib non-free deb https://deb.debian.org/debian/ bullseye-updates main contrib non-free deb https://deb.debian.org/debian-security/ bullseye/updates main contrib non-free deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free' > /etc/apt/sources.list [ OK ] DietPi-Set_software | eval echo 'deb https://deb.debian.org/debian/ bullseye main contrib non-free deb https://deb.debian.org/debian/ bullseye-updates main contrib non-free deb https://deb.debian.org/debian-security/ bullseye/updates main contrib non-free deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free' > /etc/apt/sources.list [ .... ] DietPi-Set_software | sed -i 3s|/updates|-security| /etc/apt/sources.list [ OK ] DietPi-Set_software | sed -i 3s|/updates|-security| /etc/apt/sources.list [ OK ] DietPi-Set_software | Desired setting in /boot/dietpi.txt was already set: CONFIG_APT_DEBIAN_MIRROR=https://deb.debian.org/debian/ [ OK ] apt-mirror https://deb.debian.org/debian/ | Completed removed '/etc/dropbear/dropbear_ecdsa_host_key' Generating 256 bit ecdsa key, this may take a while... Public key portion is: ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJLm4e83KnnVhg1j/QbBq4f2cNd5qlWov4cO+kbysP91ZYOdBMK4Ej3OAJtJB9mcMpB4MTgSfLngVoppptplXE4= root@DietPi Fingerprint: sha1!! 85:68:6c:6a:6d:3a:7a:05:8b:e6:d0:da:60:cc:a6:55:85:d6:e6:a0 removed '/etc/dropbear/dropbear_ed25519_host_key' Generating 256 bit ed25519 key, this may take a while... Public key portion is: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAwMCH7fGP6jfwNhqcqvuSGVSzm4Fxf/R8x9t8BDnBVJ root@DietPi Fingerprint: sha1!! 24:db:2f:4c:2f:8f:14:dc:71:ad:25:1a:b3:64:39:b6:77:5a:19:04 removed '/etc/dropbear/dropbear_rsa_host_key' Generating 2048 bit rsa key, this may take a while... Public key portion is: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKBc+AcdGaEj//oxuCvxmD39dsLZGYg3Gfa/oUfZjBKBtptmWzU66PnlZJn/e40cl4J+qwRla3tTbpOaQKXiFdNof0eKUm+WwdKjzDRsz1IJ046vIUc1lAduPphhzLk2W+NnvIgSM/niLq6xrwQLuS598c08ykZd0dKyLHNlPIq4D86LwmEd3DOnBEvEr7Pl7Fcj5PbRl/2rX0/fqkC5O2bu448+RqVj8rN7RHbCafgqxn+ajkG8Z6hvrCcxPP8UX2pYjMANm0jSCZ4LYdUKm+CvwZf67YH2Ao2XdFTUSLJjmBkxZlCringzNriwFaplxoA+8Ho4i1zQrIxsrmwSOl root@DietPi Fingerprint: sha1!! 8e:30:aa:bd:e3:43:ba:fd:3f:4d:c7:db:3a:5a:22:6f:91:88:9a:16 Initializing machine ID from random generator. [ SUB1 ] DietPi-Set_hardware > wifimodules (disable) [ OK ] wifimodules disable | Completed [ SUB1 ] DietPi-Set_hardware > enableipv6 (enable) [ OK ] DietPi-Set_hardware | Desired setting in /etc/hosts was already set: ::1 localhost ip6-localhost ip6-loopback [ OK ] DietPi-Set_hardware | Desired setting in /etc/hosts was already set: ff02::1 ip6-allnodes [ OK ] DietPi-Set_hardware | Desired setting in /etc/hosts was already set: ff02::2 ip6-allrouters [ OK ] DietPi-Set_hardware | Desired setting in /boot/dietpi.txt was already set: CONFIG_ENABLE_IPV6=1 [ OK ] enableipv6 enable | Completed [ SUB1 ] DietPi-Set_hardware > preferipv4 (enable) [ OK ] DietPi-Set_hardware | Comment in /etc/wgetrc converted to setting: prefer-family = IPv4 [ OK ] DietPi-Set_hardware | Desired setting in /boot/dietpi.txt was already set: CONFIG_PREFER_IPV4=1 [ OK ] preferipv4 enable | Completed Internet Systems Consortium DHCP Client 4.4.1 Copyright 2004-2018 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Cannot find device "eth0" Failed to get interface index: No such device If you think you have received this message due to a bug rather than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging. exiting. ifup: failed to bring up eth0 [ SUB1 ] DietPi-Set_software > boot_wait_for_network (1) [ OK ] DietPi-Set_software | Desired setting in /boot/dietpi.txt was already set: AUTO_SETUP_BOOT_WAIT_FOR_NETWORK=1 [ OK ] boot_wait_for_network 1 | Completed Removed /etc/systemd/system/multi-user.target.wants/dietpi-firstboot.service. [ OK ] Finished DietPi-FirstBoot setup. [ OK ] Reached target Network (Pre). Starting Raise network interfaces... [ OK ] Finished Raise network interfaces. [ OK ] Reached target Network. [ OK ] Reached target Network is Online. [ OK ] Started DietPi-PostBoot. Starting Permit User Sessions... [ OK ] Finished Permit User Sessions. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyAML0. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Finished Update UTMP about System Runlevel Changes. ───────────────────────────────────────────────────── DietPi v7.7.3 : 02:05 - Sat 10/23/21 ───────────────────────────────────────────────────── - LAN IP : Use dietpi-config to setup a connection (wlan0) Default Login: Username = root Password = dietpi (or custom dietpi.txt entry) Please hit to login Debian GNU/Linux 11 DietPi ttyAML0 DietPi login:
almirus commented 3 years ago

` ───────────────────────────────────────────────────── DietPi v7.7.3 : 18:51 - Sun 10/24/21 ─────────────────────────────────────────────────────

MichaIng commented 3 years ago

Nice, thanks for testing, glad that we finally found it. I full add bc to the image then and verify that uEnv.txt has a proper initramfs size entry after it has been built.

Just to assure again that the hardware random generator works:

systemctl status rngd
ls -l /dev/hwrng
almirus commented 3 years ago

after set chromium autostart

[   86.515549] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 3600000000
[   86.521892] Unable to handle kernel paging request at virtual address 00000000000f4138
[   86.523405] paging request at virtual address 7fff000011aaea60
[   86.526266] Mem abort info:
[   86.532004] Mem abort info:
[   86.534728]   ESR = 0x96000004
[   86.537488]   ESR = 0x96000004
[   86.540511]   EC = 0x25: DABT (current EL), IL = 32 bits
[   86.543529]   EC = 0x25: DABT (current EL), IL = 32 bits
[   86.548815]   SET = 0, FnV = 0
[   86.554076]   SET = 0, FnV = 0
[   86.557070]   EA = 0, S1PTW = 0
[   86.560088]   EA = 0, S1PTW = 0
[   86.563194] Data abort info:
[   86.566299] Data abort info:
[   86.569142]   ISV = 0, ISS = 0x00000004
[   86.571989]   ISV = 0, ISS = 0x00000004
[   86.575795]   CM = 0, WnR = 0
[   86.579589]   CM = 0, WnR = 0
[   86.582513] user pgtable: 4k pages, 48-bit VAs, pgdp=000000000130c000
[   86.585445] [7fff000011aaea60] address between user and kernel address ranges
[   86.586665] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[   86.586667] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[   86.586668] Mem abort info:
[   86.586670]   ESR = 0x96000004
[   86.586671] Mem abort info:
[   86.586673]   EC = 0x25: DABT (current EL), IL = 32 bits
[   86.586675]   ESR = 0x96000004
[   86.586676]   SET = 0, FnV = 0
[   86.586678]   EC = 0x25: DABT (current EL), IL = 32 bits
[   86.586679]   EA = 0, S1PTW = 0
[   86.586680]   SET = 0, FnV = 0
[   86.586681] Data abort info:
[   86.586683]   EA = 0, S1PTW = 0
[   86.586684]   ISV = 0, ISS = 0x00000004
[   86.586685] Data abort info:
[   86.586686]   CM = 0, WnR = 0
[   86.586688]   ISV = 0, ISS = 0x00000004
[   86.586690] user pgtable: 4k pages, 48-bit VAs, pgdp=000000000428b000
[   86.586691]   CM = 0, WnR = 0
[   86.586692] [0000000000000000] pgd=0000000000000000
[   86.586694] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000001883000
[   86.586697] , p4d=0000000000000000
[   86.586698] [0000000000000000] pgd=0000000000000000
[   86.586699]
[   86.586700] , p4d=0000000000000000
[   86.586705] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   86.586709] Modules linked in: nls_iso8859_1 snd_soc_hdmi_codec dw_hdmi_i2s_audio snd_usb_audio brcmfmac snd_usbmidi_lib snd_hwdep brcmutil snd_rawmidi joydev uvcvideo snd_seq_device cfg80211 rfkill videobuf2_vmalloc panfrost gpu_sched meson_vdec(C) v4l2_mem2mem meson_saradc snd_soc_meson_axg_tdmout snd_soc_meson_g12a_tohdmitx videobuf2_dma_contig snd_soc_meson_axg_sound_card videobuf2_memops snd_soc_meson_axg_tdm_interface snd_soc_meson_codec_glue videobuf2_v4l2 snd_soc_meson_card_utils snd_soc_meson_axg_frddr reset_meson_audio_arb snd_soc_meson_axg_tdm_formatter videobuf2_common snd_soc_meson_axg_fifo snd_soc_core meson_dw_hdmi videodev meson_drm ac97_bus dw_hdmi snd_pcm_dmaengine mc snd_pcm drm_kms_helper snd_timer meson_canvas cec meson_rng snd display_connector soundcore drm drm_panel_orientation_quirks ip_tables x_tables autofs4 axg_audio sclk_div clk_phase rtc_meson_vrtc
[   86.586833] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G         C        5.10.69-2-amlogic-g981b0a3cef #g981b0a3cef
[   86.586836] Hardware name: Radxa Zero (DT)
[   86.586841] pstate: 20000085 (nzCv daIf -PAN -UAO -TCO BTYPE=--)
[   86.586859] pc : ktime_get+0x40/0xa0
[   86.586863] lr : ktime_get+0x48/0xa0
[   86.586865] sp : ffff800011903e40
[   86.586866] x29: ffff800011903e40 x28: ffff00003fd65238
[   86.586871] x27: ffff00003fd65278 x26: ffff00003fd652b8
[   86.586875] x25: ffff00003fd6518c x24: 7fffffffffffffff
[   86.586879] x23: 0000000000000003 x22: 0000001428cf0404
[   86.586883] x21: 0000000000000000 x20: 0000000000000000
[   86.586888] x19: ffff80001188da80 x18: 0000000000000000
[   86.586892] x17: 0000000000000000 x16: 0000000000000000
[   86.586896] x15: 000000000000013f x14: 0000000000000029
[   86.586900] x13: ffff8000116a7000 x12: 00000000000000a3
[   86.586904] x11: 0000000000000004 x10: 0000000000000000
[   86.586908] x9 : ffff00003fd69700 x8 : 0000001428cefe00
[   86.586912] x7 : 7fffffffffffffff x6 : 00000000834aab1b
[   86.586916] x5 : 00ffffffffffffff x4 : 00394602317f1404
[   86.586920] x3 : 0000000000000018 x2 : 0000000000009ed8
[   86.586924] x1 : 0000000029aaaaab x0 : 0000000000000000
[   86.586930] Call trace:
[   86.586934]  ktime_get+0x40/0xa0
[   86.586941]  clockevents_program_event+0x74/0x12c
[   86.586946]  tick_program_event+0x58/0xa4
[   86.586950]  hrtimer_interrupt+0x138/0x2c0
[   86.586958]  arch_timer_handler_phys+0x38/0x50
[   86.586967]  handle_percpu_devid_irq+0x84/0x150
[   86.586970]  __handle_domain_irq+0x7c/0xe0
[   86.586978]  gic_handle_irq+0x50/0xd0
[   86.586983]  el1_irq+0xcc/0x180
[   86.586990]  arch_cpu_idle+0x18/0x30
[   86.586997]  default_idle_call+0x24/0x6c
[   86.587002]  do_idle+0x22c/0x29c
[   86.587005]  cpu_startup_entry+0x24/0x70
[   86.587012]  secondary_start_kernel+0x144/0x180
[   86.587021] Code: 37000314 d50339bf f9400660 f9401a75 (f9400001)
[   86.587034] ---[ end trace 7a47dc28674422c3 ]---
[   86.587039] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[   86.587043] SMP: stopping secondary CPUs
[   86.591866] [00000000000f4138] pgd=0000000000000000
[   86.911632] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[   86.912994] , p4d=0000000000000000
[   86.916386] Mem abort info:
[   86.919894]
[   86.923967]   ESR = 0x96000004
[   87.011917]   EC = 0x25: DABT (current EL), IL = 32 bits
[   87.015525]   SET = 0, FnV = 0
[   87.019132]   EA = 0, S1PTW = 0
[   87.022738] Data abort info:
[   87.026152]   ISV = 0, ISS = 0x00000004
[   87.029587]   CM = 0, WnR = 0
[   87.033018] user pgtable: 4k pages, 48-bit VAs, pgdp=000000000428b000
[   87.037302] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000
almirus commented 3 years ago

@MichaIng

root@DietPi:~# systemctl status rngd
● rngd.service - Start entropy gathering daemon (rngd)
     Loaded: loaded (/lib/systemd/system/rngd.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2021-10-24 18:55:08 BST; 4min 29s ago
       Docs: man:rngd(8)
   Main PID: 1549 (rngd)
      Tasks: 1 (limit: 849)
     Memory: 208.0K
        CPU: 5ms
     CGroup: /system.slice/rngd.service
             └─1549 /usr/sbin/rngd -f

Oct 24 18:55:08 DietPi systemd[1]: Started Start entropy gathering daemon (rngd).

root@DietPi:~# ls -l /dev/hwrng
crw------- 1 root root 10, 183 Oct 24 18:52 /dev/hwrng

MichaIng commented 3 years ago

after set chromium autostart

Does the X server itself cause this kernel error? E.g. when you run startx (and have a desktop installed), or if you have no desktop installed, testing with xterm as simply X application:

apt install xterm
xinit xterm
almirus commented 3 years ago

@MichaIng but does chromium require a desktop? I try turned on kioskmode

MichaIng commented 3 years ago

No it does not, it only requires an X server, hence the alternative X application when no desktop is installed 😉.

almirus commented 3 years ago

reboot command doesn't work - stuck here

[  OK  ] Removed slice system-modprobe.slice.
[  OK  ] Stopped target Graphical Interface.
[  OK  ] Stopped target Multi-User System.
[  OK  ] Stopped target Login Prompts.
[  OK  ] Stopped target Sound Card.
[  OK  ] Stopped tar         Stopping Serial Getty on ttyAML0...
         Stopping Load/Save Random Seed...
         Stopping vmtouch...
[  OK  ] Stopped vmtouch.
[  OK  ] Stopped Start entropy gathering daemon (rngd).
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyAML0.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped LSB: Lightweight SSH server.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Removed slice system-serial\x2dgetty.slice.
         Stopping Permit User Sessions...
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Network.
[  OK  ] Stopped target Remote File Systems.
         Stopping ifup for wlan0...
         Stopping Raise network interfaces...
[  OK  ] Stopped Raise network interfaces.
[  OK  ] Finished DietPi-Kill_SSH on shutdown.
[  OK  ] Stopped ifup for wlan0.
[  OK  ] Stopped target Network (Pre).
[  OK  ] Stopped DietPi-PreBoot.
         Stopping DietPi-RAMlog...
[  OK  ] Stopped DietPi-RAMlog.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped target Slices.
[  OK  ] Stopped target Sockets.
[  OK  ] Stopped target System Initialization.
[  OK  ] Stopped target Local Encrypted Volumes.
[  OK  ] Stopped Dispatch Password …ts to Console Directory Watch.
[  OK  ] Stopped Forward Password R…uests to Wall Directory Watch.
         Stopping Restore / save the current clock...
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Load Kernel Modules.
         Stopping Update UTMP about System Boot/Shutdown...
[  OK  ] Stopped Restore / save the current clock.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting /boot...
         Unmounting /tmp...
         Stopping Flush Journal to Persistent Storage...
[  OK  ] Unmounted /boot.
[ 1216.301332] systemd-journald[1451]: Received client request to relinquish /var/log/journal/5cbf4952f53c4cd3b8b6d847229d8f11 access.
[  OK  ] Unmounted /tmp.
[  OK  ] Stopped Flush Journal to Persistent Storage.
         Unmounting /var/log...
[  OK  ] Stopped File System Check on /dev/disk/by-uuid/DFA8-81C0.
[  OK  ] Removed slice system-systemd\x2dfsck.slice.
[  OK  ] Unmounted /var/log.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped target Swap.
         Deactivating swap /var/swap...
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Create System Users.
[  OK  ] Deactivated swap /var/swap.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
[  OK  ] Finished Reboot.
[  OK  ] Reached target Reboot.
[ 1216.795224] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 1216.830094] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 1216.851382] systemd-journald[1451]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 1216.879681] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 1216.907895] systemd-shutdown[1]: Unmounting file systems.
[ 1216.909683] [7198]: Remounting '/' read-only in with options '(null)'.
[ 1217.038103] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 1217.065939] systemd-shutdown[1]: All filesystems unmounted.
[ 1217.066280] systemd-shutdown[1]: Deactivating swaps.
[ 1217.071044] systemd-shutdown[1]: All swaps deactivated.
[ 1217.076063] systemd-shutdown[1]: Detaching loop devices.
[ 1217.087203] systemd-shutdown[1]: All loop devices detached.
[ 1217.087314] systemd-shutdown[1]: Stopping MD devices.
[ 1217.092443] systemd-shutdown[1]: All MD devices stopped.
[ 1217.097484] systemd-shutdown[1]: Detaching DM devices.
[ 1217.102926] systemd-shutdown[1]: All DM devices detached.
[ 1217.107983] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.
[ 1217.133301] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 1217.134851] systemd-shutdown[1]: Rebooting.
[ 1217.138530] kvm: exiting hardware virtualization
MichaIng commented 3 years ago

[ 1217.138530] kvm: exiting hardware virtualization

Do you have a virtualizer/virtual machine running on this machine?

/var/log/journal/5cbf4952f53c4cd3b8b6d847229d8f11

Did you manually create this directory to make system logs boot persistent? In this case you should disable DietPi-RAMlog to not break journald on early boot and shutdown.

almirus commented 3 years ago

Do you have a virtualizer/virtual machine running on this machine?

no it is clean setup - activated only kioskmode

almirus commented 3 years ago

on screen i see green screen :( instead of chromium image

almirus commented 3 years ago

@MichaIng third restart and success, but resolution is wrong image and I can't change it for generic device


┌──────────────────────────────┤ DietPi-Config ├───────────────────────────────┐
│                                                                              │
│ This option is not available for Generic Device (aarch64)                    │
│                                                                              │
│                                                                          │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

MichaIng commented 3 years ago

You can set Chromium resolution in dietpi.txt. Another thing I wanted to change in general is simply not forcing a resolution for Chromium kiosk mode: In /var/lib/dietpi/dietpi-software/installed/chromium-autostart.sh and remove --window-size=$RES_X,$RES_Y from it. It should then simply keep the console resolution which should default to the native screen resolution.

almirus commented 3 years ago

small thing: i get periodically this warning

[  921.824332] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 3600000000
almirus commented 3 years ago

Did you manually create this directory to make system logs boot persistent?

file is empty image

MichaIng commented 3 years ago

Yes, the pure existence of the /var/log/journal directory makes systemd-journald logs there instead of to /run/log/journal, and this may cause the reboot issues, at least it doesn't make any sense when /var/log is a tmpfs so that logs are lost on reboot anyway.

almirus commented 3 years ago
┌─────────────────────────────┤ DietPi-Benchmark ├─────────────────────────────┐
│                                                                              │
│ Benchmarks completed:                                                        │
│  - CPU Performance : Duration = 11.04 seconds (lower is faster)              │
│  - CPU Temp        : Idle = 42'c | Full load = 49'c                          │
│  - RootFS          : Write = 9 MiB/s | Read = 22 MiB/s                       │
│  - RAM             : Write = 479 MiB/s | Read = 830 MiB/s                    │
│                                                                              │
│ Compare these results online with other users, using the link below:         │
│  - https://dietpi.com/survey#benchmark                                       │
│                                                                              │
│                                                                          │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

almirus commented 3 years ago

after setup wifi dietpi.txt contains

##### Network Options #####
# Enable Ethernet or WiFi adapter: 1=enable | 0=disable
# - If both Ethernet and WiFi are enabled, WiFi will take priority and Ethernet will be disabled.
# - If using WiFi, please edit dietpi-wifi.txt to pre-enter credentials.
AUTO_SETUP_NET_ETHERNET_ENABLED=1
AUTO_SETUP_NET_WIFI_ENABLED=0

is it correct?

MichaIng commented 3 years ago

Those are only relevant for the very first boot (like all AUTO_SETUP_* settings), to have WiFi automatically enabled for first run setup.

almirus commented 3 years ago

@MichaIng

ssh terminal (interaction) and mouse movements (chromium) freeze for about 5 sec at this moment I see a warning then repeats UART LOG:

[ 7101.379762] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 3600000000
[ 7119.947739] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 5592000000
[ 7131.901523] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 6000000000
[ 7243.718180] panfrost ffe40000.gpu: gpu sched timeout, js=1, config=0x7301, status=0x0, head=0x3131000, tail=0x3131000, sched_job=00000000de90a91b
[ 7251.166297] meson_clk_pll_set_rate: pll did not lock, trying to restore old rate 3600000000
MichaIng commented 3 years ago

The same works fine on the Radxa Buster image?

almirus commented 3 years ago

like no

MichaIng commented 3 years ago

It seems to have issues adjusting the clock rate, but not sure whether this is about GPU (panfrost module is the GPU driver module) or about CPU (meson) or both (e.g. both tied to each other). When this is not an issue on the Radxa image, it is probably that DietPi by default uses the schedutil CPU governor and this ARM doesn't like it for some reason. So you could try to switch to ondemand or conservative or so via dietpi-config > "Performance Options".

almirus commented 3 years ago

thanks! it looks like 'ondemand' fix that 😎

MichaIng commented 3 years ago

Nice. So seems like too quick CPU frequency changes are an issue with the current kernel. Actually schedutil is meant to be the successor for both, ondemand and conservative, being more efficient with less overhead, so a Linux 5.10 and modern ARM should be able handle it. We hence should report this to Radxa.

dhry commented 3 years ago

Confirming, it works now! Used the updated image and it boots to the dietpi setup.

Only problem is that still, every 60 seconds, there's some background process that detects my mouse and writes the detection to the screen. Doesn't matter if it's a shell prompt or a dietpi "gui", it will still overwrite the screen text. Keeps happening even after config is completed and a reboot is done. Note that this is only on the master tty for the Zero, you don't see this in the SSH window at all.

I haven't done much else but wanted to let you know that we're definitely in business. Well done!

20211024_162506_006

Also:

root@DietPi:~# systemctl status rngd
● rngd.service - Start entropy gathering daemon (rngd)
     Loaded: loaded (/lib/systemd/system/rngd.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2021-10-25 00:21:06 BST; 9min ago
       Docs: man:rngd(8)
   Main PID: 1545 (rngd)
      Tasks: 1 (limit: 849)
     Memory: 204.0K
        CPU: 4ms
     CGroup: /system.slice/rngd.service
             └─1545 /usr/sbin/rngd -f

Oct 25 00:21:06 DietPi systemd[1]: Started Start entropy gathering daemon (rngd).
root@DietPi:~# ls -l /dev/hwrng
crw------- 1 root root 10, 183 Oct 25 00:21 /dev/hwrng
MichaIng commented 3 years ago

The verbose console kernel log can be solved by changing the verbosity setting in /boot/uEnv.txt, e.g. to the default verbosity=4. 7 is the highest level, 1 would only print emergency logs, 4 includes all types of error logs (emergency, alerts, critical errors and regular errors). dmesg of course prints still all log levels, this only affects what is printed to the configured console(s), by default tty1 and ttyAML0 (the serial console). EDIT: This can be done also for the current boot session: dmesg -n 4

That the driver creates kernel logs regularly at all may be related to some USB power management, not sure. Probably as well something to report to Radxa for investigation.


Don't forget to apt install bc to keep boot working even when the initramfs is updated (which happens on quite some APT package triggers).

dhry commented 3 years ago

Done (verbosity) and done (bc). Confirming, no more USB detection messages.

Couple of quirks: 1) Weirdly, sudo shutdown -r now and sudo reboot don't reboot the Zero. They both just shut it down completely. Have to power cycle to bring it up again. Not sure why. 2) The other night I installed the Zero CoreELEC/Kodi image. Worked great. And it booted up really quick - many of these SBCs have some little graphic image that appears instantly on bootup, like "HARDKERNEL" for example. The Radxa throws up this green Radxa symbol on booting the CoreElec image, within a second or two. But DietPi doesn't. It takes something like 10-15 seconds before the first log items start appearing on the main tty screen, and no logo. Not sure what this initial delay is due to.

Edit: Even if modifying an option which makes DietPi request to reboot the device to apply settings, that reboot also doesn't work properly. Not sure what's up with triggering software reboots but they don't appear to work. 🤔

almirus commented 3 years ago
  1. Weirdly, sudo shutdown -r now and sudo reboot don't reboot the Zero

same https://github.com/MichaIng/DietPi/issues/4831#issuecomment-950370729

2. Not sure what this initial delay is due to

the delay is due to network checking

MichaIng commented 3 years ago

the delay is due to network checking

The network check (and time sync) is now done in background, so that shouldn't delay boot anymore. Service starts wait until all network interfaces have been configured, so e.g. DHCP leasing needs to finish.

Does reboot work on the Radxa image? And can you share the system logs from serial console when rebooting, so see where it hangs now and in which order systemd units are stopped? Above it looks like the /var/log unmount with journald logging there is the issue, so after either removing /var/log/journal (I still wonder how it landed there, as it's not part of the image) or disabling DietPi-RAMlog this part should be solved. But there are other reasons why this may not work, e.g. I know from some Armbian images as well that failing reboot is a known issue, kernel related. In this case the Radxa image should fail to reboot the same way.

almirus commented 3 years ago

(I still wonder how it landed there, as it's not part of the image)

I created it. I thought you asked here https://github.com/MichaIng/DietPi/issues/4831#issuecomment-950371871 😊

Does reboot work on the Radxa image

is there a new image?

MichaIng commented 3 years ago

I asked whether it has been created manually, not that it should be done, as it doesn't make sense in combination with DietPi-RAMlog and may cause (minor) issues, e.g. a hanging on reboot 😉.

I mean whether it works with the official Radxa Debian Buster image: https://github.com/radxa/radxa-zero-images-released/releases If you have two SD cards for swapping, as flashing back and forth may not be feasible 😉. But before we report and issues to Radxa, we should assure that it is really a kernel/dtb/firmware/board issue and not related to something we broke our end (like the removed bc required for the custom initramfs script).

almirus commented 3 years ago

@MichaIng got it now, I will be able to check it in 4 hours

MichaIng commented 3 years ago

Btw I updated our image to contain bc, have ondemand CPU governor enabled by default and console log verbosity set to 4. Also Radxa is so kind to send me a Zero, so we can do own testing and polishing the image, config and software options for it.

MichaIng commented 3 years ago

PR up for initial support: #4900 I'll add this to the image as well, replacing only the hardware ID and detection script files (leaving everything else at DietPi v7.7).

almirus commented 3 years ago

@MichaIng

Does reboot work on the Radxa image?

no. used Linux zero 5.10.69-2-amlogic-g981b0a3cef #g981b0a3cef SMP PREEMPT Sun Oct 10 15:41:00 CST 2021 aarch64 (zero_debian_buster_xfce4_arm64_20211010_0810-mbr.img) same symptoms

[  OK  ] Reached target Reboot.
[  328.270194] printk: systemd-shutdow: 29 output lines suppressed due to ratelimiting
[  328.324903] systemd-shutdown[1]: Syncing filesystems and block devices.
[  328.766060] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  328.774732] systemd-journald[1446]: Received SIGTERM from PID 1 (systemd-shutdow).
[  329.006977] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  329.015955] systemd-shutdown[1]: Unmounting file systems.
[  329.018451] [2855]: Remounting '/' read-only in with options '(null)'.
[  329.070427] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[  329.087600] systemd-shutdown[1]: All filesystems unmounted.
[  329.087729] systemd-shutdown[1]: Deactivating swaps.
[  329.092698] systemd-shutdown[1]: All swaps deactivated.
[  329.097712] systemd-shutdown[1]: Detaching loop devices.
[  329.105451] systemd-shutdown[1]: All loop devices detached.
[  329.108507] systemd-shutdown[1]: Detaching DM devices.
[  329.129267] kvm: exiting hardware virtualization
almirus commented 3 years ago

dmesg for zero_debian_buster_xfce4_arm64_20211010_0810-mbr.img

[    6.327456] systemd-journald[1447]: Received request to flush runtime journal from PID 1
[    6.343165] systemd-journald[1447]: File /var/log/journal/7851a9aa1b9f499bbc87d84d73acdaf5/system.journal corrupted or uncleanly shut down, renaming and replacing.