nanopi-r4s: add
PATCH v2 1/1 nanopi-r4s: add
Add a MACHINE definition for the FriendlyElec NanoPi R4S
https://www.friendlyelec.com/index.php?route=product/product&product_id=284
Include a device-tree patch to enable the 2nd PCIe ethernet.
Signed-off-by Trevor Woerner <[email protected]>
---
v2:
- rebase on top of master
- s/r2s/r4s/g
- include DT patch to enable PCIe ethernet
--- README | 1 + conf/machine/nanopi-r4s.conf | 13 ++++++ .../linux/linux-yocto/nanopi-r4s.scc | 6 +++ ...anopi-r4s.dts-enable-second-ethernet.patch | 41 +++++++++++++++++++ recipes-kernel/linux/linux-yocto_%.bbappend | 2 + 5 files changed, 63 insertions(+) create mode 100644 conf/machine/nanopi-r4s.conf create mode 100644 recipes-kernel/linux/linux-yocto/nanopi-r4s.scc create mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/0001-rk3399-nanopi-r4s.dts-enable-second-ethernet.patch
README +1 -0
@@ -29,6 +29,7 @@ Status of supported boards: tinker-board-s vyasa-rk3288 firefly-rk3288 + nanopi-r4s builds: marsboard-rk3066 radxarock
conf/machine/nanopi-r4s.conf new file +13 -0
@@ -0,0 +1,13 @@ +#@TYPE: Machine +#@NAME: NanoPi R4S +#@DESCRIPTION: NanoPi R4S is a high-end FriendlyElec mini-router based on the RK3399 SoC +#https://www.friendlyelec.com/index.php?route=product/product&product_id=284 + +MACHINEOVERRIDES =. "nanopi-r4s:" + +require conf/machine/include/rk3399.inc + +MACHINE_EXTRA_RRECOMMENDS += "kernel-modules" + +KERNEL_DEVICETREE = "rockchip/rk3399-nanopi-r4s.dtb" +UBOOT_MACHINE = "nanopi-r4s-rk3399_defconfig"
recipes-kernel/linux/linux-yocto/nanopi-r4s.scc new file +6 -0
@@ -0,0 +1,6 @@ +define KFEATURE_DESCRIPTION "tweaks for the nanopi-r4s" +define KMACHINE nanopi-r4s +define KTYPE standard +define KARCH arm64 + +include bsp/rockchip/0001-rk3399-nanopi-r4s.dts-enable-second-ethernet.patch
recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/0001-rk3399-nanopi-r4s.dts-enable-second-ethernet.patch new file +41 -0
41 lines not on this page · raw message
recipes-kernel/linux/linux-yocto_%.bbappend +2 -0
@@ -12,5 +12,7 @@ COMPATIBLE_MACHINE:nanopi-m4 = "nanopi-m4" COMPATIBLE_MACHINE:nanopi-m4-2gb = "nanopi-m4-2gb" COMPATIBLE_MACHINE:rock64 = "rock64" COMPATIBLE_MACHINE:rock-pi-e = "rock-pi-e" +COMPATIBLE_MACHINE:nanopi-r4s = "nanopi-r4s" SRC_URI:append = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta" +SRC_URI:append:nanopi-r4s = " file://nanopi-r4s.scc"
Signature · 1 line
2.41.0.327.gaa9166bcc0ba
Trevor Woerner
AppliedQuoted 11 lines · Trevor Woerner
Add a MACHINE definition for the FriendlyElec NanoPi R4S
https://www.friendlyelec.com/index.php?route=product/product&product_id=284Include a device-tree patch to enable the 2nd PCIe ethernet.
Signed-off-by Trevor Woerner <[email protected]>---
v2:
- rebase on top of master
- s/r2s/r4s/g
- include DT patch to enable PCIe ethernet
Quoted 10 lines
--- README | 1 + conf/machine/nanopi-r4s.conf | 13 ++++++ .../linux/linux-yocto/nanopi-r4s.scc | 6 +++ ...anopi-r4s.dts-enable-second-ethernet.patch | 41 +++++++++++++++++++ recipes-kernel/linux/linux-yocto_%.bbappend | 2 + 5 files changed, 63 insertions(+) create mode 100644 conf/machine/nanopi-r4s.conf create mode 100644 recipes-kernel/linux/linux-yocto/nanopi-r4s.scc create mode 100644 recipes-kernel/linux/linux-yocto/rockchip-kmeta/bsp/rockchip/0001-rk3399-nanopi-r4s.dts-enable-second-ethernet.patch
Applied to meta-rockchip, master branch.