-3

I am running my script file in u-boot. I want to create a file and save my contents.I tried the following ,

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

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

file

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

Its not working.......... Can anyone help me to find out

MSD
  • 1,409
  • 12
  • 25

1 Answers1

2

The u-boot doesn't support shell script syntax, u-boot has hush shell and for reading file and manipulating environment variables you can follow this

ntshetty
  • 1,293
  • 9
  • 20