Skip to content

Commit 15f7980

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 94aa068 + 9cdee8e commit 15f7980

File tree

5 files changed

+54
-5
lines changed

5 files changed

+54
-5
lines changed

blobs/boot0book.bin

0 Bytes
Binary file not shown.

blobs/pinebook.dts renamed to blobs/pine64pinebook.dts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@
21542154
screen0_output_type = <0x1>;
21552155
screen0_output_mode = <0x4>;
21562156
screen1_output_type = <0x3>;
2157-
screen1_output_mode = <0x5>;
2157+
screen1_output_mode = <0xa>;
21582158
fb0_format = <0x0>;
21592159
fb0_width = <0x0>;
21602160
fb0_height = <0x0>;
@@ -2213,6 +2213,8 @@
22132213
lcd_power2 = "vcc-hsic-12";
22142214
lcd_gpio_0 = <0x30 0x3 0x18 0x1 0x0 0xffffffff 0x0>;
22152215
lcd_gpio_1 = <0x30 0x7 0x6 0x1 0x0 0xffffffff 0x1>;
2216+
lcd_gpio_2 = <0x30 0x0 0x8 0x0 0x1 0xffffffff 0x0>;
2217+
lcd_gpio_3 = <0x30 0x0 0x9 0x0 0x1 0xffffffff 0x0>;
22162218
pinctrl-0 = <0xac>;
22172219
lcd_pin_power = "vcc-pd";
22182220
pinctrl-1 = <0xad>;
@@ -2892,6 +2894,16 @@
28922894
card_line = <0x8>;
28932895
pinctrl-0 = <0x9a>;
28942896
sdc_ex_dly_used = <0x2>;
2897+
tm4_smx_fx_0 = <0x0>;
2898+
tm4_smx_fx_1 = <0x0>;
2899+
tm4_smx_fx_2 = <0x2fffff>;
2900+
tm4_smx_fx_3 = <0x0>;
2901+
tm4_smx_fx_4 = <0xdffff>;
2902+
tm4_smx_fx_5 = <0x0>;
2903+
tm4_smx_fx_6 = <0xd2fffff>;
2904+
tm4_smx_fx_7 = <0xb2d>;
2905+
tm4_smx_fx_8 = <0x0>;
2906+
tm4_smx_fx_9 = <0x0>;
28952907
};
28962908

28972909
twi_para {

kernel/install_kernel.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ else
8383
dtc -Odtb -o "$DEST/$SUBFOLDER/sun50i-a64-pine64.dtb" "$BLOBS/${basename}noplus.dts"
8484
echo "Compiling device tree from $BLOBS/${basename}so.dts"
8585
dtc -Odtb -o "$DEST/$SUBFOLDER/sun50i-a64-pine64-so.dtb" "$BLOBS/${basename}so.dts"
86+
echo "Compiling device tree from $BLOBS/${basename}pinebook.dts"
87+
dtc -Odtb -o "$DEST/$SUBFOLDER/sun50i-a64-pine64-pinebook.dtb" "$BLOBS/${basename}pinebook.dts"
8688
fi
8789

8890
if [ ! -e "$DEST/uEnv.txt" ]; then

simpleimage/flash_boot0_only.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
#
3+
# Simple script to replace boot0.bin in an existing image.
4+
#
5+
6+
set -e
7+
8+
out="$1"
9+
boot0="$2"
10+
11+
if [ -z "$out" ]; then
12+
echo "Usage: $0 /dev/sdX [<boot0.bin>]"
13+
exit 1
14+
fi
15+
16+
if [ -z "$boot0" ]; then
17+
boot0="../blobs/boot0.bin"
18+
fi
19+
boot0_position=8 # KiB
20+
boot0_size=$(wc -c $boot0)
21+
22+
pv "$boot0" | dd conv=notrunc bs=1k seek=$boot0_position count=32 oflag=direct of="$out"
23+
24+
sync

u-boot-postprocess/u-boot-postprocess.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,32 @@ BLOBS="../blobs"
1515
UBOOT="../u-boot-pine64"
1616
# https://github.com/longsleep/arm-trusted-firmware-pine64
1717
TRUSTED_FIRMWARE="../arm-trusted-firmware-pine64"
18-
TRUSTED_FIRMWARE_BUILD="release"
1918
# https://github.com/longsleep/sunxi-pack-tools
2019
SUNXI_PACK_TOOLS="../sunxi-pack-tools/bin"
2120

21+
if [ "$1" = "-h" -o "$1" = "--help" ]; then
22+
echo "Usage: $0 [<pine64|pine64pinebook>] [<trusted-firmware-build>]"
23+
exit 1
24+
fi
25+
MODEL="$1"
26+
27+
TRUSTED_FIRMWARE_BUILD="$2"
28+
if [ -z "$TRUSTED_FIRMWARE_BUILD" ]; then
29+
TRUSTED_FIRMWARE_BUILD="release"
30+
fi
31+
2232
BUILD="../build"
2333
mkdir -p $BUILD
2434

35+
echo "ATF build: $TRUSTED_FIRMWARE_BUILD"
2536
cp -avf $TRUSTED_FIRMWARE/build/sun50iw1p1/$TRUSTED_FIRMWARE_BUILD/bl31.bin $BUILD
2637
cp -avf $UBOOT/u-boot-sun50iw1p1.bin $BUILD/u-boot.bin
2738
cp -avf $BLOBS/scp.bin $BUILD
2839
cp -avf $BLOBS/sys_config.fex $BUILD
2940

3041
# build binary device tree
31-
dtc -Odtb -o $BUILD/pine64.dtb $BLOBS/pine64.dts
42+
echo "Device tree model: $MODEL"
43+
dtc -Odtb -o $BUILD/$MODEL.dtb $BLOBS/$MODEL.dts
3244

3345
unix2dos $BUILD/sys_config.fex
3446
$SUNXI_PACK_TOOLS/script $BUILD/sys_config.fex
@@ -38,10 +50,9 @@ $SUNXI_PACK_TOOLS/merge_uboot $BUILD/u-boot.bin $BUILD/bl31.bin $BUILD/u-boot-me
3850
$SUNXI_PACK_TOOLS/merge_uboot $BUILD/u-boot-merged.bin $BUILD/scp.bin $BUILD/u-boot-merged2.bin scp
3951

4052
# update_fdt.exe u-boot.bin xxx.dtb output_file.bin
41-
$SUNXI_PACK_TOOLS/update_uboot_fdt $BUILD/u-boot-merged2.bin $BUILD/pine64.dtb $BUILD/u-boot-with-dtb.bin
53+
$SUNXI_PACK_TOOLS/update_uboot_fdt $BUILD/u-boot-merged2.bin $BUILD/$MODEL.dtb $BUILD/u-boot-with-dtb.bin
4254

4355
# Add fex file to u-boot so it actually is accepted by boot0.
4456
$SUNXI_PACK_TOOLS/update_uboot $BUILD/u-boot-with-dtb.bin $BUILD/sys_config.bin
4557

4658
echo "Done - created $BUILD/u-boot-with-dtb.bin"
47-

0 commit comments

Comments
 (0)