[yocto] [PATCH 6/7] conf/machine: add support for rk3036

ayaka ayaka at soulik.info
Sun Mar 19 10:48:36 PDT 2017


RK3036 is a SoC from Rockchip which has Dual-Core
ARM Cortex-A7 CPU.

Signed-off-by: Jacob Chen <jacob-chen at iotwrt.com>
Signed-off-by: ayaka <ayaka at soulik.info>
---
 conf/machine/include/rk3036.inc | 20 ++++++++++++++++++++
 conf/machine/kylin-rk3036.conf  | 10 ++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 conf/machine/include/rk3036.inc
 create mode 100644 conf/machine/kylin-rk3036.conf

diff --git a/conf/machine/include/rk3036.inc b/conf/machine/include/rk3036.inc
new file mode 100644
index 0000000..8cb8639
--- /dev/null
+++ b/conf/machine/include/rk3036.inc
@@ -0,0 +1,20 @@
+# Copyright (C) 2017 Jacob Chen
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "rk3036"
+
+require conf/machine/include/tune-cortexa7.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+SERIAL_CONSOLES = "115200;ttyS2"
+KERNEL_IMAGETYPE = "zImage"
+KBUILD_DEFCONFIG = "multi_v7_defconfig"
+
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"
+SPL_BINARY ?= "u-boot-spl-nodtb.bin"
+
+IMAGE_FSTYPES = "ext4 rockchip-gpt-img"
+IMAGE_CLASSES += "rockchip-gpt-img"
+
+GPTIMG_APPEND = "console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk1p7 rootfstype=ext4 init=/sbin/init rootwait"
diff --git a/conf/machine/kylin-rk3036.conf b/conf/machine/kylin-rk3036.conf
new file mode 100644
index 0000000..100c62d
--- /dev/null
+++ b/conf/machine/kylin-rk3036.conf
@@ -0,0 +1,10 @@
+# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Kylin rk3036
+
+include conf/machine/include/rk3036.inc
+
+KERNEL_DEVICETREE = "rk3036-kylin.dtb"
+UBOOT_MACHINE = "kylin-rk3036_defconfig"
-- 
2.7.4




More information about the yocto mailing list