Commit 24052ec7 authored by Alexander Potashev's avatar Alexander Potashev

RT75957. twr-k70f120m: define the `flashboot` and `update` command

parent 7c08c067
......@@ -325,10 +325,16 @@
"serverip=172.17.0.1\0" \
"image=k70/uImage\0" \
"netboot=tftp ${image};run addip;bootm\0" \
"flashaddr=00020000\0" \
"flashboot=nboot ${loadaddr} 0 ${flashaddr};" \
"run addip;bootm\0" \
/* We hardcode the maximum size of the kernel image, */ \
/* because the `nand write` command only accepts a */ \
/* write length when it is page aligned, so we */ \
/* cannot just pass ${filesize} to this command. */ \
"update=tftp ${image};" \
"prot off ${flashaddr} +${filesize};" \
"era ${flashaddr} +${filesize};" \
"cp.b ${loadaddr} ${flashaddr} ${filesize}\0"
"nand erase ${flashaddr} 2e0000;" \
"nand write ${loadaddr} ${flashaddr} 2e0000\0"
/*
* Linux kernel boot parameters configuration
......
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