Page 1 of 1

Luckfox Pico Ultra

Posted: 2025-02-27 5:36
by fengyulingyu
使用你们提供的方式,使用dd命令进行镜像的打包(dc3dd if=/dev/mmcblk0p7 of=/mnt/sda/bcakup.img),然后使用你们提供的工具将打包好的固件烧录到新的开发板中。但是经过测试之后,发现当前新的开发板并没有办法成功的启动。
用于提取镜像的开发板是可以正常的启动,但是使用提取出来的镜像烧录的开发板是没有办法启动的。我应该如何调试。
屏幕截图 2025-02-27 132901.png
新镜像烧录的开发板,在启动的时候出现的打印报错如下。

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.160 (root@ubuntu) (arm-rockchip830-linux-uclibcgnueabihf-gcc (crosstool-NG 1.24.0) 8.3.0, GNU ld (crosstool-NG 1.24.0) 2.32) #1 Thu Feb 27 09:36:01 CST 2025
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c53c7d
[    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: Luckfox Pico Ultra
[    0.000000] Memory policy: Data cache writeback
[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x00000000, size 0 MiB
[    0.000000] Reserved memory: created CMA memory pool at 0x0f600000, size 10 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] cma: Reserved 1024 KiB at 0x0f500000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: user_debug=31 storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal  rootwait earlycon=uart8250,mmio32,0xff4a0000 console=ttyFIQ0 root=/dev/mmcblk0p7 snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=0 blkdevparts=mmcblk0:32K(env),512K@32K(idblock),256K(uboot),32M(boot),512M(oem),256M(userdata),6G(rootfs) rootfstype=ext4 rk_dma_heap_cma=1M androidboot.fwver=uboot-02/27/2025
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 241760K/262144K available (3830K kernel code, 385K rwdata, 1840K rodata, 196K init, 145K bss, 9120K reserved, 11264K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000501] Console: colour dummy device 80x30
[    0.000544] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000563] pid_max: default: 4096 minimum: 301
[    0.000728] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000743] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001307] CPU: Testing write buffer coherency: ok
[    0.001883] Setting up static identity map for 0x81c0 - 0x8214
[    0.002376] devtmpfs: initialized
[    0.009238] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.009454] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009477] futex hash table entries: 16 (order: -5, 192 bytes, linear)
[    0.009555] pinctrl core: initialized pinctrl subsystem
[    0.010716] NET: Registered protocol family 16
[    0.011134] DMA: failed to allocate 0 KiB pool for atomic coherent allocation
[    0.011656] Registered FIQ tty driver
[    0.012000] thermal_sys: Registered thermal governor 'step_wise'
[    0.012008] thermal_sys: Registered thermal governor 'user_space'
[    0.012226] cpuidle: using governor menu
[    0.026075] rockchip-gpio ff380000.gpio: probed /pinctrl/gpio@ff380000
[    0.026737] rockchip-gpio ff530000.gpio: probed /pinctrl/gpio@ff530000
[    0.027368] rockchip-gpio ff540000.gpio: probed /pinctrl/gpio@ff540000
[    0.028156] rockchip-gpio ff550000.gpio: probed /pinctrl/gpio@ff550000
[    0.028788] rockchip-gpio ff560000.gpio: probed /pinctrl/gpio@ff560000
[    0.028876] rockchip-pinctrl pinctrl: probed pinctrl
[    0.037855] fiq_debugger fiq_debugger.0: IRQ uart_irq not found
[    0.037877] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[    0.038154] printk: console [ttyFIQ0] enabled
[    0.038379] Registered fiq debugger ttyFIQ0
[    0.039477] reg-fixed-voltage vdd-arm: Fixed regulator specified with variable voltages
[    0.039510] reg-fixed-voltage: probe of vdd-arm failed with error -22
[    0.040156] SCSI subsystem initialized
[    0.040361] usbcore: registered new interface driver usbfs
[    0.040413] usbcore: registered new interface driver hub
[    0.040466] usbcore: registered new device driver usb
[    0.040683] mc: Linux media interface: v0.10
[    0.040727] videodev: Linux video capture interface: v2.00
[    0.041750] Advanced Linux Sound Architecture Driver Initialized.
[    0.042470] rockchip-cpuinfo cpuinfo: SoC            : 11061000
[    0.042493] rockchip-cpuinfo cpuinfo: Serial         : 4c66166b0105cc99
[    0.042855] rockchip,rknpor-powergood ff000000.syscon:rknpor-powergood: probe success!
[    0.043591] clocksource: Switched to clocksource arch_sys_counter
[    0.049792] NET: Registered protocol family 2
[    0.050066] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.050512] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.050543] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.050568] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.050591] TCP: Hash tables configured (established 2048 bind 2048)
[    0.050684] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.050708] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.050843] NET: Registered protocol family 1
[    0.051467] RPC: Registered named UNIX socket transport module.
[    0.051489] RPC: Registered udp transport module.
[    0.051498] RPC: Registered tcp transport module.
[    0.051505] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.052411] rockchip-thermal ff3c8000.tsadc: tsadc is probed successfully!
[    0.053397] Initialise system trusted keyrings
[    0.053640] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.057191] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.057951] NFS: Registering the id_resolver key type
[    0.058026] Key type id_resolver registered
[    0.058039] Key type id_legacy registered
[    0.058083] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.058515] Key type asymmetric registered
[    0.058562] io scheduler mq-deadline registeredered
[    0.058897] rockchip-usb2phy ff3e0000.usb2-phy: IRQ index 0 not found
[    0.061586] pwm-backlight backlight: supply power not found, using dummy regulator
[    0.064418] dma-pl330 ff420000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.064443] dma-pl330 ff420000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    0.065184] rockchip-pvtm ff240000.pvtm: pvtm@0 probed
[    0.065346] rockchip-pvtm ff390000.pvtm: pvtm@0 probed
[    0.065646] rockchip-system-monitor rockchip-system-monitor: system monitor probe
[    0.066161] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.066767] ff4c0000.serial: ttyS2 at MMIO 0xff4c0000 (irq = 38, base_baud = 1500000) is a 16550A
[    0.069018] rockchip-drm display-subsystem: [drm:rockchip_drm_platform_probe] *ERROR* missing 'ports' property
[    0.073011] random: crng init done
[    0.080830] brd: module loaded
[    0.086069] loop: module loaded
[    0.088101] rk_gmac-dwmac ffa80000.ethernet: IRQ eth_lpi not found
[    0.088319] rk_gmac-dwmac ffa80000.ethernet: PTP uses main clock
[    0.088368] rk_gmac-dwmac ffa80000.ethernet: no regulator found
[    0.088383] rk_gmac-dwmac ffa80000.ethernet: clock input or output? (input).
[    0.088395] rk_gmac-dwmac ffa80000.ethernet: Can not read property: tx_delay.
[    0.088404] rk_gmac-dwmac ffa80000.ethernet: set tx_delay to 0xffffffff
[    0.088414] rk_gmac-dwmac ffa80000.ethernet: Can not read property: rx_delay.
[    0.088422] rk_gmac-dwmac ffa80000.ethernet: set rx_delay to 0xffffffff
[    0.088491] rk_gmac-dwmac ffa80000.ethernet: integrated PHY? (yes).
[    0.088508] rk_gmac-dwmac ffa80000.ethernet: cannot get clock mac_clk_rx
[    0.088520] rk_gmac-dwmac ffa80000.ethernet: cannot get clock mac_clk_tx
[    0.088550] rk_gmac-dwmac ffa80000.ethernet: cannot get clock clk_mac_speed
[    0.088559] rk_gmac-dwmac ffa80000.ethernet: clock input from PHY
[    0.088833] rk_gmac-dwmac ffa80000.ethernet: init for RMII
[    0.089025] rk_gmac-dwmac ffa80000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    0.089044] rk_gmac-dwmac ffa80000.ethernet:         DWMAC4/5
[    0.089057] rk_gmac-dwmac ffa80000.ethernet: DMA HW capability register supported
[    0.089067] rk_gmac-dwmac ffa80000.ethernet: RX Checksum Offload Engine supported
[    0.089075] rk_gmac-dwmac ffa80000.ethernet: TX Checksum insertion supported
[    0.089083] rk_gmac-dwmac ffa80000.ethernet: Wake-Up On Lan supported
[    0.089181] rk_gmac-dwmac ffa80000.ethernet: TSO supported
[    0.089195] rk_gmac-dwmac ffa80000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.089205] rk_gmac-dwmac ffa80000.ethernet: TSO feature enabled
[    0.089216] rk_gmac-dwmac ffa80000.ethernet: Using 40 bits DMA width
[    0.095458] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.095864] phy phy-ff3e0000.usb2-phy.0: illegal mode
[    0.095885] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    0.095918] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    0.096095] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000022010010
[    0.096146] xhci-hcd xhci-hcd.0.auto: irq 64, io mem 0xffb00000
[    0.097179] hub 1-0:1.0: USB hub found
[    0.097247] hub 1-0:1.0: 1 port detected
[    0.097600] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    0.097634] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    0.097656] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    0.097781] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.098444] hub 2-0:1.0: USB hub found
[    0.098503] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    0.098853] usbcore: registered new interface driver usb-storage
[    0.099012] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
[    0.099028] udc-core: couldn't find an available UDC - added [g_mass_storage] to list of pending drivers
[    0.100649] rockchip-rtc ff1c0000.rtc: registered as rtc0
[    0.100911] i2c /dev entries driver
[    0.103449] usbcore: registered new interface driver uvcvideo
[    0.103473] USB Video Class driver (1.1.1)
[    0.104285] cpu cpu0: leakage=15
[    0.104863] Synopsys Designware Multimedia Card Interface Driver
[    0.105685] dtbocfg: 0.1.0
[    0.105732] dtbocfg: OK
[    0.107001] dwmmc_rockchip ffa90000.mmc: IDMAC supports 32-bit address mode.
[    0.107043] dwmmc_rockchip ffa90000.mmc: Using internal DMA controller.
[    0.107061] dwmmc_rockchip ffa90000.mmc: Version ID is 270a
[    0.107101] dwmmc_rockchip ffa90000.mmc: DW MMC controller at irq 54,32 bit host data width,256 deep fifo
[    0.107289] mmc_host mmc0: card is non-removable.
[    0.107575] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.108760] rv1106-acodec ff480000.acodec: current soc_id: rv1106
[    0.108853] rv1106-acodec ff480000.acodec: Use pa_ctl_gpio and pa_ctl_delay_ms: 0
[    0.110435] NET: Registered protocol family 17
[    0.110541] Key type dns_resolver registered
[    0.111445] Loading compiled-in X.509 certificates
[    0.128014] input: adc-keys as /devices/platform/adc-keys/input/input0
[    0.161957] mmc_host mmc0: Bus speed (slot 0) = 49500000Hz (slot req 52000000Hz, actual 49500000HZ div = 0)
[    0.162952] mmc0: new high speed MMC card at address 0001
[    0.163395] mmcblk0: mmc0:0001 AT2S38 7.23 GiB
[    0.163501] mmcblk0boot0: mmc0:0001 AT2S38 partition 1 4.00 MiB
[    0.163636] mmcblk0boot1: mmc0:0001 AT2S38 partition 2 4.00 MiB
[    0.163854] mmcblk0rpmb: mmc0:0001 AT2S38 partition 3 4.00 MiB, chardev (247:0)
[    0.164285]  mmcblk0: p1(env) p2(idblock) p3(uboot) p4(boot) p5(oem) p6(userdata) p7(rootfs)
[    0.206414] rockchip-pm rockchip-suspend: not set sleep mode config
[    0.206442] rockchip-pm rockchip-suspend: not set wakeup-config
[    0.206454] rockchip-pm rockchip-suspend: not set pwm-regulator-config
[    0.206633] rockchip-suspend not set sleep-mode-config for mem-lite
[    0.206643] rockchip-suspend not set wakeup-config for mem-lite
[    0.206653] rockchip-suspend not set sleep-mode-config for mem-ultra
[    0.206660] rockchip-suspend not set wakeup-config for mem-ultra
[    0.207424] ALSA device list:
[    0.207444]   #0: rv1106-acodec
[    0.213219] EXT4-fs (mmcblk0p7): INFO: recovery required on readonly filesystem
[    0.213243] EXT4-fs (mmcblk0p7): write access will be enabled during recovery
[    0.665522] EXT4-fs (mmcblk0p7): recovery complete
[    0.666085] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[    0.666159] VFS: Mounted root (ext4 filesystem) readonly on device 179:7.
[    0.666284] devtmpfs: mounted
[    0.666459] Freeing unused kernel memory: 196K
[    0.666469] Kernel memory protection not selected by kernel config.
[    0.666499] Run /sbin/init as init process
[    0.688566] Starting init: /sbin/init exists but couldn't execute it (error -80)
[    0.688589] Run /etc/init as init process
[    0.688846] Run /bin/init as init process
[    0.690149] Run /bin/sh as init process
[    0.691724] Starting init: /bin/sh exists but couldn't execute it (error -80)
[    0.691749] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.342553] CRU:
[    1.344402] 00000000: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.352928] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.361453] 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.369980] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.378506] 00000080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.387033] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.395558] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.404085] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.412610] 00000100: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.421135] 00000120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.429661] 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.438187] 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.446713] 00000180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.455238] 000001a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.463765] 000001c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.472290] 000001e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.480815] 00000200: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.489341] 00000220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.497866] 00000240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.506391] 00000260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.514917] 00000280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.523442] 000002a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.531968] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.540494] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.549019] 00000300: 00006101 00000000 00000000 00000000 00000000 00000000 0040b71b 00000000
[    1.557545] 00000320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.566071] 00000340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.574596] 00000360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.583122] 00000380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.591648] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.600175] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.608701] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.617228] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.625754] 00000420: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.634280] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.642806] 00000460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.651332] 00000480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.659858] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.668384] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.676911] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.685438] 00000500: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.693963] 00000520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.702490] 00000540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.711016] 00000560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.719536] 00000580: 00000000 00000000
[    1.723372] THERMAL REGS:
[    1.725997] 00000000: 00000100 00000003 00000007 00000001 00000000 00000001 00000000 00000001
[    1.734521] 00000020: 00000000 00000000 00000000 00000226 00000000 00000000 00000000 00000000
[    1.743045] 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.751569] 00000060: 00000000 00000000 00000000 0000024c 00000000 00000000 00000000 00000000
[    1.760089] 00000080: 00000000 00000000
[    1.763942] cpu cpu0: cur_freq: 0 Hz, volt: 0 uV
[    1.768569] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---

Re: Luckfox Pico Ultra

Posted: 2025-03-05 13:52
by Crocodile
您好 您的遇到的问题大概率是镜像不完整导致,目前无论是dd命令拷贝还是使用SocToolkit 拷贝都是1:1复制分区避免不了会复制空数据和坏块,镜像的不完整就会导致被设置为只读文件系统导致部分启动脚本运行错误导致内核奔溃,目前比较推荐的方式还是在./build.sh 或 ./build.sh rootfs 后修改 <SDK>/output/out/rootfs_uclibc_rv1106/ ,该目录下除了oem和userdata目录和一些最后加入的工具脚本文件结构和板端的一致,直接对其进行修改,再执行./build.sh firmware就可以生成您自定义的rootfs镜像 (位于/output/image/rootfs.img)
目前我们有收集较为成熟的系统备份方案,后续经过测试找到合适的方案后会将其并入SDK中,请理解我们的工程师精力有限,短期内还有其他优先级更高的开发计划

Re: Luckfox Pico Ultra

Posted: 2025-03-07 8:54
by fengyulingyu
我尝试使用在a的开发板上面安装一个软件,通过测试软件在a开发板上面可以正常使用。然后使用dd命令生成镜像将其烧录到b开发板上面,b的开发板可以成功启动,但是b开发板上面没有办法使用这个软件。是因为使用dd命令提取镜像的时候导致系统文件出现偏移导致当前的开发板没有办法使用软件吗,那么应该如何解决这样的问题。

Re: Luckfox Pico Ultra

Posted: 2025-03-07 9:22
by Crocodile
假设您用的软件名叫 t ,存放在 /usr/bin 下面,在板端运行 ldd /usr/bin/t 查看其是否有什么依赖库,如果没有直接将其拷贝到 <SDK> /output/out/rootfs_uclibc_rv1106/usr/bin/ 下,在SDK中重新执行 ./build.sh firmware 打包生成新的 rootfs.img 烧录到b开发板 b 开发板也可以运行软件 t,避免dd拷贝可能会出现的拷贝不完整等问题
一定要用拷贝 A 的镜像到 B 上最通用暴力的就是dd命令,也有其他命令或方案在安全性和完整性上相比dd有更好的性能,目前我们的了解有限,比较着急就需要自行测试了