| Message ID | 20251120-orangepi-3b-v1-1-3d31722d6fef@rootcommit.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-rockchip] orangepi-3b: add | expand |
Hi Michael, On 11/20/25 11:25 AM, Michael Opdenacker via lists.yoctoproject.org wrote: > The Orange Pi 3B board is a Raspberry Pi sized single board computer > based on the Rockchip RK3566: > > http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-3B.html > > Tech specs: > - Rockchip RK3566 (4x Arm Cortex-A55 @ 1.6GHz) > - Arm Mali-G52-2EE (OpenGL ES 1.1/2.0/3.0/3.1/3.2, Vulkan 1.1, OpenCL 2.0) > - LPDDR4 RAM (2/4/8 GB) > - µSD > - SPI flash (16/32 MB) > - optional eMMC pluggable module (16/32/64/128/256 GB) > - Wi-Fi5 + Bluetooth 5.0, BLE > - 1x USB 2.0 Type A OTG, 2x USB 2.0 Type A HOST, 1x USB 3.0 Type A Host > - 1x HDMI (up to 4K @ 60fps) > - 1x MIPI CSI LCD port > - 1x MIPI CSI camera port > - colour-coded 40-pin GPIO (uart, spi, i2c, pwm, gpio) > - Gigabit Ethernet port > - optional M.2 M-KEY PCIe port > - 89 x 56 mm > > Signed-off-by: Michael Opdenacker <michael.opdenacker@rootcommit.com> > --- > README | 1 + > conf/machine/orangepi-3b.conf | 11 +++++++++++ > recipes-kernel/linux/linux-yocto_%.bbappend | 1 + > 3 files changed, 13 insertions(+) > > diff --git a/README b/README > index f55f750..6a13428 100644 > --- a/README > +++ b/README > @@ -31,6 +31,7 @@ Status of supported boards: > nanopi-m4b > nanopi-r2s > nanopi-r4s > + orangepi-3b > orangepi-5-plus > radxa-zero-3e > radxa-zero-3w > diff --git a/conf/machine/orangepi-3b.conf b/conf/machine/orangepi-3b.conf > new file mode 100644 > index 0000000..eadf458 > --- /dev/null > +++ b/conf/machine/orangepi-3b.conf > @@ -0,0 +1,11 @@ > +#@TYPE: Machine > +#@NAME: Orange Pi 3B v2.1 > +#@DESCRIPTION: 3th generation SBC designed by Kunlong Co.,Limited. Not sure the board identifier number really is synonym of generation. In any case, should be "3rd" I guess :) > +#http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-3B.html > + > +require conf/machine/include/rk3566.inc > + > +KERNEL_DEVICETREE = "rockchip/rk3566-orangepi-3b-v2.1.dtb" There's also another device tree in the kernel tree for an earlier version: rockchip/rk3566-orangepi-3b-v1.1.dtb I think we should probably also have it in KERNEL_DEVICETREE. Looking at the U-Boot code, the bootloader should be able to load the proper DTB based on some runtime detection. In which case, the NAME part at the top should simply say Orange Pi 3B. Otherwise looks good to me! Cheers, Quentin
Hi Quentin Thanks a lot for the review! On 11/20/25 11:35, Quentin Schulz via lists.yoctoproject.org wrote: > Hi Michael, > > On 11/20/25 11:25 AM, Michael Opdenacker via lists.yoctoproject.org > wrote: >> >> +++ b/conf/machine/orangepi-3b.conf >> @@ -0,0 +1,11 @@ >> +#@TYPE: Machine >> +#@NAME: Orange Pi 3B v2.1 >> +#@DESCRIPTION: 3th generation SBC designed by Kunlong Co.,Limited. > > Not sure the board identifier number really is synonym of generation. > In any case, should be "3rd" I guess :) Oops, indeed! I just imitated the machine file for OrangePi 5 plus, which claimed it was 5th generation. I'll remove this mention of a generation which is indeed dubious. > >> +#http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-3B.html >> >> + >> +require conf/machine/include/rk3566.inc >> + >> +KERNEL_DEVICETREE = "rockchip/rk3566-orangepi-3b-v2.1.dtb" > > There's also another device tree in the kernel tree for an earlier > version: > > rockchip/rk3566-orangepi-3b-v1.1.dtb > > I think we should probably also have it in KERNEL_DEVICETREE. > > Looking at the U-Boot code, the bootloader should be able to load the > proper DTB based on some runtime detection. Very cool, done! This looks like the best way to handle this. > > In which case, the NAME part at the top should simply say Orange Pi 3B. > Indeed, fixed too. > > Otherwise looks good to me! Thanks again. A V2 is coming soon once I'm done testing. Cheers Michael.
diff --git a/README b/README index f55f750..6a13428 100644 --- a/README +++ b/README @@ -31,6 +31,7 @@ Status of supported boards: nanopi-m4b nanopi-r2s nanopi-r4s + orangepi-3b orangepi-5-plus radxa-zero-3e radxa-zero-3w diff --git a/conf/machine/orangepi-3b.conf b/conf/machine/orangepi-3b.conf new file mode 100644 index 0000000..eadf458 --- /dev/null +++ b/conf/machine/orangepi-3b.conf @@ -0,0 +1,11 @@ +#@TYPE: Machine +#@NAME: Orange Pi 3B v2.1 +#@DESCRIPTION: 3th generation SBC designed by Kunlong Co.,Limited. +#http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-3B.html + +require conf/machine/include/rk3566.inc + +KERNEL_DEVICETREE = "rockchip/rk3566-orangepi-3b-v2.1.dtb" +MACHINE_EXTRA_RRECOMMENDS += "kernel-modules" + +UBOOT_MACHINE = "orangepi-3b-rk3566_defconfig" diff --git a/recipes-kernel/linux/linux-yocto_%.bbappend b/recipes-kernel/linux/linux-yocto_%.bbappend index da1b172..2dba3d7 100644 --- a/recipes-kernel/linux/linux-yocto_%.bbappend +++ b/recipes-kernel/linux/linux-yocto_%.bbappend @@ -16,6 +16,7 @@ COMPATIBLE_MACHINE:nanopi-m4-2gb = "nanopi-m4-2gb" COMPATIBLE_MACHINE:nanopi-m4b = "nanopi-m4b" COMPATIBLE_MACHINE:nanopi-r2s = "nanopi-r2s" COMPATIBLE_MACHINE:nanopi-r4s = "nanopi-r4s" +COMPATIBLE_MACHINE:orangepi-3b = "orangepi-3b" COMPATIBLE_MACHINE:orangepi-5-plus = "orangepi-5-plus" COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3" COMPATIBLE_MACHINE:roc-rk3308-cc = "roc-rk3308-cc"
The Orange Pi 3B board is a Raspberry Pi sized single board computer based on the Rockchip RK3566: http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-3B.html Tech specs: - Rockchip RK3566 (4x Arm Cortex-A55 @ 1.6GHz) - Arm Mali-G52-2EE (OpenGL ES 1.1/2.0/3.0/3.1/3.2, Vulkan 1.1, OpenCL 2.0) - LPDDR4 RAM (2/4/8 GB) - µSD - SPI flash (16/32 MB) - optional eMMC pluggable module (16/32/64/128/256 GB) - Wi-Fi5 + Bluetooth 5.0, BLE - 1x USB 2.0 Type A OTG, 2x USB 2.0 Type A HOST, 1x USB 3.0 Type A Host - 1x HDMI (up to 4K @ 60fps) - 1x MIPI CSI LCD port - 1x MIPI CSI camera port - colour-coded 40-pin GPIO (uart, spi, i2c, pwm, gpio) - Gigabit Ethernet port - optional M.2 M-KEY PCIe port - 89 x 56 mm Signed-off-by: Michael Opdenacker <michael.opdenacker@rootcommit.com> --- README | 1 + conf/machine/orangepi-3b.conf | 11 +++++++++++ recipes-kernel/linux/linux-yocto_%.bbappend | 1 + 3 files changed, 13 insertions(+) --- base-commit: f32c5da2c502c43c9dd3663a6b3cbfa37539d197 change-id: 20251120-orangepi-3b-3211c19b8db7 Best regards,