aboutsummaryrefslogtreecommitdiff
path: root/board/pine64/rockpro64
diff options
context:
space:
mode:
authorGravatar Suniel Mahesh <sunil@amarulasolutions.com>2020-08-29 15:05:03 +0530
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2020-09-02 22:40:41 +0200
commit4293ce6e3b236b8b52ad0b1567604f6d9e30d709 (patch)
tree459b5614302ec80e4754a5fac8928de9206111ea /board/pine64/rockpro64
parentc287d789b7106b60e8d7bf3eb01e266ae15cafa1 (diff)
downloadbuildroot-4293ce6e3b236b8b52ad0b1567604f6d9e30d709.tar.gz
buildroot-4293ce6e3b236b8b52ad0b1567604f6d9e30d709.tar.bz2
configs/rockpro64: new defconfig
A defconfig for the rockpro64 was added in 59e1077b4ebe79622a454b0a8a840e4349a0440d, but then removed in 10f49213b7e2837ae6ed63fc16fbdaa954ecd87f because an ARM32 compiler was needed to build ATF, and this was not supported back then. Now, since package/arm-gnu-a-toolchain/ has been added, this defconfig can be re-introduced. Following new changes are introduced in comparision with the older changeset: - renamed defconfig from pine64_rockpro64 to rockpro64 - updated readme - using a GPT partition layout - update defconfig to build ATF - bump u-boot to 2020.07 - bump linux to 5.8.2 Signed-off-by: Suniel Mahesh <sunil@amarulasolutions.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> [Arnout: fixate U-Boot version; remove blind BR2_TARGET_UBOOT_NEEDS_PYTHON]
Diffstat (limited to 'board/pine64/rockpro64')
-rw-r--r--board/pine64/rockpro64/extlinux.conf4
-rw-r--r--board/pine64/rockpro64/genimage.cfg39
-rwxr-xr-xboard/pine64/rockpro64/post-build.sh5
-rw-r--r--board/pine64/rockpro64/readme.txt60
4 files changed, 108 insertions, 0 deletions
diff --git a/board/pine64/rockpro64/extlinux.conf b/board/pine64/rockpro64/extlinux.conf
new file mode 100644
index 0000000000..ea081a1f0b
--- /dev/null
+++ b/board/pine64/rockpro64/extlinux.conf
@@ -0,0 +1,4 @@
+label RK3399_ROCKPRO64 linux
+ kernel /Image
+ devicetree /rk3399-rockpro64.dtb
+ append earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk0p4 rw rootwait
diff --git a/board/pine64/rockpro64/genimage.cfg b/board/pine64/rockpro64/genimage.cfg
new file mode 100644
index 0000000000..0ba25c0eef
--- /dev/null
+++ b/board/pine64/rockpro64/genimage.cfg
@@ -0,0 +1,39 @@
+image boot.vfat {
+ vfat {
+ files = {
+ "Image",
+ "rk3399-rockpro64.dtb",
+ "extlinux"
+ }
+ }
+ size = 64M
+}
+
+image sdcard.img {
+
+ hdimage {
+ gpt = true
+ }
+
+ partition loader1 {
+ image = "idbloader.img"
+ offset = 32K
+ }
+
+ partition loader2 {
+ image = "u-boot.itb"
+ offset = 8M
+ }
+
+ partition boot {
+ partition-type = 0xC
+ bootable = "true"
+ image = "boot.vfat"
+ offset = 16M
+ }
+
+ 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..ba29375c05
--- /dev/null
+++ b/board/pine64/rockpro64/post-build.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
diff --git a/board/pine64/rockpro64/readme.txt b/board/pine64/rockpro64/readme.txt
new file mode 100644
index 0000000000..de86970104
--- /dev/null
+++ b/board/pine64/rockpro64/readme.txt
@@ -0,0 +1,60 @@
+PINE64 ROCKPro64
+================
+https://www.pine64.org/rockpro64/
+
+Build:
+======
+ $ make rockpro64_defconfig
+ $ make
+
+Files created in output directory
+=================================
+
+output/images
+
+├── bl31.elf
+├── boot.vfat
+├── extlinux
+├── idbloader.img
+├── Image
+├── rk3399-rockpro64.dtb
+├── rootfs.ext2
+├── rootfs.ext4 -> rootfs.ext2
+├── rootfs.tar
+├── sdcard.img
+├── u-boot.bin
+└── u-boot.itb
+
+Creating bootable SD card:
+==========================
+
+Simply invoke (as root)
+
+sudo dd if=output/images/sdcard.img of=/dev/sdX && sync
+
+Where X is your SD card device.
+
+Booting:
+========
+RockPro64 has a 40-pin PI-2 GPIO Bus.
+
+Connect a jumper between pin 23 and pin 25 for SD card boot.
+
+Serial console:
+---------------
+The pin layout for serial console on PI-2 GPIO Bus is as follows:
+
+pin 6: gnd
+pin 8: tx
+pin 10: rx
+
+Initially connect pin 6 and pin 8(transmit). Apply power to RockPro64, once the
+power is on then connect pin 10(receive).
+
+Baudrate for this board is 1500000.
+
+Login:
+------
+Enter 'root' as login user, and the prompt is ready.
+
+https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/rockpro64.html