-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hyphop
committed
Aug 6, 2019
1 parent
a32fac3
commit 14fe4ff
Showing
8 changed files
with
63 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
#= update boot.sd.scr from boot.sd.cmd source | ||
mkimage -C none -A arm -T script -d boot.sd.cmd boot.sd.scr | ||
|
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,22 @@ | ||
/* | ||
#!script | ||
# boot_hook for rescue boot if file /rescue/boot.sd.scr will be finded on SD card | ||
# add this into uboot -> board_later_init // run_command_list(THIS_SCRIPT_STRINGS,-1,0); | ||
# plz dont use local vars on this stage | ||
*/ | ||
run_command_list("\n\ | ||
setenv SCRIPT_ADDR 0x50000000\n\ | ||
setenv BOOT_HOOK /rescue/boot.sd.scr\n\ | ||
setenv POST_HOOK \"script $SCRIPT_ADDR || autoscr $SCRIPT_ADDR; sleep 1\"\n\ | ||
if fatload mmc 0 $SCRIPT_ADDR $BOOT_HOOK; then\n | ||
setenv bootcmd $POST_HOOK\n\ | ||
exit 0\n\ | ||
fi\n\ | ||
if ext4load mmc 0 $SCRIPT_ADDR $BOOT_HOOK; then\n\ | ||
setenv bootcmd $POST_HOOK\n\ | ||
exit 0\n\ | ||
fi\n" | ||
,-1,0); | ||
|
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,18 @@ | ||
#!script | ||
|
||
# boot_hook for rescue boot if file /rescue/boot.sd.scr will be finded on SD card | ||
# add this into uboot -> board_later_init // run_command_list(THIS_SCRIPT_STRINGS,-1,0); | ||
|
||
# plz dont use local vars on this stage | ||
setenv SCRIPT_ADDR 0x50000000 | ||
setenv BOOT_HOOK /rescue/boot.sd.scr | ||
setenv POST_HOOK "script $SCRIPT_ADDR || autoscr $SCRIPT_ADDR; sleep 1" | ||
|
||
if fatload mmc 0 $SCRIPT_ADDR $BOOT_HOOK; then | ||
setenv bootcmd $POST_HOOK | ||
exit 0 | ||
fi | ||
if ext4load mmc 0 $SCRIPT_ADDR $BOOT_HOOK; then | ||
setenv bootcmd $POST_HOOK | ||
exit 0 | ||
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