From: "Joshua Watt" <JPEWhacker@gmail.com>
To: yocto@lists.yoctoproject.org
Cc: Joshua Watt <JPEWhacker@gmail.com>
Subject: [yocto][meta-rockchip][PATCH v2 4/4] rock-pi-4: Add machine
Date: Thu, 23 Jan 2020 13:46:45 -0600 [thread overview]
Message-ID: <20200123194645.1240023-5-JPEWhacker@gmail.com> (raw)
In-Reply-To: <20200123194645.1240023-1-JPEWhacker@gmail.com>
Adds the machine definition for the Rock Pi 4 based around the RK3399
SoC.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
README | 1 +
conf/machine/rock-pi-4.conf | 28 ++++++++++++++++++++++++++++
wic/rock-pi-4.wks | 7 +++++++
3 files changed, 36 insertions(+)
create mode 100644 conf/machine/rock-pi-4.conf
create mode 100644 wic/rock-pi-4.wks
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"
--
2.24.1
prev parent reply other threads:[~2020-01-23 19:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-23 16:08 [yocto][meta-rockchip][PATCH 0/4] Add RockPi 4 support Joshua Watt
2020-01-23 16:08 ` [yocto][meta-rockchip][PATCH 1/4] arm-trusted-firmware: Add recipe Joshua Watt
2020-01-23 16:08 ` [yocto][meta-rockchip][PATCH 2/4] gcc-arm-none-eabi-native: " Joshua Watt
2020-01-23 19:49 ` Khem Raj
2020-01-23 19:59 ` Joshua Watt
2020-01-23 20:06 ` Khem Raj
2020-01-23 20:14 ` Joshua Watt
2020-01-23 20:46 ` Denys Dmytriyenko
2020-01-23 22:34 ` Khem Raj
2020-01-23 16:08 ` [yocto][meta-rockchip][PATCH 3/4] rk3399: Add generic rk3399 support Joshua Watt
2020-01-23 16:08 ` [yocto][meta-rockchip][PATCH 4/4] rock-pi-4-rk3399: Add machine Joshua Watt
2020-01-23 19:46 ` [yocto][meta-rockchip][PATCH v2 0/4] Add Rock Pi 4 Support Joshua Watt
2020-01-23 19:46 ` [yocto][meta-rockchip][PATCH v2 1/4] arm-trusted-firmware: Add recipe Joshua Watt
2020-01-23 20:39 ` Denys Dmytriyenko
2020-01-23 19:46 ` [yocto][meta-rockchip][PATCH v2 2/4] gcc-arm-none-eabi-native: " Joshua Watt
2020-01-23 19:46 ` [yocto][meta-rockchip][PATCH v2 3/4] rk3399: Add generic rk3399 support Joshua Watt
2020-01-23 19:46 ` Joshua Watt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200123194645.1240023-5-JPEWhacker@gmail.com \
--to=jpewhacker@gmail.com \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox