-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new built-in command to burn images to spi-nand
Support to burn boot images to spi-nand with u-boot fspinand cmd. Signed-off-by: Han Xu <[email protected]>
- Loading branch information
1 parent
6881886
commit 3eec6b9
Showing
5 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
uuu_version 1.2.39 | ||
|
||
# @_flexspi.bin | bootloader | ||
# @_image [_flexspi.bin] | image burn to fspinand, default is the same as bootloader | ||
|
||
# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ | ||
SDP: boot -f _flexspi.bin | ||
|
||
# This command will be run when ROM support stream mode | ||
# i.MX8QXP, i.MX8QM, skip QSPI header | ||
SDPS: boot -f _flexspi.bin -skipfhdr | ||
|
||
# These commands will be run when use SPL and will be skipped if no spl | ||
# SDPU will be deprecated. please use SDPV instead of SDPU | ||
# { | ||
SDPU: delay 1000 | ||
SDPU: write -f _flexspi.bin -offset 0x10000 -skipfhdr | ||
SDPU: jump | ||
# } | ||
|
||
# These commands will be run when use SPL and will be skipped if no spl | ||
# if (SPL support SDPV) | ||
# { | ||
SDPV: delay 1000 | ||
SDPV: write -f _flexspi.bin -skipspl -skipfhdr | ||
SDPV: jump | ||
# } | ||
|
||
FB: ucmd setenv fastboot_buffer ${loadaddr} | ||
FB: download -f _image | ||
|
||
FB: ucmd if test ! -n "$fastboot_bytes"; then setenv fastboot_bytes $filesize; else true; fi | ||
|
||
FB[-t 60000]: ucmd fspinand init spi-nand0 ${fastboot_buffer} ${fastboot_bytes} | ||
|
||
FB: done |