diff options
Diffstat (limited to 'roms/u-boot/board/rockchip/evb_rk3229')
-rw-r--r-- | roms/u-boot/board/rockchip/evb_rk3229/Kconfig | 15 | ||||
-rw-r--r-- | roms/u-boot/board/rockchip/evb_rk3229/MAINTAINERS | 6 | ||||
-rw-r--r-- | roms/u-boot/board/rockchip/evb_rk3229/Makefile | 7 | ||||
-rw-r--r-- | roms/u-boot/board/rockchip/evb_rk3229/README | 71 | ||||
-rw-r--r-- | roms/u-boot/board/rockchip/evb_rk3229/evb_rk3229.c | 10 |
5 files changed, 109 insertions, 0 deletions
diff --git a/roms/u-boot/board/rockchip/evb_rk3229/Kconfig b/roms/u-boot/board/rockchip/evb_rk3229/Kconfig new file mode 100644 index 000000000..361dcb186 --- /dev/null +++ b/roms/u-boot/board/rockchip/evb_rk3229/Kconfig @@ -0,0 +1,15 @@ +if TARGET_EVB_RK3229 + +config SYS_BOARD + default "evb_rk3229" + +config SYS_VENDOR + default "rockchip" + +config SYS_CONFIG_NAME + default "evb_rk3229" + +config BOARD_SPECIFIC_OPTIONS # dummy + def_bool y + +endif diff --git a/roms/u-boot/board/rockchip/evb_rk3229/MAINTAINERS b/roms/u-boot/board/rockchip/evb_rk3229/MAINTAINERS new file mode 100644 index 000000000..dfa1090c3 --- /dev/null +++ b/roms/u-boot/board/rockchip/evb_rk3229/MAINTAINERS @@ -0,0 +1,6 @@ +EVB-RK3229 +M: Kever Yang <kever.yang@rock-chips.com> +S: Maintained +F: board/rockchip/evb_rk3229 +F: include/configs/evb_rk3229.h +F: configs/evb-rk3229_defconfig diff --git a/roms/u-boot/board/rockchip/evb_rk3229/Makefile b/roms/u-boot/board/rockchip/evb_rk3229/Makefile new file mode 100644 index 000000000..65dcd8be3 --- /dev/null +++ b/roms/u-boot/board/rockchip/evb_rk3229/Makefile @@ -0,0 +1,7 @@ +# +# (C) Copyright 2015 Google, Inc +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += evb_rk3229.o diff --git a/roms/u-boot/board/rockchip/evb_rk3229/README b/roms/u-boot/board/rockchip/evb_rk3229/README new file mode 100644 index 000000000..9068225e2 --- /dev/null +++ b/roms/u-boot/board/rockchip/evb_rk3229/README @@ -0,0 +1,71 @@ +Get the Source and prebuild binary +================================== + + > mkdir ~/evb_rk3229 + > cd ~/evb_rk3229 + > git clone git://git.denx.de/u-boot.git + > git clone https://github.com/OP-TEE/optee_os.git + > git clone https://github.com/rockchip-linux/rkbin.git + > git clone https://github.com/rockchip-linux/rkdeveloptool.git + +Compile the OP-TEE +=============== + + > cd optee_os + > make clean + > make CROSS_COMPILE_ta_arm32=arm-none-eabi- PLATFORM=rockchip-rk322x + Get tee.bin in this step, copy it to U-Boot root dir: + > cp out/arm-plat-rockchip/core/tee-pager.bin ../u-boot/tee.bin + +Compile the U-Boot +================== + + > cd ../u-boot + > export CROSS_COMPILE=arm-linux-gnueabihf- + > make evb-rk3229_defconfig + > make + > make u-boot.itb + + Get tpl/u-boot-tpl.bin, spl/u-boot-spl.bin and u-boot.itb in this step. + +Compile the rkdeveloptool +======================= + Follow instructions in latest README + > cd ../rkflashtool + > autoreconf -i + > ./configure + > make + > sudo make install + + Get rkdeveloptool in you Host in this step. + +Both origin binaries and Tool are ready now, choose either option 1 or +option 2 to deploy U-Boot. + +Package the image +================= + + > cd ../u-boot + > tools/mkimage -n rk322x -T rksd -d tpl/u-boot-spl.bin idbloader.img + > cat spl/u-boot-spl.bin >> idbloader.img + + Get idbloader.img in this step. + +Flash the image to eMMC +======================= +Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then: + > cd .. + > rkdeveloptool db rkbin/rk32/rk322x_loader_v1.04.232.bin + > rkdeveloptool wl 64 u-boot/idbloader.img + > rkdeveloptool wl 0x4000 u-boot/u-boot.itb + > rkdeveloptool rd + +Flash the image to SD card +========================== + > dd if=u-boot/idbloader.img of=/dev/sdb seek=64 + > dd if=u-boot/u-boot.itb of=/dev/sdb seek=16384 + +You should be able to get U-Boot log message with OP-TEE boot info. + +For more detail, please reference to: +http://opensource.rock-chips.com/wiki_Boot_option diff --git a/roms/u-boot/board/rockchip/evb_rk3229/evb_rk3229.c b/roms/u-boot/board/rockchip/evb_rk3229/evb_rk3229.c new file mode 100644 index 000000000..c64c62f7b --- /dev/null +++ b/roms/u-boot/board/rockchip/evb_rk3229/evb_rk3229.c @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2017 Rockchip Electronics Co., Ltd + */ + +#include <common.h> +#include <dm.h> +#include <asm/io.h> +#include <asm/arch-rockchip/uart.h> + |