Commit 3244725b authored by Federico Vaga's avatar Federico Vaga

flash-wrs: erase nand memory before write on it

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 993b3017
#!/bin/sh
# A script to ease the use of the usb loader, possibly changing the mac address
#
# Authors:
# Authors:
# - Benoit Rat (Seven Solutions, www.sevensols.com)
# - Federico Vaga
# - Alessandro Rubini
#
# GNU Lesser General Public License Usage
......@@ -262,6 +263,9 @@ cd ..
EOF
fakeroot bash $TMPSCRIPT
# Erase all nand memory
${WRS_BASE_DIR}/usb-loader/mch_flasher -e -m nand
# Start nand flashing procedure
${WRS_BASE_DIR}/usb-loader/mch_flasher -m ddr $FLAGS $DEV ${Tbarebox} 0x0 ${kernel} 0x1000000 ${TMPCPIO} 0x1FFFFF8
rm -rf $TMPFS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment