diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-03-14 10:19:17 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-03-22 09:45:18 +0100 |
commit | 5c617aec051de5c9dc788d592931a673d58b053d (patch) | |
tree | 048fbdc79c600d95a8cae48251182048c71dc3e4 /package/boot/uboot-fritz4040/patches/110-portability.patch | |
parent | 93aa8604052305830ea6801f0b93ffe2f0d55721 (diff) | |
download | upstream-5c617aec051de5c9dc788d592931a673d58b053d.tar.gz upstream-5c617aec051de5c9dc788d592931a673d58b053d.tar.bz2 upstream-5c617aec051de5c9dc788d592931a673d58b053d.zip |
uboot-fritz4040: add an ipq806x u-boot for FritzBox 4040
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/boot/uboot-fritz4040/patches/110-portability.patch')
-rw-r--r-- | package/boot/uboot-fritz4040/patches/110-portability.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/boot/uboot-fritz4040/patches/110-portability.patch b/package/boot/uboot-fritz4040/patches/110-portability.patch new file mode 100644 index 0000000000..08ab889124 --- /dev/null +++ b/package/boot/uboot-fritz4040/patches/110-portability.patch @@ -0,0 +1,32 @@ +Index: u-boot-2017-01-29-6946ebba/fritz/fritzcreator.sh +=================================================================== +--- u-boot-2017-01-29-6946ebba.orig/fritz/fritzcreator.sh ++++ u-boot-2017-01-29-6946ebba/fritz/fritzcreator.sh +@@ -1,4 +1,4 @@ +-#!/bin/sh -xe ++#!/bin/bash -xe + + # A helpful + # +@@ -11,6 +11,7 @@ UBOOT_FRITZ4040="uboot-fritz4040.bin" + FRITZ_DTS="fritz/fritz4040.dts" + FRITZ_DTB="fritz4040.dtb" + UBOOT_LOADADDR=0x841FFFF8 ++DTC="${DTC:-dtc}" + + rm -f "$UBOOT_FRITZ4040" + +@@ -44,11 +45,11 @@ printf "\x00\x00\x00\xea\xf8\x01\x33\xc4 + cat "$UBOOT_BIN" >> "$UBOOT_FRITZ4040" + + # Pad file to 1M +-dd if="$UBOOT_FRITZ4040" of="$UBOOT_FRITZ4040.new" bs=1M count=1 conv=sync ++dd if="$UBOOT_FRITZ4040" of="$UBOOT_FRITZ4040.new" bs=1024k count=1 conv=sync + mv "$UBOOT_FRITZ4040.new" "$UBOOT_FRITZ4040" + + # Compile DTS +-dtc "$FRITZ_DTS" -o "$FRITZ_DTB" --space 49152 ++$DTC "$FRITZ_DTS" -o "$FRITZ_DTB" --space 49152 + + # Append the compiled DTBs + cat "$FRITZ_DTB" "$FRITZ_DTB" "$FRITZ_DTB" "$FRITZ_DTB" >> $UBOOT_FRITZ4040 |