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>
This commit is contained in:
Joshua Watt 2020-01-23 13:46:45 -06:00 committed by Trevor Woerner
parent 01467664da
commit a0162457c5
3 changed files with 36 additions and 0 deletions

1
README
View File

@ -14,6 +14,7 @@ Dependencies:
Status of supported boards:
--------------------------
builds and boots gpt image:
rock-pi-4
tinker-rk3288
vyasa-rk3288
firefly-rk3288

View File

@ -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"

7
wic/rock-pi-4.wks Normal file
View File

@ -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"