Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: host/share/cros_write_firmware/spi.script

Issue 6594134: Create new cros_write_firmware tool based on write_tegra_bios. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/dev-util.git@master
Patch Set: Quote commands in U-Boot script. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « host/share/cros_write_firmware/nvflash-spi.cfg ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 setenv _crc 'crc32 ${address} ${firmware_size}'
2 setenv _init 'echo Initing SPI; sf probe 0'
3 setenv _erase 'echo Erasing SPI; sf erase 0 ${length}'
4 setenv _write 'echo Writing SPI; sf write ${address} 0 ${length}'
5 setenv _clear 'echo Clearing RAM; mw.b ${address} 0 ${length}'
6 setenv _read 'echo Reading SPI; sf read ${address} 0 ${length}'
7
8 run _crc
9 run _init
10 run _erase
11 run _write
12 run _clear
13 run _read
14 run _crc
15
16 echo If the 2 CRCs above are equal, flash was successful
OLDNEW
« no previous file with comments | « host/share/cros_write_firmware/nvflash-spi.cfg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698