aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-01-23 13:46:45 -0600
committerTrevor Woerner <twoerner@gmail.com>2020-01-27 16:32:28 -0500
commita0162457c55cc1f84ba9394c0617c5890e965ce3 (patch)
treeebf41eb478d6c7bcbe4633a5026ec0ed6fa7fd21
parent01467664da6e0a9bb8bcad2822cfd5495148927c (diff)
downloadmeta-rockchip-a0162457c55cc1f84ba9394c0617c5890e965ce3.tar.gz
meta-rockchip-a0162457c55cc1f84ba9394c0617c5890e965ce3.tar.bz2
meta-rockchip-a0162457c55cc1f84ba9394c0617c5890e965ce3.zip
rock-pi-4: Add machine
Adds the machine definition for the Rock Pi 4 based around the RK3399 SoC. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
-rw-r--r--README1
-rw-r--r--conf/machine/rock-pi-4.conf28
-rw-r--r--wic/rock-pi-4.wks7
3 files changed, 36 insertions, 0 deletions
diff --git a/README b/README
index 77506c8..5486b29 100644
--- a/README
+++ b/README
@@ -14,6 +14,7 @@ Dependencies:
Status of supported boards:
--------------------------
builds and boots gpt image:
+ rock-pi-4
tinker-rk3288
vyasa-rk3288
firefly-rk3288
diff --git a/conf/machine/rock-pi-4.conf b/conf/machine/rock-pi-4.conf
new file mode 100644
index 0000000..4cbfc3f
--- /dev/null
+++ b/conf/machine/rock-pi-4.conf
@@ -0,0 +1,28 @@
+# Copyright (C) 2020 Garmin Ltd. or its subsidaries
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Rock Pi 4 RK3288
+#@DESCRIPTION: Rock Pi 4 is a Raspberry Pi 4 Alternative based on Rockchip RK3399 Processor.
+
+require conf/machine/include/rk3399.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3399-rock-pi-4.dtb"
+UBOOT_MACHINE = "rock-pi-4-rk3399_defconfig"
+
+WKS_FILE ?= "rock-pi-4.wks"
+IMAGE_FSTYPES += "wic wic.bmap"
+
+WKS_FILE_DEPENDS ?= " \
+ mtools-native \
+ dosfstools-native \
+ virtual/bootloader \
+ virtual/kernel \
+ "
+IMAGE_BOOT_FILES ?= "\
+ ${KERNEL_IMAGETYPE} \
+ "
+
+SERIAL_CONSOLES = "1500000;ttyS2"
+
+MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
diff --git a/wic/rock-pi-4.wks b/wic/rock-pi-4.wks
new file mode 100644
index 0000000..8e4b37c
--- /dev/null
+++ b/wic/rock-pi-4.wks
@@ -0,0 +1,7 @@
+# Copyright (C) 2020 Garmin Ltd. or its subsidiaries
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+include rk3399-boot.wks
+part / --align 131072 --source rootfs --fstype=ext4 --label root
+
+bootloader --ptable gpt --append="console=tty1 console=ttyS2,1500000n8 rw root=/dev/mmcblk1p7 rootfstype=ext4 init=/sbin/init"