All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-rockchip] [PATCH 0/5] add new SoCs support
@ 2019-04-21 15:53 Randy 'ayaka' Li
  2019-04-21 15:53 ` [PATCH 1/5] conf/machine: rk3288: Add some machine files Randy 'ayaka' Li
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Randy 'ayaka' Li @ 2019-04-21 15:53 UTC (permalink / raw)
  To: yocto; +Cc: Randy 'ayaka' Li, romain.perier

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

-- 
2.20.1



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH 1/5] conf/machine: rk3288: Add some machine files
  2019-04-21 15:53 [meta-rockchip] [PATCH 0/5] add new SoCs support Randy 'ayaka' Li
@ 2019-04-21 15:53 ` Randy 'ayaka' Li
  2019-04-23  8:24   ` Trevor Woerner
  2019-04-21 15:53 ` [PATCH 2/5] conf/machine: add rk3399 support Randy 'ayaka' Li
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Randy 'ayaka' Li @ 2019-04-21 15:53 UTC (permalink / raw)
  To: yocto; +Cc: Randy 'ayaka' Li, romain.perier, Jacob Chen

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.

Signed-off-by: Jacob Chen <jacob-chen@rock-chips.com>
Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
---
 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

diff --git a/conf/machine/evb-rk3288.conf b/conf/machine/evb-rk3288.conf
new file mode 100644
index 0000000..e6c1f1e
--- /dev/null
+++ b/conf/machine/evb-rk3288.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: EVB 3288
+
+include conf/machine/include/rk3288.inc
+
+KERNEL_DEVICETREE = "rk3288-evb-act8846.dtb"
+UBOOT_MACHINE = "evb-rk3288_defconfig"
diff --git a/conf/machine/fennec-rk3288.conf b/conf/machine/fennec-rk3288.conf
new file mode 100644
index 0000000..23e3ee7
--- /dev/null
+++ b/conf/machine/fennec-rk3288.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: FENNEC RK3288
+
+include conf/machine/include/rk3288.inc
+
+KERNEL_DEVICETREE = "rk3288-fennec.dtb"
+UBOOT_MACHINE = "fennec-rk3288_defconfig"
diff --git a/conf/machine/include/rk3288.inc b/conf/machine/include/rk3288.inc
index 0528e8a..73b39fb 100644
--- a/conf/machine/include/rk3288.inc
+++ b/conf/machine/include/rk3288.inc
@@ -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"
diff --git a/conf/machine/tinker-rk3288.conf b/conf/machine/tinker-rk3288.conf
index 294bdc7..cf793cd 100644
--- a/conf/machine/tinker-rk3288.conf
+++ b/conf/machine/tinker-rk3288.conf
@@ -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"
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 2/5] conf/machine: add rk3399 support
  2019-04-21 15:53 [meta-rockchip] [PATCH 0/5] add new SoCs support Randy 'ayaka' Li
  2019-04-21 15:53 ` [PATCH 1/5] conf/machine: rk3288: Add some machine files Randy 'ayaka' Li
@ 2019-04-21 15:53 ` Randy 'ayaka' Li
  2019-04-22  3:47   ` Khem Raj
  2019-04-23  8:10   ` Trevor Woerner
  2019-04-21 15:53 ` [PATCH 3/5] conf/machine: add support for rk3328 Randy 'ayaka' Li
                   ` (4 subsequent siblings)
  6 siblings, 2 replies; 17+ messages in thread
From: Randy 'ayaka' Li @ 2019-04-21 15:53 UTC (permalink / raw)
  To: yocto; +Cc: Randy 'ayaka' Li, romain.perier

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

Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
---
 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

diff --git a/conf/machine/excavator-rk3399.conf b/conf/machine/excavator-rk3399.conf
new file mode 100644
index 0000000..c7134d2
--- /dev/null
+++ b/conf/machine/excavator-rk3399.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: EXCAVATOR 3399
+
+include conf/machine/include/rk3399.inc
+
+KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
+UBOOT_MACHINE = "evb-rk3399_defconfig"
diff --git a/conf/machine/firefly-rk3399.conf b/conf/machine/firefly-rk3399.conf
new file mode 100644
index 0000000..fefafed
--- /dev/null
+++ b/conf/machine/firefly-rk3399.conf
@@ -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"
diff --git a/conf/machine/include/rk3399.inc b/conf/machine/include/rk3399.inc
new file mode 100644
index 0000000..6e2af57
--- /dev/null
+++ b/conf/machine/include/rk3399.inc
@@ -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



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 3/5] conf/machine: add support for rk3328
  2019-04-21 15:53 [meta-rockchip] [PATCH 0/5] add new SoCs support Randy 'ayaka' Li
  2019-04-21 15:53 ` [PATCH 1/5] conf/machine: rk3288: Add some machine files Randy 'ayaka' Li
  2019-04-21 15:53 ` [PATCH 2/5] conf/machine: add rk3399 support Randy 'ayaka' Li
@ 2019-04-21 15:53 ` Randy 'ayaka' Li
  2019-04-23  8:15   ` Trevor Woerner
  2019-04-21 15:53 ` [PATCH 4/5] conf/machine: add support for rk3036 Randy 'ayaka' Li
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Randy 'ayaka' Li @ 2019-04-21 15:53 UTC (permalink / raw)
  To: yocto; +Cc: Randy 'ayaka' Li, romain.perier

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

Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
---
 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

diff --git a/conf/machine/evb-rk3328.conf b/conf/machine/evb-rk3328.conf
new file mode 100644
index 0000000..67d2083
--- /dev/null
+++ b/conf/machine/evb-rk3328.conf
@@ -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"
diff --git a/conf/machine/include/rk3328.inc b/conf/machine/include/rk3328.inc
new file mode 100644
index 0000000..8dc018e
--- /dev/null
+++ b/conf/machine/include/rk3328.inc
@@ -0,0 +1,18 @@
+# Copyright (C) 2017 Randy Li <ayaka@soulik.info>
+# 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"
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 4/5] conf/machine: add support for rk3036
  2019-04-21 15:53 [meta-rockchip] [PATCH 0/5] add new SoCs support Randy 'ayaka' Li
                   ` (2 preceding siblings ...)
  2019-04-21 15:53 ` [PATCH 3/5] conf/machine: add support for rk3328 Randy 'ayaka' Li
@ 2019-04-21 15:53 ` Randy 'ayaka' Li
  2019-04-23  8:13   ` Trevor Woerner
  2019-04-21 15:53 ` [PATCH 5/5] conf/machine: add support for rv1108 Randy 'ayaka' Li
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Randy 'ayaka' Li @ 2019-04-21 15:53 UTC (permalink / raw)
  To: yocto; +Cc: Randy Li, Randy 'ayaka' Li, romain.perier

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.

Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
---
 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

diff --git a/conf/machine/include/rk3036.inc b/conf/machine/include/rk3036.inc
new file mode 100644
index 0000000..5a9c55e
--- /dev/null
+++ b/conf/machine/include/rk3036.inc
@@ -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"
diff --git a/conf/machine/kylin-rk3036.conf b/conf/machine/kylin-rk3036.conf
new file mode 100644
index 0000000..9e42e87
--- /dev/null
+++ b/conf/machine/kylin-rk3036.conf
@@ -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"
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 5/5] conf/machine: add support for rv1108
  2019-04-21 15:53 [meta-rockchip] [PATCH 0/5] add new SoCs support Randy 'ayaka' Li
                   ` (3 preceding siblings ...)
  2019-04-21 15:53 ` [PATCH 4/5] conf/machine: add support for rk3036 Randy 'ayaka' Li
@ 2019-04-21 15:53 ` Randy 'ayaka' Li
  2019-04-23  8:11   ` Trevor Woerner
  2019-04-22 15:05 ` [meta-rockchip] [PATCH 0/5] add new SoCs support Trevor Woerner
  2019-04-23  8:02 ` Trevor Woerner
  6 siblings, 1 reply; 17+ messages in thread
From: Randy 'ayaka' Li @ 2019-04-21 15:53 UTC (permalink / raw)
  To: yocto; +Cc: Randy 'ayaka' Li, romain.perier

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.

Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
---
 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

diff --git a/conf/machine/evb-rv1108.conf b/conf/machine/evb-rv1108.conf
new file mode 100644
index 0000000..3e85d80
--- /dev/null
+++ b/conf/machine/evb-rv1108.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: EVB rv1108
+
+include conf/machine/include/rv1108.inc
+
+KERNEL_DEVICETREE = "rv1108-evb.dtb"
+UBOOT_MACHINE = "evb-rk3288_defconfig"
diff --git a/conf/machine/include/rv1108.inc b/conf/machine/include/rv1108.inc
new file mode 100644
index 0000000..1c70ef7
--- /dev/null
+++ b/conf/machine/include/rv1108.inc
@@ -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"
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [PATCH 2/5] conf/machine: add rk3399 support
  2019-04-21 15:53 ` [PATCH 2/5] conf/machine: add rk3399 support Randy 'ayaka' Li
@ 2019-04-22  3:47   ` Khem Raj
  2019-04-22  6:29     ` Ayaka
  2019-04-23  8:10   ` Trevor Woerner
  1 sibling, 1 reply; 17+ messages in thread
From: Khem Raj @ 2019-04-22  3:47 UTC (permalink / raw)
  To: Randy 'ayaka' Li; +Cc: yocto, romain.perier

[-- Attachment #1: Type: text/plain, Size: 3122 bytes --]

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

On Sun, Apr 21, 2019 at 10:06 AM Randy 'ayaka' Li <ayaka@soulik.info> wrote:

> RK3399 is a new generation powerful SoC from Rockchip, which has
> Dual Cortex-A72 + Quad Cortex-A53, 64-bit CPU.
>
> Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
> ---
>  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
>
> diff --git a/conf/machine/excavator-rk3399.conf
> b/conf/machine/excavator-rk3399.conf
> new file mode 100644
> index 0000000..c7134d2
> --- /dev/null
> +++ b/conf/machine/excavator-rk3399.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: EXCAVATOR 3399
> +
> +include conf/machine/include/rk3399.inc
> +
> +KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
> +UBOOT_MACHINE = "evb-rk3399_defconfig"
> diff --git a/conf/machine/firefly-rk3399.conf
> b/conf/machine/firefly-rk3399.conf
> new file mode 100644
> index 0000000..fefafed
> --- /dev/null
> +++ b/conf/machine/firefly-rk3399.conf
> @@ -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"
> diff --git a/conf/machine/include/rk3399.inc
> b/conf/machine/include/rk3399.inc
> new file mode 100644
> index 0000000..6e2af57
> --- /dev/null
> +++ b/conf/machine/include/rk3399.inc
> @@ -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
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 4006 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 2/5] conf/machine: add rk3399 support
  2019-04-22  3:47   ` Khem Raj
@ 2019-04-22  6:29     ` Ayaka
  2019-04-22 20:31       ` Khem Raj
  0 siblings, 1 reply; 17+ messages in thread
From: Ayaka @ 2019-04-22  6:29 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto, romain.perier

[-- Attachment #1: Type: text/plain, Size: 3577 bytes --]



> On Apr 22, 2019, at 11:47 AM, Khem Raj <raj.khem@gmail.com> wrote:
> 
> 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.
>> On Sun, Apr 21, 2019 at 10:06 AM Randy 'ayaka' Li <ayaka@soulik.info> wrote:
>> RK3399 is a new generation powerful SoC from Rockchip, which has
>> Dual Cortex-A72 + Quad Cortex-A53, 64-bit CPU.
>> 
>> Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
>> ---
>>  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
>> 
>> diff --git a/conf/machine/excavator-rk3399.conf b/conf/machine/excavator-rk3399.conf
>> new file mode 100644
>> index 0000000..c7134d2
>> --- /dev/null
>> +++ b/conf/machine/excavator-rk3399.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: EXCAVATOR 3399
>> +
>> +include conf/machine/include/rk3399.inc
>> +
>> +KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
>> +UBOOT_MACHINE = "evb-rk3399_defconfig"
>> diff --git a/conf/machine/firefly-rk3399.conf b/conf/machine/firefly-rk3399.conf
>> new file mode 100644
>> index 0000000..fefafed
>> --- /dev/null
>> +++ b/conf/machine/firefly-rk3399.conf
>> @@ -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"
>> diff --git a/conf/machine/include/rk3399.inc b/conf/machine/include/rk3399.inc
>> new file mode 100644
>> index 0000000..6e2af57
>> --- /dev/null
>> +++ b/conf/machine/include/rk3399.inc
>> @@ -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
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto

[-- Attachment #2: Type: text/html, Size: 4704 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-rockchip] [PATCH 0/5] add new SoCs support
  2019-04-21 15:53 [meta-rockchip] [PATCH 0/5] add new SoCs support Randy 'ayaka' Li
                   ` (4 preceding siblings ...)
  2019-04-21 15:53 ` [PATCH 5/5] conf/machine: add support for rv1108 Randy 'ayaka' Li
@ 2019-04-22 15:05 ` Trevor Woerner
  2019-04-23  8:02 ` Trevor Woerner
  6 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2019-04-22 15:05 UTC (permalink / raw)
  To: Randy 'ayaka' Li; +Cc: yocto, romain.perier

Hi Randy,

On Sun 2019-04-21 @ 11:53:34 PM, Randy 'ayaka' Li wrote:
> 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/


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 2/5] conf/machine: add rk3399 support
  2019-04-22  6:29     ` Ayaka
@ 2019-04-22 20:31       ` Khem Raj
  0 siblings, 0 replies; 17+ messages in thread
From: Khem Raj @ 2019-04-22 20:31 UTC (permalink / raw)
  To: Ayaka; +Cc: yocto, romain.perier

[-- Attachment #1: Type: text/plain, Size: 3966 bytes --]

On Mon, Apr 22, 2019 at 12:29 AM Ayaka <ayaka@soulik.info> wrote:

>
>
> On Apr 22, 2019, at 11:47 AM, Khem Raj <raj.khem@gmail.com> wrote:
>
> 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

>
> Anyway, I hope the chip support would be merged.
>
> On Sun, Apr 21, 2019 at 10:06 AM Randy 'ayaka' Li <ayaka@soulik.info>
> wrote:
>
>> RK3399 is a new generation powerful SoC from Rockchip, which has
>> Dual Cortex-A72 + Quad Cortex-A53, 64-bit CPU.
>>
>> Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
>> ---
>>  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
>>
>> diff --git a/conf/machine/excavator-rk3399.conf
>> b/conf/machine/excavator-rk3399.conf
>> new file mode 100644
>> index 0000000..c7134d2
>> --- /dev/null
>> +++ b/conf/machine/excavator-rk3399.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: EXCAVATOR 3399
>> +
>> +include conf/machine/include/rk3399.inc
>> +
>> +KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
>> +UBOOT_MACHINE = "evb-rk3399_defconfig"
>> diff --git a/conf/machine/firefly-rk3399.conf
>> b/conf/machine/firefly-rk3399.conf
>> new file mode 100644
>> index 0000000..fefafed
>> --- /dev/null
>> +++ b/conf/machine/firefly-rk3399.conf
>> @@ -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"
>> diff --git a/conf/machine/include/rk3399.inc
>> b/conf/machine/include/rk3399.inc
>> new file mode 100644
>> index 0000000..6e2af57
>> --- /dev/null
>> +++ b/conf/machine/include/rk3399.inc
>> @@ -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
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>

[-- Attachment #2: Type: text/html, Size: 5589 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-rockchip] [PATCH 0/5] add new SoCs support
  2019-04-21 15:53 [meta-rockchip] [PATCH 0/5] add new SoCs support Randy 'ayaka' Li
                   ` (5 preceding siblings ...)
  2019-04-22 15:05 ` [meta-rockchip] [PATCH 0/5] add new SoCs support Trevor Woerner
@ 2019-04-23  8:02 ` Trevor Woerner
  2019-04-23 10:56   ` Ayaka
  6 siblings, 1 reply; 17+ messages in thread
From: Trevor Woerner @ 2019-04-23  8:02 UTC (permalink / raw)
  To: Randy 'ayaka' Li; +Cc: yocto

Hi Randy,

On Sun 2019-04-21 @ 11:53:34 PM, Randy 'ayaka' Li wrote:
> 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

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


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 2/5] conf/machine: add rk3399 support
  2019-04-21 15:53 ` [PATCH 2/5] conf/machine: add rk3399 support Randy 'ayaka' Li
  2019-04-22  3:47   ` Khem Raj
@ 2019-04-23  8:10   ` Trevor Woerner
  1 sibling, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2019-04-23  8:10 UTC (permalink / raw)
  To: Randy 'ayaka' Li; +Cc: yocto

On Sun 2019-04-21 @ 11:53:36 PM, Randy 'ayaka' Li wrote:
> RK3399 is a new generation powerful SoC from Rockchip, which has
> Dual Cortex-A72 + Quad Cortex-A53, 64-bit CPU.
> 
> Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
> ---
>  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
> 
> diff --git a/conf/machine/excavator-rk3399.conf b/conf/machine/excavator-rk3399.conf
> new file mode 100644
> index 0000000..c7134d2
> --- /dev/null
> +++ b/conf/machine/excavator-rk3399.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: EXCAVATOR 3399
> +
> +include conf/machine/include/rk3399.inc
> +
> +KERNEL_DEVICETREE = "rk3399-sapphire-excavator-linux.dtb"
> +UBOOT_MACHINE = "evb-rk3399_defconfig"


> diff --git a/conf/machine/firefly-rk3399.conf b/conf/machine/firefly-rk3399.conf
> new file mode 100644
> index 0000000..fefafed
> --- /dev/null
> +++ b/conf/machine/firefly-rk3399.conf
> @@ -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"

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

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


> diff --git a/conf/machine/include/rk3399.inc b/conf/machine/include/rk3399.inc
> new file mode 100644
> index 0000000..6e2af57
> --- /dev/null
> +++ b/conf/machine/include/rk3399.inc
> @@ -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?

> +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?

> +
> +IMAGE_FSTYPES = "rockchip-gpt-img"
> +IMAGE_CLASSES = "rockchip-gpt-img"
> -- 
> 2.20.1
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 5/5] conf/machine: add support for rv1108
  2019-04-21 15:53 ` [PATCH 5/5] conf/machine: add support for rv1108 Randy 'ayaka' Li
@ 2019-04-23  8:11   ` Trevor Woerner
  0 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2019-04-23  8:11 UTC (permalink / raw)
  To: Randy 'ayaka' Li; +Cc: yocto

On Sun 2019-04-21 @ 11:53:39 PM, Randy 'ayaka' Li wrote:
> 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.
> 
> Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
> ---
>  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
> 
> diff --git a/conf/machine/evb-rv1108.conf b/conf/machine/evb-rv1108.conf
> new file mode 100644
> index 0000000..3e85d80
> --- /dev/null
> +++ b/conf/machine/evb-rv1108.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: EVB rv1108
> +
> +include conf/machine/include/rv1108.inc
> +
> +KERNEL_DEVICETREE = "rv1108-evb.dtb"
> +UBOOT_MACHINE = "evb-rk3288_defconfig"
> diff --git a/conf/machine/include/rv1108.inc b/conf/machine/include/rv1108.inc
> new file mode 100644
> index 0000000..1c70ef7
> --- /dev/null
> +++ b/conf/machine/include/rv1108.inc
> @@ -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"?

> +SERIAL_CONSOLES = "1500000;ttyS2"
> +KERNEL_IMAGETYPE = "zImage"
> +KBUILD_DEFCONFIG = "multi_v7_defconfig"
> -- 
> 2.20.1
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 4/5] conf/machine: add support for rk3036
  2019-04-21 15:53 ` [PATCH 4/5] conf/machine: add support for rk3036 Randy 'ayaka' Li
@ 2019-04-23  8:13   ` Trevor Woerner
  0 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2019-04-23  8:13 UTC (permalink / raw)
  To: Randy 'ayaka' Li; +Cc: yocto

On Sun 2019-04-21 @ 11:53:38 PM, Randy 'ayaka' Li wrote:
> 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.
> 
> Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
> Signed-off-by: Randy Li <randy.li@rock-chips.com>
> ---
>  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
> 
> diff --git a/conf/machine/include/rk3036.inc b/conf/machine/include/rk3036.inc
> new file mode 100644
> index 0000000..5a9c55e
> --- /dev/null
> +++ b/conf/machine/include/rk3036.inc
> @@ -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"
> diff --git a/conf/machine/kylin-rk3036.conf b/conf/machine/kylin-rk3036.conf
> new file mode 100644
> index 0000000..9e42e87
> --- /dev/null
> +++ b/conf/machine/kylin-rk3036.conf
> @@ -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"?

> +
> +KERNEL_DEVICETREE = "rk3036-kylin.dtb"
> +UBOOT_MACHINE = "kylin-rk3036_defconfig"
> -- 
> 2.20.1
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 3/5] conf/machine: add support for rk3328
  2019-04-21 15:53 ` [PATCH 3/5] conf/machine: add support for rk3328 Randy 'ayaka' Li
@ 2019-04-23  8:15   ` Trevor Woerner
  0 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2019-04-23  8:15 UTC (permalink / raw)
  To: Randy 'ayaka' Li; +Cc: yocto

On Sun 2019-04-21 @ 11:53:37 PM, Randy 'ayaka' Li wrote:
> The RK3328 is a SoC with Quad-core Cortex-A53 for Smart OTT/IPTV.
> 
> Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
> ---
>  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
> 
> diff --git a/conf/machine/evb-rk3328.conf b/conf/machine/evb-rk3328.conf
> new file mode 100644
> index 0000000..67d2083
> --- /dev/null
> +++ b/conf/machine/evb-rk3328.conf
> @@ -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"

There is no "linux-rockchip"

> +GPTIMG_APPEND = "console=ttyS20,1500000n8 rw root=/dev/mmcblk2p5 rootfstype=ext4 init=/sbin/init"


> diff --git a/conf/machine/include/rk3328.inc b/conf/machine/include/rk3328.inc
> new file mode 100644
> index 0000000..8dc018e
> --- /dev/null
> +++ b/conf/machine/include/rk3328.inc
> @@ -0,0 +1,18 @@
> +# Copyright (C) 2017 Randy Li <ayaka@soulik.info>
> +# 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.

> +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
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 1/5] conf/machine: rk3288: Add some machine files
  2019-04-21 15:53 ` [PATCH 1/5] conf/machine: rk3288: Add some machine files Randy 'ayaka' Li
@ 2019-04-23  8:24   ` Trevor Woerner
  0 siblings, 0 replies; 17+ messages in thread
From: Trevor Woerner @ 2019-04-23  8:24 UTC (permalink / raw)
  To: Randy 'ayaka' Li; +Cc: yocto, Jacob Chen

On Sun 2019-04-21 @ 11:53:35 PM, Randy 'ayaka' Li wrote:
> 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.

> 
> Signed-off-by: Jacob Chen <jacob-chen@rock-chips.com>
> Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
> ---
>  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
> 
> diff --git a/conf/machine/evb-rk3288.conf b/conf/machine/evb-rk3288.conf
> new file mode 100644
> index 0000000..e6c1f1e
> --- /dev/null
> +++ b/conf/machine/evb-rk3288.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: EVB 3288
> +
> +include conf/machine/include/rk3288.inc
> +
> +KERNEL_DEVICETREE = "rk3288-evb-act8846.dtb"
> +UBOOT_MACHINE = "evb-rk3288_defconfig"


> diff --git a/conf/machine/fennec-rk3288.conf b/conf/machine/fennec-rk3288.conf
> new file mode 100644
> index 0000000..23e3ee7
> --- /dev/null
> +++ b/conf/machine/fennec-rk3288.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: FENNEC RK3288
> +
> +include conf/machine/include/rk3288.inc
> +
> +KERNEL_DEVICETREE = "rk3288-fennec.dtb"
> +UBOOT_MACHINE = "fennec-rk3288_defconfig"


> diff --git a/conf/machine/include/rk3288.inc b/conf/machine/include/rk3288.inc
> index 0528e8a..73b39fb 100644
> --- a/conf/machine/include/rk3288.inc
> +++ b/conf/machine/include/rk3288.inc
> @@ -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.

> +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.

>  
>  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.


> diff --git a/conf/machine/tinker-rk3288.conf b/conf/machine/tinker-rk3288.conf
> index 294bdc7..cf793cd 100644
> --- a/conf/machine/tinker-rk3288.conf
> +++ b/conf/machine/tinker-rk3288.conf
> @@ -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"
> -- 
> 2.20.1
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-rockchip] [PATCH 0/5] add new SoCs support
  2019-04-23  8:02 ` Trevor Woerner
@ 2019-04-23 10:56   ` Ayaka
  0 siblings, 0 replies; 17+ messages in thread
From: Ayaka @ 2019-04-23 10:56 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: yocto


> On Apr 23, 2019, at 4:02 PM, Trevor Woerner <twoerner@gmail.com> wrote:
> 
> Hi Randy,
> 
>> On Sun 2019-04-21 @ 11:53:34 PM, Randy 'ayaka' Li wrote:
>> 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
> 
> 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.
> 
> 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



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-04-23 10:56 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-21 15:53 [meta-rockchip] [PATCH 0/5] add new SoCs support Randy 'ayaka' Li
2019-04-21 15:53 ` [PATCH 1/5] conf/machine: rk3288: Add some machine files Randy 'ayaka' Li
2019-04-23  8:24   ` Trevor Woerner
2019-04-21 15:53 ` [PATCH 2/5] conf/machine: add rk3399 support Randy 'ayaka' Li
2019-04-22  3:47   ` Khem Raj
2019-04-22  6:29     ` Ayaka
2019-04-22 20:31       ` Khem Raj
2019-04-23  8:10   ` Trevor Woerner
2019-04-21 15:53 ` [PATCH 3/5] conf/machine: add support for rk3328 Randy 'ayaka' Li
2019-04-23  8:15   ` Trevor Woerner
2019-04-21 15:53 ` [PATCH 4/5] conf/machine: add support for rk3036 Randy 'ayaka' Li
2019-04-23  8:13   ` Trevor Woerner
2019-04-21 15:53 ` [PATCH 5/5] conf/machine: add support for rv1108 Randy 'ayaka' Li
2019-04-23  8:11   ` Trevor Woerner
2019-04-22 15:05 ` [meta-rockchip] [PATCH 0/5] add new SoCs support Trevor Woerner
2019-04-23  8:02 ` Trevor Woerner
2019-04-23 10:56   ` Ayaka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.