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

Submitted by ayaka on April 21, 2019, 3:53 p.m. | Patch ID: 160565

Details

Message ID 20190421155339.6332-4-ayaka@soulik.info
State Superseded
Headers show

Commit Message

ayaka April 21, 2019, 3:53 p.m.
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

Patch hide | download patch | download mbox

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"

Comments

Trevor Woerner April 23, 2019, 8:15 a.m.
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
>
ayaka June 20, 2019, 9:23 p.m.
This is a system generated Comment: Patch 160565 was automatically marked as superseded by patch 162372.