
作者共發了11篇帖子。
![]() |
![]() |
![]() |
需要用下面的配置覆盖掉设备树中原有的mmc配置。 &mmc{ /* For eMMC */ max-frequency = <52000000>; mmc-ddr-1_8v; bus-width = <4>; supports-emmc; cap-mmc-highspeed; disable-wp; //no-sd; //no-sdio; non-removable; pinctrl-names = "default"; pinctrl-0 = <&sdmmc_clk_pins &sdmmc_cmd_pins &sdmmc_bus4_pins>; status = "okay"; }; |
![]() |
|
![]() |
直接烧录幸狐emmc镜像,无法启动系统。因为emmc没有分区。 [ 1.538174] Kernel command line: storagemedia=mtd androidboot.storagemedia=mtd androidboot.mode=normal rootwait earlycon=uart8250,mmio32,0xff0a0000 console=tty1 console=ttyFIQ0 root=/dev/mmcblk0p3 rootfstype=ext4 snd_aloop.index=7 snd_aloop.use_raw_jiffies=1 mtdparts=spi-nand0:0x400000@0x400000(uboot),0xc00000@0x800000(boot),0x1df60000@0x2000000(rootfs) #h-08/01/2025 androidboot.fwver=ddr-v1.04-0ac6b06a19,tee-v1.25,uboot-4d88b0a user_debug=31 [ 1.542276] Unknown kernel command line parameters "#h-08/01/2025 storagemedia=mtd", will be passed to user space. [ 3.059647] mmc_host mmc0: Bus speed (slot 0) = 50176000Hz (slot req 52000000Hz, actual 50176000HZ div = 0) [ 3.066237] mmc0: new DDR MMC card at address 0001 [ 3.066984] mmcblk0: mmc0:0001 JRD11G 3.32 GiB [ 3.069694] mmcblk0boot0: mmc0:0001 JRD11G 4.00 MiB [ 3.070913] mmcblk0boot1: mmc0:0001 JRD11G 4.00 MiB [ 3.072074] mmcblk0rpmb: mmc0:0001 JRD11G 4.00 MiB, chardev (245:0) [ 12.174957] VFS: Cannot open root device "mmcblk0p3" or unknown-block(179,3): error -6 [ 12.180093] Please append a correct "root=" boot option; here are the available partitions: [ 12.185232] 1f00 4096 mtdblock0 [ 12.185242] (driver?) [ 12.195315] 1f01 12288 mtdblock1 [ 12.195325] (driver?) [ 12.205245] 1f02 490880 mtdblock2 [ 12.205254] (driver?) [ 12.215002] b300 3481600 mmcblk0 [ 12.215011] driver: mmcblk [ 12.224589] b308 4096 mmcblk0boot0 [ 12.224598] (driver?) [ 12.234047] b310 4096 mmcblk0boot1 [ 12.234055] (driver?) [ 12.243327] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3) |
![]() |
烧录前先切换一下存储,切换到emmc。
![]() |
![]() |
然后再烧录Luckfox_Lyra_Pi_EMMC_250717\update.img,就能自动给emmc分区,并且能成功启动linux系统。 ![]() |
![]() |
成功从emmc启动linux系统。
![]() |
![]() |
[ 1.804689] Kernel command line: storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal rootwait earlycon=uart8250,mmio32,0xff0a0000 console=tty1 console=ttyFIQ0 root=/dev/mmcblk0p3 rootfstype=ext4 snd_aloop.index=7 snd_aloop.use_raw_jiffies=1 #h-08/01/2025 androidboot.fwver=ddr-v1.04-0ac6b06a19,tee-v1.25,uboot-4d88b0a user_debug=31
![]() |
![]() |
oct1158@oct1158-ubuntu:~/Documents/Code/C/Luckfox_Lyra_SDK_250815_emmc$ ./build.sh lunch
############### Rockchip Linux SDK ############### Manifest: luckfox_linux6.1_rk3506_release_v1.4_20250620.xml Log colors: message notice warning error fatal Log saved at /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815_emmc/output/sessions/2026-09-21_15-12-22 You're building on Linux Lunch menu...pick the Luckfox Lyra hardware version: ?? Luckfox Lyra ????: [0] RK3506G_Luckfox_Lyra [1] RK3506G_Luckfox_Lyra_Plus [2] RK3506B_Luckfox_Lyra_Ultra [3] RK3506B_Luckfox_Lyra_Ultra_W [4] RK3506B_Luckfox_Lyra_Zero_W [5] RK3506B_Luckfox_Lyra_Pi [6] RK3506B_Luckfox_Lyra_Pi_W [7] custom Which would you like? [0~7][default:0]: 5 Lunch menu...pick the boot medium: ??????: [0] SD_CARD [1] EMMC Which would you like? [0~1][default:0]: 1 Lunch menu...pick the system version: ??????: [0] Buildroot Which would you like? [0~1][default:0]: 0 Switching to defconfig: /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815_emmc/device/rockchip/.chip/luckfox_lyra_pi_buildroot_emmc_defconfig # # configuration written to /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815_emmc/output/.config # Using last kernel version(6.1) oct1158@oct1158-ubuntu:~/Documents/Code/C/Luckfox_Lyra_SDK_250815_emmc$ 巨大八爪鱼:设备树文件名:kernel/arch/arm/boot/dts/rk3506b-luckfox-lyra-pi.dts
[查看詳情]
|
![]() |
如果想要切换回flash,则需要先点击“获取当前存储”和“擦除所有”,把emmc擦干净。然后再切换存储到6. SPINAND。 不擦除emmc直接切换存储到6. SPINAND的话,板子重启后又会重新恢复成2. EMMC。 ![]() |