Image | Orange Pi RV2
Creating an image request
Please add support Orange Pi RV2 (Riscv64)
Formal device information
- Device name | OrangePi RV2
- Official product URL | http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-RV2.html
- Image download URL | http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-RV2.html
Is the SBC officially supported by the Debian installer?
I don't know
If not, is a reliable 3rd party Debian image available for this SBC?
I don't know
Yeah, one just arrived. Though I will add support for the Orange Pi 5 Ultra/CM5/4A first.
An image would be really good. The Ubuntu image available for download is really bad. Many broken dependencies. Some apps cannot be installed because the dependencies are broken.
Am 05.05.25 um 20:29 schrieb MichaIng:
MichaIng left a comment (MichaIng/DietPi#7519) https://github.com/MichaIng/DietPi/issues/7519#issuecomment-2851955841
Yeah, one just arrived. Though I will add support for the Orange Pi 5 Ultra/CM5/4A first.
— Reply to this email directly, view it on GitHub https://github.com/MichaIng/DietPi/issues/7519#issuecomment-2851955841, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKGJLRIIIYZJ6BHUX7CFMWD246UYJAVCNFSM6AAAAAB4PF2E42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNJRHE2TKOBUGE. You are receiving this because you authored the thread.Message ID: @.***>
U-Boot source: https://github.com/orangepi-xunlong/u-boot-orangepi/tree/v2022.10-ky Kernel sources: https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-6.6-ky
Not sure whether anyone is aiming for mainline kernel support. In case to monitor:
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/riscv/boot/dts
There seem to be no other board using this "Ky X1" SoC. Also I couldn't find any info about the SoC manufacturer, probably Xunlong own/exclusive production? Quite possible that this will never see mainline Linux or U-Boot support, under these circumstances, considering the efforts, and it being a single low-power SoC only. The StarFive JH7110 used in the Orange Pi RV (1) is as powerful, seems to have even more single-core power, and StarFive had a transparent agenda to mainline it right from the start, which has worked pretty well.
However, let's hope for the best. Until then, I'll add support to our Armbian fork, using the Xunlong sources as is.
From what I read, the Ky X1 is supposed to be identical with the SpacemiT K1 8, that powers the Banana Pi BPI-F3. But I can't be sure.
Do you have a link for this info?
Would be good, since that Banana Pi BPI-F3 is supported already, hence basic drivers and stuff should be there:
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/riscv/boot/dts/spacemit
- https://github.com/u-boot/u-boot/tree/master/arch/riscv/dts
With some luck, other board features can be ported via device tree only. However, for now, WiFi (due to missing driver in mainline Linux) and stuff like the NPU will work with vendor kernel only anyway. So it is just about efforts and hence changes this board gets mainline support, or at least whether mainline support can be patched with reasonable efforts.
Imagebuild for sid or trixie
apt install lz4 git git clone https://github.com/orangepi-xunlong/orangepi-build.git cd orangepi-build
In the script directory replace the URL of the mirror in debootstrap.sh and general.sh (deb ....snapshot.debian...)) deb http://ftp.de.debian.org/debian/ unstable main
create sid/trixie image (need root)
export NO_HOST_RELEASE_CHECK=yes
LANG=C ./build.sh BOARD=orangepirv2 BRANCH=current BUILD_OPT=image RELEASE=sid BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_CONFIGURE=no
Then you have to create a reasonable debian.list or debian.sources for apt after flashing for sid or trixie
Have fun Holger...
We will implement it into our Armbian fork for kernel and bootloader builds instead, and into our own image build system, not using the Orange Pi build system. Otherwise you could use the Orange Pi images directly 😉.
Also, do not use Debian "unstable". riscv64 is supported by Debian Trixie, which will be released as stable in probably 2 months. Hence use as mirror:
deb https://deb.debian.org/debian trixie main
... and RELEASE=trixie, I suppose.
A small addendum:
Templates are located in the external/config/distributions directory.
RELEASE=trixie not works as Option
Then the Orange Pi build system has an unnecessary limitation for riscv64 boards right now, enforcing unstable Debian versions. However, as said, does not matter for us as we implement it ourselves. Only thing we use from Orange Pi is the kernel and bootloader sources.
... I see, no update in this regards since 3 years: https://github.com/orangepi-xunlong/orangepi-build/tree/next/external/config/distributions
Noble support has been added. So probably just a matter of giving them a hint that Trixie is around the corner with stable RISC-V support.
Do you have a link for this info?
Would be good, since that Banana Pi BPI-F3 is supported already, hence basic drivers and stuff should be there:
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/riscv/boot/dts/spacemit
- https://github.com/u-boot/u-boot/tree/master/arch/riscv/dts
With some luck, other board features can be ported via device tree only. However, for now, WiFi (due to missing driver in mainline Linux) and stuff like the NPU will work with vendor kernel only anyway. So it is just about efforts and hence changes this board gets mainline support, or at least whether mainline support can be patched with reasonable efforts.
I can't find the original quote, but on page 6 of https://www.androidpimp.com/embedded/orange-pi-rv2/6/ it says: "After thorough examination, we can confidently assert that the RV2 Chipset is crafted by SpacemiT, an emerging Chinese company dedicated to the innovation and development of high-performance RISC-V CPUs."
Another review at https://boilingsteam.com/orange-pi-rv2-new-risc-v-board-review/ mentions: "The Ky X1 processor appears to be the same as the Key Stone K1 chip from the chinese company SpacemiT"
create sid/trixie image (need root)
@misterhsp thank you for your posts here, I made a Trixie image for this board just now.
Great work, @romanrm . Your Trixie image works great on NVME drive in my RV2.
I would suggest to fork the related repo, and thus publish https://dl.romanrm.net/risc-v/orangepi-build-trixie.patch as push-request to make it more reproducible.