CSC Armbian for RK322X TV Boxes


Recommended Posts

@Alex83

the only way to declare the processor inside is this command, as we said many times

hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem   

And even with this command we still unsure if a 3228a or a 3228b; so if you say that  is a "3229 for sure" ( and not because you read by the stamp on processor.......) I believe you, even if you have the same boards of the photos i doubt it is a 3229 but mostly a 3228.
this could be also proved by the fact that rk322x-box (Generic RK322x TV Box board) is working 
With this chinese people never say never thought and I surrender to all their fake statements ( just an example some producer say that an all winner has 4 giga ram even if is well know that h6 has PHYSICAL limitation to 3 giga....) 

EDIT: I have a board called sardine... wll advertized as a 3229 chip
on the processor also 3229
this is my efuse:
 

hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem

00000000  52 4b 23 82 >>>>>> 3228 and since some erratic problems quite sure a 3228 A


 

Link to post
Share on other sites
Donate and support the project!

Thanks for your comments! 

 

I can provide you later the informations of your comments if it helps. 

 

I flashed now your newest Ubuntu Desktop image and used the profile 

 

Rk3229 Mars Profile. 

 

This actually worked out and I can also use wifi with the ssv6051 chipset. 

 

Beside my FritzBox I can reach 72 Mbit/s and I think that's the maximum with this 1x1 hardware. Iperf3 measurement to my Gigabit Iperf3 Server showed up with a maximum Rx Rate around 35-40 Mbit/s and Tx of around 15-20 Mbit/s. 

 

With the 100 Mbit/s Ethernet I can reach around 90-95 Rx and TX. 

 

Unfortunately the sound is lagging and crackling if I try to play radio from a web page or YouTube. - So I still don't see a useful browser desktop scenario with the device... 

 

But I'm quite happy for now and will start trying to test wireguard performance soon. 

 

The major problem with the former image disappeared now of course and didn't show up even after the newest apt update && apt upgrade. 

 

So far my highest respect and thank you for your great development steps you did already with this little bitchy rk3229 devices... 

 

For me it feels at this stage about the same performance as the rpi 1 b I used before. The rpi 2 still performs a bit more smooth, even when already all 4 cores of the rk3229 work at 1200 MHz on this device. 

Link to post
Share on other sites

@Alex83

thank you so much for reporting your test on wifi speed
Please would also report you experience with wireguard and/or any other vpn method since  my expereinces were NOT so happy , neither with openvpn neither with wireguard.
I must investigate if depends by my isp carrier or/and wrong configurations.
thanks in advance
EDIT: share also the efuse infos and if you have some board photos

Link to post
Share on other sites
      _    _________  ____            _
 _ __| | _|___ /___ \|___ \__  __    | |__   _____  __
| '__| |/ / |_ \ __) | __) \ \/ /____| '_ \ / _ \ \/ /
| |  |   < ___) / __/ / __/ >  <_____| |_) | (_) >  <
|_|  |_|\_\____/_____|_____/_/\_\    |_.__/ \___/_/\_\

Welcome to Armbian Focal with Linux 4.4.194-rk322x

No end-user support: built from trunk

System load:   5.36 5.08 4.99   Up time:        1:02
Memory usage:  24 % of 979MB    IP:
CPU temp:      59°C
Usage of /:    27% of 6.9G

Last login: Sun May  3 11:56:04 2020 from 192.168.178.178

root@rk322x-box:~# hexdump -C /sys/bus/nvmem/devices/rockch
p-efuse0/nvmem
00000000  52 4b 23 92 81 f0 70 55  52 4b 50 30 35 30 31 36
|RK#...pURKP05016|
00000010  00 00 00 00 08 05 1f 04  00 03 01 00 00 80 00 00
|................|
00000020
root@rk322x-box:~#
root@rk322x-box:~# iperf3 -c 192.168.178.193 -i 1 -t 5 -P 4
-R
Connecting to host 192.168.178.193, port 5201
Reverse mode, remote host 192.168.178.193 is sending
[  5] local 192.168.178.192 port 52158 connected to 192.168
178.193 port 5201
[  7] local 192.168.178.192 port 52160 connected to 192.168
178.193 port 5201
[  9] local 192.168.178.192 port 52162 connected to 192.168
178.193 port 5201
[ 11] local 192.168.178.192 port 52164 connected to 192.168
178.193 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  1.57 MBytes  13.2 Mbits/sec

[  7]   0.00-1.00   sec  1.06 MBytes  8.90 Mbits/sec

[  9]   0.00-1.00   sec  1.10 MBytes  9.27 Mbits/sec

[ 11]   0.00-1.00   sec  1.08 MBytes  9.08 Mbits/sec

[SUM]   0.00-1.00   sec  4.82 MBytes  40.4 Mbits/sec

- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   1.00-2.00   sec  1.75 MBytes  14.7 Mbits/sec

[  7]   1.00-2.00   sec  1.08 MBytes  9.06 Mbits/sec

[  9]   1.00-2.00   sec  1.14 MBytes  9.52 Mbits/sec

[ 11]   1.00-2.00   sec  1.11 MBytes  9.33 Mbits/sec

[SUM]   1.00-2.00   sec  5.08 MBytes  42.6 Mbits/sec

- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   2.00-3.00   sec  1.43 MBytes  12.0 Mbits/sec

[  7]   2.00-3.00   sec  1.04 MBytes  8.72 Mbits/sec

[  9]   2.00-3.00   sec  1.67 MBytes  14.0 Mbits/sec

[ 11]   2.00-3.00   sec  1012 KBytes  8.29 Mbits/sec

[SUM]   2.00-3.00   sec  5.13 MBytes  43.0 Mbits/sec

- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   3.00-4.00   sec  1.22 MBytes  10.2 Mbits/sec

[  7]   3.00-4.00   sec   897 KBytes  7.35 Mbits/sec

[  9]   3.00-4.00   sec  1.61 MBytes  13.5 Mbits/sec

[ 11]   3.00-4.00   sec  1018 KBytes  8.34 Mbits/sec

[SUM]   3.00-4.00   sec  4.69 MBytes  39.4 Mbits/sec

- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   4.00-5.00   sec  1.38 MBytes  11.5 Mbits/sec

[  7]   4.00-5.00   sec   946 KBytes  7.75 Mbits/sec

[  9]   4.00-5.00   sec  1.81 MBytes  15.2 Mbits/sec

[ 11]   4.00-5.00   sec   957 KBytes  7.84 Mbits/sec

[SUM]   4.00-5.00   sec  5.05 MBytes  42.3 Mbits/sec

- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  8.14 MBytes  13.7 Mbits/sec    7
          sender
[  5]   0.00-5.00   sec  7.34 MBytes  12.3 Mbits/sec
          receiver
[  7]   0.00-5.00   sec  5.47 MBytes  9.17 Mbits/sec    7
          sender
[  7]   0.00-5.00   sec  4.98 MBytes  8.35 Mbits/sec
          receiver
[  9]   0.00-5.00   sec  8.14 MBytes  13.7 Mbits/sec   14
          sender
[  9]   0.00-5.00   sec  7.33 MBytes  12.3 Mbits/sec
          receiver
[ 11]   0.00-5.00   sec  5.62 MBytes  9.43 Mbits/sec   13
          sender
[ 11]   0.00-5.00   sec  5.11 MBytes  8.58 Mbits/sec
          receiver
[SUM]   0.00-5.00   sec  27.4 MBytes  45.9 Mbits/sec   41
          sender
[SUM]   0.00-5.00   sec  24.8 MBytes  41.5 Mbits/sec
          receiver

iperf Done.
root@rk322x-box:~#




root@rk322x-box:~# iperf3 -c 192.168.178.193 -i 1 -t 5 -P 4
Connecting to host 192.168.178.193, port 5201
[  5] local 192.168.178.192 port 52168 connected to 192.168
178.193 port 5201
[  7] local 192.168.178.192 port 52170 connected to 192.168
178.193 port 5201
[  9] local 192.168.178.192 port 52172 connected to 192.168
178.193 port 5201
[ 11] local 192.168.178.192 port 52174 connected to 192.168
178.193 port 5201
[ ID] Interval           Transfer     Bitrate         Retr
Cwnd
[  5]   0.00-1.00   sec  1.06 MBytes  8.85 Mbits/sec    1
42.4 KBytes
[  7]   0.00-1.00   sec   494 KBytes  4.04 Mbits/sec    0
28.3 KBytes
[  9]   0.00-1.00   sec  1.53 MBytes  12.8 Mbits/sec    0
60.8 KBytes
[ 11]   0.00-1.00   sec   568 KBytes  4.66 Mbits/sec    0
31.1 KBytes
[SUM]   0.00-1.00   sec  3.62 MBytes  30.4 Mbits/sec    1

- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   1.00-2.00   sec  1.00 MBytes  8.40 Mbits/sec    0
42.4 KBytes
[  7]   1.00-2.00   sec   587 KBytes  4.81 Mbits/sec    0
28.3 KBytes
[  9]   1.00-2.00   sec  1.38 MBytes  11.5 Mbits/sec    1
60.8 KBytes
[ 11]   1.00-2.00   sec   358 KBytes  2.93 Mbits/sec    0
31.1 KBytes
[SUM]   1.00-2.00   sec  3.30 MBytes  27.7 Mbits/sec    1

- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   2.00-3.00   sec   959 KBytes  7.85 Mbits/sec    0
42.4 KBytes
[  7]   2.00-3.00   sec   419 KBytes  3.43 Mbits/sec    0
28.3 KBytes
[  9]   2.00-3.00   sec  1.26 MBytes  10.6 Mbits/sec    0
60.8 KBytes
[ 11]   2.00-3.00   sec   522 KBytes  4.27 Mbits/sec    0
31.1 KBytes
[SUM]   2.00-3.00   sec  3.12 MBytes  26.2 Mbits/sec    0

192.168.178.192 is the Rk3229 device and 192.168.178.193 my Gigabit Iperf3 server. 

 

As I mentioned with Ethernet it's around 90-95 Mbit/s up and down. 

 

root@rk322x-box:~# iperf3 -c 192.168.178.193 -i 1 -t 5 -P 1
Connecting to host 192.168.178.193, port 5201
[  5] local 192.168.178.192 port 52178 connected to 192.168
178.193 port 5201
[ ID] Interval           Transfer     Bitrate         Retr
Cwnd
[  5]   0.00-1.00   sec  2.53 MBytes  21.2 Mbits/sec    1
32.5 KBytes
[  5]   1.00-2.00   sec  2.29 MBytes  19.2 Mbits/sec    0
32.5 KBytes
[  5]   2.00-3.00   sec  2.30 MBytes  19.3 Mbits/sec    0
32.5 KBytes
[  5]   3.00-4.00   sec  2.23 MBytes  18.7 Mbits/sec    0
32.5 KBytes
[  5]   4.00-5.00   sec  2.48 MBytes  20.8 Mbits/sec    0
32.5 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  11.8 MBytes  19.8 Mbits/sec    1
          sender
[  5]   0.00-5.00   sec  11.8 MBytes  19.8 Mbits/sec
          receiver

iperf Done.
root@rk322x-box:~# iperf3 -c 192.168.178.193 -i 1 -t 5 -P 1
-R
Connecting to host 192.168.178.193, port 5201
Reverse mode, remote host 192.168.178.193 is sending
[  5] local 192.168.178.192 port 52182 connected to 192.168
178.193 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  3.66 MBytes  30.7 Mbits/sec

[  5]   1.00-2.00   sec  3.80 MBytes  31.8 Mbits/sec

[  5]   2.00-3.00   sec  5.03 MBytes  42.2 Mbits/sec

[  5]   3.00-4.00   sec  5.00 MBytes  41.9 Mbits/sec

[  5]   4.00-5.00   sec  5.10 MBytes  42.8 Mbits/sec

- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  24.5 MBytes  41.0 Mbits/sec   40
          sender
[  5]   0.00-5.00   sec  22.6 MBytes  37.9 Mbits/sec
          receiver

iperf Done.
root@rk322x-box:~#










 

Link to post
Share on other sites
4 hours ago, Alex83 said:

Unfortunately the sound is lagging and crackling if I try to play radio from a web page or YouTube. - So I still don't see a useful browser desktop scenario with the device... 

The chip is not really powerful enough for a satisfactory desktop experience. I think some optimizations here and there can still squeeze a bit of performance to make it decent enough.

Link to post
Share on other sites

@jockI would love if we can use it as a jukebox or something similar. I mean it should already work with spotify premium or something. I think there are already some scripts and software for unix environments like debian, but as I said we need to priorise the sound that this is not lagging at least. - With my S912 (CSA93, 3GB RAM, 32GB ROM, 1GbE unfortunately with AP6212 non working wifi at least for me atm) i can also try to play HD-Videos. They are also laggy, but the sound is working. - I just can't tell you if it's just the HDMI-sound or also the 3,5mm jack and SPDIF-interface....

 

@fabiobassa:

 

Here are my wifi-wireguard performance-messurement:

root@rk322x-box:/etc/wireguard# iperf3 -c 10.66.66.2 -t 5 -i 1 -P4
Connecting to host 10.66.66.2, port 5201
[  5] local 10.66.66.1 port 55028 connected to 10.66.66.2 port 5201
[  7] local 10.66.66.1 port 55030 connected to 10.66.66.2 port 5201
[  9] local 10.66.66.1 port 55032 connected to 10.66.66.2 port 5201
[ 11] local 10.66.66.1 port 55034 connected to 10.66.66.2 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  1.16 MBytes  9.71 Mbits/sec    1   64.1 KBytes       
[  7]   0.00-1.00   sec  1.25 MBytes  10.5 Mbits/sec    0   98.9 KBytes       
[  9]   0.00-1.00   sec  1.23 MBytes  10.3 Mbits/sec    1   64.1 KBytes       
[ 11]   0.00-1.00   sec  1.07 MBytes  8.94 Mbits/sec    1   74.8 KBytes       
[SUM]   0.00-1.00   sec  4.70 MBytes  39.4 Mbits/sec    3             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   1.00-2.00   sec   879 KBytes  7.20 Mbits/sec    0   80.2 KBytes       
[  7]   1.00-2.00   sec   942 KBytes  7.71 Mbits/sec    1   85.5 KBytes       
[  9]   1.00-2.00   sec   753 KBytes  6.17 Mbits/sec    0   80.2 KBytes       
[ 11]   1.00-2.00   sec  1005 KBytes  8.23 Mbits/sec    1   81.5 KBytes       
[SUM]   1.00-2.00   sec  3.50 MBytes  29.3 Mbits/sec    2             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   2.00-3.00   sec  1005 KBytes  8.23 Mbits/sec    1   65.5 KBytes       
[  7]   2.00-3.00   sec  1005 KBytes  8.23 Mbits/sec    1   69.5 KBytes       
[  9]   2.00-3.00   sec   954 KBytes  7.81 Mbits/sec    2   64.1 KBytes       
[ 11]   2.00-3.00   sec   879 KBytes  7.20 Mbits/sec    1   65.5 KBytes       
[SUM]   2.00-3.00   sec  3.75 MBytes  31.5 Mbits/sec    5             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   3.00-4.00   sec   879 KBytes  7.20 Mbits/sec    0   74.8 KBytes       
[  7]   3.00-4.00   sec  1.04 MBytes  8.74 Mbits/sec    1   54.8 KBytes       
[  9]   3.00-4.00   sec   879 KBytes  7.20 Mbits/sec    0   73.5 KBytes       
[ 11]   3.00-4.00   sec   879 KBytes  7.20 Mbits/sec    0   74.8 KBytes       
[SUM]   3.00-4.00   sec  3.62 MBytes  30.3 Mbits/sec    1             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   4.00-5.00   sec   879 KBytes  7.20 Mbits/sec    1   58.8 KBytes       
[  7]   4.00-5.00   sec   628 KBytes  5.14 Mbits/sec    0   69.5 KBytes       
[  9]   4.00-5.00   sec   942 KBytes  7.72 Mbits/sec    1   58.8 KBytes       
[ 11]   4.00-5.00   sec  1005 KBytes  8.23 Mbits/sec    0   84.2 KBytes       
[SUM]   4.00-5.00   sec  3.37 MBytes  28.3 Mbits/sec    2             
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  4.71 MBytes  7.91 Mbits/sec    3             sender
[  5]   0.00-5.00   sec  4.58 MBytes  7.69 Mbits/sec                  receiver
[  7]   0.00-5.00   sec  4.81 MBytes  8.07 Mbits/sec    3             sender
[  7]   0.00-5.00   sec  4.64 MBytes  7.79 Mbits/sec                  receiver
[  9]   0.00-5.00   sec  4.67 MBytes  7.84 Mbits/sec    4             sender
[  9]   0.00-5.00   sec  4.48 MBytes  7.52 Mbits/sec                  receiver
[ 11]   0.00-5.00   sec  4.74 MBytes  7.96 Mbits/sec    3             sender
[ 11]   0.00-5.00   sec  4.56 MBytes  7.65 Mbits/sec                  receiver
[SUM]   0.00-5.00   sec  18.9 MBytes  31.8 Mbits/sec   13             sender
[SUM]   0.00-5.00   sec  18.3 MBytes  30.7 Mbits/sec                  receiver

iperf Done.

root@rk322x-box:/etc/wireguard# iperf3 -c 10.66.66.2 -t 5 -i 1 -P4 -R
Connecting to host 10.66.66.2, port 5201
Reverse mode, remote host 10.66.66.2 is sending
[  5] local 10.66.66.1 port 55038 connected to 10.66.66.2 port 5201
[  7] local 10.66.66.1 port 55040 connected to 10.66.66.2 port 5201
[  9] local 10.66.66.1 port 55042 connected to 10.66.66.2 port 5201
[ 11] local 10.66.66.1 port 55044 connected to 10.66.66.2 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  1.62 MBytes  13.6 Mbits/sec                  
[  7]   0.00-1.00   sec  1.05 MBytes  8.78 Mbits/sec                  
[  9]   0.00-1.00   sec   920 KBytes  7.54 Mbits/sec                  
[ 11]   0.00-1.00   sec  1.08 MBytes  9.02 Mbits/sec                  
[SUM]   0.00-1.00   sec  4.64 MBytes  39.0 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   1.00-2.00   sec  1.32 MBytes  11.0 Mbits/sec                  
[  7]   1.00-2.00   sec   990 KBytes  8.11 Mbits/sec                  
[  9]   1.00-2.00   sec   779 KBytes  6.38 Mbits/sec                  
[ 11]   1.00-2.00   sec   918 KBytes  7.52 Mbits/sec                  
[SUM]   1.00-2.00   sec  3.94 MBytes  33.0 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   2.00-3.00   sec  1.64 MBytes  13.7 Mbits/sec                  
[  7]   2.00-3.00   sec  1.37 MBytes  11.5 Mbits/sec                  
[  9]   2.00-3.00   sec   848 KBytes  6.95 Mbits/sec                  
[ 11]   2.00-3.00   sec  1.08 MBytes  9.07 Mbits/sec                  
[SUM]   2.00-3.00   sec  4.92 MBytes  41.3 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   3.00-4.00   sec  1.12 MBytes  9.43 Mbits/sec                  
[  7]   3.00-4.00   sec  1.75 MBytes  14.7 Mbits/sec                  
[  9]   3.00-4.00   sec   840 KBytes  6.88 Mbits/sec                  
[ 11]   3.00-4.00   sec   776 KBytes  6.36 Mbits/sec                  
[SUM]   3.00-4.00   sec  4.46 MBytes  37.4 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   4.00-5.00   sec  1017 KBytes  8.33 Mbits/sec                  
[  7]   4.00-5.00   sec  1.92 MBytes  16.1 Mbits/sec                  
[  9]   4.00-5.00   sec   842 KBytes  6.89 Mbits/sec                  
[ 11]   4.00-5.00   sec   685 KBytes  5.61 Mbits/sec                  
[SUM]   4.00-5.00   sec  4.40 MBytes  36.9 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  7.43 MBytes  12.5 Mbits/sec   31             sender
[  5]   0.00-5.00   sec  6.70 MBytes  11.2 Mbits/sec                  receiver
[  7]   0.00-5.00   sec  7.78 MBytes  13.1 Mbits/sec   24             sender
[  7]   0.00-5.00   sec  7.05 MBytes  11.8 Mbits/sec                  receiver
[  9]   0.00-5.00   sec  4.48 MBytes  7.51 Mbits/sec   23             sender
[  9]   0.00-5.00   sec  4.13 MBytes  6.93 Mbits/sec                  receiver
[ 11]   0.00-5.00   sec  4.97 MBytes  8.34 Mbits/sec   23             sender
[ 11]   0.00-5.00   sec  4.48 MBytes  7.52 Mbits/sec                  receiver
[SUM]   0.00-5.00   sec  24.7 MBytes  41.4 Mbits/sec  101             sender
[SUM]   0.00-5.00   sec  22.4 MBytes  37.5 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:/etc/wireguard# 

So as you see there is no diffrence to the messurement without wireguard and what I expected. - I mean the major thing is that we get something like Hardware-NAT like (SFE or NAT-Offloading in OpenWRT) to work with these devices, but even without that hardware-nat I expect from a machine with 4x1200 MHz something like 200 Mbit/s - 300 Mbit/s at least for wireguard! 

 

With the old TP-Link WR841 I got already around 40 Mbit/s via Ethernet from LAN<->WAN with a very slow (but very little power consumpting) 400 MHz Single-Core Atheros-Chipset. I will also do a messurement via cable if you want, but I don't expect less than the maximum speed of the ethernet port.

 

If you have slow speed I actually expect your ISP slows it down. - Maybe change the ListenPort of your VPN. - I test everything just via INTRANET to minimize the outside trouble. I just use the wireguard interface IP's for the messurement and forces the traffic to get through it.

 

Update:

 

Here are the results from ethernetport-wireguard messurement:

 

root@rk322x-box:~# iperf3 -c 10.66.66.1 -i 1 -t 5 -P 1 
Connecting to host 10.66.66.1, port 5201
[  5] local 10.66.66.1 port 45120 connected to 10.66.66.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  96.2 MBytes   805 Mbits/sec    0   1.25 MBytes       
[  5]   1.00-2.01   sec  87.5 MBytes   730 Mbits/sec    0   1.25 MBytes       
[  5]   2.01-3.00   sec  95.0 MBytes   801 Mbits/sec    0   1.25 MBytes       
[  5]   3.00-4.01   sec  87.5 MBytes   731 Mbits/sec    0   1.25 MBytes       
[  5]   4.01-5.00   sec  96.2 MBytes   812 Mbits/sec    0   1.25 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec   462 MBytes   776 Mbits/sec    0             sender
[  5]   0.00-5.00   sec   462 MBytes   776 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:~# iperf3 -c 10.66.66.1 -i 1 -t 5 -P 1 -R
Connecting to host 10.66.66.1, port 5201
Reverse mode, remote host 10.66.66.1 is sending
[  5] local 10.66.66.1 port 45124 connected to 10.66.66.1 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  90.0 MBytes   755 Mbits/sec                  
[  5]   1.00-2.00   sec  97.3 MBytes   816 Mbits/sec                  
[  5]   2.00-3.00   sec  89.2 MBytes   748 Mbits/sec                  
[  5]   3.00-4.00   sec  98.5 MBytes   826 Mbits/sec                  
[  5]   4.00-5.00   sec  91.0 MBytes   763 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec   466 MBytes   782 Mbits/sec    0             sender
[  5]   0.00-5.00   sec   466 MBytes   782 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:~#

This is the result of a messurement of local-address through LAN. That means it's a loop and tests the maximum CPU-performance and as I expected the device is able to push and pull more than 500 Mbit/s. It's pretty much the same like my BananaPI with 1GbE interface is able to use even when the CPU there is slower as far as I remeber...

 

Ok, but what's interesting for you and me:

 

If I make some messurements to other machines in LAN the performance for the RX direction is a bit to weak:

 

root@rk322x-box:~# iperf3 -c 10.66.66.2 -i 1 -t 5 -P 1 -R
Connecting to host 10.66.66.2, port 5201
Reverse mode, remote host 10.66.66.2 is sending
[  5] local 10.66.66.1 port 55234 connected to 10.66.66.2 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  4.51 MBytes  37.8 Mbits/sec                  
[  5]   1.00-2.00   sec  4.41 MBytes  37.0 Mbits/sec                  
[  5]   2.00-3.00   sec  4.83 MBytes  40.5 Mbits/sec                  
[  5]   3.00-4.00   sec  5.06 MBytes  42.5 Mbits/sec                  
[  5]   4.00-5.00   sec  4.62 MBytes  38.8 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  27.0 MBytes  45.3 Mbits/sec    0             sender
[  5]   0.00-5.00   sec  23.4 MBytes  39.3 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:~# iperf3 -c 10.66.66.2 -i 1 -t 5 -P 1 
Connecting to host 10.66.66.2, port 5201
[  5] local 10.66.66.1 port 55238 connected to 10.66.66.2 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  11.1 MBytes  92.9 Mbits/sec    2    132 KBytes       
[  5]   1.00-2.00   sec  10.5 MBytes  87.9 Mbits/sec    1    152 KBytes       
[  5]   2.00-3.00   sec  10.9 MBytes  91.0 Mbits/sec    2    126 KBytes       
[  5]   3.00-4.00   sec  10.5 MBytes  88.0 Mbits/sec    1    142 KBytes       
[  5]   4.00-5.00   sec  10.9 MBytes  91.1 Mbits/sec    1    154 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  53.8 MBytes  90.2 Mbits/sec    7             sender
[  5]   0.00-5.00   sec  53.3 MBytes  89.4 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:~#

it's just around the same like with wifi around 40 Mbit/s. BUT I noticed it's the same performance if I just use the real ip addresses without the wireguard-tunnel. - So the break is the Ethernet/IP Interface in general.

 

root@rk322x-box:~# iperf3 -c 192.168.178.2 -i 1 -t 5 -P 1 -R
Connecting to host 192.168.178.2, port 5201
Reverse mode, remote host 192.168.178.2 is sending
[  5] local 192.168.178.174 port 48678 connected to 192.168.178.2 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  4.43 MBytes  37.2 Mbits/sec                  
[  5]   1.00-2.00   sec  5.67 MBytes  47.6 Mbits/sec                  
[  5]   2.00-3.00   sec  5.02 MBytes  42.1 Mbits/sec                  
[  5]   3.00-4.00   sec  5.21 MBytes  43.7 Mbits/sec                  
[  5]   4.00-5.00   sec  4.97 MBytes  41.7 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  25.7 MBytes  43.1 Mbits/sec    0             sender
[  5]   0.00-5.00   sec  25.3 MBytes  42.4 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:~# 

BUT if I use my Banana-PI (192.168.178.193) instead of my PC (192.168.178.2):

 

root@rk322x-box:~# iperf3 -c 192.168.178.193 -i 1 -t 5 -P 1 -R
Connecting to host 192.168.178.193, port 5201
Reverse mode, remote host 192.168.178.193 is sending
[  5] local 192.168.178.174 port 38722 connected to 192.168.178.193 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  11.2 MBytes  93.7 Mbits/sec                  
[  5]   1.00-2.00   sec  11.2 MBytes  94.1 Mbits/sec                  
[  5]   2.00-3.00   sec  11.2 MBytes  93.7 Mbits/sec                  
[  5]   3.00-4.00   sec  11.2 MBytes  94.2 Mbits/sec                  
[  5]   4.00-5.00   sec  11.1 MBytes  93.6 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  56.0 MBytes  94.0 Mbits/sec  442             sender
[  5]   0.00-5.00   sec  55.9 MBytes  93.8 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:~# iperf3 -c 192.168.178.193 -i 1 -t 5 -P 1 
Connecting to host 192.168.178.193, port 5201
[  5] local 192.168.178.174 port 38726 connected to 192.168.178.193 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  11.6 MBytes  97.0 Mbits/sec    0    123 KBytes       
[  5]   1.00-2.00   sec  11.2 MBytes  94.4 Mbits/sec    0    130 KBytes       
[  5]   2.00-3.00   sec  11.2 MBytes  93.8 Mbits/sec    0    130 KBytes       
[  5]   3.00-4.00   sec  11.2 MBytes  93.8 Mbits/sec    0    130 KBytes       
[  5]   4.00-5.00   sec  11.2 MBytes  94.3 Mbits/sec    0    130 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  56.4 MBytes  94.7 Mbits/sec    0             sender
[  5]   0.00-5.00   sec  56.1 MBytes  94.1 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:~# 

So I guess either it's some driver problem in Armbian or switch in my network and maybe that's the same issue for you if you have a very weak wireguard performance. - In my opinion for a wireguard server/client is this device already very powerfull!

 

Btw... just if you are confused with the local-loop-test. Here is my local-loop of my PC:

 

ubuntu-PC:/etc/wireguard$ iperf3 -c 10.66.66.2 -t 5 -i 1 -P 1 
Connecting to host 10.66.66.2, port 5201
[  4] local 10.66.66.2 port 41980 connected to 10.66.66.2 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  1.79 GBytes  15.4 Gbits/sec    0   2.25 MBytes       
[  4]   1.00-2.00   sec  1.79 GBytes  15.4 Gbits/sec    0   2.69 MBytes       
[  4]   2.00-3.00   sec  1.98 GBytes  17.0 Gbits/sec    8   2.69 MBytes       
[  4]   3.00-4.00   sec  2.11 GBytes  18.1 Gbits/sec    0   2.69 MBytes       
[  4]   4.00-5.00   sec  1.95 GBytes  16.7 Gbits/sec    0   2.94 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-5.00   sec  9.61 GBytes  16.5 Gbits/sec    8             sender
[  4]   0.00-5.00   sec  9.60 GBytes  16.5 Gbits/sec                  receiver

iperf Done.
ubuntu-PC:/etc/wireguard$ iperf3 -c 10.66.66.2 -t 5 -i 1 -P 1 -R
Connecting to host 10.66.66.2, port 5201
Reverse mode, remote host 10.66.66.2 is sending
[  4] local 10.66.66.2 port 41986 connected to 10.66.66.2 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  1.93 GBytes  16.6 Gbits/sec                  
[  4]   1.00-2.00   sec  2.24 GBytes  19.2 Gbits/sec                  
[  4]   2.00-3.00   sec  2.17 GBytes  18.6 Gbits/sec                  
[  4]   3.00-4.00   sec  1.95 GBytes  16.7 Gbits/sec                  
[  4]   4.00-5.00   sec  2.08 GBytes  17.8 Gbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-5.00   sec  10.4 GBytes  17.8 Gbits/sec    9             sender
[  4]   0.00-5.00   sec  10.4 GBytes  17.8 Gbits/sec                  receiver

iperf Done.

So as you see a PC is still a bit more powerfull, but I think these devices are powerfull enough for that purpose.

 

Tbh. I thought maybe about a wireless-network-speaker-device-purpose for these boxes. - I think it could also be very interesting to use it as a network-sound-output device to diffrent speakers in your smart-home.

 

 

Link to post
Share on other sites

Thank you so much @Alex83 yes I had even a vpn on a broken WiFi chip ubiquity nano loco CPE with openwrt and somewhere I read that wireguard could perform better.

Anyway the performance was ideal to do in real environment ( two different remote ips and not in perfect environment such as intranet)  but anyway your results are awesome. Ty

 

 

Link to post
Share on other sites
Posted (edited)

@fabiobassa: Especially for you I did also setup a wireguard-tunnel to my bannana pi (also running armbian) with 1 GbE interface.

 

Here is the result without the tunnel:

 

root@bananapi:/etc/wireguard# iperf3 -c 192.168.178.174 -i 1 -t 5 -P 1 -R
Connecting to host 192.168.178.174, port 5201
Reverse mode, remote host 192.168.178.174 is sending
[  4] local 192.168.178.193 port 35768 connected to 192.168.178.174 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  11.2 MBytes  94.1 Mbits/sec                  
[  4]   1.00-2.00   sec  11.2 MBytes  94.0 Mbits/sec                  
[  4]   2.00-3.00   sec  11.2 MBytes  94.1 Mbits/sec                  
[  4]   3.00-4.00   sec  11.2 MBytes  93.9 Mbits/sec                  
[  4]   4.00-5.00   sec  11.2 MBytes  94.1 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-5.00   sec  56.4 MBytes  94.7 Mbits/sec    0             sender
[  4]   0.00-5.00   sec  56.2 MBytes  94.3 Mbits/sec                  receiver

iperf Done.
root@bananapi:/etc/wireguard# iperf3 -c 192.168.178.174 -i 1 -t 5 -P 1 
Connecting to host 192.168.178.174, port 5201
[  4] local 192.168.178.193 port 35772 connected to 192.168.178.174 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  11.3 MBytes  95.0 Mbits/sec   96   43.8 KBytes       
[  4]   1.00-2.00   sec  11.2 MBytes  94.0 Mbits/sec   96   31.1 KBytes       
[  4]   2.00-3.00   sec  11.2 MBytes  93.8 Mbits/sec  102   25.5 KBytes       
[  4]   3.00-4.00   sec  11.3 MBytes  94.4 Mbits/sec   77   33.9 KBytes       
[  4]   4.00-5.00   sec  11.0 MBytes  92.3 Mbits/sec  102   31.1 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-5.00   sec  56.0 MBytes  93.9 Mbits/sec  473             sender
[  4]   0.00-5.00   sec  55.9 MBytes  93.7 Mbits/sec                  receiver

iperf Done.
root@bananapi:/etc/wireguard#

As you can see there is Tx/Rx pretty much the same with around 94 Mbit/s (so the problem with my PC seems to be some issue with diffrent chipset compatibility or maybe frame-sizes MTU or similar problems... I hope to find the reson, but think it's this time the RK322x hardware. To my BananaPI there is not such a big diffrence between Rx/Tx). 

 

Anyway... I think these are the results you wanted to see. It's a wired messurement of the above setup messured to a wireguard tunnel:

 

root@bananapi:/etc/wireguard# iperf3 -c 10.66.66.1 -i 1 -t 5 -P 1 
Connecting to host 10.66.66.1, port 5201
[  4] local 10.66.66.2 port 57468 connected to 10.66.66.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  9.00 MBytes  75.5 Mbits/sec   26   24.0 KBytes       
[  4]   1.00-2.00   sec  9.35 MBytes  78.4 Mbits/sec   24   37.4 KBytes       
[  4]   2.00-3.00   sec  9.36 MBytes  78.5 Mbits/sec   20   44.1 KBytes       
[  4]   3.00-4.00   sec  9.61 MBytes  80.6 Mbits/sec   18   44.1 KBytes       
[  4]   4.00-5.00   sec  9.62 MBytes  80.6 Mbits/sec   21   42.8 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-5.00   sec  46.9 MBytes  78.7 Mbits/sec  109             sender
[  4]   0.00-5.00   sec  46.8 MBytes  78.4 Mbits/sec                  receiver

iperf Done.
root@bananapi:/etc/wireguard# iperf3 -c 10.66.66.1 -i 1 -t 5 -P 1 -R
Connecting to host 10.66.66.1, port 5201
Reverse mode, remote host 10.66.66.1 is sending
[  4] local 10.66.66.2 port 57472 connected to 10.66.66.1 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  9.63 MBytes  80.6 Mbits/sec                  
[  4]   1.00-2.00   sec  9.81 MBytes  82.3 Mbits/sec                  
[  4]   2.00-3.00   sec  9.83 MBytes  82.3 Mbits/sec                  
[  4]   3.00-4.00   sec  9.80 MBytes  82.3 Mbits/sec                  
[  4]   4.00-5.00   sec  9.76 MBytes  81.9 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-5.00   sec  49.7 MBytes  83.4 Mbits/sec    5             sender
[  4]   0.00-5.00   sec  49.0 MBytes  82.1 Mbits/sec                  receiver

iperf Done.

You can see the device should at least reach the 80 Mbit/s with Tx/Rx.

 

With the LOOP-Messurement... to be honest if I think longer about it, maybe the messurement isn't really routed through the wireguard-tunnel and it's just a maximum routing power of the device. If I use the diffrent IP-addresses outside the wireguard-tunnel like localhost or 192.168.178.x there is the same result. - So I guess it isn't really routed through a wireguard-tunnel-loop. If you shutdown the desktop environment the loop-test went up to around 830 Mbit/s Tx/Rx with this device. - Maybe we have some experts here to discuss it in a new topic.

 

But anyway, I know this device is strong enough for most routing and vpn-scenarios if we adjust and optimize the drivers of eth0 and wlan0/p2p0.

 

@jock: there is also an inteface called p2p0. If I use this instead of wlan0 the performance for my network is a bit better around 10%-20% better performance. - I don't know if that's already something like hardware-nat or similar, but wanna mention that. Maybe it's interesting for you to know. So Tx/Rx performance increse to around 45 Mbit/s to 50 Mbit/s via Wifi.

 

Here is also the messurement from the rk322x-side:

 

root@rk322x-box:/home/alex# iperf3 -c 10.66.66.1 -i 1 -t 5 -P 1 -R
Connecting to host 10.66.66.1, port 5201
Reverse mode, remote host 10.66.66.1 is sending
[  5] local 10.66.66.1 port 45170 connected to 10.66.66.1 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  99.8 MBytes   837 Mbits/sec                  
[  5]   1.00-2.00   sec  98.6 MBytes   828 Mbits/sec                  
[  5]   2.00-3.00   sec  98.6 MBytes   827 Mbits/sec                  
[  5]   3.00-4.00   sec  98.2 MBytes   825 Mbits/sec                  
[  5]   4.00-5.00   sec  98.2 MBytes   823 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.01   sec   494 MBytes   827 Mbits/sec    0             sender
[  5]   0.00-5.00   sec   494 MBytes   828 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:/home/alex# iperf3 -c 10.66.66.1 -i 1 -t 5 -P 1 
Connecting to host 10.66.66.1, port 5201
[  5] local 10.66.66.1 port 45174 connected to 10.66.66.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  97.5 MBytes   815 Mbits/sec    0    639 KBytes       
[  5]   1.00-2.00   sec   100 MBytes   839 Mbits/sec    0   1.12 MBytes       
[  5]   2.00-3.01   sec   100 MBytes   837 Mbits/sec    0   1.12 MBytes       
[  5]   3.01-4.01   sec   100 MBytes   834 Mbits/sec    0   1.12 MBytes       
[  5]   4.01-5.01   sec  98.8 MBytes   835 Mbits/sec    0   1.12 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.01   sec   496 MBytes   832 Mbits/sec    0             sender
[  5]   0.00-5.01   sec   496 MBytes   831 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:/home/alex# iperf3 -c 10.66.66.2 -i 1 -t 5 -P 1 
Connecting to host 10.66.66.2, port 5201
[  5] local 10.66.66.1 port 55284 connected to 10.66.66.2 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.01   sec  10.4 MBytes  87.0 Mbits/sec    3   94.9 KBytes       
[  5]   1.01-2.00   sec  10.6 MBytes  89.3 Mbits/sec    0    155 KBytes       
[  5]   2.00-3.00   sec  9.63 MBytes  80.9 Mbits/sec    1    138 KBytes       
[  5]   3.00-4.00   sec  9.63 MBytes  80.8 Mbits/sec    1    127 KBytes       
[  5]   4.00-5.00   sec  9.75 MBytes  81.8 Mbits/sec    1    120 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  50.0 MBytes  83.9 Mbits/sec    6             sender
[  5]   0.00-5.00   sec  49.5 MBytes  83.1 Mbits/sec                  receiver

iperf Done.
root@rk322x-box:/home/alex# iperf3 -c 10.66.66.2 -i 1 -t 5 -P 1 -R
Connecting to host 10.66.66.2, port 5201
Reverse mode, remote host 10.66.66.2 is sending
[  5] local 10.66.66.1 port 55288 connected to 10.66.66.2 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  10.5 MBytes  88.3 Mbits/sec                  
[  5]   1.00-2.00   sec  9.03 MBytes  75.8 Mbits/sec                  
[  5]   2.00-3.00   sec  9.25 MBytes  77.6 Mbits/sec                  
[  5]   3.00-4.00   sec  9.38 MBytes  78.7 Mbits/sec                  
[  5]   4.00-5.00   sec  9.57 MBytes  80.3 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  47.9 MBytes  80.4 Mbits/sec  123             sender
[  5]   0.00-5.00   sec  47.8 MBytes  80.2 Mbits/sec                  receiver

iperf Done.

Update:

 

Last update for today... I noticed "sudo reboot" or reboot in general doesn't work with my device. It just shuts down, but there is no reboot... As I said use the profile for "Scishion Mars" and it works quite good with ssv6051 wifi support.

Edited by Alex83
Forgot the rk322x-side-messurements
Link to post
Share on other sites

Yes, the missing reboot is an hardware issue, but it is related to NANDs.

The board does not shut down, it rebootes correctly but the NAND are not correctly detected anymore after a reboot, so the rockchip miniloader is stuck in an endless loop.

 

This is clearly logged on the serial, if you got any attached.

I'm looking into it, but at the moment I can't say if it this could be solved.

Link to post
Share on other sites
19 hours ago, Alex83 said:

I would love if we can use it as a jukebox or something similar. I mean it should already work with spotify premium or something. I think there are already some scripts and software for unix environments like debian, but as I said we need to priorise the sound that this is not lagging at least. - With my S912 (CSA93, 3GB RAM, 32GB ROM, 1GbE unfortunately with AP6212 non working wifi at least for me atm) i can also try to play HD-Videos. They are also laggy, but the sound is working. - I just can't tell you if it's just the HDMI-sound or also the 3,5mm jack and SPDIF-interface....

 

I did some tests yesterday using audacious and had no issues with lagging or stuttering, although pulseaudio is taking an insane amount of cpu processing power (around 20% of one cpu); using ALSA directly, decoding and playing a vorbis file just requires 4% of one core. Youtube instead is out of reach, no way to watch a video even in low quality (480p) without having audio and video issues.

I'd like to try armsoc driver sooner or later to see if there is any difference from current modesetting driver, but the SoC is too limited to do video decoding without using the hardware acceleration to ease the work of the ARM cores.

Link to post
Share on other sites
19 hours ago, jock said:

Youtube instead is out of reach, no way to watch a video even in low quality (480p) without having audio and video issues.

we hope that we will have more luck with the opensource gpu drivers in the near future ... everything will have to go through a mesa-opengl acceleration, including video ... va-api or samething

 

Link to post
Share on other sites
48 minutes ago, nokirunner said:

we hope that we will have more luck with the opensource gpu drivers in the near future ... everything will have to go through a mesa-opengl acceleration, including video ... va-api or samething

 

Unfortunately that's not so easy. GPU and VPU are separate things placed in the same silicon. The former does the rendering on screen, but the latter has to do the video decoding.

 

Hardware video acceleration come with some challenges by itself, plus just rendering what comes out from the video decoder to the screen has also more challenges and can't be done in a "unified" fashion, but each vendor has its own way to do that. Consider also that a decoded stream 1080p25 produces ~150Mb/s of data moving around; those 150Mb/s of data should pass from the VPU to the GPU directly, but that's not easy because of undocumented or unknown specifications.

 

Even if you get that thing done (consider Kodi on libreelec, for example), putting all of this in a browser is another great challenge, because it's not just a video that can be rendered by the hardware in a portion of the screen, but it is a video which has to live inside the HTML elements of the browser, so the whole amount of data must be also processed by the main CPU.

 

This required tons of optimization specific to vendor which works in very particular setups, uneasy to replicate in other ways.

 

Of course having opensource GPU and VPU drivers make the thing much much more easier, but still challenging.

Link to post
Share on other sites

Please don't give up guys! ;)

We all hope for big developments in the arm sector and especially with that RK and Amlogic devices. 

 

As I said maybe it's worth another Thread to collect ideas what to do with that hardware. As far as I understand, YouTube, Netflix or Disney+ Player won't unfortunately be the best scenarios to use this device in the near future... 

Link to post
Share on other sites

Hi, 

I finally managed to install "Armbian 20.05.0 - Ubuntu Focal Desktop - Legacy kernel 4.4.194" in eMMC (using info from first page) - my device is HK1mini (RK3229) 

It is working ok, but there is no option to reconfigure my model (rk322x-config) - there is only NAND version, by in my box there is an internal eMMC.

How can I help to create eMMC version of dtd config for HK1mini?

 

 

 

 

Link to post
Share on other sites
18 hours ago, kruzer said:

Hi, 

I finally managed to install "Armbian 20.05.0 - Ubuntu Focal Desktop - Legacy kernel 4.4.194" in eMMC (using info from first page) - my device is HK1mini (RK3229) 

It is working ok, but there is no option to reconfigure my model (rk322x-config) - there is only NAND version, by in my box there is an internal eMMC.

How can I help to create eMMC version of dtd config for HK1mini?

 

 

 

 

Just try other devices with on-board eMMC.

Most of the differences relates to eMMC/NAND and on-board leds configuration.

Link to post
Share on other sites

Media framework installer v0.1

 

Hello, I managed to package some goodies for rk322x boxes for OpenGL/OpenGL ES applications support and accelerated video decoding. This work is heavily inspired by @JMCC media script, but simpler and more limited. It should bring enough to squeeze something useful from these boxes. This is only for Ubuntu Focal Legacy 4.4.194 Kernel builds. Mainline kernel still require some work on the video acceleration front, but when done everything will be much smoother for all of us!

 

Currently it contains:

  • Armsoc driver
  • Libmali for Utgard Mali 400 (both X11 and GBM versions)
  • GL4ES OpenGL to OpenGL ES wrapper
  • RKMPP Media framework from Rockchip
  • FFmpeg compiled with RKMPP support
  • Kodi 18.6 Leia

 

It doesn't include (yet) gstreamer, although gstreamer rockchip plugin is easy to compile and package.

 

Instructions:

  • Download the package from here
  • Unpack the package in directory of your choice
  • Open a terminal, move to the directory and run ./install_media.sh - it will take less than 5 minutes to install everything
  • Reboot the machine
  • Done!

OpenGL/OpenGL ES:

OpenGL ES applications (like glmark2 benchmark) can run as-is.

OpenGL applications can be run via GL4ES wrapper from command line using:

glrun app_name

 

Kodi:

Due to some limitations of the proprietary Mali driver, to start Kodi you need to be in a virtual terminal and X11 must be closed. To do so:

  • Press CTRL-ALT-F1 to move to virtual terminal 1
  • Log in with your credentials
  • Execute systemctl stop lightdm to close X11
  • Run start-kodi
  • Execute systemctl start lightdm to bring back X11

 

mpv:

mpv does not require any particular treatment.

Can be used directly from X11 in fullscreen mode or from a virtual terminal without X11.

Install it if it is not already installed via usual apt command line.

Run it with these switches to enable full video acceleration:

mpv --hwdec=rkmpp -vo=gpu --gpu-api=opengl --gpu-context=drm --opengl-es=yes <video_file>

 

Link to post
Share on other sites
3 minutes ago, Ztrawberry said:

Hi @jock, seems the download link is broken, it only links back to this forum...

 

Woah, for some reason the link didn't paste. Fixed now! Thanks!

Link to post
Share on other sites

Bona sera! First of all thank you for all your excellent work! I have recently installed the Armbian desktop image on a "Q96 Home 4K" TV-box and it works fine, sound is fine and wifi works, only Bluethoot does not work without an external dongle. I'v installed the system on EMMC and that went without a hitch. A couple of questions: The specs for the box claims that it can run on 1500MHz but in armbian-config I'm only able to select 1.2 (I'v user generic 322x in the config). Also is there a driver for BT on its way?

Link to post
Share on other sites
3 hours ago, Reddwarf said:

Bona sera! First of all thank you for all your excellent work! I have recently installed the Armbian desktop image on a "Q96 Home 4K" TV-box and it works fine, sound is fine and wifi works, only Bluethoot does not work without an external dongle. I'v installed the system on EMMC and that went without a hitch. A couple of questions: The specs for the box claims that it can run on 1500MHz but in armbian-config I'm only able to select 1.2 (I'v user generic 322x in the config). Also is there a driver for BT on its way?

Bona sera to you too ;)

I'm very glad everything went smooth for your setup!

 

You can get 1.4 Ghz selecting running rk322x-config and selecting a board with rk3228b/rk3229 processor. There is a great confusion around the chip names and specifications, mostly due to rockchip not being clear and tv box manufacturers not being totally honest.

Long story short: most of the rk322x tv boxes are advertised as 1.5 Ghz, but in reality rk3229/rk3228b chips are safe up to 1.4 Ghz and rk3228a chips are safe up to 1.2 ghz. Board manufacturers are often mixing things and don't update the specs. It is very common to buy a tv box advertised as rk3229 and get a rk3228a inside it. Also running a rk3228a at 1.4 Ghz is a mild overclock that is often well tolerated, but it is outside the technical specs of the chip and at last you may get instabilities.

 

The generic 322x board in rk322x-config is the most compatible but also the least performant profile. Other profiles may enhance performance and features (enable eMMC DDR mode, fix the leds, bring 1.4 Ghz speed, ...) but may also incur in less stability, altough you should be safe if you select a board with the "eMMC" label, since your board has eMMC (lucky you!)

 

Bluetooth is a very fiddly beast, it is annoying because it requires different setups for different manufacturers. Unfortunately here I have no boards with bluetooth on board and I could not develop anything about this. You should find the way to enable it googling around, usually drivers are not required, but a firmware and an userland application are, but can be a very tedious experience.

I have a recipe for AP6330 chipsets that carry a broadcom bluetooth I can share, but have no experience with realtek ones.

Link to post
Share on other sites
21 hours ago, jock said:

Bona sera to you too ;)

I'm very glad everything went smooth for your setup!

 

You can get 1.4 Ghz selecting running rk322x-config and selecting a board with rk3228b/rk3229 processor. There is a great confusion around the chip names and specifications, mostly due to rockchip not being clear and tv box manufacturers not being totally honest.

Long story short: most of the rk322x tv boxes are advertised as 1.5 Ghz, but in reality rk3229/rk3228b chips are safe up to 1.4 Ghz and rk3228a chips are safe up to 1.2 ghz. Board manufacturers are often mixing things and don't update the specs. It is very common to buy a tv box advertised as rk3229 and get a rk3228a inside it. Also running a rk3228a at 1.4 Ghz is a mild overclock that is often well tolerated, but it is outside the technical specs of the chip and at last you may get instabilities.

 

The generic 322x board in rk322x-config is the most compatible but also the least performant profile. Other profiles may enhance performance and features (enable eMMC DDR mode, fix the leds, bring 1.4 Ghz speed, ...) but may also incur in less stability, altough you should be safe if you select a board with the "eMMC" label, since your board has eMMC (lucky you!)

 

Bluetooth is a very fiddly beast, it is annoying because it requires different setups for different manufacturers. Unfortunately here I have no boards with bluetooth on board and I could not develop anything about this. You should find the way to enable it googling around, usually drivers are not required, but a firmware and an userland application are, but can be a very tedious experience.

I have a recipe for AP6330 chipsets that carry a broadcom bluetooth I can share, but have no experience with realtek ones.

Thanks for your reply. I don't know what chipset is in the box for wifi/BT but it is not a big deal, I can live with an external dongle. The hexdump indicates thet the cpu is some kind of 3228 and not a genuine 3229 even thou the specks say it should be. I'll try configuring it as rk3228b/3229, still it runs surpringsly well. Another question, how duo I get MPV to run with the parameters you gave by default? (to get HW accelerated video that is)

Link to post
Share on other sites

Hey @jock and @fabiobassa!
First of all a lot of thanks for your hard work!

With a recent changes I've tried to use NAND for installation. Everything is fine except using dtb file for my board.
So after installing and booting into system (rebooting works well there btw) I'm changing dtb file using 'rk322x-config' script to V88 4k (which is my board), and after reboot it never comes up. HDMI gets some signal, but no boot is happening. This dtb file was working before using SD card, but not from NAND.
Unfortunately I don't have serial cable to check it further.
Do you have any ideas what can I try?


Thank you!

Link to post
Share on other sites
16 hours ago, Reddwarf said:

Thanks for your reply. I don't know what chipset is in the box for wifi/BT but it is not a big deal, I can live with an external dongle.

rk322x-config should be able to tell at least vendor ID and device ID of the wifi chip. Usually wifi and bluetooth are combined, so if you know the wifi chip you also get the companion bluetooth

 

16 hours ago, Reddwarf said:

Another question, how duo I get MPV to run with the parameters you gave by default?

You can take a look to this freshly thread made by me, but at the moment there is the huge problem that you lose control of the mpv if you double click on a video icon from X11 GUI: https://forum.armbian.com/topic/14247-mpv-does-not-respond-to-keyboard/

Although if used from command line it works pretty well.

 

5 hours ago, Subreptivus said:

and after reboot it never comes up.

Maybe this one: you need to unplug the power cord and replug it.

Unfortunately boards with NAND with system installed on internal flash have this problem on reboot and we have not found a workaround for this yet.

 

edit: I just read again your post, in case the warm reboot does not work yet, you can also try the rk3228b-box-mxq-pro-4k board from rk322x-config script. The board selection at the moment is sub-optimal since you can get the same PCB board but with different components which makes things really messy, but will probably change in the near future with something that better suits the situation.

 

edit: had the chance to try V88 4k device tree and actually it does shut down my box (which is a mxq pro 4k). I'm sorry about that, some of the device trees comes from libreelec patches and I could not guarantee they are really working because I don't have the real hardware. Definitely try the mxq-pro-4k device tree.

Link to post
Share on other sites

Update!

 

All images have been updated to latest Armbian 20.08 with latest updates.

Mainline kernel bumped to 5.6.16, chrony package is now fixed.

Multitool also has been updated.

 

Enjoy!

Link to post
Share on other sites

Dear jock,    

 

I just want to say "millions thanks for you",    your article really helps me alot. I am a very beginner in linux.

Because of the clear explanation in this article, I managed successfully to install linux into  my MXQ pro-4k tvbox (rk3228b).

Everything runs so smooth and good.  Wifi works fine also.  Excellence !  

Again, Thank you @jock. 

Keep it up !!!

Link to post
Share on other sites
  • jock changed the title to CSC Armbian for RK322X TV Boxes
  • Igor pinned this topic