Jump to content

Orange Pi RV2


Go to solution Solved by sven-ola,

Recommended Posts

Posted

@maxsub yes and no. That 900*.patch never was meant to be in the Armbian repo, I wounder how this made it in the Armbian repo. Some black git magic...

 

Patch experimentally rolls back an upstream change (...that removes the kthread under discussion and by this prevents the main CPU from communicating to the remote CPU). Upstream (the Fedora folks that emitted the SpacemiT code drops) has removed the kthread to prevent high CPU load b/c they use RV2 for their RISCV compile farm or so. The 900*.patch was an experiment by me to understand the impact on HDMI audio / ADMA).

 

Long blabla. This proposed and committed change solves the issue for my pull RQ on the topic: https://github.com/armbian/build/pull/9299/changes/613737fab5aadc2d0a288a10a98aa0a433db4e76

Posted

The patch brought the idle load average drastically down on the R2S from 2.0 to 0.18.

However the temp remains at 57-58 deg C.

 

orangepi@orangepir2s:~$ cat /sys/class/thermal/thermal_zone1/temp 

56000

orangepi@orangepir2s:~$ htop

orangepi@orangepir2s:~$ cat /sys/class/thermal/thermal_zone1/temp 

57000

Posted
14 minutes ago, maxsub said:

The patch brought the idle load average drastically down on the R2S from 2.0 to 0.18.

However the temp remains at 57-58 deg C.

 

That's not bad honestly. The K1 series runs hot in general. If you add heavy lifting to thee equation it would require a fan.

 

I have the MusePi Pro and BPI-F3 and both run hot.

Posted

For me, those 57°C is fine without further cooling. Starting cool on my RV2 is:

 

root@orangepirv2:~# uptime;cat $(find /sys -name temp)
 18:55:15 up 0 min,  1 user,  load average: 0.90, 0.25, 0.08
27000
28000

 

Now some work, will probably max out at 95° or so

 

root@orangepirv2:~# uptime;cat $(find /sys -name temp)
 19:23:11 up 28 min,  3 users,  load average: 7.61, 6.79, 3.86
90000
90000

 

Stop compiling and wait a bit gives this which is fine IMO

 

root@orangepirv2:~# uptime;cat $(find /sys -name temp)
 19:35:07 up 40 min,  3 users,  load average: 0.00, 0.64, 1.81
56000
58000

 

Posted

I have been testing the R2S extensively. The 1GbE is very stable, but the 2.5GbE drops frequently. I do not have debug logs yet but it is something I need to analyze.

 

I also have a wireless AP running on the R2S. Performance is poor: 1GbE WAN connection, but I am getting only 20Mbps throughput but it is stable.

Posted

Hu? In difference to Spacemit 6.6.99, the 6.18 kernel has no bcmdhd included. For that reason I put in an adapted version of bcmdhd in a DKMS, installed via a source deb from my repo on codeberg.org/sven-ola. B/c DKMS needs a compiler on the board, the edge image is larger than current image. Code quality of bcmdhd is questionable so it probably never make it into the official Linux tree, but it works (at least on my board with my image). HTH // Sven-Ola

Posted

Got it! But this DKMS should be loaded by the build:
 

function post_family_tweaks_bsp__orangepirv2_wifi() {

        display_alert "$BOARD" "Force load bmcdhd wireless" "info"

        run_host_command_logged mkdir -pv "${destination}"/etc/modules-load.d

        run_host_command_logged echo "bcmdhd" > "${destination}"/etc/modules-load.d/${BOARD}.conf

}

 

Posted (edited)
7 часов назад, maxsub сказал:

On RV2 with the edge branch WiFi does not work. 

I confirm that when building an image with the Edge 6.18 kernel, WiFi does not work.

Also, when building an image with the Xfce desktop, the image is approximately 3 GB (it should be more than 4 GB), but it is not there, only the command line works.

Edited by Malay
Posted

Hello @maxsub, we are talking about git log --oneline -1 which says 613737fab. The post_family_tweaks_bsp__orangepirv2_wifi() from above is exactly what's in there. If you run

Zitat

./compile.sh CPUTHREADS=$(nproc) BOARD=orangepirv2 BRANCH=edge RELEASE=trixie KERNEL_CONFIGURE=no KERNEL_GIT=shallow BUILD_MINIMAL=yes SKIP_ARMBIAN_REPO=yes

you should get on the board

Zitat

root@orangepirv2:~# dkms status
bcmdhd-spacemit-sdio/101.10.591.84.37-4, 6.18.8-edge-spacemit, riscv64: installed

Can you please elaborate on the "got it"? TIA // Sven-Ola

Posted

Hello @Malay! Same for you: cannot reproduce. Can you rebuild with SKIP_ARMBIAN_REPO=yes? This builds a little longer but skips cached stuff. Alternatively, rm -r ./cache from the build dir. To help with this, I will start the following commands on my PC and upload the results later to https://privat-in.de/ (Download section).

Zitat

sudo rm -r cache/ output/ -f

./compile.sh CPUTHREADS=$(nproc) BOARD=orangepirv2 BRANCH=edge RELEASE=trixie KERNEL_CONFIGURE=no KERNEL_GIT=shallow BUILD_DESKTOP=yes DESKTOP_ENVIRONMENT=xfce DESKTOP_APPGROUPS_SELECTED="chat desktop_tools editors email internet multimedia office programming remote_desktop" DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base EXPERT=yes

LG // Sven-Ola

Posted

Compiled, flashed, uploaded. I got a running XFCE desktop and a working wifi applet. If you still have different results, I may provide a VPN endpoint and an SSH pubkey to log in to your machine. Here's my upload dir:

Zitat

1,2G    Armbian-unofficial_26.02.0-trunk_Orangepir2s_trixie_edge_6.18.8_minimal.img
1,3G    Armbian-unofficial_26.02.0-trunk_Orangepirv2_trixie_current_6.6.99_minimal.img
6,1G    Armbian-unofficial_26.02.0-trunk_Orangepirv2_trixie_edge_6.18.8_mate_desktop.img
1,9G    Armbian-unofficial_26.02.0-trunk_Orangepirv2_trixie_edge_6.18.8_minimal.img
5,8G    Armbian-unofficial_26.02.0-trunk_Orangepirv2_trixie_edge_6.18.9_xfce_desktop.img

HTH // Sven-Ola

Posted

@sven-ola The dkms did not get installed by the build. I manually installed it and the wifi works.

I am trying the build with SKIP_ARMBIAN_REPO now as I did not have that before.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines