
目前共有63篇帖子。
![]() |
![]() |
![]() |
把SD卡从开发板上取下来,然后用读卡器插到电脑的ubuntu22.04虚拟机里面。
SD卡上有两个分区,插入后自动挂载了第二个分区(/media/oct1158/rootfs),但没有自动挂载第一个分区。 【删除旧的根文件系统】 oct1158@oct1158-ubuntu:/$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs 193M 3.9M 189M 2% /run /dev/sda3 118G 75G 37G 67% / tmpfs 961M 0 961M 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock /dev/sda2 512M 6.1M 506M 2% /boot/efi tmpfs 193M 112K 192M 1% /run/user/1000 /dev/sdb2 58G 1.2G 54G 3% /media/oct1158/rootfs oct1158@oct1158-ubuntu:/$ cd /media/oct1158/rootfs oct1158@oct1158-ubuntu:/media/oct1158/rootfs$ ls bin boot dev etc home lib lost+found media mnt opt proc root run sbin script srv sys tmp usr var oct1158@oct1158-ubuntu:/media/oct1158/rootfs$ sudo rm -rf * [sudo] password for oct1158: oct1158@oct1158-ubuntu:/media/oct1158/rootfs$ ls -al total 8 drwxr-xr-x 2 root root 4096 Jul 31 10:12 . drwxr-x---+ 3 root root 4096 Jul 31 10:10 .. oct1158@oct1158-ubuntu:/media/oct1158/rootfs$ 【删除EFI分区里面的所有内容】 在Ubuntu 22.04的Disks软件中挂载SD卡的第一个分区。 用df -h命令可以看到挂载点是/media/oct1158/boot。 oct1158@oct1158-ubuntu:/media/oct1158/rootfs$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs 193M 3.9M 189M 2% /run /dev/sda3 118G 75G 37G 67% / tmpfs 961M 0 961M 0% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock /dev/sda2 512M 6.1M 506M 2% /boot/efi tmpfs 193M 112K 192M 1% /run/user/1000 /dev/sdb2 58G 8.0K 55G 1% /media/oct1158/rootfs /dev/sdb1 112M 72M 41M 65% /media/oct1158/boot oct1158@oct1158-ubuntu:/media/oct1158/rootfs$ cd /media/oct1158/boot oct1158@oct1158-ubuntu:/media/oct1158/boot$ ls boot.cmd initrd.img-4.4.143-999-rockchip-g boot.scr luckfox-rk3308b-evb-v10.dtb config-4.4.143-65-rockchip-g58431d38f8f3 System.map-4.4.143-65-rockchip-g58431d38f8f3 config-4.4.143-999-rockchip-g System.map-4.4.143-999-rockchip-g dtbs uEnv.txt extlinux vmlinuz-4.4.143-65-rockchip-g58431d38f8f3 Image vmlinuz-4.4.143-999-rockchip-g initrd.img-4.4.143-65-rockchip-g58431d38f8f3 oct1158@oct1158-ubuntu:/media/oct1158/boot$ 除了Image和luckfox-rk3308b-evb-v10.dtb外,其他文件全部删除掉。 oct1158@oct1158-ubuntu:/media/oct1158/boot$ sudo mv Image luckfox-rk3308b-evb-v10.dtb .. oct1158@oct1158-ubuntu:/media/oct1158/boot$ sudo rm -rf * oct1158@oct1158-ubuntu:/media/oct1158/boot$ ls -al total 20 drwxr-xr-x 2 oct1158 oct1158 16384 Jan 1 1970 . drwxr-x---+ 4 root root 4096 Jul 31 10:19 .. oct1158@oct1158-ubuntu:/media/oct1158/boot$ sudo mv ../Image ../luckfox-rk3308b-evb-v10.dtb . oct1158@oct1158-ubuntu:/media/oct1158/boot$ ls -al total 13176 drwxr-xr-x 2 oct1158 oct1158 16384 Jan 1 1970 . drwxr-x---+ 4 root root 4096 Jul 31 10:20 .. -rw-r--r-- 1 oct1158 oct1158 13414408 Jul 22 10:03 Image -rw-r--r-- 1 oct1158 oct1158 53635 Jul 30 19:57 luckfox-rk3308b-evb-v10.dtb oct1158@oct1158-ubuntu:/media/oct1158/boot$ 【解压luckfox根文件系统】 oct1158@oct1158-ubuntu:/$ cd ~/Documents/Code/C/Luckfox_Nova_SDK_250430/output/rootfs/images oct1158@oct1158-ubuntu:~/Documents/Code/C/Luckfox_Nova_SDK_250430/output/rootfs/images$ sudo tar xf rootfs.tar -C /media/oct1158/rootfs oct1158@oct1158-ubuntu:~/Documents/Code/C/Luckfox_Nova_SDK_250430/output/rootfs/images$ ls -al /media/oct1158/rootfs total 80 drwxr-xr-x 19 root root 4096 Nov 19 2025 . drwxr-x---+ 4 root root 4096 Jul 31 10:23 .. lrwxrwxrwx 1 root root 7 Nov 19 2025 bin -> usr/bin -rw-r--r-- 1 root root 489 Nov 19 2025 busybox.fragment lrwxrwxrwx 1 root root 8 Jul 30 19:59 data -> userdata drwxr-xr-x 4 root root 4096 Nov 19 2025 dev drwxr-xr-x 16 root root 4096 Jul 30 20:00 etc drwxr-xr-x 2 root root 4096 Jul 30 19:59 info lrwxrwxrwx 1 root root 7 Nov 19 2025 lib -> usr/lib lrwxrwxrwx 1 root root 3 Nov 19 2025 lib64 -> lib lrwxrwxrwx 1 root root 11 Nov 19 2025 linuxrc -> bin/busybox drwxr-xr-x 11 root root 4096 Nov 19 2025 media drwxr-xr-x 5 root root 4096 Jul 30 19:59 mnt drwxr-xr-x 2 root root 4096 Nov 19 2025 oem drwxr-xr-x 2 root root 4096 Nov 19 2025 opt drwxr-xr-x 2 root root 4096 Nov 19 2025 proc drwxr-xr-x 15 root root 4096 Jul 30 19:58 rockchip-test drwx------ 2 root root 4096 Nov 19 2025 root drwxr-xr-x 4 root root 4096 Jul 30 20:00 run lrwxrwxrwx 1 root root 8 Nov 19 2025 sbin -> usr/sbin lrwxrwxrwx 1 root root 10 Jul 30 19:59 sdcard -> mnt/sdcard drwxr-xr-x 4 root root 4096 Nov 19 2025 sys drwxr-xr-x 3 root root 4096 Jul 30 19:59 system drwxrwxrwt 2 root root 4096 Nov 19 2025 tmp lrwxrwxrwx 1 root root 9 Jul 30 19:59 udisk -> mnt/udisk drwxr-xr-x 2 root root 4096 Nov 19 2025 userdata drwxr-xr-x 7 root root 4096 Jul 30 19:59 usr drwxr-xr-x 6 root root 4096 Jul 30 20:00 var lrwxrwxrwx 1 root root 6 Jul 30 19:59 vendor -> system oct1158@oct1158-ubuntu:~/Documents/Code/C/Luckfox_Nova_SDK_250430/output/rootfs/images$ |
![]() |
在Ubuntu 22.04的Disks软件中挂载SD卡的第一个分区的截图:
![]() |
![]() |
把根文件系统替换成幸狐的rootfs之后,把sd卡插到开发板上,开机,adb命令就能正常使用了。 ![]() |
![]() |
=>
=> => setenv bootargs root=/dev/mmcblk1p2 rootwait rw rootfstype=ext4 console=ttyS0,1500000n8 => load mmc 0:1 0x00280000 Image reading Image 13414408 bytes read in 577 ms (22.2 MiB/s) => load mmc 0:1 0x01f00000 luckfox-rk3308b-evb-v10.dtb reading luckfox-rk3308b-evb-v10.dtb 53635 bytes read in 5 ms (10.2 MiB/s) => booti 0x00280000 - 0x01f00000 ## Flattened Device Tree blob at 01f00000 Booting using the fdt blob at 0x1f00000 Loading Device Tree to 000000000f4f7000, end 000000000f507182 ... OK Adding bank: 0x00200000 - 0x10000000 (size: 0x0fe00000) Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd042] [ 0.000000] Linux version 5.10.198 (oct1158@oct1158-ubuntu) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #35 SMP PREEMPT Wed Jul 22 10:02:18 CST 2026 [ 0.000000] Machine model: Radxa ROCK Pi S [ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000200000-0x000000000fffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000200000-0x000000000fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x000000000fffffff] [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] percpu: Embedded 22 pages/cpu s49176 r8192 d32744 u90112 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: kernel page table isolation disabled by kernel configuration [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64008 [ 0.000000] Kernel command line: root=/dev/mmcblk1p2 rootwait rw rootfstype=ext4 console=ttyS0,1500000n8 [ 0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 240704K/260096K available (7614K kernel code, 1452K rwdata, 2580K rodata, 1408K init, 491K bss, 19392K reserved, 0K 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] Trampoline variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies. [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] rockchip_clk_register_branches: failed to register clock dclk_vop_frac: -17 [ 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.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.001250] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000) [ 0.001284] pid_max: default: 32768 minimum: 301 [ 0.001510] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.001530] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.004013] rcu: Hierarchical SRCU implementation. [ 0.005255] smp: Bringing up secondary CPUs ... [ 0.006255] Detected VIPT I-cache on CPU1 [ 0.006369] CPU1: Booted secondary processor 0x0000000001 [0x410fd042] [ 0.007406] Detected VIPT I-cache on CPU2 [ 0.007500] CPU2: Booted secondary processor 0x0000000002 [0x410fd042] [ 0.008570] Detected VIPT I-cache on CPU3 [ 0.008666] CPU3: Booted secondary processor 0x0000000003 [0x410fd042] [ 0.008823] smp: Brought up 1 node, 4 CPUs [ 0.008871] SMP: Total of 4 processors activated. [ 0.008885] CPU features: detected: 32-bit EL0 Support [ 0.008900] CPU features: detected: CRC32 instructions [ 0.010050] CPU: All CPU(s) started at EL2 [ 0.010097] alternatives: patching kernel code [ 0.011164] devtmpfs: initialized [ 0.031419] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 0.031461] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.031684] pinctrl core: initialized pinctrl subsystem [ 0.033652] NET: Registered protocol family 16 [ 0.034705] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations [ 0.034771] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.035637] Registered FIQ tty driver [ 0.036111] thermal_sys: Registered thermal governor 'step_wise' [ 0.036122] thermal_sys: Registered thermal governor 'user_space' [ 0.036713] thermal_sys: soc_thermal: missing polling-delay-passive property [ 0.036737] thermal_sys: failed to build thermal zone soc_thermal: -22 [ 0.037101] cpuidle: using governor menu [ 0.037441] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.037586] ASID allocator initialised with 65536 entries [ 0.038870] ramoops ramoops: failed to locate DT /reserved-memory resource [ 0.038911] ramoops: probe of ramoops failed with error -22 [ 0.072311] rockchip-gpio ff220000.gpio0: probed /pinctrl/gpio0@ff220000 [ 0.073339] rockchip-gpio ff230000.gpio1: probed /pinctrl/gpio1@ff230000 [ 0.074402] rockchip-gpio ff240000.gpio2: probed /pinctrl/gpio2@ff240000 [ 0.075603] rockchip-gpio ff250000.gpio3: probed /pinctrl/gpio3@ff250000 [ 0.076582] rockchip-gpio ff260000.gpio4: probed /pinctrl/gpio4@ff260000 [ 0.076775] rockchip-pinctrl pinctrl: probed pinctrl [ 0.111459] SCSI subsystem initialized [ 0.111810] usbcore: registered new interface driver usbfs [ 0.111898] usbcore: registered new interface driver hub [ 0.111975] usbcore: registered new device driver usb [ 0.112097] mc: Linux media interface: v0.10 [ 0.112161] videodev: Linux video capture interface: v2.00 [ 0.112245] pps_core: LinuxPPS API ver. 1 registered [ 0.112259] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.112291] PTP clock support registered [ 0.114014] Advanced Linux Sound Architecture Driver Initialized. [ 0.114855] Bluetooth: Core ver 2.22 [ 0.114928] NET: Registered protocol family 31 [ 0.114943] Bluetooth: HCI device and connection manager initialized [ 0.114966] Bluetooth: HCI socket layer initialized [ 0.114986] Bluetooth: L2CAP socket layer initialized [ 0.115018] Bluetooth: SCO socket layer initialized [ 0.115953] rockchip-cpuinfo cpuinfo: SoC : 33080001 [ 0.115980] rockchip-cpuinfo cpuinfo: Serial : 16561921e14613f4 [ 0.116906] clocksource: Switched to clocksource arch_sys_counter [ 0.119843] NET: Registered protocol family 2 [ 0.120131] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.121201] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.121320] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.121364] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear) [ 0.121417] TCP: Hash tables configured (established 2048 bind 2048) [ 0.121592] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.121628] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.121839] NET: Registered protocol family 1 [ 0.125516] rockchip-thermal ff1f0000.tsadc: tsadc is probed successfully! [ 0.127078] hw perfevents: enabled with armv8_cortex_a35 PMU driver, 7 counters available [ 0.135403] Initialise system trusted keyrings [ 0.135746] workingset: timestamp_bits=62 max_order=16 bucket_order=0 [ 0.143806] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.144069] ntfs: driver 2.1.32 [Flags: R/O]. [ 0.212005] Key type asymmetric registered [ 0.212031] Asymmetric key parser 'x509' registered [ 0.212064] io scheduler mq-deadline registered [ 0.212079] io scheduler kyber registered [ 0.212786] rockchip-usb2phy ff008000.syscon:usb2phy@100: IRQ index 0 not found [ 0.221566] dma-pl330 ff2c0000.dma-controller: Loaded driver for PL330 DMAC-241330 [ 0.221596] dma-pl330 ff2c0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12 [ 0.224408] dma-pl330 ff2d0000.dma-controller: Loaded driver for PL330 DMAC-241330 [ 0.224438] dma-pl330 ff2d0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16 [ 0.226302] vdd_core: supplied by regulator-dummy [ 0.227423] Serial: 8250/16550 driver, 5 ports, IRQ sharing disabled [ 0.228462] ff0a0000.serial: ttyS0 at MMIO 0xff0a0000 (irq = 22, base_baud = 1500000) is a 16550A [ 0.296607] printk: console [ttyS0] enabled [ 0.298253] ff0d0000.serial: ttyS3 at MMIO 0xff0d0000 (irq = 23, base_baud = 5078125) is a 16550A [ 0.300309] ff0e0000.serial: ttyS4 at MMIO 0xff0e0000 (irq = 24, base_baud = 5078125) is a 16550A [ 0.304253] no ATF memory for init [ 0.310918] SCSI Media Changer driver v0.25 [ 0.314547] spi_slave spi1: will run message pump with realtime priority [ 0.315733] rockchip-spi-slave ff130000.spi: slave probed, cs-inactive=0, ready=0, ext=0, dam_buf=1cd0000 [ 0.319338] rk_gmac-dwmac ff4e0000.ethernet: IRQ eth_wake_irq not found [ 0.319969] rk_gmac-dwmac ff4e0000.ethernet: IRQ eth_lpi not found [ 0.320680] rk_gmac-dwmac ff4e0000.ethernet: PTP uses main clock [ 0.321506] rk_gmac-dwmac ff4e0000.ethernet: clock input or output? (output). [ 0.322167] rk_gmac-dwmac ff4e0000.ethernet: Can not read property: tx_delay. [ 0.322803] rk_gmac-dwmac ff4e0000.ethernet: set tx_delay to 0xffffffff [ 0.323411] rk_gmac-dwmac ff4e0000.ethernet: Can not read property: rx_delay. [ 0.324064] rk_gmac-dwmac ff4e0000.ethernet: set rx_delay to 0xffffffff [ 0.324665] rk_gmac-dwmac ff4e0000.ethernet: integrated PHY? (no). [ 0.325707] rk_gmac-dwmac ff4e0000.ethernet: init for RMII [ 0.326570] rk_gmac-dwmac ff4e0000.ethernet: User ID: 0x10, Synopsys ID: 0x35 [ 0.327242] rk_gmac-dwmac ff4e0000.ethernet: DWMAC1000 [ 0.327715] rk_gmac-dwmac ff4e0000.ethernet: DMA HW capability register supported [ 0.328396] rk_gmac-dwmac ff4e0000.ethernet: RX Checksum Offload Engine supported [ 0.329076] rk_gmac-dwmac ff4e0000.ethernet: COE Type 2 [ 0.329546] rk_gmac-dwmac ff4e0000.ethernet: TX Checksum insertion supported [ 0.330186] rk_gmac-dwmac ff4e0000.ethernet: Wake-Up On Lan supported [ 0.330870] rk_gmac-dwmac ff4e0000.ethernet: Normal descriptors [ 0.331422] rk_gmac-dwmac ff4e0000.ethernet: Ring mode enabled [ 0.331959] rk_gmac-dwmac ff4e0000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 0.446812] RTL8201F Fast Ethernet stmmac-0:00: attached PHY driver [RTL8201F Fast Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=POLL) [ 0.447918] RTL8201F Fast Ethernet stmmac-0:01: attached PHY driver [RTL8201F Fast Ethernet] (mii_bus:phy_addr=stmmac-0:01, irq=POLL) [ 0.450993] usbcore: registered new interface driver rndis_wlan [ 0.451595] usbcore: registered new interface driver asix [ 0.452166] usbcore: registered new interface driver ax88179_178a [ 0.452769] usbcore: registered new interface driver cdc_ether [ 0.453365] usbcore: registered new interface driver net1080 [ 0.453942] usbcore: registered new interface driver rndis_host [ 0.454521] usbcore: registered new interface driver cdc_subset [ 0.455127] usbcore: registered new interface driver zaurus [ 0.455726] usbcore: registered new interface driver cdc_ncm [ 0.457087] dwc2 ff400000.usb: supply vusb_d not found, using dummy regulator [ 0.457980] dwc2 ff400000.usb: supply vusb_a not found, using dummy regulator [ 0.584975] dwc2 ff400000.usb: dwc2_check_params: Invalid parameter lpm_clock_gating=1 [ 0.585689] dwc2 ff400000.usb: dwc2_check_params: Invalid parameter besl=1 [ 0.586327] dwc2 ff400000.usb: dwc2_check_params: Invalid parameter hird_threshold_en=1 [ 0.587094] dwc2 ff400000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM [ 0.588050] dwc2 ff400000.usb: DWC OTG Controller [ 0.588504] dwc2 ff400000.usb: new USB bus registered, assigned bus number 1 [ 0.589195] dwc2 ff400000.usb: irq 34, io mem 0xff400000 [ 0.590906] hub 1-0:1.0: USB hub found [ 0.591302] hub 1-0:1.0: 1 port detected [ 0.593557] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.594168] ehci-platform: EHCI generic platform driver [ 0.598692] ehci-platform ff440000.usb: EHCI Host Controller [ 0.599267] ehci-platform ff440000.usb: new USB bus registered, assigned bus number 2 [ 0.600164] ehci-platform ff440000.usb: irq 35, io mem 0xff440000 [ 0.606938] ehci-platform ff440000.usb: USB 2.0 started, EHCI 1.00 [ 0.608697] hub 2-0:1.0: USB hub found [ 0.609115] hub 2-0:1.0: 1 port detected [ 0.610402] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 0.611027] ohci-platform: OHCI generic platform driver [ 0.612085] ohci-platform ff450000.usb: Generic Platform OHCI controller [ 0.612708] ohci-platform ff450000.usb: new USB bus registered, assigned bus number 3 [ 0.613600] ohci-platform ff450000.usb: irq 36, io mem 0xff450000 [ 0.671138] hub 3-0:1.0: USB hub found [ 0.671538] hub 3-0:1.0: 1 port detected [ 0.672854] usbcore: registered new interface driver cdc_wdm [ 0.673523] usbcore: registered new interface driver usb-storage [ 0.674951] i2c /dev entries driver [ 0.677554] pca953x 0-0020: supply vcc not found, using dummy regulator [ 0.681062] pca953x 1-0020: supply vcc not found, using dummy regulator [ 0.683322] pca954x 0-0070: probe failed [ 0.683946] pca954x 1-0070: probe failed [ 0.685658] dw_wdt ff080000.watchdog: No valid TOPs array specified [ 0.687136] Bluetooth: HCI UART driver ver 2.3 [ 0.687548] Bluetooth: HCI UART protocol H4 registered [ 0.689876] cpu cpu0: failed to register system monitor [ 0.693197] Synopsys Designware Multimedia Card Interface Driver [ 0.694701] dwmmc_rockchip ff490000.mmc: IDMAC supports 32-bit address mode. [ 0.694967] dwmmc_rockchip ff480000.mmc: No normal pinctrl state [ 0.695258] dwmmc_rockchip ff4a0000.mmc: No normal pinctrl state [ 0.695266] dwmmc_rockchip ff4a0000.mmc: No idle pinctrl state [ 0.695399] dwmmc_rockchip ff4a0000.mmc: IDMAC supports 32-bit address mode. [ 0.695419] dwmmc_rockchip ff490000.mmc: Using internal DMA controller. [ 0.695433] dwmmc_rockchip ff490000.mmc: Version ID is 270a [ 0.695510] dwmmc_rockchip ff490000.mmc: DW MMC controller at irq 38,32 bit host data width,256 deep fifo [ 0.695775] mmc_host mmc0: card is non-removable. [ 0.695873] usbcore: registered new interface driver usbhid [ 0.695887] dwmmc_rockchip ff480000.mmc: No idle pinctrl state [ 0.696057] dwmmc_rockchip ff480000.mmc: IDMAC supports 32-bit address mode. [ 0.696094] dwmmc_rockchip ff480000.mmc: Using internal DMA controller. [ 0.696108] dwmmc_rockchip ff480000.mmc: Version ID is 270a [ 0.696184] dwmmc_rockchip ff480000.mmc: DW MMC controller at irq 37,32 bit host data width,256 deep fifo [ 0.696478] dwmmc_rockchip ff4a0000.mmc: Using internal DMA controller. [ 0.697015] usbhid: USB HID core driver [ 0.697572] dwmmc_rockchip ff4a0000.mmc: Version ID is 270a [ 0.698593] rockchip-dmc dmc: failed to get the count of devfreq-event in /dmc node [ 0.698720] dwmmc_rockchip ff4a0000.mmc: DW MMC controller at irq 39,32 bit host data width,256 deep fifo [ 0.699844] rockchip-dmc: probe of dmc failed with error -95 [ 0.700158] dwmmc_rockchip ff4a0000.mmc: allocated mmc-pwrseq [ 0.701759] rknandc_base v1.1 2017-01-11 [ 0.702167] mmc_host mmc2: card is non-removable. [ 0.702867] rksfc_base v1.1 2016-01-08 [ 0.708628] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0) [ 0.709670] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0) [ 0.713365] The acodec version is: b [ 0.713907] rk3308-acodec ff560000.acodec: Don't need hp-ctl gpio [ 0.714123] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0) [ 0.714483] rk3308-acodec ff560000.acodec: Don't need spk-ctl gpio [ 0.715837] rk3308-acodec ff560000.acodec: Don't need pa-drv gpio [ 0.716388] rk3308-acodec ff560000.acodec: De-pop as much as possible [ 0.717062] rk3308-acodec ff560000.acodec: Don't need micbias-en gpio [ 0.717660] rk3308-acodec ff560000.acodec: no vmicbias regulator found [ 0.718255] rk3308-acodec ff560000.acodec: Check ext_micbias: 0 [ 0.723211] rk-multicodecs acodec-sound: Failed to get ADC channel [ 0.724060] rk-multicodecs acodec-sound: ASoC: Property 'rockchip,audio-routing' does not exist or its length is not even [ 0.733987] dwmmc_rockchip ff4a0000.mmc: card claims to support voltages below defined range [ 0.744859] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 0.745787] mmc2: error -110 whilst initialising SDIO card [ 0.750437] mmc_host mmc0: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0) [ 0.760375] mmc_host mmc2: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0) [ 0.773850] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 0.774874] mmc1: new high speed SDXC card at address b36e [ 0.776961] mmcblk1: mmc1:b36e SDABC 58.2 GiB [ 0.781543] dwmmc_rockchip ff4a0000.mmc: card claims to support voltages below defined range [ 0.785831] mmcblk1: p1 p2 [ 0.795694] mmc_host mmc0: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0) [ 0.795784] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 0.797492] mmc2: error -110 whilst initialising SDIO card [ 0.798446] rk3308-acodec ff560000.acodec: rk3308_codec_set_jack: Request detect hp jack once [ 0.801312] input: rockchip,rk3308-acodec Headset as /devices/platform/acodec-sound/sound/card1/input0 [ 0.803943] NET: Registered protocol family 10 [ 0.805966] Segment Routing with IPv6 [ 0.806408] NET: Registered protocol family 17 [ 0.806832] NET: Registered protocol family 15 [ 0.807523] Bluetooth: RFCOMM TTY layer initialized [ 0.808012] Bluetooth: RFCOMM socket layer initialized [ 0.808512] Bluetooth: RFCOMM ver 1.11 [ 0.808865] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 0.808948] rk3308-acodec ff560000.acodec: Don't need to change dac_output: 0 [ 0.809419] Bluetooth: HIDP socket layer initialized [ 0.810475] [BT_RFKILL]: Enter rfkill_rk_init [ 0.810866] [WLAN_RFKILL]: Enter rfkill_wlan_init [ 0.812104] [WLAN_RFKILL]: Enter rfkill_wlan_probe [ 0.812149] mmc_host mmc2: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0) [ 0.812616] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = rtl8723ds [ 0.814064] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control. [ 0.814699] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio. [ 0.815451] [WLAN_RFKILL]: wlan_platdata_parse_dt: WIFI,host_wake_irq = 0, flags = 0. [ 0.816265] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio [ 0.816737] [WLAN_RFKILL]: rfkill_set_wifi_bt_power: 1 [ 0.817212] [WLAN_RFKILL]: Exit rfkill_wlan_probe [ 0.818517] flash vendor_init_thread! [ 0.818859] flash vendor storage:20170308 ret = -1 [ 0.819308] Loading compiled-in X.509 certificates [ 0.834572] dwmmc_rockchip ff4a0000.mmc: card claims to support voltages below defined range [ 0.847039] mmc_host mmc0: Bus speed (slot 0) = 100000Hz (slot req 100000Hz, actual 100000HZ div = 0) [ 0.856125] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 0.857132] mmc2: error -110 whilst initialising SDIO card [ 0.858675] rockchip-dmc dmc: failed to get the count of devfreq-event in /dmc node [ 0.859460] debugfs: Directory 'dmc-center' with parent 'vdd_log' already present! [ 0.860242] rockchip-dmc: probe of dmc failed with error -95 [ 0.861066] vcc_1v8: supplied by vcc_io [ 0.862106] vcc_1v8_codec: supplied by vcc_io [ 0.863198] rockchip-iodomain ff000000.grf:io-domains: vccio0(3300000 uV) supplied by vcc_io [ 0.864084] rockchip-iodomain ff000000.grf:io-domains: vccio1(3300000 uV) supplied by vcc_io [ 0.865045] rockchip-iodomain ff000000.grf:io-domains: vccio2(1800000 uV) supplied by vcc_1v8 [ 0.865990] rockchip-iodomain ff000000.grf:io-domains: vccio3(1800000 uV) supplied by vccio_flash [ 0.866854] rockchip-iodomain ff000000.grf:io-domains: vccio4(1800000 uV) supplied by vcc_1v8 [ 0.867761] rockchip-iodomain ff000000.grf:io-domains: vccio5(3300000 uV) supplied by vcc_io [ 0.874153] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 0.877737] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 0.878506] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 0.879291] cfg80211: failed to load regulatory.db WARNING: suspend_mode_handler: Not sup[ 0.880083] mmc_host mmc2: Bus speed (slot 0) = 100000Hz (slot req 100000Hz, actual 100000HZ div = 0) port call: 0x4 [ 0.881397] rockchip-suspend not set sleep-mode-config for mem-lite [ 0.882009] rockchip-suspend not set wakeup-config for mem-lite [ 0.882599] rockchip-suspend not set sleep-mode-config for mem-ultra [ 0.883180] rockchip-suspend not set wakeup-config for mem-ultra [ 0.884804] ALSA device list: [ 0.885098] #0: Loopback 1 [ 0.885361] #1: rockchip,rk3308-acodec [ 0.886088] dw-apb-uart ff0a0000.serial: forbid DMA for kernel console [ 0.906221] dwmmc_rockchip ff4a0000.mmc: card claims to support voltages below defined range [ 0.946213] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 0.950421] mmc2: new high speed SDIO card at address 0001 [ 1.054225] EXT4-fs (mmcblk1p2): recovery complete [ 1.056025] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null) [ 1.056848] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 1.058365] devtmpfs: mounted [ 1.059751] Freeing unused kernel memory: 1408K [ 1.060258] Run /sbin/init as init process [ 1.257731] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null) mount: /oem: can't find PARTLABEL=oem. mount: /userdata: can't find PARTLABEL=userdata. Start mounting all internal partitions in /etc/fstab Log saved to /var/log/mount-all.log Note: Create /.skip_fsck to skip fsck - The check might take a while if didn't shutdown properly! [0]: Handling /dev/mmcblk1p2 / ext4 rw,noauto 1 [0]: Checking /dev/mmcblk1p2(ext4) [ 2.071469] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null) e2fsck 1.46.5 (30-Dec-2021) rootfs: clean, 2779/3310800 files, 237513/15236108 blocks [0]: Resizing /dev/mmcblk1p2(ext4) [ 2.293394] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null) resize2fs 1.46.5 (30-Dec-2021) The filesystem is already 15236108 (4k) blocks long. Nothing to do! Starting syslogd: OK Starting klogd: OK Running sysctl: OK Populating /dev using udev: [ 2.591655] udevd[242]: starting version 3.2.10 [ 2.601658] random: udevd: uninitialized urandom read (16 bytes read) [ 2.604529] random: udevd: uninitialized urandom read (16 bytes read) [ 2.605349] random: udevd: uninitialized urandom read (16 bytes read) [ 2.652613] udevd[243]: starting eudev-3.2.10 [ 3.315130] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. done Starting irqbalance: OK Saving random seed: [ 8.697419] random: dd: uninitialized urandom read (32 bytes read) OK Starting system message bus: [ 8.763808] random: dbus-uuidgen: uninitialized urandom read (12 bytes read) [ 8.764616] random: dbus-uuidgen: uninitialized urandom read (8 bytes read) done Starting bluetoothd: OK Starting network: ln: failed to create symbolic link '': No such file or directory Handling start for Wi-Fi/BT chip: Realtek RTL8723DS sdio 024c:d723 RTL8723DS.ko Starting Wifi/BT... OK [ 9.130290] aic8800_bsp: loading out-of-tree module taints kernel. [ 9.133299] aicbsp_init [ 9.133548] RELEASE_DATE:2024_0615_c3cb37b3 [ 9.134253] aicbsp_resv_mem_init [ 9.135559] aicbsp: aicbsp_set_subsys, subsys: AIC_BLUETOOTH, state to: 1 [ 9.136298] aicbsp: aicbsp_set_subsys, power state change to 1 dure to AIC_BLUETOOTH [ 9.137278] aicbsp: aicbsp_platform_power_on [ 9.137676] [WLAN_RFKILL]: rockchip_wifi_power: 0 [ 9.138392] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized [ 9.139442] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized [ 9.140502] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1] Starting dhcpcd... dhcpcd-9.4.1 starting [ 9.191241] [WLAN_RFKILL]: rockchip_wifi_power: 1 [ 9.191681] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized dev: loaded udev [ 9.192557] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0] [ 9.243198] sdio: host isn't initialization successfully. no interfaces have a carrier forked to background, child pid 442 [ 9.318687] rk_gmac-dwmac ff4e0000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8201F Fast Ethernet] (irq=POLL) [ 9.330970] rk_gmac-dwmac ff4e0000.ethernet eth0: No Safety Features support found Starting ntpd: [ 9.331704] rk_gmac-dwmac ff4e0000.ethernet eth0: PTP not supported by HW [ 9.333437] rk_gmac-dwmac ff4e0000.ethernet eth0: configuring for phy/rmii link mode OK Starting dropbear sshd: OK Starting pulseaudio: OK Starting dnsmasq: OK [ 9.707027] random: pulseaudio: uninitialized urandom read (4 bytes read) W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified). W: [pulseaudio] main.c: Compiled with DEPRECATED libsamplerate support! [ 9.726810] random: pulseaudio: uninitialized urandom read (4 bytes read) Starting input-event-daemon: [ 9.737313] random: pulseaudio: uninitialized urandom read (4 bytes read) done root@rk3308b-buildroot:/# root@rk3308b-buildroot:/# W: [pulseaudio] authkey.c: Failed to open cookie file '/userdata/.pulse/.config/pulse/cookie': No such file or directory W: [pulseaudio] authkey.c: Failed to load authentication key '/userdata/.pulse/.config/pulse/cookie': No such file or directory W: [pulseaudio] authkey.c: Failed to open cookie file '/userdata/.pulse/.pulse-cookie': No such file or directory W: [pulseaudio] authkey.c: Failed to load authentication key '/userdata/.pulse/.pulse-cookie': No such file or directory E: [pulseaudio] module-rescue-streams.c: module-rescue-stream is obsolete and should no longer be loaded. Please remove it from your configuration. E: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed. root@rk3308b-buildroot:/# E: [pulseaudio] main.c: Sink alsa_output.platform-vad-sound.stereo-fallback does not exist. E: [pulseaudio] main.c: Sink alsa_output.platform-vad-acodec-sound.stereo-fallback does not exist. E: [pulseaudio] main.c: Source alsa_input.platform-vad-sound.multichannel-input does not exist. E: [pulseaudio] main.c: Source alsa_input.platform-vad-acodec-sound.multichannel-input does not exist. W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead [ 10.479996] file system registered [ 10.696731] read descriptors [ 10.697075] read strings [ 10.813636] dwc2 ff400000.usb: bound driver configfs-gadget [ 10.988787] dwc2 ff400000.usb: new device is high-speed [ 11.082504] dwc2 ff400000.usb: new device is high-speed [ 11.118203] dwc2 ff400000.usb: new address 7 [ 11.137270] android_work: sent uevent USB_STATE=CONNECTED [ 11.262203] android_work: sent uevent USB_STATE=CONFIGURED [ 11.312554] aicbsp: aicbsp_set_subsys, fail to set AIC_BLUETOOTH power state to 1 Installing WiFi/BT module: aic8800_fdrv.ko [ 11.360012] aicbsp: aicbsp_set_subsys, subsys: AIC_WIFI, state to: 1 [ 11.360609] aicbsp: aicbsp_set_subsys, power state change to 1 dure to AIC_WIFI [ 11.361687] aicbsp: aicbsp_platform_power_on [ 11.362175] [WLAN_RFKILL]: rockchip_wifi_power: 0 [ 11.362609] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized [ 11.363483] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized [ 11.364365] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1] [ 11.415390] [WLAN_RFKILL]: rockchip_wifi_power: 1 [ 11.415843] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized [ 11.417235] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0] [ 11.467816] sdio: host isn't initialization successfully. root@rk3308b-buildroot:/# root@rk3308b-buildroot:/# [ 13.488654] aicbsp: aicbsp_set_subsys, fail to set AIC_WIFI power state to 1 [ 13.535501] aicbsp: aicbsp_set_subsys, subsys: AIC_WIFI, state to: 1 [ 13.536127] aicbsp: aicbsp_set_subsys, power state change to 1 dure to AIC_WIFI [ 13.536784] aicbsp: aicbsp_platform_power_on [ 13.537239] [WLAN_RFKILL]: rockchip_wifi_power: 0 [ 13.537673] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized [ 13.538524] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized [ 13.539368] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1] [ 13.590033] [WLAN_RFKILL]: rockchip_wifi_power: 1 [ 13.590473] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized [ 13.591310] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0] [ 13.641836] sdio: host isn't initialization successfully. root@rk3308b-buildroot:/# root@rk3308b-buildroot:/# [ 15.664362] aicbsp: aicbsp_set_subsys, fail to set AIC_WIFI power state to 1 insmod: can't insert 'aic8800_fdrv.ko': No such device root@rk3308b-buildroot:/# root@rk3308b-buildroot:/# ls -l /dev/i2c* crw------- 1 root root 89, 0 Jan 1 00:00 /dev/i2c-0 crw------- 1 root root 89, 1 Jan 1 00:00 /dev/i2c-1 root@rk3308b-buildroot:/# ifconfig eth0 Link encap:Ethernet HWaddr F6:5E:CD:83:98:80 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:40 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:304 errors:0 dropped:0 overruns:0 frame:0 TX packets:304 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:18688 (18.2 KiB) TX bytes:18688 (18.2 KiB) root@rk3308b-buildroot:/# date Thu Jan 1 00:16:07 UTC 1970 root@rk3308b-buildroot:/# |
![]() |
目前linux内核和根文件系统都是用的幸狐Luckfox_Nova_SDK_250430编译出来的镜像。
但uboot和设备树dts源文件还是用的rk3308-rock-pi-s开发板的。 设备树dtb二进制文件是把设备树dts源文件放到幸狐的内核目录里面(Z:\Documents\Code\C\Luckfox_Nova_SDK_250430\kernel\arch\arm64\boot\dts\rockchip)编译出来的。 这个uboot没有saveenv命令,无法永久保存bootcmd环境变量,这样的话每次开机都得手动输入命令才行。 但可以在sd卡的efi分区里面建立boot.scr文件,把bootcmd写进去,开机时就能自动读取。 板子开机后,会自动把sd卡的efi分区挂载到/mnt/sdcard目录下。 root@rk3308b-buildroot:/# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 58G 95M 55G 1% / devtmpfs 118M 0 118M 0% /dev tmpfs 119M 12K 119M 1% /tmp tmpfs 119M 120K 119M 1% /run tmpfs 119M 68K 119M 1% /var/log tmpfs 119M 0 119M 0% /dev/shm /dev/mmcblk1p1 112M 13M 99M 12% /mnt/sdcard root@rk3308b-buildroot:/# ls /mnt/sdcard Image luckfox-rk3308b-evb-v10.dtb root@rk3308b-buildroot:/# 在电脑的ubuntu22.04虚拟机上创建一个文本文件“bootcmd.txt”,内容如下: setenv bootargs root=/dev/mmcblk1p2 rootwait rw rootfstype=ext4 console=ttyS0,1500000n8 load mmc 0:1 0x00280000 Image load mmc 0:1 0x01f00000 luckfox-rk3308b-evb-v10.dtb booti 0x00280000 - 0x01f00000 注意必须要使用Unix (LF)换行格式。建议在vim编译器里面创建这个文件。 然后把这个文件打包成镜像格式: mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "luckfox_bootcmd" -d bootcmd.txt bootcmd.img 然后用adb push到板子上: adb push "Z:\Documents\Code\C\test\bootcmd\bootcmd.img" /mnt/sdcard/boot.scr 板子reboot后,就能自动执行我们设定的bootcmd命令,成功开机了。 |
![]() |
【问题】 有时能开机成功,有时却开机失败,串口输出卡在下面的的位置。 [ 0.881199] rockchip-suspend not set sleep-mode-config for mem-lite[ 0.881771] rockchip-suspend not set wakeup-config for mem-lite [ 0.882324] rockchip-suspend not set sleep-mode-config for mem-ultra [ 0.882889] rockchip-suspend not set wakeup-config for mem-ultra [ 0.884741] ALSA device list: [ 0.885053] #0: Loopback 1 [ 0.885317] #1: rockchip,rk3308-acodec [ 0.885957] dw-apb-uart ff0a0000.serial: forbid DMA for kernel console [ 0.886888] Waiting for root device /dev/mmcblk1p2... [ 0.887644] dwmmc_rockchip ff4a0000.mmc: card claims to support voltages below defined range [ 0.926701] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 0.928674] mmc0: new high speed SDIO card at address 0001 【原因】 EMMC或者TF卡对应的mmcblk0,mmcblk1,mmcblk2等不固定,对应应用软件不好区分具体哪个设备名是EMMC或者TF卡。 【解决方案】 打开luckfox-rk3308b-evb-v10.dts文件,在/ {里面添加: aliases {mmc0 = &sdmmc; }; 这样就能把sd卡的第二分区的名称固定为/dev/mmcblk0p2,和uboot里面保持一致。 重新编译内核和设备树: cd ~/Documents/Code/C/Luckfox_Nova_SDK_250430 ./build.sh 将编译好的设备树上传到板子上: adb push "Z:\Documents\Code\C\Luckfox_Nova_SDK_250430\kernel\arch\arm64\boot\dts\rockchip\luckfox-rk3308b-evb-v10.dtb" /mnt/sdcard 修改bootcmd.txt,把第一行的/dev/mmcblk1p2改成/dev/mmcblk0p2: setenv bootargs root=/dev/mmcblk0p2 rootwait rw rootfstype=ext4 console=ttyS0,1500000n8 打包成镜像: mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "luckfox_bootcmd" -d bootcmd.txt bootcmd.img 上传到板子上: adb push "Z:\Documents\Code\C\test\bootcmd\bootcmd.img" /mnt/sdcard/boot.scr 重启板子: reboot |
![]() |
![]() |
![]() |
![]() |
![]() |
/dev/mmcblk0p1和/dev/mmcblk0p2同时都被自动挂载到了/mnt/sdcard目录下,所以最好不要用/mnt/sdcard,最好改用/media/sdcard1。
|
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
264 bytes read in 2 ms (128.9 KiB/s)
## Executing script at 00500000
reading Image
13414408 bytes read in 578 ms (22.1 MiB/s)
reading luckfox-rk3308b-evb-v10.dtb
53635 bytes read in 5 ms (10.2 MiB/s)
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Device Tree to 000000000f4f6000, end 000000000f506182 ... OK
Adding bank: 0x00200000 - 0x10000000 (size: 0x0fe00000)
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd042]
[ 0.000000] Linux version 5.10.198 (oct1158@oct1158-ubuntu) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #35 SMP PREEMPT Wed Jul 22 10:02:18 CST 2026
[ 0.000000] Machine model: Radxa ROCK Pi S
[ 0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000200000-0x000000000fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty