DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

Image | Orange Pi RV2

Open misterhsp opened this issue 8 months ago • 13 comments

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

misterhsp avatar May 05 '25 17:05 misterhsp

Yeah, one just arrived. Though I will add support for the Orange Pi 5 Ultra/CM5/4A first.

MichaIng avatar May 05 '25 18:05 MichaIng

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: @.***>

misterhsp avatar May 06 '25 06:05 misterhsp

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.

MichaIng avatar Jun 09 '25 22:06 MichaIng

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.

fethomm avatar Jun 11 '25 13:06 fethomm

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.

MichaIng avatar Jun 11 '25 13:06 MichaIng

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...

misterhsp avatar Jun 11 '25 14:06 misterhsp

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.

MichaIng avatar Jun 11 '25 14:06 MichaIng

A small addendum:

Templates are located in the external/config/distributions directory.

misterhsp avatar Jun 11 '25 14:06 misterhsp

RELEASE=trixie not works as Option

misterhsp avatar Jun 11 '25 14:06 misterhsp

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.

MichaIng avatar Jun 11 '25 14:06 MichaIng

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"

fethomm avatar Jun 11 '25 16:06 fethomm

create sid/trixie image (need root)

@misterhsp thank you for your posts here, I made a Trixie image for this board just now.

romanrm avatar Aug 17 '25 02:08 romanrm

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.

N0rbert avatar Aug 18 '25 16:08 N0rbert