您尚未登录。

#1 Re: 全志 SOC » H618 uboot 修改默认打印串口失败 » 2024-09-30 23:52:32

确认是卡住了?没准输出到别的口去了你看不见呢

#2 Re: 全志 SOC » 求助:全志A33-Vstar uboot » 2024-09-30 23:48:43

usm的问题吧,干嘛要用ums,现在很少看到有人用这个,用dd先试试看能跑通了再说

#4 Re: 全志 SOC » 【求教】全志v3s 怎么移植主线linux 和移远4G usb网卡 » 2024-09-26 20:18:22

这很简单嘛,下载,直接编译就行了,移远的驱动主线里自带

#5 Re: 全志 SOC » 有钱了,咱也能用上64位CPU了,入坑H618 » 2024-09-18 22:22:07

今天踩第二个坑,调有线网,发现有线网速度很慢,10k都不到,但是看网卡状态都正常,最后发现orangepi的设备树文件有问题,
sun50i-h618-orangepi-zero3.dts中
&emac0 {
    allwinner,tx-delay-ps = <700>;
    phy-mode = "rgmii-rxid";
    phy-supply = <&reg_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驱动。

#6 Re: 全志 SOC » 有钱了,咱也能用上64位CPU了,入坑H618 » 2024-09-18 22:07:57

jordonwu 说:

这是哪家的板子?

上面有logo呀,kickpi,以前我也没听过,看质量还行

#7 Re: 全志 SOC » 有钱了,咱也能用上64位CPU了,入坑H618 » 2024-09-16 19:03:34

今天发现第一个坑,全志的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

#8 Re: 全志 SOC » H616 无法从emmc启动 » 2024-09-16 12:54:39

全志的驱动读emmc有问题,但是读mmc又没有问题,现在降频可以暂时解决,修改uboot里的/drivers/mmc/sunxi_mmc.c,把cfg->f_max = 52000000;改成cfg->f_max = 12000000;

#9 全志 SOC » 有钱了,咱也能用上64位CPU了,入坑H618 » 2024-09-14 15:59:25

microxp
回复: 8

玩了这么久,都是用的32位板子,最近打螺丝赚点小钱,买了一块H618,咱也来体验一把64位...
taobao买的H618,140的天价,1G+8G,带WIFI千兆网卡,一如既往的国货特色,硬件很nx,软件很拉跨,技术支持就等于没有
商家提供的几个镜像和全志SDK塞满了垃圾和预装,光镜像都2g,像我这种买不起网盘会员的人,光下载SDK和镜像都感觉很困难了。
好在H618主线支持不错,开始自己编主线.........
_20240914154607.jpg

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是给灯用的。

#10 Re: 全志 SOC » A33在Uboot中无法使用mmc和sd卡 » 2024-09-14 15:35:14

设备树里还得加上mmc2吧,我记得设备树里没开mmc2

#11 Re: 全志 SOC » A33在Uboot中无法使用mmc和sd卡 » 2024-09-14 11:48:03

A33-OLinuXino_defconfig那个我试过是没问题的啦,mmc dev 1是板子上的emmc呀,先确认下你的板子有emmc吗,dev 0是外挂的tf卡,你可以插个tf卡试试mmc dev 0 有没有反应

#12 Re: 全志 SOC » A33在Uboot中无法使用mmc和sd卡 » 2024-09-13 18:20:06

silinx的配置文件一般水土不服呀,换orangepi的a33试试看

#13 Re: 全志 SOC » 老树也能开新花,A20都用上linux6了 » 2024-09-11 17:15:48

@送南阳马生序
编译就是主线通用流程即可,下载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

#14 Re: 全志 SOC » f1c100s的gpio的文件操作方式 » 2024-09-10 21:00:48

@jiabuda
这种方式已经被淘汰了,现在6.0内核那个程序挺好用的,libgpiod

#15 Re: 全志 SOC » 老树也能开新花,A20都用上linux6了 » 2024-09-10 20:58:09

@送南阳马生序
主线要看板子,2012年的是没法烧录的,用tf卡烧就很简单了,不挑板,就是通用全志烧到tf卡的方法,dd

#16 Re: 全志 SOC » 求大佬指导!初学自己做了个A33的板子,但emmc刷了固件就是启动不了 » 2024-08-30 21:28:08

A33是几个mmc控制器?两个还是三个?
另外正确刷固件的方法不是dd吗?先用dd试试看,全志那些软件只对他家的sdk有用,刷主线经常刷出问题,你刷的那个包看mmc par分区都是乱七八糟的,应该是全志sdk搞出来的分区吧,一个linux咋能分出八个区,boot还从中间开始。

#17 Re: 全志 SOC » linux 6怎么操作全志的GPIO呢? » 2024-08-30 20:20:54

海石生风 说:

内核都已经废弃gpio sysfs了,为什么还要用?libgpiod不好用?

sysfs实际上是一个调试或配置工具,后者才对编程友好。

主要是不会用.libgpiod感觉还是个半成品,根本不成熟,首先文档非常少,还在整天改来改去,我在ubuntu22.4上默认装的是libgpiod1.6,但是官网上的api说明已经是libgpiod3了?,3的例子在1.6上面根本运行不起来,基础的几个函数全改了,然后下载了源码准备手动安,发现22.04根本装不上3,要装3得升级从c++到c的一堆基础库,全部得手动编译升级…这像是个成熟的东西么,为了装个库难度快赶上重装系统了,根本没法折腾

#18 全志 SOC » linux 6怎么操作全志的GPIO呢? » 2024-08-30 12:47:00

microxp
回复: 3

原来操作文件的方式已经被废弃了,现在的设备树文件该怎么写?
我看网上有的是用onewire驱动来实现的,除了1wire,有没有什么其他的驱动可以用?

    onewire@0 {
                compatible = "w1-gpio";
                pinctrl-names = "default";
                pinctrl-0 = <&w1_pins>;
                gpios = <&pio 8 15 0>; /* PI15 */
                status = "okay";
            };

没用过这种方式,能不能在6.0内核下使用古老的操作文件的方式来控制管脚

#19 全志 SOC » 老树也能开新花,A20都用上linux6了 » 2024-08-29 16:30:17

microxp
回复: 12

吃灰十多年的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 没法用了。
.png

#20 Re: 全志 SOC » ubuntu 22.03不能显示中文是哪里不对啊? » 2024-08-28 19:59:06

海石生风 说:

前提条件要说明清楚:这是tty终端还是pts虚拟终端?
tty终端默认不支持中文显示,需要对内核打补丁才能支持中文
pts可以理解为是在桌面环境内打开的终端模拟器,ubuntu默认pts应该支持中文

分不清,同一个系统,用串口线开ttys0连接就不支持中文,用ssh进去又能支持中文了

#21 全志 SOC » ubuntu 22.03不能显示中文是哪里不对啊? » 2024-08-28 13:26:08

microxp
回复: 5

已经设置成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:~# 

#22 Re: 全志 SOC » H3主线U-boot之环境变量 » 2024-08-27 12:48:27

ubuntu 说:

uboot.env 具体放哪个位置呢?

sd卡第一个分区,就是以前放boot.scr的地方,这样下面就多出一个uboot.env,这个不做也没问题,就用系统默认的全套环境变量,我只是强迫症。

#23 全志 SOC » H3主线U-boot之环境变量 » 2024-08-27 11:54:50

microxp
回复: 2

强迫症一直折腾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
=> 

#24 全志 SOC » uboot里能给emmc分区吗? » 2024-08-24 20:40:56

microxp
回复: 2

看有个命令mmc hwpartion看着有点像,但是不会用,已经进uboot并加载了mmc,想在uboot里用命令重新分区

#25 Re: 全志 SOC » 开源个 D1 / D1-H核心板 » 2024-08-21 20:55:52

打样免费,奈何我手残焊不起来

#26 Re: 全志 SOC » 全志H6的USB0 OTG模式连接电脑没有任何反应 » 2024-08-21 20:53:30

剑圣UZI 说:

测试了usb2.0的线,也不行,啥反应没有。
感觉可能是PCB问题了。。。。

usb没那么难吧,直接飞线都可以呀,反正就四根线,直接拿飞线接上看就行了

#27 Re: 全志 SOC » 锐尔威视H3的核心板有资料么? » 2024-08-21 09:32:21

这个和香橙派的是同款,直接刷香橙派固件就可以
这个帖子里有资料
https://lindoglog.blog.csdn.net/article/details/125418053

#28 全志 SOC » 终于成功把开发板刷成砖了,真不容易 » 2024-08-20 17:14:30

microxp
回复: 2

以前还以为全志是刷不死的,今天手贱终于成功把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里的参数?

#29 Re: 全志 SOC » 全志H6的USB0 OTG模式连接电脑没有任何反应 » 2024-08-19 20:49:08

它确实不支持3.0,别搞那么高端,粗糙一点没准还能跑。还有插windows上试试看,windows识别usb比较厉害,有时候linux识别不出来。还有做otg不是还有个id脚吗,那个是不是要强制接地,不知道悬空有没有影响,otg一般都用五个脚的。还有dpdm线是不是还有个1.5k的上拉电阻来决定高低速度的,这个不接有的电脑也能识别,不知道有没有影响

#30 Re: 全志 SOC » 有没有tf卡座接口的sd芯片啊? » 2024-08-18 22:59:59

晕哥 说:
microxp 说:
晕哥 说:

用TF卡直接做产品基本没有,因为那个接插口太不可靠了。

我说的就是这意思啊,为啥不把tf卡封装成卡座那种9针的,直接往卡座上一焊就行了

啊这,8p不是更好吗?

8p是啥?我记得tf卡座是9p的吧,也许我记错了

#31 Re: 全志 SOC » 有没有tf卡座接口的sd芯片啊? » 2024-08-18 22:54:25

晕哥 说:

用TF卡直接做产品基本没有,因为那个接插口太不可靠了。

我说的就是这意思啊,为啥不把tf卡芯片封装成卡座那种9针的,直接往卡座上一焊就行了,这些厂家非要自己搞个两排八脚的封装出来,通用性差了十万八千里,搞成通用封装所有的产品只要把卡座拆掉,都不用改板子

#32 全志 SOC » 有没有tf卡座接口的sd芯片啊? » 2024-08-18 21:09:39

microxp
回复: 16

现在市场上的所谓sd nand都是自定义的两排接口,找半天都没找到,我就想找个tf卡槽接口的,这样既可以焊个tf卡槽方便换卡,如果想焊死不能换tf卡就直接把芯片贴在卡槽上,岂不是一举两得嘛,咋没人生产呢,这样不是一个卡槽的位置可以两种用途了嘛

#33 Re: 全志 SOC » 全志A10/A20 nand flash系统开发 » 2024-08-16 11:41:17

编出来的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 ###

#34 Re: 全志 SOC » T113-S3使用主线为啥就这么难呢?SPL跑起来了死活进不去uboot » 2024-08-13 22:20:23

你这就没跑起来吧,应该是烧录方法的问题,网上一大堆文章都是抄来抄去的,spl是不能用dd写的,我也不知道为什么,好像必须要sunxi_fel写的才行。

#35 Re: 全志 SOC » 有没有熟悉全志A33 Tina qt opengl并且有空的老哥 » 2024-08-07 23:49:13

a33不是支持主线吗,用主线跑会不会好点呀,tina资料实在是太少了,要啥没啥

#36 Re: 全志 SOC » 全志A10/A20 nand flash系统开发 » 2024-07-19 00:57:50

那么楼主可以分享个编译好的uboot-spl.bin吗,我想直接刷来试试

#37 Re: 全志 SOC » led驱动的设备树文件怎么写 » 2021-09-05 09:24:47

感谢楼上,应该就是这个

eds {
32        compatible = "gpio-leds";
33        hdd {
34            label = "Disk Activity";
35            gpios = <&mcu_pio 0 GPIO_ACTIVE_LOW>;
36            linux,default-trigger = "disk-activity";
37        };

等我试试v3s能不能用

#38 全志 SOC » led驱动的设备树文件怎么写 » 2021-09-04 23:59:02

microxp
回复: 3

求个例子,就是让某个gpio点灯,驱动编译进去了,设备树文件不知道怎么写,应该是指定好了gpio脚对应的灯的类型它就会自己闪了,比如heartbeat灯,硬盘灯之类的,不需要在用户空间echo去操作那个脚,全志以前的系统可以在fex文件里写,现在设备树不会玩了。

#40 Re: 全志 SOC » sipeed 出了R329板子 » 2021-08-31 21:17:12

出太快也是闹心,以前画的又作废了

#44 Re: 全志 SOC » 分享一种emmc固件的制作方式(squashfs+overlay) » 2021-07-08 18:30:00

我记得不需要啊,br不是动态的嘛,编译完多大就是多大

#47 Re: NB-IoT/2G模块/4G模块/GPRS模块/GPS/北斗 » 移远的ec600刷机一定要谨慎啊 » 2021-06-09 19:14:32

平台在那里摆着,10m内存跑python只能说凑活用哈哈,大程序肯定是够呛,点灯什么的足够了

#48 NB-IoT/2G模块/4G模块/GPRS模块/GPS/北斗 » 移远的ec600刷机一定要谨慎啊 » 2021-06-08 19:37:20

microxp
回复: 4

买的ec600s-cn,刷了官方的那个qpy python固件,玩够了想刷回去?不可能的,全网都没有固件,官方也拒绝提供,移远推它的python确实很卖力呀,刷过了就不能当一个普通4g模块用了,只能摆着吃灰了!

#51 Re: 全志 SOC » v3s怎么监控电压呢,简单的思路有没有 » 2021-06-03 19:13:53

酷酷酷 说:

先衰减电压 然后呢 v3s有个adc的引脚可以测

那个adc需要驱动吗,还是就当一个gpio口用,好像默认是被按键用掉的吧

#52 全志 SOC » v3s怎么监控电压呢,简单的思路有没有 » 2021-06-02 23:38:31

microxp
回复: 6

用的12v电瓶给v3s供电,怎么监控那个电瓶的电压,传统的肯定是装个adc芯片电路采样然后v3s去读,不过这个电压要求不高,就是看看电瓶的电量,总觉得用adc太浪费了,有啥简单的思路吗?

#53 Re: NB-IoT/2G模块/4G模块/GPRS模块/GPS/北斗 » 移远 EC200s 居然不能自动联网, 还得串口敲命令才行. » 2021-05-29 23:07:55

是啊好大一个坑,你买的什么版本的200s,我拿了一个试连发命令都不会联网,只能用ppp拨号,200s-CN的

#54 全志 SOC » 什么原因?sunxi-mmc 1c0f000.mmc: fatal err update clk timeout » 2021-05-28 14:49:34

microxp
回复: 1

荔枝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 ]---

#56 Re: 全志 SOC » 有老哥知道怎么移植gcc到v3s吗 » 2021-05-20 19:59:01

跑得动吗这么小的cpu,感觉没啥意义啊

#61 全志 SOC » 发现荔枝派PLUS有一个很脑残的设计,好惨 » 2021-05-12 18:22:48

microxp
回复: 3

居然把vcc和gnd脚紧挨在一起,金手指那么细的线,间距不到1mm,一不小心就短路了,都烧了好几块了......

#64 Re: 全志 SOC » 谁画过S3的板子的,网卡我搞不定咋办哦 » 2021-05-08 14:03:34

好了搞定了,原因是用的HR911105A的封装库管脚是错的,打出来的板子脚也不对啊,还好捷配打样给力....也没仔细检查拿来就用了,就是原帖里的接法,网口外铁壳悬空还可以省掉那个1M电阻和电容,8脚直接数字地,网口运行没问题。

#66 Re: 全志 SOC » 谁画过S3的板子的,网卡我搞不定咋办哦 » 2021-05-07 16:41:41

大佬啊, zero PLUS就是没有EPHY_RTX这个脚啊,其他板子都有,不知道是不是搞漏了,可如果搞漏的原因岂不是他的zero plus底板网口全都没法用,感觉也不对

#67 全志 SOC » 谁画过S3的板子的,网卡我搞不定咋办哦 » 2021-05-06 17:09:49

microxp
回复: 4

荔枝派的zero plus,没有用官方提供的变压器+RJ45的接法,用的HR911105A,仿的这个帖子里的接法
https://whycan.com/t_3887.html
NanoPi-M1.jpg
看固件网卡运行正常,也能正常ifconfig up,但就是插上网线不通哦
咋调试呢,量了一下Link灯也不亮,link灯那个引脚有1.8v
是因为没有严格做那个100欧的差分线?我就随便画的差分线,算了下估计90欧左右,应该也能用吧
另外看索智S3和荔枝派的V3S都有一个PHY_RTX的引脚,荔枝派 plus就没有这个引脚,是不是这个原因

#69 Re: 全志 SOC » s3的设备树文件哪里有例子啊 » 2021-05-02 11:24:30

初始化DDR的部分好像是在c里面写的,设备树文件里没有,那其实V3s和S3可以使用完全相同的设备树配置了,这样理解对不对

#70 全志 SOC » 全志s3和v3是什么关系? » 2021-05-01 20:50:17

microxp
回复: 2

s3好像是v3s的马甲,v3s的uboot,kernel一点不改都能在s3上面跑,难道v3也是?手头还没有v3的板子

#73 全志 SOC » s3的设备树文件哪里有例子啊 » 2021-04-30 21:02:04

microxp
回复: 3

据说就是内存部分和v3不一样?v3主线linux已经支持了,内存部分该怎么改

#74 全志 SOC » 请问哪里能找到荔枝派的gpio库呢 » 2021-04-28 00:22:14

microxp
回复: 1

各种荔枝派的文档中都有这几句
“为方便在C语言里调用,我生成了gpio操作的动态库 libgpio.so,大家可以在c程序中调用。”
“为了大家使用方便,这里同时提供了pyhton的gpio库:lpi_gpio.so“
可是这几个库文件我哪里都找不到,是不是官方删除了

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn