Orangepi RV2 Board with Spacemit-Famliy both Current and Edge#9299
Orangepi RV2 Board with Spacemit-Famliy both Current and Edge#9299sven-ola wants to merge 41 commits intoarmbian:mainfrom
Conversation
…figs Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Required to compile BCM bluetooth firmware hacking tool. Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
…imit) Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
…LV chip setting) Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Note: HW AES is really slow with LUKS2 when using default 512 byte block size, regardless what cryptsetup benchmark prints out (this uses 65536 bytes). Performance is much better with luksFormat --sector-size 4096. Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Added with new extension named bcmdhd-spacemit (hosted on Codeberg.org) Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
This is for use with fdtoverlays directive in extlinux.conf to enabled different configs for the Opi rv2 pin headers Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
…ver. Disable U-Boot CONFIG_MMC_UHS_SUPPORT otherwise a fast SD card does not report "1.8 Volt mode switch possible" on kernel init which in turn does not enable SDR104 for my SDXC card. Fast mode ok is visible in the kernel log after booting from SD card: root@orangepirv2:~# dmesg |grep mmc [ 2.198816] mmc0: SDHCI controller on d4280000.sdh [d4280000.sdh] using ADMA [ 2.224576] mmc1: SDHCI controller on d4280800.sdh [d4280800.sdh] using ADMA [ 2.272657] mmc0: set tx_delaycode: 159 [ 2.273950] mmc0: pass window [6 68) [ 2.276301] mmc0: pass window [72 198) [ 2.277591] mmc0: pass window [219 255) [ 2.277599] mmc0: tuning done, use the firstly delay_code:134 [ 2.277611] mmc0: new ultra high speed SDR104 SDXC card at address b36b With UHS already enabled in u-boot, no tuning and no SDR104 mode is switched on in the Linux kernel. Seems to be a side effect of an un-complete mmc_deinit() in u-boot/driver/mmc/mmc.c. With MMC_UHS_SUPPORT disabled, the SD card does report SD_ROCR_S18A with then leads to enter spacemit_sdhci_execute_sw_tuning() and the subsequent switch to SDK104 or probably other 1.8 Volt modes is fine. This is at least true for my OrangePi RV2 board. Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Driver for Ethernet/PCI as found with Xunlong/Ky on the OrangePi RV2/R2S source tree. Added as kernel patch since the current spacemit family has conflicting changes with rtl8852bs when enabling EXTRAWIFI=yes Note: on the Xunlong/Ky tree, there is also a realtek_pgtool/ subdir that compiles a pgdrv.ko. B/c this does not have a license indication, is only needed e.g. for MAC address programming of efuse / eeprom, and generally does not look required this is ommited here. For details, you may refer to https://github.com/redchenjs/rtnicpg Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Note: have a 128Gb 2030 NVME that returns read errors with Active State PM Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
This reverts commit 99ad088.
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
|
✅ This PR has been reviewed and approved — all set for merge! |
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@patch/u-boot/legacy/u-boot-spacemit-k1/006-orangepi-rv2-spi-flash.patch`:
- Line 4: Update the patch subject to match the chip name used in the code:
change "XM25QH128C" to "XM25QU128C" so the subject aligns with the added device
string "XM25QU128C" and the JEDEC ID 0x204118 present in the patch; ensure the
commit title accurately reflects the 1.8V "QU" variant to avoid confusion.
patch/u-boot/legacy/u-boot-spacemit-k1/006-orangepi-rv2-spi-flash.patch
Outdated
Show resolved
Hide resolved
Shoud prevent possible error in sched_setscheduler() says the rabbit. Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
|
I think I've completed all tasks. Thus this PR waits for a team member to press the [merge] button probably. LG // Sven-Ola |
There was a problem hiding this comment.
patch/kernel/archive/spacemit-6.18/016-Revert-k1x_rproc-avoid-creating-busy-looping-mailbox.patch
patch/kernel/archive/spacemit-6.18/017-Spacemit-lower-kthread-loop-speed-to-1-sec.patch
patch/kernel/archive/spacemit-6.18/018-Spacemit-prevent-uninitialized-thread-shutdown.patch
This series of patches produces an incredibly high load average.
Uptime: 15:32:43 up 3 min, 1 user, load average: 2.46, 1.44, 0.61
Uptime: 15:40:05 up 11 min, 1 user, load average: 2.02, 1.93, 1.18
EDIT:
After removing the series of patches
Uptime: 15:51:12 up 4 min, 1 user, load average: 0.04, 0.23, 0.14
I recommend they be removed before merging the PR.
Hello @pyavitz, without this revert the communication to the rCPU does not work. And in turn e.g. HDMI audio DMA is non-functional. Thus I presume the SpacemiT engineers have a reason to put this in. With the remoteproc thread active we see a system load of exactly 2.00 on idle (e.g. with uptime), but the RISCV main CPU compiles stuff with the same speed, has similar benchmark results, and does not show a higher temperature. The 2.00 load is there e.g. on current 6.6.99 kernels. I checked the kthread, but that waits for the interrupt from rCPU as designed. For these reasons the revert should stay. I can add #ifdef orangepi to switch this off for the other RISC V board if required. I discussed this with upstream (see jmontleon/linux-spacemit@d6a6ebe#commitcomment-175479327) but have not found a way to prevent the load display (besides patching /proc/uptime). |
We have forum user @maxsub who tested OpiR2S (the sister board without HDMI, M.2). He reports a higher temp (and the above R2S board foto suggests that this is an older problem). Please refer to https://forum.armbian.com/topic/56846-orange-pi-rv2/page/2/#findComment-232696 Maybe we really need to revert the revert... |
Just putting this out there. At some point in the near future I will be introducing mainline, which will reside on the At least that was my plan. Of course how the branches get moved around and what stays and goes is up for debate. |
|
This may or may not be of interest. @sven-ola 017-Spacemit-lower-kthread-loop-speed-to-1-sec.patch |
@pyavitz Thanks for the gitee link, I'll try your changes. |
…thread Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
|
@pyavitz Great! I now have HDMI audio and standard idle system load=0.00. I have pushed your changes here. We still may have a similar problem on R2S: high load, CPU gets hot. Let's wait for some feedback from forum user @maxsub on https://forum.armbian.com/topic/56846-orange-pi-rv2/page/2/ |
Description
This PR supports a new board: Xunlong Orange Pi RV2. I already applied for maintainership for this board, but currently the board configs are *.wip. Note, that the smaller sibling, the Orange Pi R2V is also supported, but I do not own the HW, thus it's unsupported probably.
Documentation summary for feature / change
You can read about this PR in the Armbian forum, see the respective thread under https://forum.armbian.com/topic/56846-orange-pi-rv2/ I also generated and uploaded testing images built with this on my private project website (see https://privat-in.de/ goto downloads): current-trixie-minimal, edge-trixie-minimal, and edge-trixie-desktop-mate.
Here is a list of features (valid both for 6.6/current and for 6.18/edge if not noted otherwise)
How Has This Been Tested?
This was tested with the images one can download. I have a number of people that tried my images and provided feedback (see Forum thread linked above).
Notes
Summary by CodeRabbit
New Features
Improvements
Bug Fixes