Add support for Rockchip chips
This commit is contained in:
parent
65b2a3fb49
commit
71e933bdd5
|
|
@ -11,6 +11,7 @@ RUN apt-get update && \
|
|||
qemu-user-static \
|
||||
device-tree-compiler \
|
||||
gcc \
|
||||
gcc-arm-none-eabi \
|
||||
make \
|
||||
git \
|
||||
bc \
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ RUN apt-get update && \
|
|||
ca-certificates \
|
||||
device-tree-compiler \
|
||||
gcc \
|
||||
gcc-arm-none-eabi \
|
||||
make \
|
||||
git \
|
||||
bc \
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ RUN apt-get update && \
|
|||
ca-certificates \
|
||||
device-tree-compiler \
|
||||
gcc \
|
||||
gcc-arm-none-eabi \
|
||||
make \
|
||||
git \
|
||||
bc \
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ RUN apt-get update && \
|
|||
ca-certificates \
|
||||
device-tree-compiler \
|
||||
gcc \
|
||||
gcc-arm-none-eabi \
|
||||
make \
|
||||
git \
|
||||
bc \
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ RUN apt-get update && \
|
|||
ca-certificates \
|
||||
device-tree-compiler \
|
||||
gcc \
|
||||
gcc-arm-none-eabi \
|
||||
make \
|
||||
git \
|
||||
bc \
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@ allwinner*)
|
|||
bcm2836|bcm2837|bcm2711)
|
||||
build-boot-rpi "${BOARD_ID}" "${CHIP_ID}" "${DEFCONFIG}" "${TUPLE}"
|
||||
;;
|
||||
rk*)
|
||||
build-boot-rk "${BOARD_ID}" "${CHIP_ID}" "${DEFCONFIG}" "${TUPLE}"
|
||||
;;
|
||||
*)
|
||||
echo Unknown CHIP_ID
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue