forked from scorp2kk/u-boot
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ayufan: dev.mk: add rockpi4b to build targets
Change-Id: Iba0629b1fa0e85d71c638fd027585c0214788bf2
- Loading branch information
Showing
5 changed files
with
56 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
setenv blink_power 'led status off; sleep 0.1; led status on' | ||
|
||
# erase flash | ||
run blink_power blink_power | ||
sf probe | ||
sf erase 0 400000 | ||
|
||
# blink forever | ||
while true; do run blink_power; sleep 1; done |
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,28 @@ | ||
setenv blink_power 'led status off; sleep 0.1; led status on' | ||
setenv blink_standby 'led status off; sleep 0.1; led status on' | ||
|
||
# first read existing loader | ||
run blink_power | ||
sf probe | ||
|
||
# or load rkspi_loader.img and write it to 0 offset of spi | ||
# or fail badly | ||
|
||
if size ${devtype} ${devnum}:${distro_bootpart} rkspi_loader.img; then | ||
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} rkspi_loader.img | ||
|
||
# erase flash | ||
run blink_power blink_power | ||
sf erase 0 400000 | ||
|
||
# write flash | ||
run blink_power blink_power blink_power | ||
sf write ${kernel_addr_r} 0 ${filesize} | ||
|
||
# blink forever | ||
while true; do run blink_power; sleep 1; done | ||
else | ||
# blink forever | ||
echo "missing rkspi_loader.img" | ||
while true; do run blink_standby; sleep 1; done | ||
fi |
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