input - beaglebone am355 u-boot switch bootpart by GPIO
问题描述
当 gpio 48 处于不同状态时,我试图从分区 3 启动。
如果我将 am355x_evm.h 更改为
#define MCO_BOOT "if gpio input 48; then setenv bootpart ${mmcdev}:3; fi;"
和
NANDARGS \
NETARGS \
DFUARGS \
MCO_BOOT \<---- new line
BOOTENV
#endif
仍然转到 /dev/mmkblk0p1 如果我输入 u-boot 提示
if gpio input 48; then setenv bootpart ${mmcdev}:3; fi
reset
还抱怨 /sbin/init
我做错了什么。谢谢你。
同样的方法在 iMX6 上运行良好,请参见此处的摘录。
"xfile=if load mmc 1:1 0x80008000 bootfact; then setenv mmcrootpart 3; else setenv mmcrootpart 2; fi;\0" \
"fact=if gpio input 120; then setenv mmcrootpart 3 ; else run xfile; fi; printenv mmcrootpart;\0" \
解决方案
我想我找到了。我还必须设置 mmcpart。
推荐阅读
- java - 我保存了一个待办事项列表,如何将其加载到我的待办事项列表应用程序中?
- python - 判断一个字符串是否为 a。另一个字符串的子集。不要使用 contains 或 in 关键字
- powershell - PowerShell Invoke-Command 与本地计算机上的 FilePath - 模糊参数错误?
- python - 使用 selenium webdriver,python 检索动态值
- sql - 根据不同的值顺序聚合列
- javascript - 未捕获的类型错误:无法读取未定义的属性“地图”(REACT NATIVE - Javascript)
- python - ModuleNotFoundError:没有名为“请求”的模块,但它已安装?
- r - 如何将 S3 方法声明为默认加载环境?
- spring-boot - Kotlin Mock Spring 启动测试无法编译
- r - R中非线性回归的初始参数