diff options
author | 2019-06-04 14:23:07 +0530 | |
---|---|---|
committer | 2019-08-03 07:51:30 +0200 | |
commit | 59e1077b4ebe79622a454b0a8a840e4349a0440d (patch) | |
tree | d4b3b8738915b519723106f9a0207c0bc4acecf0 /board/pine64 | |
parent | a480976d1634ebf4b94e3e455a78e6dc662306b9 (diff) | |
download | buildroot-59e1077b4ebe79622a454b0a8a840e4349a0440d.tar.gz buildroot-59e1077b4ebe79622a454b0a8a840e4349a0440d.tar.bz2 |
configs/pine64_rockpro64: new defconfig
This initial support includes:
Linux 5.1
Custom U-Boot
Arm Trusted Firmware v2.0
Buildroot default packages
Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
[Thomas:
- Use the headers from the kernel, by using
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_1=y
- Use the default ext2 rootfs size]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'board/pine64')
-rw-r--r-- | board/pine64/rockpro64/extlinux.conf | 4 | ||||
-rw-r--r-- | board/pine64/rockpro64/genimage.cfg | 22 | ||||
-rwxr-xr-x | board/pine64/rockpro64/post-build.sh | 9 | ||||
-rw-r--r-- | board/pine64/rockpro64/readme.txt | 51 |
4 files changed, 86 insertions, 0 deletions
diff --git a/board/pine64/rockpro64/extlinux.conf b/board/pine64/rockpro64/extlinux.conf new file mode 100644 index 0000000000..ff196499b0 --- /dev/null +++ b/board/pine64/rockpro64/extlinux.conf @@ -0,0 +1,4 @@ +label RockPro64 linux + kernel /boot/Image + devicetree /boot/rk3399-rockpro64.dtb + append earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk0p1 rootwait diff --git a/board/pine64/rockpro64/genimage.cfg b/board/pine64/rockpro64/genimage.cfg new file mode 100644 index 0000000000..b8c1cd5220 --- /dev/null +++ b/board/pine64/rockpro64/genimage.cfg @@ -0,0 +1,22 @@ +image sdcard.img { + hdimage { + } + + partition u-boot-tpl-spl-dtb { + in-partition-table = "no" + image = "u-boot-tpl-spl-dtb.img" + offset = 32K + } + + partition u-boot-dtb { + in-partition-table = "no" + image = "u-boot.itb" + offset = 8M + size = 30M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +} diff --git a/board/pine64/rockpro64/post-build.sh b/board/pine64/rockpro64/post-build.sh new file mode 100755 index 0000000000..e852ba6adf --- /dev/null +++ b/board/pine64/rockpro64/post-build.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +MKIMAGE=$HOST_DIR/bin/mkimage +BOARD_DIR="$(dirname $0)" + +$MKIMAGE -n rk3399 -T rksd -d $BINARIES_DIR/u-boot-tpl-dtb.bin $BINARIES_DIR/u-boot-tpl-dtb.img +cat $BINARIES_DIR/u-boot-tpl-dtb.img $BINARIES_DIR/u-boot-spl-dtb.bin > $BINARIES_DIR/u-boot-tpl-spl-dtb.img + +install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf diff --git a/board/pine64/rockpro64/readme.txt b/board/pine64/rockpro64/readme.txt new file mode 100644 index 0000000000..2fa8be362f --- /dev/null +++ b/board/pine64/rockpro64/readme.txt @@ -0,0 +1,51 @@ +Intro +===== + +Pine64 RockPro64 is a RK3399 SoC based ARM64 board. + +Wiki: https://wiki.pine64.org/index.php/ROCKPro64_Main_Page + +Build +===== + +Run Pine64 RockPro64 configuration + + $ make pine64_rockpro64_defconfig + +To build, run make comamnd. + + $ make + +Files created in output directory +================================= + +output/images + +├── bl31.bin +├── bl31.elf +├── Image +├── rk3399-rockpro64.dtb +├── rootfs.ext2 +├── rootfs.ext4 -> rootfs.ext2 +├── rootfs.tar +├── sdcard.img +├── u-boot.bin +├── u-boot.itb +├── u-boot-spl-dtb.bin +├── u-boot-tpl-dtb.bin +├── u-boot-tpl-dtb.img +└── u-boot-tpl-spl-dtb.img + +Creating bootable SD card: +========================= + +Simply invoke (as root) + + # dd if=output/images/sdcard.img of=/dev/sdX && sync + +Where X is your SD card device + +Serial console +-------------- + +Baudrate for this board is 1500000 |