2017-03-01 108 views
-3

我正在u-boot中运行我的脚本文件。我想创建一个文件并保存我的contents.I尝试以下,如何从启动时运行的脚本打开文件

cat > info.txt <<- "EOF"  // opening the file 
echo "${mmcpart}" | tee info.txt   // adding contents 
echo "${root_fs}" | tee -a info.txt 
EOF 

,并
echo "${mmcpart}" | tee info.txt // directly adding the contents in

文件

echo "${root_fs}" | tee -a info.txt 

它不工作....... ...任何人都可以帮我找出

+1

为什么“c”标志?这里没有C。 – FredK

回答

2

u-boot不支持shell脚本语法,u-boot有hush shell a nd用于读取文件和操作环境变量,您可以按照this

相关问题