orangepi-3b: add
PATCH 1/1 orangepi-3b: add
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
--- README | 1 + conf/machine/orangepi-3b.conf | 11 +++++++++++ recipes-kernel/linux/linux-yocto_%.bbappend | 1 + 3 files changed, 13 insertions(+)
README +1 -0
@@ -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
conf/machine/orangepi-3b.conf new file +11 -0
@@ -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"
recipes-kernel/linux/linux-yocto_%.bbappend +1 -0
@@ -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"
---
base-commit: f32c5da2c502c43c9dd3663a6b3cbfa37539d197
change-id: 20251120-orangepi-3b-3211c19b8db7
Best regards,
Signature · 1 line
Michael Opdenacker <[email protected]>
Hi Michael,
Quoted 47 lines · Michael Opdenacker via lists.yoctoproject.org
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 mmSigned-off-by Michael Opdenacker <[email protected]>--- README | 1 + conf/machine/orangepi-3b.conf | 11 +++++++++++ recipes-kernel/linux/linux-yocto_%.bbappend | 1 + 3 files changed, 13 insertions(+)README +1
-0@@ -31,6 +31,7 @@ Status of supported boards: nanopi-m4b nanopi-r2s nanopi-r4s + orangepi-3b orangepi-5-plus radxa-zero-3e radxa-zero-3wconf/machine/orangepi-3b.conf new file +0
-0
conf/machine/orangepi-3b.conf line 3
Quoted 3 lines
conf/machine/orangepi-3b.conf new file +3
-0@@ -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 :)
conf/machine/orangepi-3b.conf line 8
Quoted 5 lines
conf/machine/orangepi-3b.conf new file +5
-0+#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!
Quoted 11 lines · Quentin Schulz via lists.yoctoproject.org
Hi Michael,
conf/machine/orangepi-3b.conf line 3
Quoted 6 lines · Michael Opdenacker via lists.yoctoproject.org
+++
b/conf/machine/orangepi-3b.confconf/machine/orangepi-3b.conf new file +3
-0@@ -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.
Quoted 10 lines
conf/machine/orangepi-3b.conf line 8
Quoted 7 lines
conf/machine/orangepi-3b.conf new file +5
-0+#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:
Quoted 5 lines
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.
Quoted 3 lines
In which case, the NAME part at the top should simply say Orange Pi 3B.
Indeed, fixed too.
Quoted 2 lines
Otherwise looks good to me!
Thanks again.
A V2 is coming soon once I'm done testing.
Cheers
Michael.
Signature · 4 lines
Michael Opdenacker Root Commit Yocto Project and OpenEmbedded Training course - Learn by doing: https://rootcommit.com/training/yocto/