页次: 1
今天踩第二个坑,调有线网,发现有线网速度很慢,10k都不到,但是看网卡状态都正常,最后发现orangepi的设备树文件有问题,
sun50i-h618-orangepi-zero3.dts中
&emac0 {
allwinner,tx-delay-ps = <700>;
phy-mode = "rgmii-rxid";
phy-supply = <®_dldo1>;
它少写了一行rx的,导致网络完全不能工作,这板子的phy芯片和orangepi的不一样,又翻翻原理图发现orangepi zero3和这板子除了个h618芯片一样,其他的都不一样,但是sipeed家的longan pi 3h和这板子硬件基本一模一样,就几个引出脚不一样。6.11内核已经带了sipeed 3h的配置文件,正好直接换linux 6.11内核,设备树用sun50i-h618-longanpi-3h.dts,编译后网速终于正常,1000m满速很稳定。
结论:这板子推荐配6.11以后的内核,6.11里还带了h618的cpu驱动,终于可以调节频率了,以前版本的linux都是一个频率跑到死,因为没带cpu驱动。
今天发现第一个坑,全志的uboot主线emmc启动都有问题,h616,h618都是如此,还不确定是所有emmc都出问题还是特定型号,同一个spl u-boo刷到sd卡正常,刷到emmc卡就会出现read block error错误,但是看老外非常多人玩h618盒子的,硬件不同,但都是同样的问题,应该是普遍的。解决方法是把uboot里的emmc降频率,sipeed已经给u-boot打了补丁,https://github.com/sipeed/LonganPi-3H-SDK/blob/main/uboot/0007-lpi3h-drivers-emmc-add-emmc-boot-support.patch,看它是把频率降到了20Mhz,我自己改的是降到了12Mhz
玩了这么久,都是用的32位板子,最近打螺丝赚点小钱,买了一块H618,咱也来体验一把64位...
taobao买的H618,140的天价,1G+8G,带WIFI千兆网卡,一如既往的国货特色,硬件很nx,软件很拉跨,技术支持就等于没有
商家提供的几个镜像和全志SDK塞满了垃圾和预装,光镜像都2g,像我这种买不起网盘会员的人,光下载SDK和镜像都感觉很困难了。
好在H618主线支持不错,开始自己编主线.........
64位linux相比32位就改两个东西,u-boot加一个Trusted Firmware
https://github.com/ARM-software/arm-trusted-firmware
然后编译器换成aarch64-linux-gnu-,安装
apt-get install gcc-aarch64-linux-gnu
其他的就和32位一样了,全部用orangepi_zero3的配置文件
1.编译u-boot
make CROSS_COMPILE=aarch64-linux-gnu- BL31=/root/TFA/build/sun50i_h616/debug/bl31.bin orangepi_zero3_defconfig
make CROSS_COMPILE=aarch64-linux-gnu- BL31=/root/TFA/build/sun50i_h616/debug/bl31.bin
一次不报错编译完成。
U-Boot SPL 2024.10-rc4 (Sep 14 2024 - 11:37:46 +0800)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.11.0(debug):
NOTICE: BL31: Built : 18:01:41, Sep 13 2024
NOTICE: BL31: Detected Allwinner H616 SoC (1823)
NOTICE: BL31: Found U-Boot DTB at 0x4a098ec0, model: OrangePi Zero3
INFO: ARM GICv2 driver initialized
INFO: Configuring SPC Controller
INFO: Probing for PMIC on I2C:
INFO: PMIC: found AXP313
INFO: BL31: Platform setup done
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a53: CPU workaround for erratum 855873 was applied
INFO: BL31: cortex_a53: CPU workaround for erratum 1530924 was applied
INFO: PSCI: Suspend is unavailable
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x4a000000
INFO: SPSR = 0x3c9
INFO: Changed devicetree.
U-Boot 2024.10-rc4 (Sep 14 2024 - 11:37:46 +0800)HS Tech
CPU: Allwinner H616 (SUN50I)
Model: OrangePi Zero3
DRAM: 1 GiB
Core: 58 devices, 23 uclasses, devicetree: separate
WDT: Not starting watchdog@30090a0
MMC: mmc@4020000: 0, mmc@4022000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
In: serial@5000000
Out: serial@5000000
Err: serial@5000000
Hit any key to stop autoboot: 0
2.编译kernel
64位kernel有个大坑,全志在主线里没有单独的配置文件?还是我没找到,只能用默认的defconfig文件
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig
make make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
这导致编译进去很多没用的驱动和垃圾,编译过程特别慢,其他内核一般10分钟搞定,这个编了快一个钟头......
难道还得把这些默认选的几百个模块一个一个去掉?
第二个发现是64位不支持内核压缩了,编译出来得是Image文件,足足有20M!
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.9.9 (root@xpdeb) (aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 SMP PREEMPT Sat Sep 14 14:33:21 CST 2024
[ 0.000000] KASLR disabled due to lack of seed
[ 0.000000] Machine model: OrangePi Zero3
[ 0.000000] OF: reserved mem: 0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable secmon@40000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x7fde99c0-0x7fdebfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000004003ffff]
[ 0.000000] node 0: [mem 0x0000000040040000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] cma: Reserved 32 MiB at 0x000000007cc00000 on node -1
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.5
[ 0.000000] percpu: Embedded 22 pages/cpu s51240 r8192 d30680 u90112
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait rw panic=10
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048
[ 0.000000] Policy zone: DMA
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 1MB
[ 0.000000] software IO TLB: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x000000007ca00000-0x000000007cb00000] (1MB)
[ 0.000000] Memory: 971028K/1048576K available (12608K kernel code, 1456K rwdata, 4564K rodata, 2688K init, 572K bss, 44780K reserved, 32768K 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=512 to nr_cpu_ids=4.
[ 0.000000] Trampoline 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] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.000000] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000275] Console: colour dummy device 80x25
[ 0.000349] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.000360] pid_max: default: 32768 minimum: 301
[ 0.000421] LSM: initializing lsm=capability
[ 0.000502] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.000512] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.001410] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.002168] rcu: Hierarchical SRCU implementation.
[ 0.002171] rcu: Max phase no-delay instances is 1000.
[ 0.002673] smp: Bringing up secondary CPUs ...
[ 0.003051] Detected VIPT I-cache on CPU1
[ 0.003123] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.003565] Detected VIPT I-cache on CPU2
[ 0.003598] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.003983] Detected VIPT I-cache on CPU3
[ 0.004015] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.004091] smp: Brought up 1 node, 4 CPUs
[ 0.004097] SMP: Total of 4 processors activated.
[ 0.004100] CPU: All CPU(s) started at EL2
[ 0.004103] CPU features: detected: 32-bit EL0 Support
[ 0.004107] CPU features: detected: CRC32 instructions
[ 0.004136] alternatives: applying system-wide alternatives
[ 0.005259] devtmpfs: initialized
[ 0.008533] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.008549] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.009717] pinctrl core: initialized pinctrl subsystem
[ 0.011871] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.012732] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.012824] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.012966] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.013171] audit: initializing netlink subsys (disabled)
[ 0.013372] audit: type=2000 audit(0.012:1): state=initialized audit_enabled=0 res=1
[ 0.013753] thermal_sys: Registered thermal governor 'step_wise'
[ 0.013757] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.013787] cpuidle: using governor menu
[ 0.013854] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.013913] ASID allocator initialised with 65536 entries
[ 0.014057] Serial: AMBA PL011 UART driver
[ 0.016010] platform 3001000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[ 0.017827] platform 3001000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[ 0.017875] platform 7000000.rtc: Fixed dependency cycle(s) with /soc/clock@3001000
[ 0.017916] platform 7000000.rtc: Fixed dependency cycle(s) with /soc/clock@7010000
[ 0.017996] platform 7000000.rtc: Fixed dependency cycle(s) with /soc/clock@7010000
[ 0.018035] platform 7010000.clock: Fixed dependency cycle(s) with /soc/clock@3001000
[ 0.018073] platform 7010000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[ 0.018853] Modules: 27248 pages in range for non-PLT usage
[ 0.018856] Modules: 518768 pages in range for PLT usage
[ 0.019365] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.019371] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.019375] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.019378] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[ 0.019382] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.019385] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.019388] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.019391] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[ 0.019739] Demotion targets for Node 0: null
[ 0.020897] iommu: Default domain type: Translated
[ 0.020902] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.021199] SCSI subsystem initialized
[ 0.021356] usbcore: registered new interface driver usbfs
[ 0.021378] usbcore: registered new interface driver hub
[ 0.021400] usbcore: registered new device driver usb
[ 0.021596] pps_core: LinuxPPS API ver. 1 registered
[ 0.021600] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.021611] PTP clock support registered
[ 0.021640] EDAC MC: Ver: 3.0.0
[ 0.021867] scmi_core: SCMI protocol bus registered
[ 0.022821] vgaarb: loaded
[ 0.023033] clocksource: Switched to clocksource arch_sys_counter
[ 0.023212] VFS: Disk quotas dquot_6.6.0
[ 0.023240] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.028566] NET: Registered PF_INET protocol family
[ 0.028682] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.029432] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.029481] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.029492] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.029541] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
[ 0.029830] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.029922] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.029945] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.030041] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.030885] PCI: CLS 0 bytes, default 64
[ 0.031884] Initialise system trusted keyrings
[ 0.031988] workingset: timestamp_bits=42 max_order=18 bucket_order=0
[ 0.075824] Key type asymmetric registered
[ 0.075829] Asymmetric key parser 'x509' registered
[ 0.075874] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.075880] io scheduler mq-deadline registered
[ 0.075884] io scheduler kyber registered
[ 0.075915] io scheduler bfq registered
[ 0.083462] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.089925] loop: module loaded
[ 0.090345] megasas: 07.727.03.00-rc1
[ 0.092664] tun: Universal TUN/TAP device driver, 1.6
[ 0.092981] thunder_xcv, ver 1.0
[ 0.093005] thunder_bgx, ver 1.0
[ 0.093024] nicpf, ver 1.0
[ 0.093208] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 0.093213] hns3: Copyright (c) 2017 Huawei Corporation.
[ 0.093238] hclge is initializing
[ 0.093265] e1000: Intel(R) PRO/1000 Network Driver
[ 0.093269] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.093289] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.093291] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.093310] igb: Intel(R) Gigabit Ethernet Network Driver
[ 0.093313] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.093331] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 0.093335] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.093396] sky2: driver version 1.30
[ 0.093735] VFIO - User Level meta-driver version: 0.3
[ 0.094047] usbcore: registered new interface driver usb-storage
[ 0.094120] usbcore: registered new device driver onboard-usb-hub
[ 0.095208] sun6i-rtc 7000000.rtc: registered as rtc0
[ 0.095228] sun6i-rtc 7000000.rtc: setting system clock to 1970-01-02T00:00:03 UTC (86403)
[ 0.095510] i2c_dev: i2c /dev entries driver
[ 0.095681] mv64xxx_i2c 7081400.i2c: can't get pinctrl, bus recovery not supported
[ 0.095998] i2c 0-0036: Fixed dependency cycle(s) with /soc/pinctrl@300b000
[ 0.097206] sdhci: Secure Digital Host Controller Interface driver
[ 0.097210] sdhci: Copyright(c) Pierre Ossman
[ 0.097347] Synopsys Designware Multimedia Card Interface Driver
[ 0.097651] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.098141] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.098296] SMCCC: SOC_ID: ID = jep106:091e:1823 Revision = 0x00000002
[ 0.098615] usbcore: registered new interface driver usbhid
[ 0.098618] usbhid: USB HID core driver
[ 0.099242] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.100071] NET: Registered PF_PACKET protocol family
[ 0.100102] Key type dns_resolver registered
[ 0.105953] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[ 0.106064] registered taskstats version 1
[ 0.106189] Loading compiled-in X.509 certificates
[ 0.120663] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.126933] sun50i-h616-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[ 0.127358] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.127558] sun50i-h616-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[ 0.127809] dw-apb-uart 5000000.serial: Error applying setting, reverse things back
[ 0.128051] sun6i-spi 5010000.spi: Error applying setting, reverse things back
[ 0.128808] axp20x-i2c 0-0036: AXP20x variant AXP313a found
[ 0.130510] axp20x-i2c 0-0036: AXP20X driver loaded
[ 0.132550] sunxi-mmc 4020000.mmc: Error applying setting, reverse things back
[ 0.132890] sunxi-mmc 4022000.mmc: Error applying setting, reverse things back
[ 0.133009] dw-apb-uart 5000000.serial: Error applying setting, reverse things back
[ 0.133236] sun6i-spi 5010000.spi: Error applying setting, reverse things back
[ 0.135219] sun50i-h616-pinctrl 300b000.pinctrl: pin PC13 already requested by 300b000.pinctrl:77; cannot claim for 4022000.mmc
[ 0.135232] sun50i-h616-pinctrl 300b000.pinctrl: error -EINVAL: pin-77 (4022000.mmc)
[ 0.135240] sun50i-h616-pinctrl 300b000.pinctrl: error -EINVAL: could not request pin 77 (PC13) from group PC13 on device 300b000.pinctrl
[ 0.135246] sunxi-mmc 4022000.mmc: Error applying setting, reverse things back
[ 0.135579] sunxi-mmc 4020000.mmc: Got CD GPIO
[ 0.135770] printk: legacy console [ttyS0] disabled
[ 0.156309] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 294, base_baud = 1500000) is a 16550A
[ 0.156350] printk: legacy console [ttyS0] enabled
[ 0.159050] sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 0.165451] ehci-platform 5200000.usb: EHCI Host Controller
[ 0.165544] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.165577] ohci-platform 5200400.usb: Generic Platform OHCI controller
[ 0.165594] ohci-platform 5200400.usb: new USB bus registered, assigned bus number 1
[ 0.165670] ohci-platform 5200400.usb: irq 297, io mem 0x05200400
[ 0.167796] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 0.168401] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 0.168446] clk: Disabling unused clocks
[ 0.168570] PM: genpd: Disabling unused power domains
[ 0.168660] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 0.168670] cfg80211: failed to load regulatory.db
[ 0.213053] mmc0: host does not support reading read-only switch, assuming write-enable
[ 0.213919] ehci-platform 5200000.usb: new USB bus registered, assigned bus number 2
[ 0.218378] mmc0: new high speed SDHC card at address 59b4
[ 0.222664] ehci-platform 5200000.usb: irq 296, io mem 0x05200000
[ 0.226032] mmcblk0: mmc0:59b4 SDU1 7.51 GiB
[ 0.231626] hub 1-0:1.0: USB hub found
[ 0.234537] mmcblk0: p1 p2
[ 0.236272] hub 1-0:1.0: 1 port detected
[ 0.243038] ehci-platform 5200000.usb: USB 2.0 started, EHCI 1.00
[ 1.513720] hub 2-0:1.0: USB hub found
[ 1.517499] hub 2-0:1.0: 1 port detected
[ 1.526138] List of all partitions:
[ 1.529647] b300 7879680 mmcblk0
[ 1.529652] driver: mmcblk
[ 1.536447] b301 32768 mmcblk0p1 dbbe3613-01
[ 1.536452]
[ 1.543242] b302 7845888 mmcblk0p2 dbbe3613-02
[ 1.543247]
[ 1.550040] No filesystem could mount root, tried:
[ 1.550042] ext3
[ 1.554915] ext2
[ 1.556841] ext4
[ 1.558761] vfat
[ 1.560687]
[ 1.564100] Kernel panic - not syncing: VFS: Unable to mount root fs on "/dev/mmcblk0p2" or unknown-block(179,2)
3.制作文件系统..
还得用debootstrap单独做个64位系统
debootstrap --arch=arm64 --foreign jammy ./ubuntu-rootfs https://mirrors.163.com/ubuntu-ports/
一次成功,没有报错,刷入系统开机。
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.9.9 (root@xpdeb) (aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 SMP PREEMPT Sat Sep 14 14:33:21 CST 2024
[ 0.000000] KASLR disabled due to lack of seed
[ 0.000000] Machine model: OrangePi Zero3
[ 0.000000] OF: reserved mem: 0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable secmon@40000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x7fde99c0-0x7fdebfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000004003ffff]
[ 0.000000] node 0: [mem 0x0000000040040000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] cma: Reserved 32 MiB at 0x000000007cc00000 on node -1
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.5
[ 0.000000] percpu: Embedded 22 pages/cpu s51240 r8192 d30680 u90112
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait rw panic=10
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048
[ 0.000000] Policy zone: DMA
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 1MB
[ 0.000000] software IO TLB: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x000000007ca00000-0x000000007cb00000] (1MB)
[ 0.000000] Memory: 971028K/1048576K available (12608K kernel code, 1456K rwdata, 4564K rodata, 2688K init, 572K bss, 44780K reserved, 32768K 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=512 to nr_cpu_ids=4.
[ 0.000000] Trampoline 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] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.000000] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000273] Console: colour dummy device 80x25
[ 0.000345] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.000356] pid_max: default: 32768 minimum: 301
[ 0.000415] LSM: initializing lsm=capability
[ 0.000495] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.000505] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.001401] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.002159] rcu: Hierarchical SRCU implementation.
[ 0.002162] rcu: Max phase no-delay instances is 1000.
[ 0.002658] smp: Bringing up secondary CPUs ...
[ 0.003034] Detected VIPT I-cache on CPU1
[ 0.003106] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.003550] Detected VIPT I-cache on CPU2
[ 0.003583] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.003967] Detected VIPT I-cache on CPU3
[ 0.003999] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.004070] smp: Brought up 1 node, 4 CPUs
[ 0.004076] SMP: Total of 4 processors activated.
[ 0.004079] CPU: All CPU(s) started at EL2
[ 0.004082] CPU features: detected: 32-bit EL0 Support
[ 0.004086] CPU features: detected: CRC32 instructions
[ 0.004116] alternatives: applying system-wide alternatives
[ 0.005239] devtmpfs: initialized
[ 0.008516] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.008532] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.009691] pinctrl core: initialized pinctrl subsystem
[ 0.011826] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.012749] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.013192] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.013692] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.013720] audit: initializing netlink subsys (disabled)
[ 0.013951] audit: type=2000 audit(0.012:1): state=initialized audit_enabled=0 res=1
[ 0.014310] thermal_sys: Registered thermal governor 'step_wise'
[ 0.014314] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.014345] cpuidle: using governor menu
[ 0.014433] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.014497] ASID allocator initialised with 65536 entries
[ 0.014635] Serial: AMBA PL011 UART driver
[ 0.016601] platform 3001000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[ 0.018434] platform 3001000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[ 0.018477] platform 7000000.rtc: Fixed dependency cycle(s) with /soc/clock@3001000
[ 0.018517] platform 7000000.rtc: Fixed dependency cycle(s) with /soc/clock@7010000
[ 0.018593] platform 7000000.rtc: Fixed dependency cycle(s) with /soc/clock@7010000
[ 0.018636] platform 7010000.clock: Fixed dependency cycle(s) with /soc/clock@3001000
[ 0.018678] platform 7010000.clock: Fixed dependency cycle(s) with /soc/rtc@7000000
[ 0.019463] Modules: 27248 pages in range for non-PLT usage
[ 0.019466] Modules: 518768 pages in range for PLT usage
[ 0.019966] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.019971] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.019976] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.019979] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[ 0.019982] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.019985] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.019989] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.019991] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[ 0.020355] Demotion targets for Node 0: null
[ 0.021280] iommu: Default domain type: Translated
[ 0.021286] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.021751] SCSI subsystem initialized
[ 0.021906] usbcore: registered new interface driver usbfs
[ 0.021928] usbcore: registered new interface driver hub
[ 0.021957] usbcore: registered new device driver usb
[ 0.022154] pps_core: LinuxPPS API ver. 1 registered
[ 0.022157] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.022168] PTP clock support registered
[ 0.022196] EDAC MC: Ver: 3.0.0
[ 0.022442] scmi_core: SCMI protocol bus registered
[ 0.023952] vgaarb: loaded
[ 0.024189] clocksource: Switched to clocksource arch_sys_counter
[ 0.024388] VFS: Disk quotas dquot_6.6.0
[ 0.024414] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.029625] NET: Registered PF_INET protocol family
[ 0.029749] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.030515] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.030556] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.030567] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.030616] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
[ 0.030912] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.030995] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.031017] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.031107] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.031942] PCI: CLS 0 bytes, default 64
[ 0.032880] Initialise system trusted keyrings
[ 0.032989] workingset: timestamp_bits=42 max_order=18 bucket_order=0
[ 0.076784] Key type asymmetric registered
[ 0.076789] Asymmetric key parser 'x509' registered
[ 0.076831] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.076837] io scheduler mq-deadline registered
[ 0.076842] io scheduler kyber registered
[ 0.076870] io scheduler bfq registered
[ 0.084390] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.090844] loop: module loaded
[ 0.091272] megasas: 07.727.03.00-rc1
[ 0.093626] tun: Universal TUN/TAP device driver, 1.6
[ 0.093943] thunder_xcv, ver 1.0
[ 0.093968] thunder_bgx, ver 1.0
[ 0.093986] nicpf, ver 1.0
[ 0.094165] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 0.094169] hns3: Copyright (c) 2017 Huawei Corporation.
[ 0.094195] hclge is initializing
[ 0.094223] e1000: Intel(R) PRO/1000 Network Driver
[ 0.094227] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.094246] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.094249] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.094270] igb: Intel(R) Gigabit Ethernet Network Driver
[ 0.094274] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.094291] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 0.094295] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.094356] sky2: driver version 1.30
[ 0.094703] VFIO - User Level meta-driver version: 0.3
[ 0.095014] usbcore: registered new interface driver usb-storage
[ 0.095088] usbcore: registered new device driver onboard-usb-hub
[ 0.096151] sun6i-rtc 7000000.rtc: registered as rtc0
[ 0.096172] sun6i-rtc 7000000.rtc: setting system clock to 1970-01-02T00:00:03 UTC (86403)
[ 0.096460] i2c_dev: i2c /dev entries driver
[ 0.096631] mv64xxx_i2c 7081400.i2c: can't get pinctrl, bus recovery not supported
[ 0.096954] i2c 0-0036: Fixed dependency cycle(s) with /soc/pinctrl@300b000
[ 0.098166] sdhci: Secure Digital Host Controller Interface driver
[ 0.098170] sdhci: Copyright(c) Pierre Ossman
[ 0.098307] Synopsys Designware Multimedia Card Interface Driver
[ 0.098619] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.099104] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.099264] SMCCC: SOC_ID: ID = jep106:091e:1823 Revision = 0x00000002
[ 0.099591] usbcore: registered new interface driver usbhid
[ 0.099595] usbhid: USB HID core driver
[ 0.100226] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.101055] NET: Registered PF_PACKET protocol family
[ 0.101087] Key type dns_resolver registered
[ 0.107020] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[ 0.107133] registered taskstats version 1
[ 0.107266] Loading compiled-in X.509 certificates
[ 0.121201] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.127434] sun50i-h616-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[ 0.127890] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.128108] sun50i-h616-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[ 0.128382] dw-apb-uart 5000000.serial: Error applying setting, reverse things back
[ 0.128629] sun6i-spi 5010000.spi: Error applying setting, reverse things back
[ 0.129389] axp20x-i2c 0-0036: AXP20x variant AXP313a found
[ 0.131097] axp20x-i2c 0-0036: AXP20X driver loaded
[ 0.133123] sunxi-mmc 4020000.mmc: Error applying setting, reverse things back
[ 0.133293] sunxi-mmc 4022000.mmc: Error applying setting, reverse things back
[ 0.133537] dw-apb-uart 5000000.serial: Error applying setting, reverse things back
[ 0.133781] sun6i-spi 5010000.spi: Error applying setting, reverse things back
[ 0.135473] sunxi-mmc 4020000.mmc: Got CD GPIO
[ 0.135800] sun50i-h616-pinctrl 300b000.pinctrl: pin PC13 already requested by 300b000.pinctrl:77; cannot claim for 4022000.mmc
[ 0.135808] sun50i-h616-pinctrl 300b000.pinctrl: error -EINVAL: pin-77 (4022000.mmc)
[ 0.135815] sun50i-h616-pinctrl 300b000.pinctrl: error -EINVAL: could not request pin 77 (PC13) from group PC13 on device 300b000.pinctrl
[ 0.135822] sunxi-mmc 4022000.mmc: Error applying setting, reverse things back
[ 0.136292] printk: legacy console [ttyS0] disabled
[ 0.156983] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 294, base_baud = 1500000) is a 16550A
[ 0.157031] printk: legacy console [ttyS0] enabled
[ 0.160203] sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[ 0.166072] ehci-platform 5200000.usb: EHCI Host Controller
[ 0.166151] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.166175] ohci-platform 5200400.usb: Generic Platform OHCI controller
[ 0.166193] ohci-platform 5200400.usb: new USB bus registered, assigned bus number 1
[ 0.166272] ohci-platform 5200400.usb: irq 297, io mem 0x05200400
[ 0.167320] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 0.167924] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 0.167969] clk: Disabling unused clocks
[ 0.168096] PM: genpd: Disabling unused power domains
[ 0.168199] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 0.168209] cfg80211: failed to load regulatory.db
[ 0.211256] mmc0: host does not support reading read-only switch, assuming write-enable
[ 0.214577] ehci-platform 5200000.usb: new USB bus registered, assigned bus number 2
[ 0.219042] mmc0: new high speed SDHC card at address 59b4
[ 0.223339] ehci-platform 5200000.usb: irq 296, io mem 0x05200000
[ 0.226697] mmcblk0: mmc0:59b4 SDU1 7.51 GiB
[ 0.228781] hub 1-0:1.0: USB hub found
[ 0.228810] hub 1-0:1.0: 1 port detected
[ 0.248194] ehci-platform 5200000.usb: USB 2.0 started, EHCI 1.00
[ 0.251008] mmcblk0: p1 p2
[ 0.256874] hub 2-0:1.0: USB hub found
[ 1.518132] hub 2-0:1.0: 1 port detected
[ 1.646655] EXT4-fs (mmcblk0p2): mounted filesystem 6e3b4d84-a74c-4713-899b-23fac0b5206c r/w with ordered data mode. Quota mode: none.
[ 1.658793] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.672660] devtmpfs: mounted
[ 1.676523] Freeing unused kernel memory: 2688K
[ 1.681131] Run /sbin/init as init process
[ 2.209544] systemd[1]: System time before build time, advancing clock.
[ 2.279585] systemd[1]: systemd 249.11-0ubuntu3 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP -LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[ 2.310681] systemd[1]: Detected architecture arm64.
Welcome to Ubuntu 22.04 LTS!
[ 2.328784] systemd[1]: Hostname set to <xpdeb>.
[ 2.913698] systemd[1]: Queued start job for default target Graphical Interface.
[ 6.864203] random: crng init done
[ 6.885638] systemd[1]: Created slice Slice /system/modprobe.
[ OK ] Created slice Slice /system/modprobe.
[ 6.909254] systemd[1]: Created slice Slice /system/serial-getty.
[ OK ] Created slice Slice /system/serial-getty.
[ 6.932883] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 6.956500] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password 鈥s to Console Directory Watch.
[ 6.988372] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password R鈥ests to Wall Directory Watch.
[ 7.012407] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
[ 7.024060] systemd[1]: Reached target Local Encrypted Volumes.
[ OK ] Reached target Local Encrypted Volumes.
[ 7.044341] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 7.064260] systemd[1]: Reached target Slice Units.
[ OK ] Reached target Slice Units.
[ 7.084278] systemd[1]: Reached target Swaps.
[ OK ] Reached target Swaps.
[ 7.104287] systemd[1]: Reached target Local Verity Protected Volumes.
[ OK ] Reached target Local Verity Protected Volumes.
[ 7.128684] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 7.148417] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 7.172878] systemd[1]: Listening on Journal Audit Socket.
[ OK ] Listening on Journal Audit Socket.
[ 7.192507] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 7.212549] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 7.232656] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 7.252468] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 7.272262] systemd[1]: Reached target Socket Units.
[ OK ] Reached target Socket Units.
[ 7.316395] systemd[1]: Mounting Huge Pages File System...
Mounting Huge Pages File System...
[ 7.339226] systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
[ 7.363228] systemd[1]: Mounting Kernel Debug File System...
Mounting Kernel Debug File System...
[ 7.384641] systemd[1]: Condition check resulted in Kernel Trace File System being skipped.
[ 7.436640] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 7.460788] systemd[1]: Starting Set the console keyboard layout...
Starting Set the console keyboard layout...
[ 7.484559] systemd[1]: Condition check resulted in Create List of Static Device Nodes being skipped.
[ 7.524764] systemd[1]: Starting Load Kernel Module configfs...
Starting Load Kernel Module configfs...
[ 7.547685] systemd[1]: Starting Load Kernel Module drm...
Starting Load Kernel Module drm...
[ 7.600634] systemd[1]: Starting Load Kernel Module fuse...
Starting Load Kernel Module fuse...
[ 7.626112] systemd[1]: Starting Load Kernel Modules...
Starting Load Kernel Modules...
[ 7.647567] systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ 7.675565] systemd[1]: Starting Coldplug All udev Devices...
Starting Coldplug All udev Devices...
[ 7.701014] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ OK ] Mounted Huge Pages File System.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Finished Set the console keyboard layout.
[ OK ] Finished Load Kernel Module configfs.
[ OK ] Finished Load Kernel Module drm.
[ OK ] Finished Load Kernel Module fuse.
[ OK ] Finished Load Kernel Modules.
[ OK ] Finished Remount Root and Kernel File Systems.
Mounting Kernel Configuration File System...
Starting Flush Journal to Persistent Storage...
[ 7.940227] systemd-journald[96]: Received client request to flush runtime journal.
Starting Load/Save Random Seed...
Starting Apply Kernel Variables...
Starting Create System Users...
[ OK ] Finished Coldplug All udev Devices.
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Finished Load/Save Random Seed.
[ OK ] Finished Flush Journal to Persistent Storage.
[ OK ] Finished Create System Users.
[ OK ] Finished Apply Kernel Variables.
Starting Create Static Device Nodes in /dev...
[ OK ] Finished Create Static Device Nodes in /dev.
[ OK ] Reached target Preparation for Local File Systems.
[ OK ] Reached target Local File Systems.
Starting Set console font and keymap...
Starting Create Volatile Files and Directories...
Starting Rule-based Manage鈥or Device Events and Files...
[ OK ] Finished Set console font and keymap.
[ OK ] Finished Create Volatile Files and Directories.
Starting Network Name Resolution...
Starting Network Time Synchronization...
Starting Record System Boot/Shutdown in UTMP...
[ OK ] Started Rule-based Manager for Device Events and Files.
[ OK ] Finished Record System Boot/Shutdown in UTMP.
[ OK ] Found device /dev/ttyS0.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Initialization.
[ OK ] Started Trigger to poll fo鈥 enabled on GCP LTS non-pro).
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Started Ubuntu Advantage Timer for running repeated jobs.
[ OK ] Reached target Path Units.
[ OK ] Reached target Basic System.
[ OK ] Reached target System Time Set.
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Started Daily dpkg database backup timer.
[ OK ] Started Periodic ext4 Onli鈥ta Check for All Filesystems.
[ OK ] Started Discard unused blocks once a week.
[ OK ] Started Daily rotation of log files.
[ OK ] Started Message of the Day.
[ OK ] Reached target Timer Units.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Started Regular background program processing daemon.
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Save initial kernel messages after boot.
Starting Remove Stale Onli鈥4 Metadata Check Snapshots...
Starting Dispatcher daemon for systemd-networkd...
Starting System Logging Service...
Starting OpenBSD Secure Shell server...
Starting User Login Management...
Starting Permit User Sessions...
[ OK ] Started Network Name Resolution.
[ OK ] Finished Permit User Sessions.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Started Serial Getty on ttyS0.
Starting Set console scheme...
[ OK ] Finished Set console scheme.
[ OK ] Created slice Slice /system/getty.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ OK ] Started System Logging Service.
[ OK ] Started User Login Management.
[ OK ] Started OpenBSD Secure Shell server.
[ OK ] Finished Remove Stale Onli鈥xt4 Metadata Check Snapshots.
[ OK ] Started Dispatcher daemon for systemd-networkd.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Record Runlevel Change in UTMP...
[ OK ] Finished Record Runlevel Change in UTMP.
Ubuntu 22.04 LTS xpdeb ttyS0
xpdeb login:
总结:H618主线支持已经不错了,可用,放假有空再来微调设备树,现在只能先用OrangePi Zero3的设备树,目前只发现PC13被占用,OrangePi Zero3的PC13是给灯用的。
@送南阳马生序
编译就是主线通用流程即可,下载linux 6.0内核,不要下全志的内核
下载这里面的
https://cdn.kernel.org/pub/linux/kernel/
然后解压进目录
make ARCH=arm sunxi_defconfig
make ARCH=arm menuconfig
device driver里选上你要的那个网卡驱动然后
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j8
内核都已经废弃gpio sysfs了,为什么还要用?libgpiod不好用?
sysfs实际上是一个调试或配置工具,后者才对编程友好。
主要是不会用.libgpiod感觉还是个半成品,根本不成熟,首先文档非常少,还在整天改来改去,我在ubuntu22.4上默认装的是libgpiod1.6,但是官网上的api说明已经是libgpiod3了?,3的例子在1.6上面根本运行不起来,基础的几个函数全改了,然后下载了源码准备手动安,发现22.04根本装不上3,要装3得升级从c++到c的一堆基础库,全部得手动编译升级…这像是个成熟的东西么,为了装个库难度快赶上重装系统了,根本没法折腾
吃灰十多年的cubieboard2了,当年玩的第一个开发板,闲着无聊给装了个主线6.0,确实是经典中的经典啊,全部默认配置一次编译成功。
这板子看配置现在也不落伍,什么接口都有,双核1G也勉强够用。
终于可以告别全志万年不变的linux3.4了,全部上最新配置。
U-Boot SPL 2024.07 (Aug 28 2024 - 18:18:26 +0800)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1
U-Boot 2024.07 (Aug 28 2024 - 18:18:26 +0800)HS Technology
CPU: Allwinner A20 (SUN7I)
Model: Cubietech Cubieboard2
DRAM: 1 GiB
Core: 58 devices, 20 uclasses, devicetree: separate
WDT: Not starting watchdog@1c20c90
MMC: mmc@1c0f000: 0, mmc@1c11000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
In: serial,usbkbd
Out: serial,vidconsole
Err: serial,vidconsole
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
348 bytes read in 0 ms
## Executing script at 43100000
25309 bytes read in 2 ms (12.1 MiB/s)
3876496 bytes read in 164 ms (22.5 MiB/s)
Kernel image @ 0x42000000 [ 0x000000 - 0x3b2690 ]
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Working FDT set to 43000000
Loading Device Tree to 49ff6000, end 49fff2dc ... OK
Working FDT set to 49ff6000
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.1.99 (root@xpdeb) (arm-linux-gnueabihf-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #4 SMP Thu Aug 29 15:09:26 CST 2024
[ 0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Cubietech Cubieboard2
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x4a000000, size 96 MiB
[ 0.000000] OF: reserved mem: initialized node default-pool, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000040000000-0x000000006fffffff]
[ 0.000000] HighMem [mem 0x0000000070000000-0x000000007fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] percpu: Embedded 11 pages/cpu s15508 r8192 d21356 u45056
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait rw panic=10
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] Memory: 930596K/1048576K available (6144K kernel code, 812K rwdata, 1440K rodata, 1024K init, 255K bss, 19676K reserved, 98304K cma-reserved, 262144K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000017] Switching to timer-based delay loop, resolution 41ns
[ 0.000399] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000672] Can't get timer clock
[ 0.001034] Console: colour dummy device 80x30
[ 0.001098] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001118] CPU: Testing write buffer coherency: ok
[ 0.001174] pid_max: default: 32768 minimum: 301
[ 0.001382] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.001403] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002553] /cpus/cpu@0 missing clock-frequency property
[ 0.002601] /cpus/cpu@1 missing clock-frequency property
[ 0.002614] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.003681] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003886] rcu: Hierarchical SRCU implementation.
[ 0.003894] rcu: Max phase no-delay instances is 1000.
[ 0.004681] smp: Bringing up secondary CPUs ...
[ 0.015703] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.015879] smp: Brought up 1 node, 2 CPUs
[ 0.015893] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[ 0.015903] CPU: All CPU(s) started in HYP mode.
[ 0.015907] CPU: Virtualization extensions available.
[ 0.016799] devtmpfs: initialized
[ 0.022963] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[ 0.023268] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.023300] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.027215] pinctrl core: initialized pinctrl subsystem
[ 0.029058] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.030590] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.031657] thermal_sys: Registered thermal governor 'step_wise'
[ 0.031891] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.031911] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.037621] platform 1c0c000.lcd-controller: Fixed dependency cycle(s) with /soc/display-backend@1e40000
[ 0.037693] platform 1c0c000.lcd-controller: Fixed dependency cycle(s) with /soc/display-backend@1e60000
[ 0.037923] platform 1c0d000.lcd-controller: Fixed dependency cycle(s) with /soc/display-backend@1e40000
[ 0.037981] platform 1c0d000.lcd-controller: Fixed dependency cycle(s) with /soc/display-backend@1e60000
[ 0.041716] platform 1e00000.display-frontend: Fixed dependency cycle(s) with /soc/display-backend@1e40000
[ 0.041763] platform 1e00000.display-frontend: Fixed dependency cycle(s) with /soc/display-backend@1e60000
[ 0.042017] platform 1e20000.display-frontend: Fixed dependency cycle(s) with /soc/display-backend@1e40000
[ 0.042055] platform 1e20000.display-frontend: Fixed dependency cycle(s) with /soc/display-backend@1e60000
[ 0.042315] platform 1e20000.display-frontend: Fixed dependency cycle(s) with /soc/display-backend@1e40000
[ 0.042417] platform 1e00000.display-frontend: Fixed dependency cycle(s) with /soc/display-backend@1e40000
[ 0.042520] platform 1c0d000.lcd-controller: Fixed dependency cycle(s) with /soc/display-backend@1e40000
[ 0.042625] platform 1c0c000.lcd-controller: Fixed dependency cycle(s) with /soc/display-backend@1e40000
[ 0.042710] platform 1e40000.display-backend: Fixed dependency cycle(s) with /soc/lcd-controller@1c0d000
[ 0.042795] platform 1e40000.display-backend: Fixed dependency cycle(s) with /soc/lcd-controller@1c0c000
[ 0.042878] platform 1e40000.display-backend: Fixed dependency cycle(s) with /soc/display-frontend@1e20000
[ 0.042969] platform 1e40000.display-backend: Fixed dependency cycle(s) with /soc/display-frontend@1e00000
[ 0.043285] platform 1e20000.display-frontend: Fixed dependency cycle(s) with /soc/display-backend@1e60000
[ 0.043394] platform 1e00000.display-frontend: Fixed dependency cycle(s) with /soc/display-backend@1e60000
[ 0.043517] platform 1c0d000.lcd-controller: Fixed dependency cycle(s) with /soc/display-backend@1e60000
[ 0.043613] platform 1c0c000.lcd-controller: Fixed dependency cycle(s) with /soc/display-backend@1e60000
[ 0.043694] platform 1e60000.display-backend: Fixed dependency cycle(s) with /soc/lcd-controller@1c0d000
[ 0.043785] platform 1e60000.display-backend: Fixed dependency cycle(s) with /soc/lcd-controller@1c0c000
[ 0.043872] platform 1e60000.display-backend: Fixed dependency cycle(s) with /soc/display-frontend@1e20000
[ 0.043955] platform 1e60000.display-backend: Fixed dependency cycle(s) with /soc/display-frontend@1e00000
[ 0.052770] SCSI subsystem initialized
[ 0.052999] pps_core: LinuxPPS API ver. 1 registered
[ 0.053008] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.053030] PTP clock support registered
[ 0.054690] clocksource: Switched to clocksource arch_sys_counter
[ 0.064972] NET: Registered PF_INET protocol family
[ 0.065296] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.067685] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.067726] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.067743] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.067821] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.068172] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.068335] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.068407] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.068712] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.069175] armv7-pmu pmu: hw perfevents: no interrupt-affinity property, guessing.
[ 0.069931] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 0.071697] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.078109] bounce: pool size: 64 pages
[ 0.078256] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.078269] io scheduler mq-deadline registered
[ 0.078276] io scheduler kyber registered
[ 0.151572] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.158538] sunxi-rtc 1c20d00.rtc: registered as rtc0
[ 0.158610] sunxi-rtc 1c20d00.rtc: setting system clock to 2024-08-29T08:25:10 UTC (1724919910)
[ 0.158830] i2c_dev: i2c /dev entries driver
[ 0.160296] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 0.161611] sun4i-ss 1c15000.crypto-engine: no reset control found
[ 0.161722] sun4i-ss 1c15000.crypto-engine: Die ID 0
[ 0.163876] NET: Registered PF_PACKET protocol family
[ 0.163952] Key type dns_resolver registered
[ 0.164026] Registering SWP/SWPB emulation handler
[ 0.183130] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.183988] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[ 0.185206] printk: console [ttyS0] disabled
[ 0.205447] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 69, base_baud = 1500000) is a U6_16550A
[ 1.090876] printk: console [ttyS0] enabled
[ 1.096012] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[ 1.104532] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[ 1.110956] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[ 1.117009] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[ 1.122791] sun7i-dwmac 1c50000.ethernet: no regulator found
[ 1.128875] sun7i-dwmac 1c50000.ethernet: Version ID not available
[ 1.135121] sun7i-dwmac 1c50000.ethernet: DWMAC1000
[ 1.140089] sun7i-dwmac 1c50000.ethernet: No HW DMA feature register supported
[ 1.147323] sun7i-dwmac 1c50000.ethernet: TX Checksum insertion supported
[ 1.154108] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[ 1.159777] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[ 1.170276] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[ 1.176984] axp20x-i2c 0-0034: mask_invert=true is deprecated; please switch to unmask_base
[ 1.198855] input: axp20x-pek as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input0
[ 1.214285] axp20x-adc axp20x-adc: DMA mask not set
[ 1.221273] axp20x-ac-power-supply axp20x-ac-power-supply: DMA mask not set
[ 1.236804] axp20x-i2c 0-0034: AXP20X driver loaded
[ 1.245804] sun4i-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[ 1.255640] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[ 1.256841] clk: Disabling unused clocks
[ 1.264494] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[ 1.278589] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 1.303481] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB
[ 1.308403] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.317722] Waiting for root device /dev/mmcblk0p2...
[ 1.357082] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.367375] mmc0: new high speed SDHC card at address 1234
[ 1.375946] mmcblk0: mmc0:1234 SA08G 7.21 GiB
[ 1.386603] mmcblk0: p1 p2
[ 1.439927] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: disabled.
[ 1.449154] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.465360] devtmpfs: mounted
[ 1.471832] Freeing unused kernel image (initmem) memory: 1024K
[ 1.478364] Run /sbin/init as init process
[ 2.059296] systemd[1]: systemd 249.11-0ubuntu3 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP -LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[ 2.091217] systemd[1]: Detected architecture arm.
Welcome to Ubuntu 22.04 LTS!
[ 3.159333] systemd[1]: Queued start job for default target Graphical Interface.
[ 5.534691] random: crng init done
[ 5.540354] systemd[1]: Created slice Slice /system/modprobe.
[ OK ] Created slice Slice /system/modprobe.
[ 5.577334] systemd[1]: Created slice Slice /system/serial-getty.
[ OK ] Created slice Slice /system/serial-getty.
[ 5.617179] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 5.656847] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password 鈥s to Console Directory Watch.
[ 5.697624] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password R鈥ests to Wall Directory Watch.
[ 5.737292] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
[ 5.749617] systemd[1]: Reached target Local Encrypted Volumes.
[ OK ] Reached target Local Encrypted Volumes.
[ 5.787753] systemd[1]: Reached target Path Units.
[ OK ] Reached target Path Units.
[ 5.817220] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 5.859094] systemd[1]: Reached target Slice Units.
[ OK ] Reached target Slice Units.
[ 5.899449] systemd[1]: Reached target Swaps.
[ OK ] Reached target Swaps.
[ 5.939410] systemd[1]: Reached target Timer Units.
[ OK ] Reached target Timer Units.
[ 5.979239] systemd[1]: Reached target Local Verity Protected Volumes.
[ OK ] Reached target Local Verity Protected Volumes.
[ 6.020855] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 6.058203] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 6.141039] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[ 6.158919] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 6.201208] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 6.241838] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 6.290824] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 6.329916] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 6.366515] systemd[1]: Reached target Socket Units.
[ OK ] Reached target Socket Units.
[ 6.399749] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 6.412192] systemd[1]: Condition check resulted in POSIX Message Queue File System being skipped.
[ 6.475434] systemd[1]: Mounting Kernel Debug File System...
Mounting Kernel Debug File System...
[ 6.506798] systemd[1]: Condition check resulted in Kernel Trace File System being skipped.
[ 6.517621] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[ 6.531327] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[ 6.545139] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 6.583776] systemd[1]: Starting Set the console keyboard layout...
Starting Set the console keyboard layout...
[ 6.625302] systemd[1]: Condition check resulted in Create List of Static Device Nodes being skipped.
[ 6.675819] systemd[1]: Starting Load Kernel Module configfs...
Starting Load Kernel Module configfs...
[ 6.721762] systemd[1]: Starting Load Kernel Module drm...
Starting Load Kernel Module drm...
[ 6.771314] systemd[1]: Starting Load Kernel Module fuse...
Starting Load Kernel Module fuse...
[ 6.805303] systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.
[ 6.835556] systemd[1]: Starting Load Kernel Modules...
Starting Load Kernel Modules...
[ 6.915721] systemd[1]: Starting Generate network units from Kernel command line...
Starting Generate network 鈥s from Kernel command line...
[ 6.940505] systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ 6.990293] systemd[1]: Starting Coldplug All udev Devices...
Starting Coldplug All udev Devices...
[ 7.044542] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Finished Load Kernel Module configfs.
[ OK ] Finished Load Kernel Module drm.
[ OK ] Finished Set the console keyboard layout.
[ OK ] Finished Load Kernel Module fuse.
[ OK ] Finished Load Kernel Modules.
[ OK ] Finished Generate network units from Kernel command line.
[ OK ] Finished Remount Root and Kernel File Systems.
[ OK ] Reached target Preparation for Network.
Starting Flush Journal to Persistent Storage...
Starting Load/Save Random Seed...[ 7.534150] systemd-journald[85]: Received client request to flush runtime journal.
Starting Apply Kernel Variables...
Starting Create System Users...
[ OK ] Finished Load/Save Random Seed.
[ OK ] Finished Apply Kernel Variables.
[ OK ] Finished Create System Users.
[ OK ] Finished Flush Journal to Persistent Storage.
Starting Create Static Device Nodes in /dev...
[ OK ] Finished Coldplug All udev Devices.
[ OK ] Finished Create Static Device Nodes in /dev.
[ OK ] Reached target Preparation for Local File Systems.
[ OK ] Reached target Local File Systems.
Starting Set console font and keymap...
Starting Create Volatile Files and Directories...
Starting Rule-based Manage鈥or Device Events and Files...
[ OK ] Finished Set console font and keymap.
[ OK ] Finished Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Record System Boot/Shutdown in UTMP...
[ OK ] Started Rule-based Manager for Device Events and Files.
Starting Network Configuration...
[ OK ] Finished Record System Boot/Shutdown in UTMP.
[ OK ] Found device /dev/ttyS0.
[ OK ] Started Network Configuration.
Starting Network Name Resolution...
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Initialization.
[ OK ] Reached target Basic System.
[ OK ] Reached target System Time Set.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Started Regular background program processing daemon.
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Save initial kernel messages after boot.
Starting Remove Stale Onli鈥4 Metadata Check Snapshots...
Starting Dispatcher daemon for systemd-networkd...
Starting System Logging Service...
Starting User Login Management...
[ OK ] Started System Logging Service.
[ OK ] Started Network Name Resolution.
[ OK ] Started Dispatcher daemon for systemd-networkd.
[ OK ] Finished Remove Stale Onli鈥xt4 Metadata Check Snapshots.
[ OK ] Started User Login Management.
[ OK ] Reached target Network.
[ OK ] Reached target Host and Network Name Lookups.
Starting OpenBSD Secure Shell server...
Starting Permit User Sessions...
[ OK ] Finished Permit User Sessions.
[ OK ] Started Serial Getty on ttyS0.
Starting Set console scheme...
[ OK ] Finished Set console scheme.
[ OK ] Created slice Slice /system/getty.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ OK ] Started OpenBSD Secure Shell server.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Record Runlevel Change in UTMP...
[ OK ] Finished Record Runlevel Change in UTMP.
Ubuntu 22.04 LTS Leon ttyS0
A20 login:
最后的遗憾就是,全志已经放弃了主线下的Nand驱动,原来的 4GNand 没法用了。
已经设置成utf-8了,但还是不行呢
root@xpdeb:~# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
中文目录还是不能显示
root@xpdeb:~# mkdir 哈哈
root@xpdeb:~# ls
''$'\271\376\271\376'
root@xpdeb:~#
强迫症一直折腾Loading Environment from FAT... *** Warning - bad CRC, using default environment
虽然不影响什么,但是看着一直不爽
2024.07版的uboot,似乎不认老版本的boot.scr,放在第一个分区也不行了
U-Boot SPL 2024.07 (Aug 27 2024 - 10:50:47 +0800)
DRAM: 256 MiB
Trying to boot from MMC1
U-Boot 2024.07 (Aug 27 2024 - 10:50:47 +0800)HShan Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: OrangePi Zero Plus2 H3
DRAM: 256 MiB
Core: 61 devices, 17 uclasses, devicetree: separate
WDT: Not starting watchdog@1c20ca0
MMC: mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment
In: serial,usbkbd
Out: serial
Err: serial
=>
解决方法,用mkenvimage来生成env文件,以前的mkimage不要用
mkenvimage -s 0x10000 -p 0 -o uboot.env boot.txt
现在生成的uboot.env放在第一个分区就没有CRC错误了,还可以直接刷在启动分区u-boot后面,这样启动更快
完美!
U-Boot SPL 2024.07 (Aug 27 2024 - 10:50:47 +0800)
DRAM: 256 MiB
Trying to boot from MMC1
U-Boot 2024.07 (Aug 27 2024 - 10:50:47 +0800)HShan Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: OrangePi Zero Plus2 H3
DRAM: 256 MiB
Core: 61 devices, 17 uclasses, devicetree: separate
WDT: Not starting watchdog@1c20ca0
MMC: mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... OK
In: serial
Out: serial
Err: serial
=>
这个和香橙派的是同款,直接刷香橙派固件就可以
这个帖子里有资料
https://lindoglog.blog.csdn.net/article/details/125418053
以前还以为全志是刷不死的,今天手贱终于成功把A33 emmc版的刷成砖了,这开发板只带了emmc,也没有tf卡槽,emmc上出厂应该有个boot0和boot1
以下教你怎么把它彻底刷成砖:
1.u-boot进入命令行模式,然后
mmc erase 0 2048
这个应该是把emmc的分区表清除了
2.参考这个帖子https://whycan.com/t_3633.html,改了下emmc的启动位置
mmc partconf 1 0 7 0
好了现在彻底变砖,上电连boot0都没反应了,应该救不回来了把,除非把emmc拆下来重新写?不过没搞懂一点Boot0也就是BROM不是号称固化在CPU里的,理论上应该和EMMC没关系,为啥也不执行了,mmc partconf 1 0 7 0这个命令执行后难道也写到CPU里去了吗,直接改的是CPU里的参数?
编出来的u-boot好几个版本了,刷进去都起不来,一执行u-boot就卡在initcall failed at call 7df90621 (err=-96)
debug等级都调到8了,也没输出什么别的信息
U-Boot 2024.07 (Aug 15 2024 - 23:39:23 -0400) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
Model: Cubietech Cubieboard2
DRAM: 1 GiB
initcall failed at call 7df90621 (err=-96)
### ERROR ### Please RESET the board ###
荔枝plus,内核起来后mmc卡就出问题了,检查了mmc也没坏啊,重做系统也是如此,原来一切正常,插上otg插了一次usb网卡,就出现mmc错误
再启就启不来了
[ 1.211399] Waiting for root device /dev/mmcblk0p2...
[ 1.242544] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.252627] mmc0: new high speed SDHC card at address 1234
[ 1.259906] mmcblk0: mmc0:1234 SA04G 3.71 GiB
[ 1.266462] mmcblk0: p1 p2 p3
[ 1.296216] random: fast init done
[ 1.304707] EXT4-fs (mmcblk0p2): recovery complete
[ 1.309667] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.317907] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.325373] devtmpfs: mounted
[ 1.329617] Freeing unused kernel memory: 1024K
[ 1.334308] Run /sbin/init as init process
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Saving random seed: [ 1.870926] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting haveged: haveged: command socket is listening at fd 3
OK
Starting system message bus: [ 2.775434] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[ 2.786495] mmc0: card 1234 removed
/etc/init.d/S30dbus: line 23: /usr/bin/dbus-uuidgen: Input/output error
[ 2.806459] JBD2: Error -5 detected when updating journal superblock for mmcblk0p2-8.
[ 2.814302] Aborting journal on device mmcblk0p2-8.
[ 2.820483] EXT4-fs (mmcblk0p2): I/O error while writing superblock
[ 2.826889] EXT4-fs error (device mmcblk0p2): ext4_journal_check_start:61: Detected aborted journal
[ 2.835959] EXT4-fs (mmcblk0p2): Remounting filesystem read-only
[ 2.845733] JBD2: Error -5 detected when updating journal superblock for mmcblk0p2-8.
[ 3.625424] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[ 4.375412] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[ 4.381943] EXT4-fs error (device mmcblk0p2): __ext4_find_entry:1531: inode #2: comm syslogd: reading directory lblock 0
[ 4.392989] EXT4-fs (mmcblk0p2): I/O error while writing superblock
[ 4.399355] ------------[ cut here ]------------
[ 4.403993] WARNING: CPU: 0 PID: 122 at fs/fs-writeback.c:2232 __mark_inode_dirty+0x1dc/0x278
[ 4.412528] bdi-block not registered
[ 4.416108] Modules linked in:
[ 4.419168] CPU: 0 PID: 122 Comm: S30dbus Not tainted 5.2.0-leon #47
[ 4.425510] Hardware name: Allwinner sun8i Family
[ 4.430237] [<c010ede4>] (unwind_backtrace) from [<c010b774>] (show_stack+0x10/0x14)
[ 4.437978] [<c010b774>] (show_stack) from [<c05f6818>] (dump_stack+0x88/0x9c)
[ 4.445198] [<c05f6818>] (dump_stack) from [<c011db1c>] (__warn+0xdc/0xf4)
[ 4.452067] [<c011db1c>] (__warn) from [<c011db7c>] (warn_slowpath_fmt+0x48/0x6c)
[ 4.459544] [<c011db7c>] (warn_slowpath_fmt) from [<c0240658>] (__mark_inode_dirty+0x1dc/0x278)
[ 4.468239] [<c0240658>] (__mark_inode_dirty) from [<c0230f7c>] (generic_update_time+0xd8/0xfc)
[ 4.476930] [<c0230f7c>] (generic_update_time) from [<c0232df0>] (touch_atime+0xb8/0xd4)
[ 4.485017] [<c0232df0>] (touch_atime) from [<c01c3858>] (generic_file_read_iter+0x820/0xa3c)
[ 4.493539] [<c01c3858>] (generic_file_read_iter) from [<c0215adc>] (__vfs_read+0x128/0x1c0)
[ 4.501970] [<c0215adc>] (__vfs_read) from [<c0215c00>] (vfs_read+0x8c/0x118)
[ 4.509099] [<c0215c00>] (vfs_read) from [<c0215cb8>] (kernel_read+0x2c/0x44)
[ 4.516230] [<c0215cb8>] (kernel_read) from [<c021c1c8>] (prepare_binprm+0xe8/0x168)
[ 4.523967] [<c021c1c8>] (prepare_binprm) from [<c021d2f0>] (__do_execve_file+0x570/0x790)
[ 4.532225] [<c021d2f0>] (__do_execve_file) from [<c021d8f8>] (sys_execve+0x34/0x3c)
[ 4.539962] [<c021d8f8>] (sys_execve) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 4.547606] Exception stack(0xc7bebfa8 to 0xc7bebff0)
[ 4.552656] bfa0: 000bf1a0 000ce890 000ce890 000cea58 000cbd20 000bdbf4
[ 4.560825] bfc0: 000bf1a0 000ce890 000ce880 0000000b 000cbd20 000cea20 00000000 000bc724
[ 4.568990] bfe0: b6dcdc61 bef454c4 00038578 b6dcdc68
[ 4.574068] ---[ end trace c6f207a5ddfe7556 ]---
荔枝派的zero plus,没有用官方提供的变压器+RJ45的接法,用的HR911105A,仿的这个帖子里的接法
https://whycan.com/t_3887.html
看固件网卡运行正常,也能正常ifconfig up,但就是插上网线不通哦
咋调试呢,量了一下Link灯也不亮,link灯那个引脚有1.8v
是因为没有严格做那个100欧的差分线?我就随便画的差分线,算了下估计90欧左右,应该也能用吧
另外看索智S3和荔枝派的V3S都有一个PHY_RTX的引脚,荔枝派 plus就没有这个引脚,是不是这个原因
页次: 1