Skip to contentSkip to conversation

Add support for radxa rk3399 and rk3399pro based targets

PATCH Superseded Suniel Mahesh 1 participant 3 messages Jun 17, 2020

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Add support for radxa rk3399 and rk3399pro based targets

From: Suniel Mahesh <[email protected]>

This patch series adds support for targets based on rk3399 SOC from radxa.

patch #1, adds support for rockpi_n10 base board hosting a RK3399pro SOM. patch #2, adds support for rockpi_4c target based on rk3399 SOC.

Suniel Mahesh (2):
configs/rockpi_n10: new defconfig
configs/rockpi_4c: new defconfig

 .gitlab-ci.yml                       |  2 ++
 DEVELOPERS                           |  4 +++
 board/radxa/rockpi-4c/extlinux.conf  |  4 +++
 board/radxa/rockpi-4c/genimage.cfg   | 39 ++++++++++++++++++++++++
 board/radxa/rockpi-4c/post-build.sh  |  5 ++++
 board/radxa/rockpi-4c/readme.txt     | 56 +++++++++++++++++++++++++++++++++++
 board/radxa/rockpi-n10/extlinux.conf |  4 +++
 board/radxa/rockpi-n10/genimage.cfg  | 39 ++++++++++++++++++++++++
 board/radxa/rockpi-n10/post-build.sh |  5 ++++
 board/radxa/rockpi-n10/readme.txt    | 56 +++++++++++++++++++++++++++++++++++
 configs/rockpi_4c_defconfig          | 57 ++++++++++++++++++++++++++++++++++++
 configs/rockpi_n10_defconfig         | 57 ++++++++++++++++++++++++++++++++++++
 12 files changed, 328 insertions(+)
 create mode 100644 board/radxa/rockpi-4c/extlinux.conf
 create mode 100644 board/radxa/rockpi-4c/genimage.cfg
 create mode 100755 board/radxa/rockpi-4c/post-build.sh
 create mode 100644 board/radxa/rockpi-4c/readme.txt
 create mode 100644 board/radxa/rockpi-n10/extlinux.conf
 create mode 100644 board/radxa/rockpi-n10/genimage.cfg
 create mode 100755 board/radxa/rockpi-n10/post-build.sh
 create mode 100644 board/radxa/rockpi-n10/readme.txt
 create mode 100644 configs/rockpi_4c_defconfig
 create mode 100644 configs/rockpi_n10_defconfig
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 configs/rockpi_n10: new defconfig

From: Suniel Mahesh <[email protected]>

Add initial support for RK3399PRO SOM based rockpi-n10 target with below features:

- Custom U-Boot 2020.07-rc4
https://github.com/amarula/u-boot-amarula.git
branch rock-pi
- Linux 5.7.2
- GPT partition layout is being used
- Default packages from buildroot

---
 .gitlab-ci.yml                       |  1 +
 DEVELOPERS                           |  2 ++
 board/radxa/rockpi-n10/extlinux.conf |  4 +++
 board/radxa/rockpi-n10/genimage.cfg  | 39 ++++++++++++++++++++++++
 board/radxa/rockpi-n10/post-build.sh |  5 ++++
 board/radxa/rockpi-n10/readme.txt    | 56 +++++++++++++++++++++++++++++++++++
 configs/rockpi_n10_defconfig         | 57 ++++++++++++++++++++++++++++++++++++
 7 files changed, 164 insertions(+)
 create mode 100644 board/radxa/rockpi-n10/extlinux.conf
 create mode 100644 board/radxa/rockpi-n10/genimage.cfg
 create mode 100755 board/radxa/rockpi-n10/post-build.sh
 create mode 100644 board/radxa/rockpi-n10/readme.txt
 create mode 100644 configs/rockpi_n10_defconfig
.gitlab-ci.yml +1 -0
index a3b268d..24346de 100644
@@ -323,6 +323,7 @@ riotboard_defconfig: { extends: .defconfig }
 roc_pc_rk3399_defconfig: { extends: .defconfig }
 rock64_defconfig: { extends: .defconfig }
 rockpro64_defconfig: { extends: .defconfig }
+rockpi_n10_defconfig: { extends: .defconfig }
 roseapplepi_defconfig: { extends: .defconfig }
 s6lx9_microboard_defconfig: { extends: .defconfig }
 sheevaplug_defconfig: { extends: .defconfig }
DEVELOPERS +2 -0
index ede3815..917e2dd 100644
@@ -2396,11 +2396,13 @@ F:	board/firefly/
 F:	board/friendlyarm/nanopc-t4
 F:	board/friendlyarm/nanopi-m4
 F:	board/orangepi/orangepi-rk3399
+F:	board/radxa/rockpi-n10
 F:	board/pine64/rockpro64
 F: 	configs/nanopc_t4_defconfig
 F: 	configs/nanopi_m4_defconfig
 F:	configs/orangepi_rk3399_defconfig
 F:	configs/roc_pc_rk3399_defconfig
+F:	configs/rockpi_n10_defconfig
 F:	configs/rockpro64_defconfig
 F:	package/arm-gnu-a-toolchain/
 
board/radxa/rockpi-n10/extlinux.conf new file +4 -0
new file mode 100644
index 0000000..97e7bd5
@@ -0,0 +1,4 @@
+label RK3399_ROCKPI_N10 linux
+  kernel /Image
+  devicetree /rk3399pro-rock-pi-n10.dtb
+  append earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk0p4 rw rootwait
board/radxa/rockpi-n10/genimage.cfg new file +39 -0
new file mode 100644
index 0000000..8fbf562
@@ -0,0 +1,39 @@
+image boot.vfat {
+	vfat {
+		files = {
+			"Image",
+			"rk3399pro-rock-pi-n10.dtb",
+			"extlinux"
+		}
+	}
+	size = 112M
+}
+
+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"
+	}
+}
board/radxa/rockpi-n10/post-build.sh new file +5 -0
new file mode 100755
index 0000000..ba29375
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
board/radxa/rockpi-n10/readme.txt new file +56 -0

56 lines not on this page · raw message

configs/rockpi_n10_defconfig new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 configs/rockpi_4c: new defconfig

In reply to Suniel Mahesh

From: Suniel Mahesh <[email protected]>

Add initial support for RK3399 based rockpi-4c target with below features:

- Custom U-Boot 2020.07-rc4
https://github.com/amarula/u-boot-amarula.git
branch rock-pi
- Linux 5.4.46
- GPT partition layout is being used
- Default packages from buildroot

---
 .gitlab-ci.yml                      |  1 +
 DEVELOPERS                          |  2 ++
 board/radxa/rockpi-4c/extlinux.conf |  4 +++
 board/radxa/rockpi-4c/genimage.cfg  | 39 +++++++++++++++++++++++++
 board/radxa/rockpi-4c/post-build.sh |  5 ++++
 board/radxa/rockpi-4c/readme.txt    | 56 ++++++++++++++++++++++++++++++++++++
 configs/rockpi_4c_defconfig         | 57 +++++++++++++++++++++++++++++++++++++
 7 files changed, 164 insertions(+)
 create mode 100644 board/radxa/rockpi-4c/extlinux.conf
 create mode 100644 board/radxa/rockpi-4c/genimage.cfg
 create mode 100755 board/radxa/rockpi-4c/post-build.sh
 create mode 100644 board/radxa/rockpi-4c/readme.txt
 create mode 100644 configs/rockpi_4c_defconfig
.gitlab-ci.yml +1 -0
index 24346de..12ac714 100644
@@ -323,6 +323,7 @@ riotboard_defconfig: { extends: .defconfig }
 roc_pc_rk3399_defconfig: { extends: .defconfig }
 rock64_defconfig: { extends: .defconfig }
 rockpro64_defconfig: { extends: .defconfig }
+rockpi_4c_defconfig: { extends: .defconfig }
 rockpi_n10_defconfig: { extends: .defconfig }
 roseapplepi_defconfig: { extends: .defconfig }
 s6lx9_microboard_defconfig: { extends: .defconfig }
DEVELOPERS +2 -0
index 917e2dd..4eabdef 100644
@@ -2396,12 +2396,14 @@ F:	board/firefly/
 F:	board/friendlyarm/nanopc-t4
 F:	board/friendlyarm/nanopi-m4
 F:	board/orangepi/orangepi-rk3399
+F:	board/radxa/rockpi-4c
 F:	board/radxa/rockpi-n10
 F:	board/pine64/rockpro64
 F: 	configs/nanopc_t4_defconfig
 F: 	configs/nanopi_m4_defconfig
 F:	configs/orangepi_rk3399_defconfig
 F:	configs/roc_pc_rk3399_defconfig
+F:	configs/rockpi_4c_defconfig
 F:	configs/rockpi_n10_defconfig
 F:	configs/rockpro64_defconfig
 F:	package/arm-gnu-a-toolchain/
board/radxa/rockpi-4c/extlinux.conf new file +4 -0
new file mode 100644
index 0000000..9e4557e
@@ -0,0 +1,4 @@
+label RK3399_ROCKPI4C linux
+  kernel /Image
+  devicetree /rk3399-rock-pi-4.dtb
+  append earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk1p4 rw rootwait
board/radxa/rockpi-4c/genimage.cfg new file +39 -0
new file mode 100644
index 0000000..88986df
@@ -0,0 +1,39 @@
+image boot.vfat {
+	vfat {
+		files = {
+			"Image",
+			"rk3399-rock-pi-4.dtb",
+			"extlinux"
+		}
+	}
+	size = 112M
+}
+
+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"
+	}
+}
board/radxa/rockpi-4c/post-build.sh new file +5 -0
new file mode 100755
index 0000000..ba29375
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf
board/radxa/rockpi-4c/readme.txt new file +56 -0

56 lines not on this page · raw message

configs/rockpi_4c_defconfig new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.7.4