OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | Index: u-boot-2017-01-29-6946ebba/fritz/fritzcreator.sh |
2 | =================================================================== |
||
3 | --- u-boot-2017-01-29-6946ebba.orig/fritz/fritzcreator.sh |
||
4 | +++ u-boot-2017-01-29-6946ebba/fritz/fritzcreator.sh |
||
5 | @@ -1,4 +1,4 @@ |
||
6 | -#!/bin/sh -xe |
||
7 | +#!/bin/bash -xe |
||
8 | |||
9 | # A helpful |
||
10 | # |
||
11 | @@ -11,6 +11,7 @@ UBOOT_FRITZ4040="uboot-fritz4040.bin" |
||
12 | FRITZ_DTS="fritz/fritz4040.dts" |
||
13 | FRITZ_DTB="fritz4040.dtb" |
||
14 | UBOOT_LOADADDR=0x841FFFF8 |
||
15 | +DTC="${DTC:-dtc}" |
||
16 | |||
17 | rm -f "$UBOOT_FRITZ4040" |
||
18 | |||
19 | @@ -44,11 +45,11 @@ printf "\x00\x00\x00\xea\xf8\x01\x33\xc4 |
||
20 | cat "$UBOOT_BIN" >> "$UBOOT_FRITZ4040" |
||
21 | |||
22 | # Pad file to 1M |
||
23 | -dd if="$UBOOT_FRITZ4040" of="$UBOOT_FRITZ4040.new" bs=1M count=1 conv=sync |
||
24 | +dd if="$UBOOT_FRITZ4040" of="$UBOOT_FRITZ4040.new" bs=1024k count=1 conv=sync |
||
25 | mv "$UBOOT_FRITZ4040.new" "$UBOOT_FRITZ4040" |
||
26 | |||
27 | # Compile DTS |
||
28 | -dtc "$FRITZ_DTS" -o "$FRITZ_DTB" --space 49152 |
||
29 | +$DTC "$FRITZ_DTS" -o "$FRITZ_DTB" --space 49152 |
||
30 | |||
31 | # Append the compiled DTBs |
||
32 | cat "$FRITZ_DTB" "$FRITZ_DTB" "$FRITZ_DTB" "$FRITZ_DTB" >> $UBOOT_FRITZ4040 |