Actions
bug #443
open启动异常
Status:
under verification
Priority:
low priority
Assignee:
-
Start date:
04/25/2026
Due date:
% Done:
0%
Estimated time:
Description


Files
Updated by zhanbin lin about 1 month ago

还有可能内存异常
Updated by zhanbin lin 20 days ago
/boot/boot.cmd 运行会通过读取/boot/armbianEnv.txt 设置rootdev=UUID=XXXXXXX
但是可能读取异常 读取异常时rootdev是默认值/dev/mmcblk0p1 所以无法挂载文件系统
添加修改 设置为正确的块设备挂载
diff --git a/config/bootscripts/boot-sun50i-next.cmd b/config/bootscripts/boot-sun50i-next.cmd
index 0bd8b1b42..59c785ef2 100644
--- a/config/bootscripts/boot-sun50i-next.cmd
+++ b/config/bootscripts/boot-sun50i-next.cmd
@@ -6,7 +6,7 @@
# default values
setenv load_addr "0x45000000"
setenv overlay_error "false"
-setenv rootdev "/dev/mmcblk0p1"
+setenv rootdev "/dev/mmcblk2p1"
setenv verbosity "1"
setenv rootfstype "ext4"
setenv console "both"
@@ -36,6 +36,14 @@ if test -e ${devtype} ${devnum} ${prefix}armbianEnv.txt; then
env import -t ${load_addr} ${filesize}
fi
+if test "${devnum}" = "1"; then
+ setenv rootdev "/dev/mmcblk2p1" # eMMC 在 Linux 中是 mmcblk2
+ echo "Boot with eMMC"
+elif test "${devnum}" = "0"; then
+ setenv rootdev "/dev/mmcblk0p1" # SD 卡
+ echo "Boot with SD card"
+fi
+
# Delete the vendor's name from the fdtfile variable and record the result
# after the file with the environment variables has been read
if setexpr subfdt sub ${vendor}/ "" ${fdtfile};then
Updated by zhanbin lin 19 days ago
发现emmc启动是 内核概率会吧设备注册为/dev/mmcblk1
所以修改为挂载rootdev "LABEL=armbi_root"
Actions