Add support for Rockchip chips

This commit is contained in:
Johan Gunnarsson 2020-09-13 14:07:44 +02:00
parent 65b2a3fb49
commit 71e933bdd5
7 changed files with 31 additions and 0 deletions

View File

@ -11,6 +11,7 @@ RUN apt-get update && \
qemu-user-static \ qemu-user-static \
device-tree-compiler \ device-tree-compiler \
gcc \ gcc \
gcc-arm-none-eabi \
make \ make \
git \ git \
bc \ bc \

View File

@ -10,6 +10,7 @@ RUN apt-get update && \
ca-certificates \ ca-certificates \
device-tree-compiler \ device-tree-compiler \
gcc \ gcc \
gcc-arm-none-eabi \
make \ make \
git \ git \
bc \ bc \

View File

@ -20,6 +20,7 @@ RUN apt-get update && \
ca-certificates \ ca-certificates \
device-tree-compiler \ device-tree-compiler \
gcc \ gcc \
gcc-arm-none-eabi \
make \ make \
git \ git \
bc \ bc \

View File

@ -10,6 +10,7 @@ RUN apt-get update && \
ca-certificates \ ca-certificates \
device-tree-compiler \ device-tree-compiler \
gcc \ gcc \
gcc-arm-none-eabi \
make \ make \
git \ git \
bc \ bc \

View File

@ -20,6 +20,7 @@ RUN apt-get update && \
ca-certificates \ ca-certificates \
device-tree-compiler \ device-tree-compiler \
gcc \ gcc \
gcc-arm-none-eabi \
make \ make \
git \ git \
bc \ bc \

View File

@ -21,6 +21,9 @@ allwinner*)
bcm2836|bcm2837|bcm2711) bcm2836|bcm2837|bcm2711)
build-boot-rpi "${BOARD_ID}" "${CHIP_ID}" "${DEFCONFIG}" "${TUPLE}" build-boot-rpi "${BOARD_ID}" "${CHIP_ID}" "${DEFCONFIG}" "${TUPLE}"
;; ;;
rk*)
build-boot-rk "${BOARD_ID}" "${CHIP_ID}" "${DEFCONFIG}" "${TUPLE}"
;;
*) *)
echo Unknown CHIP_ID echo Unknown CHIP_ID
exit 1 exit 1

23
scripts/build-boot-rk Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
# Build SD card image
BOARD_ID="${1}" # For example "bananapi"
CHIP_ID="${2}" # For example "allwinner-a10"
DEFCONFIG="${3}" # For example "Bananapi_defconfig"
TUPLE="${4}" # For example "arm-linux-gnueabihf"
set -e
case "${CHIP_ID}" in
rk3308|rk3328|rk3368|rk3399)
build-atf "${CHIP_ID}" "${TUPLE}"
export BL31="$(pwd)/arm-trusted-firmware/build/${CHIP_ID}/debug/bl31/bl31.elf"
;;
*)
;;
esac
build-u_boot "${DEFCONFIG}" "${TUPLE}"
# Copy U-Boot to 64 sectors from start
dd if=u-boot/u-boot-rockchip.bin of=tmp.img seek=64