CSC Armbian for RK322X TV Boxes


jock

Recommended Posts

@Maker39

That's something I'm experiencing too, I need to manually change the date in the future to let apt work reliably. I don't know if this is a bug or maybe it is because Focal has not been released yet... By the way Focal is still in CSC state in armbian, so it will probably be fixed when it will be officially released by Ubuntu folks.

 

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

I can summarize the subtotal.

My board T95N-RK3229_512X4-20170803_V1.5  (include SOC RK3229, RAM K4B2G0446D, Wi-fi SV6051P,  this TV-Box Iconbit XDS8) works with the image Armbian_20.05.0-trunk_Xt-mx4vr-v01_focal_legacy_4.4.194_desktop.img

But need:

1. unblock SSV6051 in /etc/modprobe.d/blacklist-xt-mx4vr-v01.conf

2. manually set date-time , and/or install ntp client for correct update packages

3. surely something else...............;)

 

Thanks @jock for the work and advice :thumbup:

Link to post
Share on other sites

thank you for feedback and summarize!! :thumbup:

 

and efuse says you really on a rk3229 and not a 3228 

Quote

hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem
00000000  52 4b 23 92

this 23 39 is 32 29 in reverse order

but 
 

Quote

cat /sys/class/devfreq/dmc/trans_stat
cat: /sys/class/devfreq/dmc/trans_stat: No such file or directory

 shows that not using frequency scaling

PLEASE would you attach the dtb you are using here


@jock
is the kernel compiled with dmc, yes ?

if so need to edit the dtb to enable the dmc into the right node 
 

Link to post
Share on other sites

I will try.

In principle, I was interested in the console distribution for the mini server, so the desktop was immediately turned off.

Until too little time has passed from the successful launch of Armbian, the installation of Domoticz and later something else ...

So a little later

I will try to make a review. If before other pitfalls are not found.

 

 

Link to post
Share on other sites

@Maker39

well I have plenty of those running on different ip's and for different purposes:

one example is domotic, I control the temp in my home with prelay 

on other i have my asterisk pbx voip server running with actually extension even over the world

again samba and printer share, hole dns resolver ( ad blocking)
and one of my preferite, my vpn server

if you want use this board as headless,  well it is perfect ( really even desktop is running smoothly)

 

Quote

If before other pitfalls are not found.

 

Of course this could occur , too many commercial variations, but backbone I should say is robust enough now
Any way all reports and feedbacks are highly appreciated, ty
 

Link to post
Share on other sites

Hello all, 

I was very surprised when I saw this threat and remembered that I also have one old unused rk3229 box lying around.

Spoiler

 

After I found it I began to burn the images on every SD card that I found in my house with Rufus (because I had it in PC ) it didn't worked... after I did the same with all 4 img with win32 the same result.

With the SD card inside, the box didn't want to boot, not even android and the front led was off

I tried with the toothpick method and the same result, when I removed the card the box was running normal

After i went to Libreelec and tested all the RK3229 from there and nothing, after reading a couple of topics I tried the librelec rk3228b-a8 and surprise it worked like magik 

Just burned the image with LibreELEC USB Creator plug the card in box and connect the power supply and boom... simple as that... it work!
Repeated the process with Rufus and another type of card (from 2gb, 4gb and 8GB and diferent clases 4 and 6)  and it worked with no problem!

ok.. the A8 Image worked I wanted to pushed and tryed the rk3228b-v88marsII (because i read that this image has ddr3) so.. it worked but the rk3228a .img didnt worked

Now I was in the situation of @Alessandro (and I want to thank him because if he didn't confirmed that is working I would gave up).

So I used the instruction from @hexdump (very good instruction, thank you very much! never used zcat, xzcat or fdisk and I have to be honest after I read the part with  "o, n, p, 1, 32768, enter, w, q" I had big doubts that I will manage) downloaded the first image of linux that i found... burned it to a USB stick booted from it follow the instruction and DONE ...it worked!

Spoiler

 



root@lubuntu:/media/lubuntu/M2_OS/Users/DarkShadow/Downloads/DEV# fdisk /dev/mmcblk0

Disk /dev/mmcblk0: 7.41 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

root@lubuntu:/media/lubuntu/M2_OS/Users/DarkShadow/Downloads/DEV# zcat Lib.img.gz | dd of=/dev/mmcblk0 bs=512 count=32768 status=progress
15655424 bytes (16 MB, 15 MiB) copied, 7 s, 2.2 MB/s 
32768+0 records in
32768+0 records out
16777216 bytes (17 MB, 16 MiB) copied, 7.40936 s, 2.3 MB/s


root@lubuntu:/media/lubuntu/M2_OS/Users/DarkShadow/Downloads/DEV# fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.34).                                          
Changes will remain in memory only, until you decide to write them.          
Be careful before using the write command.


Command (m for help): o
Created a new DOS disklabel with disk identifier 0xa7fd47be.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15523839, default 2048): 32768
Last sector, +/-sectors or +/-size{K,M,G,T,P} (32768-15523839, default 15523839): 

Created a new partition 1 of type 'Linux' and of size 7.4 GiB.

Command (m for help): w
The partition table has been altered.
Failed to remove partition 2 from system: No such device or address
Failed to update system information about partition 1: No such device or address                                                                          
                                                                             
The kernel still uses the old partitions. The new table will be used at the next reboot. 
Syncing disks.

root@lubuntu:/media/lubuntu/M2_OS/Users/DarkShadow/Downloads/DEV# fdisk -l

Disk /dev/mmcblk0: 7.41 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa7fd47be

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1      32768 15523839 15491072  7.4G 83 Linux

root@lubuntu:/media/lubuntu/M2_OS/Users/DarkShadow/Downloads/DEV# xzcat Armbian1.img.xz |  dd of=/dev/mmcblk0 bs=512 skip=8192 seek=32768 status=progress

2266870272 bytes (2.3 GB, 2.1 GiB) copied, 1093 s, 2.1 MB/s
4431872+0 records in
4431872+0 records out
2269118464 bytes (2.3 GB, 2.1 GiB) copied, 1093.81 s, 2.1 MB/s
root@lubuntu:/media/lubuntu/M2_OS/Users/DarkShadow/Downloads/DEV# 

 

 

I had a working version of Armbian on the sdcard for my box. (Armbian_20.05.0-trunk_R329q_focal_legacy_4.4.194_desktop.img.xz)

 

After it booted I had the following problems
1 The display was flashing and flipping because of the resolution, it was wery hard to manage to change it:))
2 Problem the wifi problem... but lucky me I found a TP link USB wifi just plug restart and it worked like charm.
next I saw that Marker39 had the same issue with me so I commented ssv6051 in /etc/modprobe.d/blacklist-r329q.conf
wifi apear connect to the network, obtained a IP but no connection to internet or to ssh (still under investigation)
3 The apt update /  time error i resolved it with: sudo date --set "04 Apr 2020 10:00:00"

 

 

So after a couple of hours I manage to make my TV BOX M8S Pro rk3229 (who is infact a rk3228b, 2G/8G wifi SSV6051p) box to run Armbian!

Spoiler

hNfIn7A.jpg01AmuuG.jpg5NQV46H.jpg

 

Sorry for the long post but I try to put as many info as possible so that others not have to make all the unnecessary steps like i did.  

 

Cheers!

Edited by MFaust
Link to post
Share on other sites

@MFaust

ty for  detailling your experience, another 322x board that works with Armbian

 

Quote

wifi appear connect to the network, obtained a IP but no connection to internet or to ssh (still under investigation)

 That crappy ssv6051 driver usually creates TWO wlan interfaces:

one p2p and the other a REAL wlan0 .

Try to investigate if from command line NMTUi >> activate a connection >> shows you a real wlan0 apart from p2p connection

Link to post
Share on other sites

Thanks for the reply  @fabiobassa I already tried with armbian-config and nmtui and no luck.

If i try to connect to the wlan0 the drivers fails I revive a text "Activatin failed: The Wi Fi network could not be found"

Spoiler

root@r39-4k:~# hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem
00000000  52 4b 23 82 81 f4 30 55  52 4b 4e 30 36 30 31 39  |RK#...0URKN06019|
00000010  00 00 00 00 17 0c 1d 03  00 03 01 00 00 00 00 00  |................|
00000020
root@r39-4k:~# cat /sys/class/devfreq/dmc/trans_stat
cat: /sys/class/devfreq/dmc/trans_stat: No such file or directory
root@r39-4k:~# dmesg | grep wlan
[    5.964702] usbcore: registered new interface driver rndis_wlan
[   11.481624] [WLAN_RFKILL]: Enter rfkill_wlan_init
[   11.482148] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[   11.482189] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ssvb6501
[   11.482192] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[   11.482197] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[   11.482208] of_get_named_gpiod_flags: can't parse 'WIFI,poweren_gpio' property of node '/wireless-wlan[0]'
[   11.482216] of_get_named_gpiod_flags: can't parse 'WIFI,vbat_gpio' property of node '/wireless-wlan[0]'
[   11.482220] of_get_named_gpiod_flags: can't parse 'WIFI,reset_gpio' property of node '/wireless-wlan[0]'
[   11.482301] of_get_named_gpiod_flags: parsed 'WIFI,host_wake_irq' property of node '/wireless-wlan[0]' - status (0)
[   11.482351] [WLAN_RFKILL]: wlan_platdata_parse_dt: get property: WIFI,host_wake_irq = 28, flags = 0.
[   11.482452] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[   11.482494] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[   11.482603] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[   77.970059] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  151.812540] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  152.156133] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  266.696693] wlan0: authenticate with e4:ca:12:f7:aa:ca
[  266.716305] wlan0: send auth to e4:ca:12:f7:aa:ca (try 1/3)
[  266.723194] wlan0: authenticated
[  266.731563] wlan0: associate with e4:ca:12:f7:aa:ca (try 1/3)
[  266.740615] wlan0: RX AssocResp from e4:ca:12:f7:aa:ca (capab=0x411 status=0 aid=2)
[  266.745969] wlan0: failed to set TX queue parameters for AC 0
[  266.745995] wlan0: failed to set TX queue parameters for AC 1
[  266.746016] wlan0: failed to set TX queue parameters for AC 2
[  266.746038] wlan0: failed to set TX queue parameters for AC 3
[  266.746221] wlan0: associated
[  266.746366] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  266.771996] wlan0: disassociated from e4:ca:12:f7:aa:ca (Reason: 14)
[  313.101995] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  323.542851] rt2800usb 2-1:1.0 wlx74ea3a8caee5: renamed from wlan1
root@r39-4k:~#

 

Spoiler

root@xt-mx4vr-v01:~# hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem
00000000  52 4b 23 82 81 f4 30 55  52 4b 4e 30 36 30 31 39  |RK#...0URKN06019|
00000010  00 00 00 00 17 0c 1d 03  00 03 01 00 00 00 00 00  |................|
00000020
root@xt-mx4vr-v01:~# cat /sys/class/devfreq/dmc/trans_stat
cat: /sys/class/devfreq/dmc/trans_stat: No such file or directory
root@xt-mx4vr-v01:~# dmesg | grep wlan
[   12.082214] [WLAN_RFKILL]: Enter rfkill_wlan_init
[   12.082565] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[   12.082592] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ssvb6501
[   12.082594] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[   12.082598] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[   12.082605] of_get_named_gpiod_flags: can't parse 'WIFI,poweren_gpio' property of node '/wireless-wlan[0]'
[   12.082610] of_get_named_gpiod_flags: can't parse 'WIFI,vbat_gpio' property of node '/wireless-wlan[0]'
[   12.082614] of_get_named_gpiod_flags: can't parse 'WIFI,reset_gpio' property of node '/wireless-wlan[0]'
[   12.082650] of_get_named_gpiod_flags: parsed 'WIFI,host_wake_irq' property of node '/wireless-wlan[0]' - status (0)
[   12.082655] [WLAN_RFKILL]: wlan_platdata_parse_dt: get property: WIFI,host_wake_irq = 28, flags = 0.
[   12.082668] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[   12.082672] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[   12.082682] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[   82.294224] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   82.306905] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   84.006903] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  115.115073] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1139.046763] rt2800usb 2-1:1.0 wlx74ea3a8caee5: renamed from wlan1
root@xt-mx4vr-v01:~#

 

 anyway i have some questions,

1 in the LibreELEC the working "rk3228b-box-a8.dtb" but in this image the dtb is for a rk3229 should I change or it dosent matter?

2 if Itransfer the system to eMMC via armbian-config, after i will not need anymore the SD card.. no.. do you recomand to do this, what are the benefits?

3 when i tried to install on the SD the minimal (non-desktop) image the led of the box lighted up(so i think that it had booted but on the TV i dont see anything, not even a script, it is normal?

4 I want to use this box as a parallel backup media server, mostly for emby server, vpn server, ftp / webdav server, and some program to sync files with other server, what version do you recommend to use, the desktop or minimal? 

I was thinking at minimal because it light but i think that the desktop one can deactivate the ui, and in that case should be the same.. no?

Link to post
Share on other sites

 

Since I now had Linux, I decided to use the method of creating a SD with the LibreElec bootloader proposed by @hexdump (for which many thanks  to him :thumbup:).

Everything turned out and now I tried to run Armbian on two more available RK3229 boards.

1. Another one T95N-RK3229_512X4-20170803_V1.5 , but have 2G DDR3 RAM, and RTL8703BS WiFi.

2. Named MXQ-4K with RTL8189ETV WiFi.

On both boards, the system starts without visible problems, the built-in eMMCs are visible, but WiFi is not available (as expected).

 

Is there in "Armbian_20.05.0-trunk_Xt-mx4vr-v01_focal_legacy_4.4.194_desktop.img" Realtek WiFi ?

Maybe try r329q img ?

 

PS Look to /lib/modules/4.4.194-rk322x/kernel/drivers/net/wireless  there is nothing suitable :(

Spoiler

IMG_20200403_131721.thumb.jpg.6546c3798940806ccf067e55b68f7d2f.jpgIMG_20200403_131734.thumb.jpg.bc65cb23c81fd96b1d99b99619e38091.jpgIMG_20200403_135907.thumb.jpg.6cd43d20cd609bb718ec1fc7013fba3b.jpgIMG_20200403_133458.thumb.jpg.db0541fa20ce8a6d87aba2431fe7a767.jpg

 

Link to post
Share on other sites
2 hours ago, MFaust said:

Thanks for the reply  @fabiobassa I already tried with armbian-config and nmtui and no luck.

If i try to connect to the wlan0 the drivers fails I revive a text "Activatin failed: The Wi Fi network could not be found"

  Reveal hidden contents


root@r39-4k:~# hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem
00000000  52 4b 23 82 81 f4 30 55  52 4b 4e 30 36 30 31 39  |RK#...0URKN06019|
00000010  00 00 00 00 17 0c 1d 03  00 03 01 00 00 00 00 00  |................|
00000020
root@r39-4k:~# cat /sys/class/devfreq/dmc/trans_stat
cat: /sys/class/devfreq/dmc/trans_stat: No such file or directory
root@r39-4k:~# dmesg | grep wlan
[    5.964702] usbcore: registered new interface driver rndis_wlan
[   11.481624] [WLAN_RFKILL]: Enter rfkill_wlan_init
[   11.482148] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[   11.482189] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ssvb6501
[   11.482192] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[   11.482197] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[   11.482208] of_get_named_gpiod_flags: can't parse 'WIFI,poweren_gpio' property of node '/wireless-wlan[0]'
[   11.482216] of_get_named_gpiod_flags: can't parse 'WIFI,vbat_gpio' property of node '/wireless-wlan[0]'
[   11.482220] of_get_named_gpiod_flags: can't parse 'WIFI,reset_gpio' property of node '/wireless-wlan[0]'
[   11.482301] of_get_named_gpiod_flags: parsed 'WIFI,host_wake_irq' property of node '/wireless-wlan[0]' - status (0)
[   11.482351] [WLAN_RFKILL]: wlan_platdata_parse_dt: get property: WIFI,host_wake_irq = 28, flags = 0.
[   11.482452] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[   11.482494] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[   11.482603] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[   77.970059] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  151.812540] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  152.156133] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  266.696693] wlan0: authenticate with e4:ca:12:f7:aa:ca
[  266.716305] wlan0: send auth to e4:ca:12:f7:aa:ca (try 1/3)
[  266.723194] wlan0: authenticated
[  266.731563] wlan0: associate with e4:ca:12:f7:aa:ca (try 1/3)
[  266.740615] wlan0: RX AssocResp from e4:ca:12:f7:aa:ca (capab=0x411 status=0 aid=2)
[  266.745969] wlan0: failed to set TX queue parameters for AC 0
[  266.745995] wlan0: failed to set TX queue parameters for AC 1
[  266.746016] wlan0: failed to set TX queue parameters for AC 2
[  266.746038] wlan0: failed to set TX queue parameters for AC 3
[  266.746221] wlan0: associated
[  266.746366] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  266.771996] wlan0: disassociated from e4:ca:12:f7:aa:ca (Reason: 14)
[  313.101995] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  323.542851] rt2800usb 2-1:1.0 wlx74ea3a8caee5: renamed from wlan1
root@r39-4k:~#

 

  Reveal hidden contents


root@xt-mx4vr-v01:~# hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem
00000000  52 4b 23 82 81 f4 30 55  52 4b 4e 30 36 30 31 39  |RK#...0URKN06019|
00000010  00 00 00 00 17 0c 1d 03  00 03 01 00 00 00 00 00  |................|
00000020
root@xt-mx4vr-v01:~# cat /sys/class/devfreq/dmc/trans_stat
cat: /sys/class/devfreq/dmc/trans_stat: No such file or directory
root@xt-mx4vr-v01:~# dmesg | grep wlan
[   12.082214] [WLAN_RFKILL]: Enter rfkill_wlan_init
[   12.082565] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[   12.082592] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ssvb6501
[   12.082594] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[   12.082598] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[   12.082605] of_get_named_gpiod_flags: can't parse 'WIFI,poweren_gpio' property of node '/wireless-wlan[0]'
[   12.082610] of_get_named_gpiod_flags: can't parse 'WIFI,vbat_gpio' property of node '/wireless-wlan[0]'
[   12.082614] of_get_named_gpiod_flags: can't parse 'WIFI,reset_gpio' property of node '/wireless-wlan[0]'
[   12.082650] of_get_named_gpiod_flags: parsed 'WIFI,host_wake_irq' property of node '/wireless-wlan[0]' - status (0)
[   12.082655] [WLAN_RFKILL]: wlan_platdata_parse_dt: get property: WIFI,host_wake_irq = 28, flags = 0.
[   12.082668] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[   12.082672] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[   12.082682] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[   82.294224] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   82.306905] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   84.006903] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  115.115073] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1139.046763] rt2800usb 2-1:1.0 wlx74ea3a8caee5: renamed from wlan1
root@xt-mx4vr-v01:~#

 

 anyway i have some questions,

1 in the LibreELEC the working "rk3228b-box-a8.dtb" but in this image the dtb is for a rk3229 should I change or it dosent matter?

2 if Itransfer the system to eMMC via armbian-config, after i will not need anymore the SD card.. no.. do you recomand to do this, what are the benefits?

3 when i tried to install on the SD the minimal (non-desktop) image the led of the box lighted up(so i think that it had booted but on the TV i dont see anything, not even a script, it is normal?

4 I want to use this box as a parallel backup media server, mostly for emby server, vpn server, ftp / webdav server, and some program to sync files with other server, what version do you recommend to use, the desktop or minimal? 

I was thinking at minimal because it light but i think that the desktop one can deactivate the ui, and in that case should be the same.. no?

 

hello @MFaust

sv6051p module is blacklisted by default because sometimes is a bit unstable, which may be your case. Delete (or edit) the file in /etc/modprobe.d/blacklist-xt-mx4vr-v01.conf to enable it at boot.

My boards with sv6051p usually connect on the first try, but when they lose the connection they don't scan the networks anymore. Sometimes they also crash the kernel.

 

About the other questions:

1. does not really matter, it's just bad nomenclature, I'm going to fix this soon

2. if you transfer the system on the eMMC you won't need any more the sd card. Usually eMMC is much faster than SD. You still will be able to boot from SDcard or USB if you want to test alternative images.

3. the minimal image at the moment uses the mainline kernel, which has still some things to be worked out. It may or may not work... anyway thank you for reporting!

4. for this kind of workload probably the minimal is more suited, but as you said you can use the desktop image and deactivate the desktop manager service. Anyway I suggest to stay stick to legacy kernel for the moment, which is more stable and tested.

Link to post
Share on other sites

@MFaust
You have a 3228 

Quote

hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem 00000000 52 4b 23 82

as you can see by efuse 23 82 is 32 28 in reverse order

could you please post the output of full UART if you have , from beginning of boot and WITHOUT the usb dongle?
The ssv6061 driver is crappy but usually it works, Don't expect high performance, thought
TY

 

-------------------------------------------------------------------------------------------------------------------------------------------------------

@Maker39

I have the EXACT identical board as the blue one with rtl 8703 . That should be a real 3229 with REAL 2 giga ram ddr3.
This is one of the best board I own , also called SARDINE, I like it very much, but.. but...

never was able to have wifi working on it ...NEVER :( :(

about the green board, never seen before so no tests on that.

But in lib/modules should be any possible driver for wifi , but I repeat, on Sardine never was able to have wifi

Link to post
Share on other sites

@Maker39

 

Consider that Sardine is so powerful that I use it TO COMPILE the armbian itself. When I need new kernel or module I compile on board itself.

 

Is a power horse and I like it the most.

 

Yes is a pity for WiFi,  but investigation on what the hell is not working still going on. It is a continue work in progress

If we stopped when other people said Linux NEVER would run on 3229 , we ( Jock and I and some other clever mind from libreelec) wouldn't be here in this 3ad now .

Stay tuned

Link to post
Share on other sites
12 minutes ago, fabiobassa said:

@Maker39

 

If we stopped when other people said Linux NEVER would run on 3229 , we ( Jock and I and some other clever mind from libreelec) wouldn't be here in this 3ad now .

Stay tuned

Thank you so much guys for your work and perseverance.

Unfortunately, I do not have sufficient knowledge and skills in this area.

To make a grain of myself I can try to make images from the first post with the Libreelec bootloader for those who want to try running Armbian on their motherboard but don’t want to erase the flash yet. 

If anyone is interested.

Link to post
Share on other sites

Sure you can fork the project, make new images, mix up libreelec bootloader with armbian kernel and rootfs to give people all the possibilities to boot their boards.

 

For example I never saw the green board of your post, and believe me I have sooooo many different boards.

 

Then share somewhere your work and comment with as many info's and photos you can

Link to post
Share on other sites

@jock,

 

Thx for the hard work on these boards, do you mind answer me a question? do you have any plans to support rockchip uboot? mainline uboot does not have rknand support and in MXQ 4K Pro it is necessary to boot from internal, dont needing to use a sd card anymore.

P.S: i helped alot fabio in getting linux working on these boards =]

Link to post
Share on other sites

@willerson 

Ciao Willerson , how are you. Long time not seen !!

 

Yes @jock knows about you and about the original study done and the initial your " intuition" about trust os.

 

I also informed him about your effort successfully to have rknand in uboot legacy

 

Jock will answer you personally but at this moment the best approach is mix up librelec loader uboot and trustos ( they are the original rockchip thks to @knaerzche work) and kernel and root from armbian.

Also in progress is a " generic" image booting quite everywhere and then changing the dtb achieve a better performance

 

Cheers

 

 

Link to post
Share on other sites
17 minutes ago, willerson said:

@jock,

 

Thx for the hard work on these boards, do you mind answer me a question? do you have any plans to support rockchip uboot? mainline uboot does not have rknand support and in MXQ 4K Pro it is necessary to boot from internal, dont needing to use a sd card anymore.

P.S: i helped alot fabio in getting linux working on these boards =]

Hello @willerson, at the moment I don't have any plan to support legacy u-boot, either because I don't really like the "messy" rockchip u-boot and also because armbian does not provide multiple u-boot, not to talk about having to maintain another device tree.

 

There's a NAND driver for mainline kernel in the work at the moment, maybe in the near future we will have something available for mainline u-boot too.

 

In the meantime you can use the method provided by @hexdump I linked to in the first post that uses libreelec boot parts.

Link to post
Share on other sites

Hello, 

@jock thank you for your feedback

The WiFi is enable at boot but when I try to connect to wlan0 it fail and they don't scan the networks anymore after reboot if I try to connect to p2p its connecting but I cannot connect to it. 

Anyway... WiFi in not important anymore 

 

@fabiobassa sorry but I don't have a UART :(

 

 

If you need some ssh reports I will be happy help or to test some .img on my rk3228 board

I have one card with "xt-mx4vr-v01". img and one card with  "r329q". img both ar booting and working. 

 

Thanks again for giving me some new things to play to during this lock down period! 

Link to post
Share on other sites

I am from Romania, the situation here is not that bad but... Everything is close, except the markets and we are not allowed to exit our houses without a declaration and apparently until June it will be like this so every distraction, like this, is welcome! 

 

Link to post
Share on other sites

I made two 4GB SD images using the method @hexdump.

These are "focal_legacy_4.4.194_desktop" with Libreelec bootloader for boot without erase eMMC. Just insert a card and turn on power.

Under win os write  " Win32 Disk imager" or "Rufus" .

Google Drive https://drive.google.com/open?id=1uoQvZUUFZyCWYFtatlTSJvJSSjUuJYLm

 

10.04.2020  Since the changes from 04/10/2020 and the replacement of images on rk322x-box.

Firmware replaced with new ones.

Link to post
Share on other sites

@Maker39

 

I compiled a new "experimental" mx4vr image with 8189es driver, which supports also 8189etv, you can find it here

Also you may get just the 8189es.ko module object from here and try to modprobe it.

 

You may also try to modprobe 8723bs driver to see if 8703bs chipset is somehow supported, I saw some crossreferences in the code but no specific driver anywhere.

Link to post
Share on other sites
1 hour ago, Maker39 said:

I made two 4GB SD images using the method @hexdump.

These are "focal_legacy_4.4.194_desktop" with Libreelec bootloader for boot without erase eMMC. Just insert a card and turn on power.

Under win os write  " Win32 Disk imager" or "Rufus" .

Google Drive https://drive.google.com/open?id=1uoQvZUUFZyCWYFtatlTSJvJSSjUuJYLm

 

@Maker39 thanks for the images

I just downloaded and burned the img to the SD card and plug in into my RK3228b box and it booted up, no extra moves needed

Spoiler

PS C:\Users\DarkShadow> ssh root@192.168.1.58
root@192.168.1.58's password:
You are required to change your password immediately (administrator enforced)
      _                       _  _                        ___  _
__  _| |_      _ __ ___ __  _| || |__   ___ __    __   __/ _ \/ |
\ \/ / __|____| '_ ` _ \\ \/ / || |\ \ / / '__|___\ \ / / | | | |
 >  <| ||_____| | | | | |>  <|__   _\ V /| | |_____\ V /| |_| | |
/_/\_\\__|    |_| |_| |_/_/\_\  |_|  \_/ |_|        \_/  \___/|_|

Welcome to Armbian Focal with Linux 4.4.194-rk322x

No end-user support: built from trunk & unsupported (focal) userspace!

System load:   1.00 1.00 0.59   Up time:       8 min
Memory usage:  3 % of 1995MB    IP:            192.168.1.58
CPU temp:      63°C
Usage of /:    83% of 2.1G

[ General system configuration (beta): armbian-config ]

Last login: Sun Mar 15 17:57:47 2020 from 192.168.1.10
Changing password for root.
Current password:
New password:
Retype new password:


You are using an Armbian with unsupported (focal) userspace !!!

This image is provided AS IS with NO WARRANTY and NO END USER SUPPORT!.

Creating a new user account. Press <Ctrl-C> to abort
Desktop environment will not be enabled if you abort the new user creation

Please provide a username (eg. your forename): MFaust
Trying to add user mfaust
Adding user `mfaust' ...
Adding new group `mfaust' (1000) ...
Adding new user `mfaust' (1000) with group `mfaust' ...
Creating home directory `/home/mfaust' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for mfaust
Enter the new value, or press ENTER for the default
        Full Name []: Mfaust
        Room Number []: 13
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] Y

Dear Mfaust, your account mfaust has been created and is sudo enabled.
Please use this account for your daily work from now on.


Now starting desktop environment...

root@xt-mx4vr-v01:~# hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem
00000000  52 4b 23 82 81 f4 30 55  52 4b 4e 30 36 30 31 39  |RK#...0URKN06019|
00000010  00 00 00 00 17 0c 1d 03  00 03 01 00 00 00 00 00  |................|
00000020

 

 Question... how come the image is so big... cant you make it 2GB? ( I have more cards with 2 GB lying around :p )

Link to post
Share on other sites

btw

I tryed to instal the VPN server but I think something is wrong...

Spoiler

root@xt-mx4vr-v01:~# systemctl status pptpd
● pptpd.service - PoPToP Point to Point Tunneling Server
     Loaded: loaded (/lib/systemd/system/pptpd.service; disabled; vendor preset: enabled)
     Active: active (running) since Sat 2020-04-04 01:31:15 EEST; 1h 33min ago
       Docs: man:pptpd(8)
             man:pptpctrl(8)
             man:pptpd.conf(5)
   Main PID: 8471 (pptpd)
      Tasks: 1 (limit: 4462)
     Memory: 112.0K
     CGroup: /system.slice/pptpd.service
             └─8471 /usr/sbin/pptpd --fg

Apr 04 03:04:36 xt-mx4vr-v01 pppd[11757]: kernel does not support PPP filtering
Apr 04 03:04:36 xt-mx4vr-v01 pppd[11757]: MPPE required, but kernel has no support.
Apr 04 03:04:36 xt-mx4vr-v01 pppd[11757]: Connection terminated.
Apr 04 03:04:36 xt-mx4vr-v01 pppd[11757]: Connect time 0.0 minutes.
Apr 04 03:04:36 xt-mx4vr-v01 pppd[11757]: Sent 0 bytes, received 0 bytes.
Apr 04 03:04:36 xt-mx4vr-v01 pppd[11757]: Exit.
Apr 04 03:04:36 xt-mx4vr-v01 pptpd[11756]: GRE: read(fd=6,buffer=74b0b40c,len=8196) from PTY failed: status = -1 error = In>
Apr 04 03:04:36 xt-mx4vr-v01 pptpd[11756]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Apr 04 03:04:36 xt-mx4vr-v01 pptpd[11756]: CTRL: Reaping child PPP[11757]
Apr 04 03:04:36 xt-mx4vr-v01 pptpd[11756]: CTRL: Client x.x.x.x control connection finished

 

 any ideea how to make the pptpd vpn work?

 

btw I tried to install software from armbian-config but nothing is happening

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

@Maker39

 

I compiled a new "experimental" mx4vr image with 8189es driver, which supports also 8189etv, you can find it here

Also you may get just the 8189es.ko module object from here and try to modprobe it.

 

You may also try to modprobe 8723bs driver to see if 8703bs chipset is somehow supported, I saw some crossreferences in the code but no specific driver anywhere.

Thanks fo image :beer:

MXQ-4K with RTL8189ETV WiFi  Have WiFi now :thumbup:

Spoiler

root@xt-mx4vr-v01:~# lsmod
Module                  Size  Used by
fuse                   94208  3
lz4                    16384  4
lz4_compress           16384  1 lz4
8189es               1101824  0
mali                  229376  0
snd_soc_rk3228         16384  1
lzo                    16384  4
zram                   24576  2
sch_fq_codel           20480  6
ip_tables              24576  0
autofs4                32768  0
root@xt-mx4vr-v01:~#

root@xt-mx4vr-v01:~# iwconfig
wlan0     IEEE 802.11bgn  ESSID:"TP-Link"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.452 GHz  Access Point: E4:18:6B:39:AB:FA
          Bit Rate:150 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=99/100  Signal level=-35 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

sit0      no wireless extensions.

dummy0    no wireless extensions.

lo        no wireless extensions.

eth0      no wireless extensions.

root@xt-mx4vr-v01:~#

T95N-RK3229_512X4-20170803_V1.5 ,  2G DDR3 RAM, and RTL8703BS WiFi didn't work

after modprobe 8723bs 

Spoiler

root@xt-mx4vr-v01:~# lsmod
Module                  Size  Used by
8723bs               1744896  0
fuse                   94208  3
lz4                    16384  4
lz4_compress           16384  1 lz4
mali                  229376  0
snd_soc_rk3228         16384  1
lzo                    16384  4
zram                   24576  2
sch_fq_codel           20480  2
ip_tables              24576  0
autofs4                32768  0
root@xt-mx4vr-v01:~#

But no wifi

Spoiler

root@xt-mx4vr-v01:~# iwconfig
sit0      no wireless extensions.

dummy0    no wireless extensions.

lo        no wireless extensions.

eth0      no wireless extensions.

root@xt-mx4vr-v01:~#

 

Link to post
Share on other sites
10 hours ago, MFaust said:

@Maker39 thanks for the images

I just downloaded and burned the img to the SD card and plug in into my RK3228b box and it booted up, no extra moves needed

  Reveal hidden contents


PS C:\Users\DarkShadow> ssh root@192.168.1.58
root@192.168.1.58's password:
You are required to change your password immediately (administrator enforced)
      _                       _  _                        ___  _
__  _| |_      _ __ ___ __  _| || |__   ___ __    __   __/ _ \/ |
\ \/ / __|____| '_ ` _ \\ \/ / || |\ \ / / '__|___\ \ / / | | | |
 >  <| ||_____| | | | | |>  <|__   _\ V /| | |_____\ V /| |_| | |
/_/\_\\__|    |_| |_| |_/_/\_\  |_|  \_/ |_|        \_/  \___/|_|

Welcome to Armbian Focal with Linux 4.4.194-rk322x

No end-user support: built from trunk & unsupported (focal) userspace!

System load:   1.00 1.00 0.59   Up time:       8 min
Memory usage:  3 % of 1995MB    IP:            192.168.1.58
CPU temp:      63°C
Usage of /:    83% of 2.1G

[ General system configuration (beta): armbian-config ]

Last login: Sun Mar 15 17:57:47 2020 from 192.168.1.10
Changing password for root.
Current password:
New password:
Retype new password:


You are using an Armbian with unsupported (focal) userspace !!!

This image is provided AS IS with NO WARRANTY and NO END USER SUPPORT!.

Creating a new user account. Press <Ctrl-C> to abort
Desktop environment will not be enabled if you abort the new user creation

Please provide a username (eg. your forename): MFaust
Trying to add user mfaust
Adding user `mfaust' ...
Adding new group `mfaust' (1000) ...
Adding new user `mfaust' (1000) with group `mfaust' ...
Creating home directory `/home/mfaust' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for mfaust
Enter the new value, or press ENTER for the default
        Full Name []: Mfaust
        Room Number []: 13
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] Y

Dear Mfaust, your account mfaust has been created and is sudo enabled.
Please use this account for your daily work from now on.


Now starting desktop environment...

root@xt-mx4vr-v01:~# hexdump -C /sys/bus/nvmem/devices/rockchip-efuse0/nvmem
00000000  52 4b 23 82 81 f4 30 55  52 4b 4e 30 36 30 31 39  |RK#...0URKN06019|
00000010  00 00 00 00 17 0c 1d 03  00 03 01 00 00 00 00 00  |................|
00000020

 

Question... how come the image is so big... cant you make it 2GB? ( I have more cards with 2 GB lying around :p )

I found a 2GB card.

If it fits (there seems to be more than 2GB copied) - I'll post

 

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