-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shellfmt: config/sources; no changes
- Loading branch information
1 parent
6d9a06b
commit 2f63a9c
Showing
4 changed files
with
13 additions
and
15 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 |
---|---|---|
|
@@ -76,8 +76,8 @@ write_uboot_platform() { | |
|
||
declare -A d | ||
d=( | ||
[${1}/bootinfo_emmc.bin]="0:$(du -b ${1}/bootinfo_emmc.bin | awk '{print $1}')" | ||
[${1}/FSBL.bin]="512:$(du -b ${1}/FSBL.bin | awk '{print $1}')" | ||
[${1} / bootinfo_emmc.bin]="0:$(du -b ${1}/bootinfo_emmc.bin | awk '{print $1}')" | ||
[${1} / FSBL.bin]="512:$(du -b ${1}/FSBL.bin | awk '{print $1}')" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rpardini
Author
Member
|
||
) | ||
|
||
if [ -b ${2}boot0 ]; then | ||
|
@@ -86,11 +86,9 @@ write_uboot_platform() { | |
sync | ||
fi | ||
|
||
for f in "${!d[@]}" | ||
do | ||
for f in "${!d[@]}"; do | ||
if $(dd if=${device} bs=1 skip="${d[$f]%:*}" count="${d[$f]#*:}" \ | ||
conv=notrunc status=noxfer 2>/dev/null | cmp --quiet "${f}") | ||
then | ||
conv=notrunc status=noxfer 2> /dev/null | cmp --quiet "${f}"); then | ||
echo "Skip $(basename $f), it is equal to the existing one" | ||
else | ||
echo "# Write =: $(basename $f) to ${device}" | ||
|
@rpardini
[${1} / bootinfo_emmc.bin]
[${1} / FSBL.bin]
This is the path to the file!!! It should not contain spaces.
Have you checked the operation of this script after these changes?