Serial FLASH programming via U-Boot on AMC1

From DSignT Support Database
Revision as of 11:27, 16 November 2017 by Claus (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


1 sf probe

First check if a serial FLASH is available:

AMC1> sf probe
SF: Detected w25q64cv with page size 256 Bytes, erase size 4 KiB, total 8 MiB, m
apped at 30000000
AMC1>



2 sf erase

If the probe command finds a serial FLASH, use the erase command to clear the U-Boot FLASH area:

AMC1> sf erase 0x0 0x70000
SF: 458752 bytes @ 0x0 Erased: OK
AMC1>


Warning.png After erasing the FLASH boot area the AMC1 will not be bootable. Don't power cycle the board now




3 sf write

sf write writes a previously loaded image (see Update U-Boot Image via TFTP on AMC1) from ${loadaddr} in RAM to serial FLASH at address 0x0

AMC1> sf write ${loadaddr} 0x0 ${filesize}
device 0 offset 0x0, size 0x5a0f0
SF: 368880 bytes @ 0x0 Written: OK
AMC1>


Arr u.png    back to top

4 Additional Tags

Serial FLASH mapping on AMC1
Update U-Boot Image via TFTP on AMC1
on command prompt: AMC1> help sf


Contact Post.png Support Tool.png