Skip to contentSkip to conversation

add new SoCs support

PATCH Superseded Randy 'ayaka' Li 3 participants 17 messages Apr 21, 2019 – Apr 23, 2019

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover add new SoCs support

After the FOSDEM, my patches for ARMv8 cortex tuning are finally merged. So I think it is complete the lose piece at meta-rockchip.

Since the big-litte is not supported by OE now, I make all the chips' configure to use the big core tuning.

Randy 'ayaka' Li (5):
conf/machine: rk3288: Add some machine files conf/machine: add rk3399 support conf/machine: add support for rk3328 conf/machine: add support for rk3036 conf/machine: add support for rv1108

 conf/machine/evb-rk3288.conf       | 10 ++++++++++
 conf/machine/evb-rk3328.conf       | 12 ++++++++++++
 conf/machine/evb-rv1108.conf       | 10 ++++++++++
 conf/machine/excavator-rk3399.conf | 10 ++++++++++
 conf/machine/fennec-rk3288.conf    | 10 ++++++++++
 conf/machine/firefly-rk3399.conf   | 15 +++++++++++++++
 conf/machine/include/rk3036.inc    | 19 +++++++++++++++++++
 conf/machine/include/rk3288.inc    |  5 +++++
 conf/machine/include/rk3328.inc    | 18 ++++++++++++++++++
 conf/machine/include/rk3399.inc    | 17 +++++++++++++++++
 conf/machine/include/rv1108.inc    | 12 ++++++++++++
 conf/machine/kylin-rk3036.conf     | 12 ++++++++++++
 conf/machine/tinker-rk3288.conf    |  2 ++
 13 files changed, 152 insertions(+)
 create mode 100644 conf/machine/evb-rk3288.conf
 create mode 100644 conf/machine/evb-rk3328.conf
 create mode 100644 conf/machine/evb-rv1108.conf
 create mode 100644 conf/machine/excavator-rk3399.conf
 create mode 100644 conf/machine/fennec-rk3288.conf
 create mode 100644 conf/machine/firefly-rk3399.conf
 create mode 100644 conf/machine/include/rk3036.inc
 create mode 100644 conf/machine/include/rk3328.inc
 create mode 100644 conf/machine/include/rk3399.inc
 create mode 100644 conf/machine/include/rv1108.inc
 create mode 100644 conf/machine/kylin-rk3036.conf
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/5 conf/machine: rk3288: Add some machine files

Evb-rk3288 is the offical evaluate board. Fennec-rk3288 and Tinker-rk3288 is rk3288 based SBCs. Tinker Boards is a RPi compatible board made by ASUS.

---
 conf/machine/evb-rk3288.conf    | 10 ++++++++++
 conf/machine/fennec-rk3288.conf | 10 ++++++++++
 conf/machine/include/rk3288.inc |  5 +++++
 conf/machine/tinker-rk3288.conf |  2 ++
 4 files changed, 27 insertions(+)
 create mode 100644 conf/machine/evb-rk3288.conf
 create mode 100644 conf/machine/fennec-rk3288.conf
conf/machine/evb-rk3288.conf new file +10 -0
new file mode 100644
index 0000000..e6c1f1e
@@ -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: EVB 3288
+
+include conf/machine/include/rk3288.inc
+
+KERNEL_DEVICETREE = "rk3288-evb-act8846.dtb"
+UBOOT_MACHINE = "evb-rk3288_defconfig"
conf/machine/fennec-rk3288.conf new file +10 -0
new file mode 100644
index 0000000..23e3ee7
@@ -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: FENNEC RK3288
+
+include conf/machine/include/rk3288.inc
+
+KERNEL_DEVICETREE = "rk3288-fennec.dtb"
+UBOOT_MACHINE = "fennec-rk3288_defconfig"
conf/machine/include/rk3288.inc +5 -0
index 0528e8a..73b39fb 100644
@@ -8,9 +8,14 @@ require conf/machine/include/soc-family.inc
 require conf/machine/include/rockchip-defaults.inc
 
 SERIAL_CONSOLES = "115200;ttyS2"
+SPL_BINARY = "u-boot-spl-dtb.bin"
+KERNEL_IMAGETYPE = "zImage"
+KBUILD_DEFCONFIG = "multi_v7_defconfig"
 
 PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
 SPL_BINARY ?= "u-boot-spl-dtb.bin"
 
 IMAGE_FSTYPES = "rockchip-gpt-img"
 IMAGE_CLASSES += "rockchip-gpt-img"
+
+APPEND = "console=ttyS2,115200n8 rw root=/dev/mmcblk2p7 rootfstype=ext4 init=/sbin/init"
conf/machine/tinker-rk3288.conf +2 -0
index 294bdc7..cf793cd 100644
@@ -9,3 +9,5 @@ require conf/machine/include/rk3288.inc
 
 KERNEL_DEVICETREE = "rk3288-tinker.dtb"
 UBOOT_MACHINE = "tinker-rk3288_defconfig"
+
+GPTIMG_APPEND = "console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init"
Signature · 1 line
2.20.1
#2 lore raw

Re: [PATCH 1/5] conf/machine: rk3288: Add some machine files

Quoted 3 lines · Randy 'ayaka' Li

Evb-rk3288 is the offical evaluate board. Fennec-rk3288 and Tinker-rk3288 is rk3288 based SBCs. Tinker Boards is a RPi compatible board made by ASUS.

I would rather these were separated out as individual commits. meta-rockchip already has working support for the tinker-rk3288 board, so it's not being added here.

Quoted 53 lines
---
 conf/machine/evb-rk3288.conf    | 10 ++++++++++
 conf/machine/fennec-rk3288.conf | 10 ++++++++++
 conf/machine/include/rk3288.inc |  5 +++++
 conf/machine/tinker-rk3288.conf |  2 ++
 4 files changed, 27 insertions(+)
 create mode 100644 conf/machine/evb-rk3288.conf
 create mode 100644 conf/machine/fennec-rk3288.conf
conf/machine/evb-rk3288.conf new file +10 -0
new file mode 100644
index 0000000..e6c1f1e
@@ -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: EVB 3288
+
+include conf/machine/include/rk3288.inc
+
+KERNEL_DEVICETREE = "rk3288-evb-act8846.dtb"
+UBOOT_MACHINE = "evb-rk3288_defconfig"
conf/machine/fennec-rk3288.conf new file +10 -0
new file mode 100644
index 0000000..23e3ee7
@@ -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: FENNEC RK3288
+
+include conf/machine/include/rk3288.inc
+
+KERNEL_DEVICETREE = "rk3288-fennec.dtb"
+UBOOT_MACHINE = "fennec-rk3288_defconfig"
conf/machine/include/rk3288.inc +0 -0
index 0528e8a..73b39fb 100644

conf/machine/include/rk3288.inc require conf/machine/include/soc-family.inc · line 11

Quoted 4 lines
conf/machine/include/rk3288.inc +1 -0
@@ -8,9 +8,14 @@ require conf/machine/include/soc-family.inc
 require conf/machine/include/rockchip-defaults.inc
 
 SERIAL_CONSOLES = "115200;ttyS2"
+SPL_BINARY = "u-boot-spl-dtb.bin"

You've put a U-Boot variable in the middle of a Linux block. This variable is already defined in this file just a couple lines down (in the U-Boot section) and uses a ?= to set it to the exact same thing you're setting it to.

conf/machine/include/rk3288.inc require conf/machine/include/soc-family.inc · line 13

Quoted 2 lines
conf/machine/include/rk3288.inc +2 -0
+KERNEL_IMAGETYPE = "zImage"
+KBUILD_DEFCONFIG = "multi_v7_defconfig"

These two things are defined exactly the same in conf/machine/include/rockchip-defaults.inc, which is already included above with the "require ..." line.

conf/machine/include/rk3288.inc require conf/machine/include/soc-family.inc · line 21

Quoted 8 lines
conf/machine/include/rk3288.inc +2 -0
 PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
 SPL_BINARY ?= "u-boot-spl-dtb.bin"
 
 IMAGE_FSTYPES = "rockchip-gpt-img"
 IMAGE_CLASSES += "rockchip-gpt-img"
+
+APPEND = "console=ttyS2,115200n8 rw root=/dev/mmcblk2p7 rootfstype=ext4 init=/sbin/init"

I'm guessing this was supposed to be 'GPTIMG_APPEND = "..."'? In any case, I'm curious why you're switching from mmcblk0 to mmcblk2 here, classes/rockchip-gpt-img.bbclass already contains this logic.

Quoted 13 lines
conf/machine/tinker-rk3288.conf +2 -0
index 294bdc7..cf793cd 100644
@@ -9,3 +9,5 @@ require conf/machine/include/rk3288.inc
 
 KERNEL_DEVICETREE = "rk3288-tinker.dtb"
 UBOOT_MACHINE = "tinker-rk3288_defconfig"
+
+GPTIMG_APPEND = "console=tty1 console=ttyS2,115200n8 rw root=/dev/mmcblk0p7 rootfstype=ext4 init=/sbin/init"
Signature · 1 line
2.20.1
#3 lore raw

PATCH 2/5 conf/machine: add rk3399 support

In reply to Randy 'ayaka' Li

RK3399 is a new generation powerful SoC from Rockchip, which has Dual Cortex-A72 + Quad Cortex-A53, 64-bit CPU.

---
 conf/machine/excavator-rk3399.conf | 10 ++++++++++
 conf/machine/firefly-rk3399.conf   | 15 +++++++++++++++
 conf/machine/include/rk3399.inc    | 17 +++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 conf/machine/excavator-rk3399.conf
 create mode 100644 conf/machine/firefly-rk3399.conf
 create mode 100644 conf/machine/include/rk3399.inc
conf/machine/excavator-rk3399.conf new file +10 -0
new file mode 100644
index 0000000..c7134d2
@@ -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: EXCAVATOR 3399
+
+include conf/machine/include/rk3399.inc
+
+KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
conf/machine/firefly-rk3399.conf new file +15 -0
new file mode 100644
index 0000000..fefafed
@@ -0,0 +1,15 @@
+# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Firefly RK3399
+#@DESCRIPTION: Firefly-RK3399 is a Six-Core 64-bit High-Performance Platform.
+#http://www.t-firefly.com/en/
+
+include conf/machine/include/rk3399.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"
+KERNEL_DEVICETREE = "rockchip/rk3399-firefly-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
+
+GPTIMG_APPEND = "console=ttyS2,1500000n8 rw root=PARTUUID=614e0000-0000 rootfstype=ext4 init=/sbin/init"
conf/machine/include/rk3399.inc new file +17 -0
new file mode 100644
index 0000000..6e2af57
@@ -0,0 +1,17 @@
+# Copyright (C) 2019 SUMOMO Computer Association
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "rk3399"
+
+require conf/machine/include/tune-cortexa72.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+SERIAL_CONSOLES = "1500000;ttyS2"
+KERNEL_IMAGETYPE = "Image"
+#KBUILD_DEFCONFIG = "multi_v8_defconfig"
+
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"
+
+IMAGE_FSTYPES = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
Signature · 1 line
2.20.1
#4 lore raw

Re: [PATCH 2/5] conf/machine: add rk3399 support

This seems more a bsp layer thing may be meta-rockchip is better for this or meta-firefly

Quoted 87 lines · Randy 'ayaka' Li

RK3399 is a new generation powerful SoC from Rockchip, which has Dual Cortex-A72 + Quad Cortex-A53, 64-bit CPU.

---
 conf/machine/excavator-rk3399.conf | 10 ++++++++++
 conf/machine/firefly-rk3399.conf   | 15 +++++++++++++++
 conf/machine/include/rk3399.inc    | 17 +++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 conf/machine/excavator-rk3399.conf
 create mode 100644 conf/machine/firefly-rk3399.conf
 create mode 100644 conf/machine/include/rk3399.inc
conf/machine/excavator-rk3399.conf new file +10 -0
new file mode 100644
index 0000000..c7134d2
@@ -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: EXCAVATOR 3399
+
+include conf/machine/include/rk3399.inc
+
+KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
conf/machine/firefly-rk3399.conf new file +6 -0
new file mode 100644
index 0000000..fefafed
@@ -0,0 +1,15 @@
+# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Firefly RK3399
+#@DESCRIPTION: Firefly-RK3399 is a Six-Core 64-bit High-Performance

Platform.

conf/machine/firefly-rk3399.conf new file +9 -0
+#http://www.t-firefly.com/en/
+
+include conf/machine/include/rk3399.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"
+KERNEL_DEVICETREE = "rockchip/rk3399-firefly-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
+
+GPTIMG_APPEND = "console=ttyS2,1500000n8 rw root=PARTUUID=614e0000-0000

rootfstype=ext4 init=/sbin/init"

conf/machine/include/rk3399.inc new file +17 -1
new file mode 100644
index 0000000..6e2af57
@@ -0,0 +1,17 @@
+# Copyright (C) 2019 SUMOMO Computer Association
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "rk3399"
+
+require conf/machine/include/tune-cortexa72.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+SERIAL_CONSOLES = "1500000;ttyS2"
+KERNEL_IMAGETYPE = "Image"
+#KBUILD_DEFCONFIG = "multi_v8_defconfig"
+
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"
+
+IMAGE_FSTYPES = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
--

2.20.1

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

author
#5 lore raw

Re: [PATCH 2/5] conf/machine: add rk3399 support

Quoted 6 lines · Khem Raj

This seems more a bsp layer thing may be meta-rockchip is better for this or meta-firefly

You want to make a board vendor maintain a layer repository themselves? I saw every meta bsp repository would have some configures files. And those boards are sold around the world having many users, it is waste time to make people to collect layers.

Anyway, I hope the chip support would be merged.

Quoted 82 lines
Quoted 82 lines · Randy 'ayaka' Li

RK3399 is a new generation powerful SoC from Rockchip, which has Dual Cortex-A72 + Quad Cortex-A53, 64-bit CPU.

---
 conf/machine/excavator-rk3399.conf | 10 ++++++++++
 conf/machine/firefly-rk3399.conf   | 15 +++++++++++++++
 conf/machine/include/rk3399.inc    | 17 +++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 conf/machine/excavator-rk3399.conf
 create mode 100644 conf/machine/firefly-rk3399.conf
 create mode 100644 conf/machine/include/rk3399.inc
conf/machine/excavator-rk3399.conf new file +10 -0
new file mode 100644
index 0000000..c7134d2
@@ -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: EXCAVATOR 3399
+
+include conf/machine/include/rk3399.inc
+
+KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
conf/machine/firefly-rk3399.conf new file +15 -0
new file mode 100644
index 0000000..fefafed
@@ -0,0 +1,15 @@
+# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Firefly RK3399
+#@DESCRIPTION: Firefly-RK3399 is a Six-Core 64-bit High-Performance Platform.
+#http://www.t-firefly.com/en/
+
+include conf/machine/include/rk3399.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"
+KERNEL_DEVICETREE = "rockchip/rk3399-firefly-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
+
+GPTIMG_APPEND = "console=ttyS2,1500000n8 rw root=PARTUUID=614e0000-0000 rootfstype=ext4 init=/sbin/init"
conf/machine/include/rk3399.inc new file +17 -0
new file mode 100644
index 0000000..6e2af57
@@ -0,0 +1,17 @@
+# Copyright (C) 2019 SUMOMO Computer Association
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "rk3399"
+
+require conf/machine/include/tune-cortexa72.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+SERIAL_CONSOLES = "1500000;ttyS2"
+KERNEL_IMAGETYPE = "Image"
+#KBUILD_DEFCONFIG = "multi_v8_defconfig"
+
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"
+
+IMAGE_FSTYPES = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
Signature · 7 lines
2.20.1

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
#6 lore raw

Re: [PATCH 2/5] conf/machine: add rk3399 support

Quoted 4 lines · Ayaka

On Apr 22, 2019, at 11:47 AM, Khem Raj <[email protected]> wrote:

Quoted 8 lines

This seems more a bsp layer thing may be meta-rockchip is better for this or meta-firefly

You want to make a board vendor maintain a layer repository themselves? I saw every meta bsp repository would have some configures files. And those boards are sold around the world having many users, it is waste time to make people to collect layers.

It depends on how motivated the community is for example look at meta-raspberrypi layer which effectively is a board layer using Broadcom chip
So either way I am not suggesting one way or another if meta-rockchip maintainer likes to maintain them then it’s ok

Quoted 94 lines

Anyway, I hope the chip support would be merged.

Quoted 87 lines · Randy 'ayaka' Li

RK3399 is a new generation powerful SoC from Rockchip, which has Dual Cortex-A72 + Quad Cortex-A53, 64-bit CPU.

---
 conf/machine/excavator-rk3399.conf | 10 ++++++++++
 conf/machine/firefly-rk3399.conf   | 15 +++++++++++++++
 conf/machine/include/rk3399.inc    | 17 +++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 conf/machine/excavator-rk3399.conf
 create mode 100644 conf/machine/firefly-rk3399.conf
 create mode 100644 conf/machine/include/rk3399.inc
conf/machine/excavator-rk3399.conf new file +10 -0
new file mode 100644
index 0000000..c7134d2
@@ -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: EXCAVATOR 3399
+
+include conf/machine/include/rk3399.inc
+
+KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
conf/machine/firefly-rk3399.conf new file +6 -0
new file mode 100644
index 0000000..fefafed
@@ -0,0 +1,15 @@
+# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Firefly RK3399
+#@DESCRIPTION: Firefly-RK3399 is a Six-Core 64-bit High-Performance

Platform.

conf/machine/firefly-rk3399.conf new file +9 -0
+#http://www.t-firefly.com/en/
+
+include conf/machine/include/rk3399.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"
+KERNEL_DEVICETREE = "rockchip/rk3399-firefly-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
+
+GPTIMG_APPEND = "console=ttyS2,1500000n8 rw root=PARTUUID=614e0000-0000

rootfstype=ext4 init=/sbin/init"

conf/machine/include/rk3399.inc new file +17 -1
new file mode 100644
index 0000000..6e2af57
@@ -0,0 +1,17 @@
+# Copyright (C) 2019 SUMOMO Computer Association
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "rk3399"
+
+require conf/machine/include/tune-cortexa72.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+SERIAL_CONSOLES = "1500000;ttyS2"
+KERNEL_IMAGETYPE = "Image"
+#KBUILD_DEFCONFIG = "multi_v8_defconfig"
+
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"
+
+IMAGE_FSTYPES = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
--

2.20.1

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#7 lore raw

Re: [PATCH 2/5] conf/machine: add rk3399 support

In reply to Randy 'ayaka' Li
Quoted 38 lines · Randy 'ayaka' Li

RK3399 is a new generation powerful SoC from Rockchip, which has Dual Cortex-A72 + Quad Cortex-A53, 64-bit CPU.

---
 conf/machine/excavator-rk3399.conf | 10 ++++++++++
 conf/machine/firefly-rk3399.conf   | 15 +++++++++++++++
 conf/machine/include/rk3399.inc    | 17 +++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 conf/machine/excavator-rk3399.conf
 create mode 100644 conf/machine/firefly-rk3399.conf
 create mode 100644 conf/machine/include/rk3399.inc
conf/machine/excavator-rk3399.conf new file +10 -0
new file mode 100644
index 0000000..c7134d2
@@ -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: EXCAVATOR 3399
+
+include conf/machine/include/rk3399.inc
+
+KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
conf/machine/firefly-rk3399.conf new file +1 -0
new file mode 100644
index 0000000..fefafed
@@ -0,0 +1,15 @@
+# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd

conf/machine/firefly-rk3399.conf line 11

Quoted 10 lines
conf/machine/firefly-rk3399.conf new file +10 -0
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Firefly RK3399
+#@DESCRIPTION: Firefly-RK3399 is a Six-Core 64-bit High-Performance Platform.
+#http://www.t-firefly.com/en/
+
+include conf/machine/include/rk3399.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"

linux-rockchip doesn't exist in git.yoctoproject.org/meta-rockchip. Has support for this MACHINE been added upstream (i.e. kernel.org)?

Quoted 12 lines
conf/machine/firefly-rk3399.conf new file +4 -0
+KERNEL_DEVICETREE = "rockchip/rk3399-firefly-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
+
+GPTIMG_APPEND = "console=ttyS2,1500000n8 rw root=PARTUUID=614e0000-0000 rootfstype=ext4 init=/sbin/init"
conf/machine/include/rk3399.inc new file +0 -0
new file mode 100644
index 0000000..6e2af57

conf/machine/include/rk3399.inc line 9

Quoted 9 lines
conf/machine/include/rk3399.inc new file +9 -0
@@ -0,0 +1,17 @@
+# Copyright (C) 2019 SUMOMO Computer Association
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "rk3399"
+
+require conf/machine/include/tune-cortexa72.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"

This setting conflicts with what you set in firefly-rk3399.conf above. Ideally include files should probably use a weaker assignment? In any case, there is no "linux" kernel defined, maybe you want "linux-stable" instead?

conf/machine/include/rk3399.inc line 14

Quoted 5 lines
conf/machine/include/rk3399.inc new file +5 -0
+SERIAL_CONSOLES = "1500000;ttyS2"
+KERNEL_IMAGETYPE = "Image"
+#KBUILD_DEFCONFIG = "multi_v8_defconfig"
+
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"

vendor-u-boot? Does upstream U-Boot support these MACHINEs?

Quoted 6 lines
conf/machine/include/rk3399.inc new file +3 -0
+
+IMAGE_FSTYPES = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
Signature · 1 line
2.20.1
#8 lore raw

PATCH 3/5 conf/machine: add support for rk3328

In reply to Randy 'ayaka' Li

The RK3328 is a SoC with Quad-core Cortex-A53 for Smart OTT/IPTV.

---
 conf/machine/evb-rk3328.conf    | 12 ++++++++++++
 conf/machine/include/rk3328.inc | 18 ++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 conf/machine/evb-rk3328.conf
 create mode 100644 conf/machine/include/rk3328.inc
conf/machine/evb-rk3328.conf new file +12 -0
new file mode 100644
index 0000000..67d2083
@@ -0,0 +1,12 @@
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: EVB 3388
+
+include conf/machine/include/rk3328.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3328-evb.dtb"
+UBOOT_MACHINE = "evb-rk3328_defconfig"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"
+GPTIMG_APPEND = "console=ttyS20,1500000n8 rw root=/dev/mmcblk2p5 rootfstype=ext4 init=/sbin/init"
conf/machine/include/rk3328.inc new file +18 -0
new file mode 100644
index 0000000..8dc018e
@@ -0,0 +1,18 @@
+# Copyright (C) 2017 Randy Li <[email protected]>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+# RK3228H is the same SoC as rk3328.
+SOC_FAMILY = "rk3328"
+
+require conf/machine/include/tune-cortexa53.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+SERIAL_CONSOLES = "1500000;ttyS2"
+KERNEL_IMAGETYPE = "Image"
+KBUILD_DEFCONFIG = "multi_v8_defconfig"
+
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"
+
+IMAGE_FSTYPES = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
Signature · 1 line
2.20.1
#9 lore raw

Re: [PATCH 3/5] conf/machine: add support for rk3328

Quoted 17 lines · Randy 'ayaka' Li

The RK3328 is a SoC with Quad-core Cortex-A53 for Smart OTT/IPTV.

---
 conf/machine/evb-rk3328.conf    | 12 ++++++++++++
 conf/machine/include/rk3328.inc | 18 ++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 conf/machine/evb-rk3328.conf
 create mode 100644 conf/machine/include/rk3328.inc
conf/machine/evb-rk3328.conf new file +1 -0
new file mode 100644
index 0000000..67d2083
@@ -0,0 +1,12 @@
+# Released under the MIT license (see COPYING.MIT for the terms)

conf/machine/evb-rk3328.conf line 11

Quoted 10 lines
conf/machine/evb-rk3328.conf new file +10 -0
+
+#@TYPE: Machine
+#@NAME: EVB 3388
+
+include conf/machine/include/rk3328.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3328-evb.dtb"
+UBOOT_MACHINE = "evb-rk3328_defconfig"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"

There is no "linux-rockchip"

Quoted 9 lines
conf/machine/evb-rk3328.conf new file +1 -0
+GPTIMG_APPEND = "console=ttyS20,1500000n8 rw root=/dev/mmcblk2p5 rootfstype=ext4 init=/sbin/init"
conf/machine/include/rk3328.inc new file +0 -0
new file mode 100644
index 0000000..8dc018e

conf/machine/include/rk3328.inc line 10

Quoted 10 lines
conf/machine/include/rk3328.inc new file +10 -0
@@ -0,0 +1,18 @@
+# Copyright (C) 2017 Randy Li <[email protected]>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+# RK3228H is the same SoC as rk3328.
+SOC_FAMILY = "rk3328"
+
+require conf/machine/include/tune-cortexa53.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"

This conflicts with what you've just specified above. In any case, neither "linux" nor "linux-rockchip" exist.

Quoted 11 lines
conf/machine/include/rk3328.inc new file +8 -0
+SERIAL_CONSOLES = "1500000;ttyS2"
+KERNEL_IMAGETYPE = "Image"
+KBUILD_DEFCONFIG = "multi_v8_defconfig"
+
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"
+
+IMAGE_FSTYPES = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
Signature · 1 line
2.20.1
#10 lore raw

PATCH 4/5 conf/machine: add support for rk3036

In reply to Randy 'ayaka' Li

RK3036 is a SoC from Rockchip which has Dual-Core
ARM Cortex-A7 CPU, for low-end OTT TV Box.

Supporting video acceleration for the HEVC and AVC up to 1080P video. With a HDMI sink.

---
 conf/machine/include/rk3036.inc | 19 +++++++++++++++++++
 conf/machine/kylin-rk3036.conf  | 12 ++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 conf/machine/include/rk3036.inc
 create mode 100644 conf/machine/kylin-rk3036.conf
conf/machine/include/rk3036.inc new file +19 -0
new file mode 100644
index 0000000..5a9c55e
@@ -0,0 +1,19 @@
+# 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 = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
+
+GPTIMG_APPEND = "console=ttyS2,115200n8 rw root=/dev/mmcblk1p7 rootfstype=ext4 init=/sbin/init rootwait"
conf/machine/kylin-rk3036.conf new file +12 -0
new file mode 100644
index 0000000..9e42e87
@@ -0,0 +1,12 @@
+# 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
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"
+
+KERNEL_DEVICETREE = "rk3036-kylin.dtb"
+UBOOT_MACHINE = "kylin-rk3036_defconfig"
Signature · 1 line
2.20.1
#11 lore raw

Re: [PATCH 4/5] conf/machine: add support for rk3036

Quoted 46 lines · Randy 'ayaka' Li

RK3036 is a SoC from Rockchip which has Dual-Core
ARM Cortex-A7 CPU, for low-end OTT TV Box.

Supporting video acceleration for the HEVC and AVC up to 1080P video. With a HDMI sink.

---
 conf/machine/include/rk3036.inc | 19 +++++++++++++++++++
 conf/machine/kylin-rk3036.conf  | 12 ++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 conf/machine/include/rk3036.inc
 create mode 100644 conf/machine/kylin-rk3036.conf
conf/machine/include/rk3036.inc new file +19 -0
new file mode 100644
index 0000000..5a9c55e
@@ -0,0 +1,19 @@
+# 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 = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
+
+GPTIMG_APPEND = "console=ttyS2,115200n8 rw root=/dev/mmcblk1p7 rootfstype=ext4 init=/sbin/init rootwait"
conf/machine/kylin-rk3036.conf new file +0 -0
new file mode 100644
index 0000000..9e42e87

conf/machine/kylin-rk3036.conf line 9

Quoted 9 lines
conf/machine/kylin-rk3036.conf new file +9 -0
@@ -0,0 +1,12 @@
+# 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
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"

There is no "linux-rockchip", maybe you meant "linux-stable"?

Quoted 6 lines
conf/machine/kylin-rk3036.conf new file +3 -0
+
+KERNEL_DEVICETREE = "rk3036-kylin.dtb"
+UBOOT_MACHINE = "kylin-rk3036_defconfig"
Signature · 1 line
2.20.1
#12 lore raw

PATCH 5/5 conf/machine: add support for rv1108

In reply to Randy 'ayaka' Li

RV1108 is a SoC specific for video enhanced and recording. It is embedded with a DSP for digital process and an ARM Cortex-A7 single core processor for system and application.

---
 conf/machine/evb-rv1108.conf    | 10 ++++++++++
 conf/machine/include/rv1108.inc | 12 ++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 conf/machine/evb-rv1108.conf
 create mode 100644 conf/machine/include/rv1108.inc
conf/machine/evb-rv1108.conf new file +10 -0
new file mode 100644
index 0000000..3e85d80
@@ -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: EVB rv1108
+
+include conf/machine/include/rv1108.inc
+
+KERNEL_DEVICETREE = "rv1108-evb.dtb"
+UBOOT_MACHINE = "evb-rk3288_defconfig"
conf/machine/include/rv1108.inc new file +12 -0
new file mode 100644
index 0000000..1c70ef7
@@ -0,0 +1,12 @@
+# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "rv1108"
+
+require conf/machine/include/tune-cortexa7.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+SERIAL_CONSOLES = "1500000;ttyS2"
+KERNEL_IMAGETYPE = "zImage"
+KBUILD_DEFCONFIG = "multi_v7_defconfig"
Signature · 1 line
2.20.1
#13 lore raw

Re: [PATCH 5/5] conf/machine: add support for rv1108

Quoted 35 lines · Randy 'ayaka' Li

RV1108 is a SoC specific for video enhanced and recording. It is embedded with a DSP for digital process and an ARM Cortex-A7 single core processor for system and application.

---
 conf/machine/evb-rv1108.conf    | 10 ++++++++++
 conf/machine/include/rv1108.inc | 12 ++++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 conf/machine/evb-rv1108.conf
 create mode 100644 conf/machine/include/rv1108.inc
conf/machine/evb-rv1108.conf new file +10 -0
new file mode 100644
index 0000000..3e85d80
@@ -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: EVB rv1108
+
+include conf/machine/include/rv1108.inc
+
+KERNEL_DEVICETREE = "rv1108-evb.dtb"
+UBOOT_MACHINE = "evb-rk3288_defconfig"
conf/machine/include/rv1108.inc new file +0 -0
new file mode 100644
index 0000000..1c70ef7

conf/machine/include/rv1108.inc line 9

Quoted 9 lines
conf/machine/include/rv1108.inc new file +9 -0
@@ -0,0 +1,12 @@
+# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "rv1108"
+
+require conf/machine/include/tune-cortexa7.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"

There is no "linux", maybe you meant "linux-stable"?

Quoted 6 lines
conf/machine/include/rv1108.inc new file +3 -0
+SERIAL_CONSOLES = "1500000;ttyS2"
+KERNEL_IMAGETYPE = "zImage"
+KBUILD_DEFCONFIG = "multi_v7_defconfig"
Signature · 1 line
2.20.1
#14 lore raw
In reply to Randy 'ayaka' Li

Hi Randy,

Quoted 7 lines · Randy 'ayaka' Li

After the FOSDEM, my patches for ARMv8 cortex tuning are finally merged. So I think it is complete the lose piece at meta-rockchip.

Since the big-litte is not supported by OE now, I make all the chips' configure to use the big core tuning.

Thank you very much for your patches; I'm happy to see rk3399 support! I've queued them up for https://git.yoctoproject.org/cgit/cgit.cgi/meta-rockchip/

#15 lore raw
In reply to Randy 'ayaka' Li

Hi Randy,

Quoted 8 lines · Randy 'ayaka' Li

After the FOSDEM, my patches for ARMv8 cortex tuning are finally merged. So I think it is complete the lose piece at meta-rockchip.

Since the big-litte is not supported by OE now, I make all the chips' configure to use the big core tuning.

Quoted 6 lines

Randy 'ayaka' Li (5):
conf/machine: rk3288: Add some machine files conf/machine: add rk3399 support conf/machine: add support for rk3328 conf/machine: add support for rk3036 conf/machine: add support for rv1108

I don't get the impression any of these patches were created for git.yoctoproject.org/meta-rockchip. Although they apply, none of them actually work. Or if they were intended for git.yoctoproject.org/meta-rockchip, then it doesn't look like they were intended for the master branch (which is the assumption when no branch tags are mentioned).

For example, many of these new MACHINEs indicate the Linux kernel to use is "linux-rockchip" or "linux". Neither of these exist in git.yoctoproject.org/meta-rockchip (or openembedded-core), so building any of the MACHINEs introduced in these patches that specify either of these kernels will fail.

git.yoctoproject.org/meta-rockchip is a community layer focused on providing builds composed of upstream and open-source components (i.e. U-Boot from git.denx.de/u-boot.git and the Linux kernel from kernel.org). Some BSP layers (e.g. meta-freescale) are able to provide users with a switch so that builds can be built either from vendor sources or upstream sources by setting one parameter, but so far git.yoctoproject.org/meta-rockchip doesn't have this functionality and my attempts to get this functionality integrated at a higher level (i.e. instead of having every BSP layer implement this logic independently) haven't met with success.

Best regards,
Trevor

author
#16 lore raw
Quoted 21 lines · Trevor Woerner

Hi Randy,

Quoted 9 lines · Randy 'ayaka' Li

After the FOSDEM, my patches for ARMv8 cortex tuning are finally merged. So I think it is complete the lose piece at meta-rockchip.

Since the big-litte is not supported by OE now, I make all the chips' configure to use the big core tuning.

Quoted 6 lines

Randy 'ayaka' Li (5):
conf/machine: rk3288: Add some machine files conf/machine: add rk3399 support conf/machine: add support for rk3328 conf/machine: add support for rk3036 conf/machine: add support for rv1108

Quoted 5 lines

I don't get the impression any of these patches were created for git.yoctoproject.org/meta-rockchip. Although they apply, none of them actually work. Or if they were intended for git.yoctoproject.org/meta-rockchip, then it doesn't look like they were intended for the master branch (which is the assumption when no branch tags are mentioned).

I am very sorry, it was based on a old version of meta-rockchip(two years ago) and I thought this project is not that active, when I pick up them from my repository(the one with GPU and VPU support) I didn’t meet any problem, so I thought it would work.
I forgot the linux-rockchip is removed now I fix them soon. About the duplication configuration, as the bitbake doesn’t warn them so I didn’t notice this problem.

I would sent out a new version later.

Quoted 19 lines

For example, many of these new MACHINEs indicate the Linux kernel to use is "linux-rockchip" or "linux". Neither of these exist in git.yoctoproject.org/meta-rockchip (or openembedded-core), so building any of the MACHINEs introduced in these patches that specify either of these kernels will fail.

git.yoctoproject.org/meta-rockchip is a community layer focused on providing builds composed of upstream and open-source components (i.e. U-Boot from git.denx.de/u-boot.git and the Linux kernel from kernel.org). Some BSP layers (e.g. meta-freescale) are able to provide users with a switch so that builds can be built either from vendor sources or upstream sources by setting one parameter, but so far git.yoctoproject.org/meta-rockchip doesn't have this functionality and my attempts to get this functionality integrated at a higher level (i.e. instead of having every BSP layer implement this logic independently) haven't met with success.

Best regards,
Trevor