当前位置:网站首页>【无标题】
【无标题】
2022-08-10 06:12:00 【IT张先生】
u-boot中的脚本如下:
writepartitions=if ubi part boot-config && ubi read $verifyaddr u-boot-env1 1 && ubi read $verifyaddr u-boot-env2 1; then ubi remove bootfs && ubi remove config; else nand erase.part boot-config && ubi part boot-config && ubi create u-boot-env1 0x20000 dynamic && ubi create u-boot-env2 0x20000 dynamic; fi && ubi create bootfs 0x3600000 dynamic && ubi create config - dynamic && if ubi part root && ubi read $verifyaddr rootfs 1; then ubi remove rootfs; else nand erase.part root && ubi part root; fi && ubi create rootfs - dynamic;
运行命令
run writepartitions
弹出如下的问题
U-Boot> run writepartitions
Unknown command 'if' - try 'help'
Unknown command 'then' - try 'help'
Unknown command 'else' - try 'help'
Unknown command 'fi' - try 'help'
Unknown command 'then' - try 'help'
Unknown command 'else' - try 'help'
Unknown command 'fi' - try 'help'
Command failed, result=1
原因是下面的配置没有使能,使能了就ok了
CONFIG_HUSH_PARSER
边栏推荐
猜你喜欢
共享静态IP与独享静态ip有何区别
CuteOneP 一款php的OneDrive多网盘挂载程序 带会员 同步等功能
pthread编程重要知识点
Qt绘制椭圆曲线的角度问题(离心角和旋转角)
[Reinforcement Learning] "Easy RL" - Q-learning - CliffWalking (cliff walking) code interpretation
Mysql表数据在命令行窗口下中文乱码问题解决方法
XV6 swtch.S详解
Text-to-Image最新论文、代码汇总
Reproduce dns out-band data combined with sqlmap
修改 QtCreator 配置解决 “无法运行 rc.exe” 问题
随机推荐
Qt使用私有接口绘制窗口阴影
mysql之两阶段提交
About MongoDb query Decimal128 to BigDecimal problem
Qt中输入框在Win10上“Win+/“快捷键的一个Bug
腾讯云宋翔:Kubernetes集群利用率提升实践
2022 Henan Mengxin League Game (5): University of Information Engineering C - Throwing a Handkerchief
Deep understanding of the array
order by注入与limit注入,以及宽字节注入
Lunix(阿里云服务器)安装Anaconda并开启jupyter服务本地访问
761. 特殊的二进制序列
3. Transactions [mysql advanced]
机器学习_LGB调参汇总(开箱即食)
[Network Security] Practice AWVS Range to reproduce CSRF vulnerability
OSPF的dr和bdr
C语言文件操作
Basic use of Log4j2
Ingress Controller performance test(1)
VS Code插件国际化
OpenGL学习笔记(LearnOpenGL)第一部分-环境配置与基础知识
elf文件与链接脚本