Jump to content

Recommended Posts

Posted

I tried to turn it on with remote control and also deattached the device a few times... no chance it just says:

 

root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool rd 3
Reset Device failed!
root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool rd 3
Reset Device failed!
root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool rd 3
Reset Device failed!
 

Actually I remember some dark sparks about shorting some point on the board to get into "MASK ROM MODE". Unfortunately I just wrote it into freaktab board and this is unfortunately down now... so maybe you can remember it. I did this already on some other V88 devices with other pcb... so I am not sure if it was just on the devices with eMMC, but I remember some tweezers shorting on the backside if i am right... *f...* that's so long ago...:(

Posted (edited)

By the way I noticed if you forget SD card the device don't get recognized from PC. It just loads into multitool then. ;)

 

Here are some pictures of my board 

16162574609188908355738952262080.jpg

20210320_172359.jpg

20210320_172414.jpg

Edited by Alex83
I can't remember if the red or blue circle needs to be shorted...
Posted

@Alex83 nope, the bootloader was uploaded correctly, it just made some mistakes about some kind on incompatibility or maybe issuing reset garbled the NAND status somehow.

 

As I suggested, repeat the procedure skipping the first rkdeveloptool ef command.

 

If it still does not work, repeat the procedure using the v2.51 and v2.47 loaders.

 

If nothing works yet, the last resort is RkDevTool for windows (formerly known as AndroidTool) you can download from here

Posted
  On 3/20/2021 at 4:18 PM, Alex83 said:

I tried to turn it on with remote control and also deattached the device a few times... no chance it just says:

 

root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool rd 3
Reset Device failed!
root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool rd 3
Reset Device failed!
root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool rd 3
Reset Device failed!
 

Actually I remember some dark sparks about shorting some point on the board to get into "MASK ROM MODE". Unfortunately I just wrote it into freaktab board and this is unfortunately down now... so maybe you can remember it. I did this already on some other V88 devices with other pcb... so I am not sure if it was just on the devices with eMMC, but I remember some tweezers shorting on the backside if i am right... *f...* that's so long ago...:(

Expand  

 

Ok, so let's see if I understood:

  • you plug the USB cable
  • lsusb is telling that the device is there
  • if you run rkdeveloptool rd 3 it tells you "Reset Device failed!"

 

If so, believe it or not this is the best condition :)

 

Repeat the procedure starting from upgrade_tool, hope this time works :)

 

 

Posted
  On 3/20/2021 at 5:11 PM, jock said:

 

Ok, so let's see if I understood:

  • you plug the USB cable
  • lsusb is telling that the device is there
  • if you run rkdeveloptool rd 3 it tells you "Reset Device failed!"

 

If so, believe it or not this is the best condition :)

 

Repeat the procedure starting from upgrade_tool, hope this time works :)

 

 

Expand  

ok. It worked so far!

 

root@alex-ThinkPad-T510 /home/alex/Downloads > upgrade_tool ul rk322x_loader_v1.10.256.bin 
Not found config.ini
Program Data in /usr/local/bin
Loading loader...
Support Type:RK322A	Loader ver:2.56	Loader Time:2021-03-13 16:06:57
Upgrade loader ok.
root@alex-ThinkPad-T510 /home/alex/Downloads > dmesg

[ 4788.722591] usb 1-1.1: new high-speed USB device number 5 using ehci-pci
[ 4788.831239] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 4788.831248] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 5114.936216] usb 1-1.1: USB disconnect, device number 5
[ 5115.229255] usb 1-1.1: new high-speed USB device number 6 using ehci-pci
[ 5115.341606] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 5115.341611] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 5233.720230] usb 1-1.1: USB disconnect, device number 6
[ 5235.782011] usb 1-1.1: new high-speed USB device number 7 using ehci-pci
[ 5235.890832] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 5235.890836] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5235.890837] usb 1-1.1: Product: USB-MSC
[ 5235.890838] usb 1-1.1: Manufacturer: RockChip
[ 5235.890839] usb 1-1.1: SerialNumber: rockchip
[ 5433.199976] usb 1-1.1: USB disconnect, device number 7
[ 5435.424812] usb 1-1.1: new high-speed USB device number 8 using ehci-pci
[ 5435.537960] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 5435.537963] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5435.537965] usb 1-1.1: Product: USB-MSC
[ 5435.537966] usb 1-1.1: Manufacturer: RockChip
[ 5435.537967] usb 1-1.1: SerialNumber: rockchip
[ 5589.455455] mmc0: new high speed SD card at address 1234
[ 5589.455947] mmcblk0: mmc0:1234 SA02G 1.83 GiB 
[ 5589.475283]  mmcblk0: p1 p2
[ 5589.475291] mmcblk0: p1 size 4069376 extends beyond EOD, truncated
[ 6823.457926] mmc0: card 1234 removed
[ 6827.632405] usb 1-1.1: USB disconnect, device number 8
[ 7161.190702] perf: interrupt took too long (8087 > 7976), lowering kernel.perf_event_max_sample_rate to 24500
[ 8052.060956] usb 1-1.1: new high-speed USB device number 9 using ehci-pci
[ 8052.173680] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 8052.173684] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 9843.620378] usb 1-1.1: USB disconnect, device number 9
[ 9844.693535] usb 1-1.1: new high-speed USB device number 10 using ehci-pci
[ 9844.802106] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 9844.802111] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 9906.976740] usb 1-1.1: USB disconnect, device number 10
[ 9911.099750] usb 1-1.1: new high-speed USB device number 11 using ehci-pci
[ 9911.212514] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 9911.212520] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 9954.693004] usb 1-1.1: USB disconnect, device number 11
[ 9976.686026] usb 1-1.1: new high-speed USB device number 12 using ehci-pci
[ 9976.802683] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 9976.802688] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[10149.048626] usb 1-1.1: USB disconnect, device number 12
[12689.280101] usb 1-1.1: new high-speed USB device number 13 using ehci-pci
[12689.396666] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[12689.396671] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[13350.089526] usb 1-1.1: USB disconnect, device number 13
[13901.020137] usb 1-1.1: new high-speed USB device number 14 using ehci-pci
[13901.128760] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[13901.128765] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[14005.542754] usb 1-1.1: USB disconnect, device number 14
[14007.721213] usb 1-1.1: new high-speed USB device number 15 using ehci-pci
[14007.830795] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[14007.830799] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14007.830802] usb 1-1.1: Product: USB-MSC
[14007.830805] usb 1-1.1: Manufacturer: RockChip
[14007.830808] usb 1-1.1: SerialNumber: rockchip
root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool rd
Reset Device OK.
root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool ef
Erasing flash complete.
root@alex-ThinkPad-T510 /home/alex/Downloads > 

 

So I'll give it a try and report in a minute back.

Posted
  On 3/20/2021 at 5:26 PM, Alex83 said:

ok. It worked so far!

 


root@alex-ThinkPad-T510 /home/alex/Downloads > upgrade_tool ul rk322x_loader_v1.10.256.bin 
Not found config.ini
Program Data in /usr/local/bin
Loading loader...
Support Type:RK322A	Loader ver:2.56	Loader Time:2021-03-13 16:06:57
Upgrade loader ok.
root@alex-ThinkPad-T510 /home/alex/Downloads > dmesg

[ 4788.722591] usb 1-1.1: new high-speed USB device number 5 using ehci-pci
[ 4788.831239] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 4788.831248] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 5114.936216] usb 1-1.1: USB disconnect, device number 5
[ 5115.229255] usb 1-1.1: new high-speed USB device number 6 using ehci-pci
[ 5115.341606] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 5115.341611] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 5233.720230] usb 1-1.1: USB disconnect, device number 6
[ 5235.782011] usb 1-1.1: new high-speed USB device number 7 using ehci-pci
[ 5235.890832] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 5235.890836] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5235.890837] usb 1-1.1: Product: USB-MSC
[ 5235.890838] usb 1-1.1: Manufacturer: RockChip
[ 5235.890839] usb 1-1.1: SerialNumber: rockchip
[ 5433.199976] usb 1-1.1: USB disconnect, device number 7
[ 5435.424812] usb 1-1.1: new high-speed USB device number 8 using ehci-pci
[ 5435.537960] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 5435.537963] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5435.537965] usb 1-1.1: Product: USB-MSC
[ 5435.537966] usb 1-1.1: Manufacturer: RockChip
[ 5435.537967] usb 1-1.1: SerialNumber: rockchip
[ 5589.455455] mmc0: new high speed SD card at address 1234
[ 5589.455947] mmcblk0: mmc0:1234 SA02G 1.83 GiB 
[ 5589.475283]  mmcblk0: p1 p2
[ 5589.475291] mmcblk0: p1 size 4069376 extends beyond EOD, truncated
[ 6823.457926] mmc0: card 1234 removed
[ 6827.632405] usb 1-1.1: USB disconnect, device number 8
[ 7161.190702] perf: interrupt took too long (8087 > 7976), lowering kernel.perf_event_max_sample_rate to 24500
[ 8052.060956] usb 1-1.1: new high-speed USB device number 9 using ehci-pci
[ 8052.173680] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 8052.173684] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 9843.620378] usb 1-1.1: USB disconnect, device number 9
[ 9844.693535] usb 1-1.1: new high-speed USB device number 10 using ehci-pci
[ 9844.802106] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 9844.802111] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 9906.976740] usb 1-1.1: USB disconnect, device number 10
[ 9911.099750] usb 1-1.1: new high-speed USB device number 11 using ehci-pci
[ 9911.212514] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 9911.212520] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 9954.693004] usb 1-1.1: USB disconnect, device number 11
[ 9976.686026] usb 1-1.1: new high-speed USB device number 12 using ehci-pci
[ 9976.802683] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[ 9976.802688] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[10149.048626] usb 1-1.1: USB disconnect, device number 12
[12689.280101] usb 1-1.1: new high-speed USB device number 13 using ehci-pci
[12689.396666] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[12689.396671] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[13350.089526] usb 1-1.1: USB disconnect, device number 13
[13901.020137] usb 1-1.1: new high-speed USB device number 14 using ehci-pci
[13901.128760] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[13901.128765] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[14005.542754] usb 1-1.1: USB disconnect, device number 14
[14007.721213] usb 1-1.1: new high-speed USB device number 15 using ehci-pci
[14007.830795] usb 1-1.1: New USB device found, idVendor=2207, idProduct=320b, bcdDevice= 1.00
[14007.830799] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14007.830802] usb 1-1.1: Product: USB-MSC
[14007.830805] usb 1-1.1: Manufacturer: RockChip
[14007.830808] usb 1-1.1: SerialNumber: rockchip
root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool rd
Reset Device OK.
root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool ef
Erasing flash complete.
root@alex-ThinkPad-T510 /home/alex/Downloads > 

 

So I'll give it a try and report in a minute back.

Expand  

Ahah, no wait a second. I just spotted a mistake in the instructions!

The rkdeveloptool ef is removing again the bootloader you just installed :ph34r: sorry for that... (I'm going to fix them)

 

Let's try again:

  • Unplug the USB cable
  • Plug the USB cable
  • run upgrade_tool
  • Wait for a minute
  • Unplug the USB cable

Then finally it should work as expected

 

edit: going to give you credits on first page if this madness works :D

Posted (edited)

Hi Jock,

 

actually i did it as you said and it recognises the NAND again. - I just don't know if I did a mistake again because I read somehow something with "NAND Jump" and did this in multitool. - Afterwards I installed as usual Armbian with legacy-Kernel 4.19 to NANA via sTep...

 

Anyway... after finishing the device does not boot. The HDMI output stays black. 

 

I just do a minimal buster installation with 4.19 kernel now and write back in a minute...

 

Maybe if the device works again I can provide you dmesg from armbian there... or I would also provide you serial output, but don't know where to connect via serial. If you find some points, I have also soldering skills ;)

 

root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool ef
Erasing flash complete.
root@alex-ThinkPad-T510 /home/alex/Downloads > rkdeveloptool rd 3
Reset Device OK.
root@alex-ThinkPad-T510 /home/alex/Downloads > upgrade_tool ul rk322x_loader_v1.10.256.bin 
Not found config.ini
Program Data in /usr/local/bin
Loading loader...
Support Type:RK322A	Loader ver:2.56	Loader Time:2021-03-13 16:06:57
Upgrade loader ok.
root@alex-ThinkPad-T510 /home/alex/Downloads > unplug the device

 

Ok, did it again without the erasing in the end... because the device does not start from NAND installed images unfortunately...

 

I noticed this time the output from "upgrade_tool ..." was very quick and showing "Upgrade loader ok" much faster than before. I waited for 2 minutes after that output.

Edited by Alex83
no luck with booting the device from NAND
Posted
  On 3/20/2021 at 5:48 PM, Alex83 said:

Hi Jock,

 

actually i did it as you said and it recognises the NAND again. - I just don't know if I did a mistake again because I read somehow something with "NAND Jump" and did this in multitool. - Afterwards I installed as usual Armbian with legacy-Kernel 4.19 to NANA via sTep...

 

Anyway... after finishing the device does not boot. The HDMI output stays black. 

 

I just do a minimal buster installation with 4.19 kernel now and write back in a minute...

 

Maybe if the device works again I can provide you dmesg from armbian there... or I would also provide you serial output, but don't know where to connect via serial. If you find some points, I have also soldering skills ;)

Expand  

About the serial, unfortunately it is not a board I known. I know chiptrip hide the serial pads very well on their boards and I had to ask @fabiobassa (he has much better skills in electronics than me) to find them.

 

Ok, the NAND is back and this is a very good news, now I investigate the issue about the legacy kernel armbian not booting (beware: legacy kernel is 4.4, not 4.19, are you sure you're using the right image?), trying to replicate on my board and will tell you ASAP

 

Posted
  On 3/20/2021 at 6:05 PM, jock said:

About the serial, unfortunately it is not a board I known. I know chiptrip hide the serial pads very well on their boards and I had to ask @fabiobassa (he has much better skills in electronics than me) to find them.

 

Ok, the NAND is back and this is a very good news, now I investigate the issue about the legacy kernel armbian not booting (beware: legacy kernel is 4.4, not 4.19, are you sure you're using the right image?), trying to replicate on my board and will tell you ASAP

 

Expand  

Hey! Good news! Luckily the Buster-minimal-image with kernel 4.19 boots up! B)

 

You're the master! I'll reply after finishing booting. - Actually my prefered system is always ubuntu because of some ppa for tvheadend and so on... maybe I'll change later again.

Posted
  On 3/20/2021 at 6:27 PM, Alex83 said:

Hey! Good news! Luckily the Buster-minimal-image with kernel 4.19 boots up! B)

 

You're the master! I'll reply after finishing booting. - Actually my prefered system is always ubuntu because of some ppa for tvheadend and so on... maybe I'll change later again.

Expand  

 

Maybe you meant kernel 4.4? I just finished installing the legacy kernel image (freshly downloaded from here) on NAND and mine also boots fine :D

 

I will be waiting for iperf3 and reboot tests ;)

 

 

Posted (edited)

You're really the rk322x-god! :D

 

 

  Reveal hidden contents

Reboot worked the first time. After I ran rk322x-config I haven't tried, but will reply if reboot is still working then.

 

Unfortunately the wifi-issue is still onging... I need to ping my wanted remote device from V88-box before I can get ssh into it. So that's still very annoying, but guessing it is because of the good ssv6051 chipset...

 

Yes, you are right. I meant of course kernel 4.4

 

I also tried the iperf3-test again and guess!!

 

root@rk322x-v88mini4k:~# iperf3 -sD  
root@rk322x-v88mini4k:~# iperf3 -c localhost
Connecting to host localhost, port 5201
[  5] local ::1 port 54390 connected to ::1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   172 MBytes  1.44 Gbits/sec    0    895 KBytes       
[  5]   1.00-2.01   sec   174 MBytes  1.45 Gbits/sec    0    895 KBytes       
[  5]   2.01-3.00   sec   172 MBytes  1.45 Gbits/sec    0   1.31 MBytes       
[  5]   3.00-4.00   sec   174 MBytes  1.45 Gbits/sec    0   1.31 MBytes       
[  5]   4.00-5.00   sec   172 MBytes  1.45 Gbits/sec    0   1.31 MBytes       
[  5]   5.00-6.01   sec   174 MBytes  1.45 Gbits/sec    0   1.31 MBytes       
[  5]   6.01-7.00   sec   172 MBytes  1.45 Gbits/sec    0   1.31 MBytes       
[  5]   7.00-8.00   sec   174 MBytes  1.45 Gbits/sec    0   1.31 MBytes       
[  5]   8.00-9.00   sec   172 MBytes  1.45 Gbits/sec    0   1.31 MBytes       
[  5]   9.00-10.01  sec   174 MBytes  1.45 Gbits/sec    0   1.31 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.01  sec  1.69 GBytes  1.45 Gbits/sec    0             sender
[  5]   0.00-10.01  sec  1.69 GBytes  1.45 Gbits/sec                  receiver

iperf Done.

 

Bammm... doubled the speed! Great work man!

 

root@rk322x-v88mini4k:~# iperf3 -c 192.168.178.193
Connecting to host 192.168.178.193, port 5201
[  5] local 192.168.178.161 port 57850 connected to 192.168.178.193 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  4.96 MBytes  41.6 Mbits/sec    0    280 KBytes       
[  5]   1.00-2.03   sec  4.78 MBytes  39.0 Mbits/sec    0    366 KBytes       
[  5]   2.03-3.00   sec  4.05 MBytes  34.9 Mbits/sec    0    378 KBytes       
[  5]   3.00-4.00   sec  4.61 MBytes  38.6 Mbits/sec    0    378 KBytes       
[  5]   4.00-5.00   sec  4.49 MBytes  37.7 Mbits/sec    0    397 KBytes       
[  5]   5.00-6.00   sec  4.04 MBytes  33.9 Mbits/sec    0    397 KBytes       
[  5]   6.00-7.00   sec  4.60 MBytes  38.7 Mbits/sec    0    397 KBytes       
[  5]   7.00-8.00   sec  4.22 MBytes  35.3 Mbits/sec    0    397 KBytes       
[  5]   8.00-9.00   sec  4.39 MBytes  37.0 Mbits/sec    0    397 KBytes       
[  5]   9.00-10.00  sec  4.21 MBytes  35.3 Mbits/sec    0    397 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  44.4 MBytes  37.2 Mbits/sec    0             sender
[  5]   0.00-10.11  sec  43.9 MBytes  36.4 Mbits/sec                  receiver

iperf Done.
root@rk322x-v88mini4k:~# iperf3 -c 192.168.178.193 -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.161 port 57854 connected to 192.168.178.193 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  4.06 MBytes  34.0 Mbits/sec                  
[  5]   1.00-2.00   sec  4.94 MBytes  41.4 Mbits/sec                  
[  5]   2.00-3.00   sec  5.28 MBytes  44.3 Mbits/sec                  
[  5]   3.00-4.00   sec  5.21 MBytes  43.7 Mbits/sec                  
[  5]   4.00-5.00   sec  5.25 MBytes  44.0 Mbits/sec                  
[  5]   5.00-6.00   sec  5.09 MBytes  42.7 Mbits/sec                  
[  5]   6.00-7.00   sec  5.14 MBytes  43.1 Mbits/sec                  
[  5]   7.00-8.00   sec  4.92 MBytes  41.3 Mbits/sec                  
[  5]   8.00-9.00   sec  5.18 MBytes  43.5 Mbits/sec                  
[  5]   9.00-10.00  sec  4.88 MBytes  40.9 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.10  sec  52.0 MBytes  43.2 Mbits/sec   38             sender
[  5]   0.00-10.00  sec  49.9 MBytes  41.9 Mbits/sec                  receiver

iperf Done.
root@rk322x-v88mini4k:~# 

 

FritzBox says the device could connect just with 20 MHz bandwith, that means that maximum data rate is 72 Mbit/s.

 

So in this case 44 Mbit/s is ok in my opinion for now...

 

I use 40 MHz bandwith on my FritzBox7490, but output about rk322x device is here:

 

WLAN-Eigenschaften (2,4 GHz)
Signalstärke-50dBm
max. mögliche Datenrate72 / 72 Mbit/s
aktuelle Datenrate71 / 72 Mbit/s
WLAN-StandardWLAN-b+g+n / Wi-Fi 4
Frequenzband2,4 GHz
Kanalbandbreite20 MHz
Streams1 x 1
WLAN-Eigenschaften
VerschlüsselungWPA2
Signaleigenschaften
QoS (Quality of Service)WMM
Repeaterbetriebnein

So it's connected with it's maximum speed the v88 mini 4k

Edited by SteeMan
moved log file to 'spoiler'
Posted

@Alex83

Very good! I'm very pleased to read that finally we got the best out of the board ;)

The wifi benchmark is excellent for a 72Mbit/s link,I'm not totally sure the chip is able to establish 40 Mhz links, I think it is a single stream chip so that is the maximum you can get from it, but nonetheless it is quite above the benchmarks I did in the past that were around 37Mbit/s.

 

Thanks again for the patience, now I go to put credits on first page and a link to the instructions for people who wants to upgrade the NAND bootloader ;)

Posted (edited)

Dear all,

I have a few TV boxes, both amlogic and rockchip, and was able to install Armbian on many of them (with lots of blood, sweat and tears... Thanks a lot to Balbes150, Jock and Fabiobassa for all the superb work and the gold nuggets that they left in the various threads!!!).

I am struggling now with a T96mini_V1.0 (  see https://pasteboard.co/JTEA7XS.jpg  - I don't know why I can't insert pic in post...) which has an RK3228A (2G-16G). And has NO sdcard, I followed advice from the 1st post, but black screen...

I want to use it as a headless linux server, so I don't care about media performance, but WIFI would be appreciable (see pic of chip: https://pasteboard.co/JTELgqj.jpg )

OK, so I found the serial console, soldered some wires, and saw  a boot entirely in chinese... so no cues about dtb. I still have an android image that boots ok, so maybe I could extract DTB?.

(Very) long story short, I was able to burn multitlool in emmc, and boot either from usb or emmc, but I get kernel panics every time (see below). I suspect that I have a wrong DTB, which does bad things...

Here is the boot log, using a toothpick to boot the multitool image from usb:

 

  Reveal hidden contents

 

When booting from emmc, most of the time I have nothing after "Booting kernel, and sometimes some kernel traps.

 

Any suggestions or pointers?

 

Cheers,

 

Michel

Edited by TRS-80
put long output inside spoiler
Posted

@gurzixo

Ciao Michel, welcome in this valley of tears lol lol lol
Well, another lovely board with no SD reader and this makes the whole story a bit complicated , but not impossible to solve.
Ant thank you so much for photos and serial uart log, this really helps

The kernel as you can see is starting and the kernel panic could be for wrong trust_os, wrong dtb, not mounting the root fs ,one only or all 3 causes lol
If you have original firmware you can extract the pieces and in particular dtb with this tool

RK3xxx_firmware_tools_5.23.1_by_SergioPoverony.zip


(google for it ) but I guess you have nothing of different from other boards with ddr3 and emmc

Let's wait @jock for further infos on how to approach at this rare study case but I can say to you for sure that it will boot

You are new so cannot post many posts in the first days , you must wait I believe one day for other post.
And don't forget to click a " like" ( the heart icon) for helping good reputation of authors
Where are you from if I can ask , and have you some skills on linux so it will be in some manner easier?

 

EDIT:

I attached a command line CLI only windows tool to extract pieces from a firmware , try it please
 

imgRePackerRK_106.zipFetching info...

Posted

@gurzixo hello. Yes, your board is doing absolutely weird things.

This is a rare situation I yet have to understand why it happens. I have a board with rk3228a that runs for days without any issue on legacy 4.4 kernel, but crashes immediately with messages similar to yours if I use the mainline kernel.

I tried almost everything I could think about on that board to solve or at least mitigate the issue, but with no success.

 

If you could extract the DTB, it would very helpful for clues that may explain what is happening.

The multitool DTB is a very basic DTB that should work on all boards, it is designed to be very compatible and usually works on most boards without complaints; the only testing thing I can imagine is to disable the vdd_log and vdd_arm regulators and removing/disabling the cpu operating frequency table to avoid frequency scaling.

 

I already did such experiments on my rk3228a board, but it did not improve stability at all, suggesting the issue is probably elsewhere.

Posted
  On 3/20/2021 at 7:20 PM, jock said:

@Alex83

Very good! I'm very pleased to read that finally we got the best out of the board ;)

The wifi benchmark is excellent for a 72Mbit/s link,I'm not totally sure the chip is able to establish 40 Mhz links, I think it is a single stream chip so that is the maximum you can get from it, but nonetheless it is quite above the benchmarks I did in the past that were around 37Mbit/s.

 

Thanks again for the patience, now I go to put credits on first page and a link to the instructions for people who wants to upgrade the NAND bootloader ;)

Expand  

 

Thank you very much to both of you!

 

Unfortunately even if I use now the Ethernet Interface instead of wifi there are constantly Kernel Panic Informations;

 

root@rk322x-v88mini4k /tmp > docker pull ghcr.io/linuxserver/tvheadend:version-dbaa0f85
version-dbaa0f85: Pulling from linuxserver/tvheadend
a40841fad2a0: Already exists 
acbbceb19698: Already exists 
56eb82dc2361: Already exists 
402d271dd404: Already exists 
7041d1197031: Already exists 
369be319bd57: Pull complete 
6d5d33f3b1b3: Extracting  122.6MB/134.4MB
3049e89ec5b4: Download complete 
a5727aec668b: Download complete 
c0fbe37b9349: Download complete 
354c8a31be5a: Download complete 
31630dad9f91: Download complete 
3487ab2c89e1: Download complete 
3bb370f7506f: Download complete 

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.608874] Internal error: : 1c06 [#1] SMP ARM

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.764392] Process exe (pid: 2644, stack limit = 0xed6bc250)

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.773751] Stack: (0xed6bdbc4 to 0xed6be000)

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.781691] dbc0:          b01a7af8 ba220dc0 00000001 00000001 b0e84ffc ed6bdbf8 ba2bd518

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.793560] dbe0: ba220dc0 ee835000 00000000 00000699 b024f418 ba220dc0 00000002 00000af7

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.805457] dc00: 00000000 ee835000 ba2bd518 ba21a040 00000000 ba2bd61c b021b9f4 b0cae638

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.817404] dc20: ed6bdd8c ed6bdc30 b0221afc b01a77f0 00000699 b021b9f4 60010013 60010013

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.829397] dc40: ed6bdc64 00000009 00009699 00000000 00009000 00000000 ed6bdc94 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.841435] dc60: b007c260 b0273e50 00000000 00000000 b0cae6b0 cfff8600 ba21a040 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.853482] dc80: ec336c00 00000000 ed6bdd1c ed6bdc98 b0273e50 b015b130 ba2bd518 ba21a040

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.865550] dca0: b125a444 00000000 ed6bdcd4 ed6bdcb8 b0223b48 b024f4b0 00000000 00001000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.877620] dcc0: 00000007 ba2bd518 ed6bdcfc ed6bdcd8 b019cbf4 b0223ae8 ba2bd518 ee846fdc

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.889707] dce0: 00008000 00000000 00008000 00000000 ed6bdd3c 00000000 b0cae65c 00000b6f

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.901824] dd00: ebc81000 ec3dc300 b0cae494 00001000 ed6bdd3c ed6bdd20 b024f4e8 b0273cbc

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.913979] dd20: 00001000 00001000 ba2bd61c ba21a040 ed6bdd8c ed6bdd40 b0222474 b024f4b0

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.926141] dd40: 00001000 00001000 ee846fdc 00000000 00009000 00000000 00008000 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.938328] dd60: ed6bdd94 00000699 ed6bdeec ba2bd61c 00001000 00000000 b0cae494 b02219f8

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.950558] dd80: ed6bddec ed6bdd90 b0113580 b0221a04 00000699 00000000 ed6bddb8 ed6bddbc

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.962823] dda0: 00000000 ed6bc000 00003600 ec3dc300 00009000 00000000 ee846fdc 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.975084] ddc0: 60579483 ec3dc300 00000000 ed6bdf00 ba2bd61c ed6bdeec ec3dc300 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.987342] dde0: ed6bde34 ed6bddf0 b0114bf4 b01134b0 ee3b0800 00000c99 ed6bde34 b009e6f0

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  221.999650] de00: 60579483 b0c95678 ebccd540 ba2bd518 ed6bdf00 00000000 ed6bdeec ba2bd5a0

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.012001] de20: ec3dc300 00003c99 ed6bded4 ed6bde38 b0215e28 b0114a98 ed6bde58 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.024366] de40: 00000000 b018a4e8 ed6bde84 ed6bde58 b018a4e8 b016f638 60579483 28332cdc

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.036719] de60: 60579483 28332cdc 00000c99 00000000 ebc2cc90 00000000 ed6bdedc ed6bde88

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.049095] de80: b0175ec4 b018a424 00020002 eb9bcd24 ebfaa700 ed6bdef4 ed6bc000 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.061503] dea0: 00000006 00000090 ebc2cc00 ec3dc300 00000000 ed6bdf78 00003c99 00005a00

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.073943] dec0: 00000000 00000004 ed6bdf44 ed6bded8 b016cb30 b0215d4c 00003c99 b016d364

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.086398] dee0: 00003c99 54e78000 00003c99 00000001 00003600 00000699 ed6bdee4 00000001

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.098894] df00: ec3dc300 00000000 00005a00 00000000 00000000 ed6bde74 00000000 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.111382] df20: ec3dc300 54e78000 ed6bdf78 00003c99 00005a00 00000000 ed6bdf74 ed6bdf48

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.123908] df40: b016d420 b016ca80 ec3dc303 00000000 ec3dc300 ec3dc303 54e78000 00003c99

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.136490] df60: 00005a00 00000000 ed6bdfa4 ed6bdf78 b016dde4 b016d38c 00005a00 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.149066] df80: 00000000 00000000 54e78000 00000004 b0010304 ed6bc000 00000000 ed6bdfa8

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.161536] dfa0: b0010100 b016dd94 00000000 00000000 00000005 54e78000 00003c99 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.173897] dfc0: 00000000 00000000 54e78000 00000004 00000006 00000040 548000e0 77cefec0

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.186156] dfe0: 00000000 548528d8 74f93714 7504c4f0 60010010 00000005 00000000 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:46:28 ...
 kernel:[  222.312594] Code: e1a0c002 e1a0e002 e2511040 a8a0500c (a8a0500c) 






Message from syslogd@rk322x-v88mini4k at Mar 21 19:47:01 ...
 kernel:[  255.360152] Internal error: : 1c06 [#2] SMP ARM

Message from syslogd@rk322x-v88mini4k at Mar 21 19:47:01 ...
 kernel:[  255.547588] Process systemctl (pid: 2897, stack limit = 0xd26c2250)

Message from syslogd@rk322x-v88mini4k at Mar 21 19:47:01 ...
 kernel:[  255.558613] Stack: (0xd26c3fa8 to 0xd26c4000)

Message from syslogd@rk322x-v88mini4k at Mar 21 19:47:01 ...
 kernel:[  255.567661] 3fa0:                   00000000 000e7bc4 00000003 00000000 000e7bc4 aee8e668

Message from syslogd@rk322x-v88mini4k at Mar 21 19:47:01 ...
 kernel:[  255.580588] 3fc0: 00000000 000e7bc4 00000003 0000008c 00000003 aee8f294 a6f83fdc aee8f2a0

Message from syslogd@rk322x-v88mini4k at Mar 21 19:47:01 ...
 kernel:[  255.593501] 3fe0: 0000008c aee8e660 a6f7fa55 a6f7efc6 400f0030 00000003 00000000 00000000

Message from syslogd@rk322x-v88mini4k at Mar 21 19:47:01 ...
 kernel:[  255.606447] Code: 1a00000d e3a01055 ee031f10 e1a0200d (e5921048) 


 

Would you mind to help me to get TVHeadend 4.3 (unstable) to work on this device? I need it for armhf architecture and can't find any good resource. Only for Ubuntu Focal there are Repositories and the reson why I usually use Ubuntu. Unfortunately there is no minimal Image for Ubuntu and that's why I installed Buster image.

 

Posted

@Alex83
tell me if I am correct : will You  use a tv dongle to receive dtt tv ?
what is for tvheadend ???

I guess you want use it for this purpose ... I did some experiments to receive DAB and DMR radios on a 322x and..... well hope your  project will be functional, mine was not :unsure: :wacko:
 

Posted

Hi, 

 

I already use it with focal images on my Banana PI, but wanted to replace it to 322x. I don't know why the paic appears it seems like this always happens if a lot of data get extracted, but the RAM shouldn't overflow. I start wie 100MB of 1GB RAM usage and pull around 200 MB. So it shouldn't be full and the panic happens on diffrent stages of pulling.

Posted

@Alex83 I have no experience with tvheadend, I don't even know what it is. It looks to me that the error is somehow related to bad architecture.

Try to post a question in the general chit chat forum on how to compile it for armhf if it is your necessity.

Posted

But @Alex83 you still continue to compare things lol lol

maybe the one for banana pi is compiled with flags for banana pi, the error you have is may be and i say maybe related to things that tries to download and it doesn't find on repository since even if are both ARM may be some processor instructions are not the same.

I told you, you want to port on this box things made for other box: of course you will get it but be ready to tears and blood
And as @jock said it seems more a problem of architecture and compatibility than a kernel related problem

have you tried apt update && apt install tvheadend  maybe are in official repository ?

 

Posted

Hey guys,

 

thank you very much for your replies! I don't wanna continue off-topic discussions even if I would love to discuss with you longer. ;) But just a hint that in armbian-config menue there is a Point for "Softy" and there you can directly install Tvheadend. Unfortunately it is stable release, that means Version 4.2 and I wanted to try unstable 4.3. There is a possibility for transcoding via VAAPI and hoped maybe it works since VAAPI should work with that devices, don't they? 

Posted
  On 3/21/2021 at 8:05 PM, Alex83 said:

Hey guys,

 

thank you very much for your replies! I don't wanna continue off-topic discussions even if I would love to discuss with you longer. ;) But just a hint that in armbian-config menue there is a Point for "Softy" and there you can directly install Tvheadend. Unfortunately it is stable release, that means Version 4.2 and I wanted to try unstable 4.3. There is a possibility for transcoding via VAAPI and hoped maybe it works since VAAPI should work with that devices, don't they? 

Expand  

Uhm... I don't know the state of VA-API for hardware decoding and encoding with rockchip on legacy kernel. Maybe there's a driver and it works, but surely there is nothing already cooked for that. The media script pointed in the first page does not install any va-api driver (it installs rkmpp, 3d support via armsoc + mali drivers, kodi and ffmpeg), and I don't know if there is some kind of wrapper to do so, but I guess not.

On mainline kernel, things are materializing right now, but it is still too early for va-api support - it is not yet planned AFAIK.

Posted

Hey guys, 

 

don't wanna bother you, but independent of my tvheadend topic there appear more and more storage errors like the ones I posted... Any ideas what could be wrong? The device looses it's accessability also then...

 

root@rk322x-v88mini4k ~ > df -h
Dateisystem    Gr��e Benutzt Verf. Verw% Eingeh�ngt auf
udev            486M       0  486M    0% /dev
tmpfs           100M    5,2M   95M    6% /run
/dev/rknand0p1  6,9G    1,5G  5,3G   22% /
tmpfs           497M       0  497M    0% /dev/shm
tmpfs           5,0M    4,0K  5,0M    1% /run/lock
tmpfs           497M       0  497M    0% /sys/fs/cgroup
tmpfs           497M     20K  497M    1% /tmp
/dev/zram1       49M    3,9M   42M    9% /var/log
tmpfs           100M       0  100M    0% /run/user/0
root@rk322x-v88mini4k ~ > 

 

Posted

@Alex83
This is my df -h

 

df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            991M     0  991M   0% /dev
tmpfs           201M  5.5M  195M   3% /run
/dev/mmcblk2p6   15G  1.9G   12G  14% /
tmpfs          1001M     0 1001M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs          1001M     0 1001M   0% /sys/fs/cgroup
tmpfs           201M     0  201M   0% /run/user/0
tmpfs           201M  8.0K  201M   1% /run/user/1000


and conside mine is emmc of 16 gb.
Which kind of errors do you believe have ???

And if it loose accessibility is because this thing you are trying to download/install goes in wrong places and/or break something in booting process
Anyway in my little opinion is you want to give a try it should be this:

https://github.com/orgs/linuxserver/packages/container/tvheadend/1613987

this is for arm7 32 bit
But if you encounter problems I will not go to answer you since this is a more specific question and not a general problem of board
 

Posted

Hey, thanks for your answer @fabiobassa!

 

As I said I use now the offer of "Softy" in armbian-config. This includes also Tvheadend Version 4.2.

 

I also noticed if I limit the maximum CPU speed to the second highest then the box becomes more stable and haven't seen an error like in my above post yet. The device works overnight already without errors. 

 

I also noticed that wifi issue is still ongoing and TX performance is usually worse than RX even when it's connected with full speed (72 Mbit/s up and down @50dBm).

 

Well it seems like I need to cut my speed @1,3GHz for the box unfortunately...

 

I noticed that CPU usage is showing often more than 100% on one process. This is still a bit confusing for me, but I think even when there are 4 cores shown in htop maybe it's handling is different than the boxes I know ( * pi series) with this topic. The speed on the right side is just shown once the CPU speed of 1,3GHz and in *pi boxes you see the speed 4 times and no single process is shown >100% CPU load. 

 

But I will now test a bit around and give you feedback about the stability. 

 

Thanks a lot for now! 

Posted
  On 3/22/2021 at 9:20 AM, Alex83 said:

Hey, thanks for your answer @fabiobassa!

 

As I said I use now the offer of "Softy" in armbian-config. This includes also Tvheadend Version 4.2.

 

I also noticed if I limit the maximum CPU speed to the second highest then the box becomes more stable and haven't seen an error like in my above post yet. The device works overnight already without errors. 

 

I also noticed that wifi issue is still ongoing and TX performance is usually worse than RX even when it's connected with full speed (72 Mbit/s up and down @50dBm).

 

Well it seems like I need to cut my speed @1,3GHz for the box unfortunately...

 

I noticed that CPU usage is showing often more than 100% on one process. This is still a bit confusing for me, but I think even when there are 4 cores shown in htop maybe it's handling is different than the boxes I know ( * pi series) with this topic. The speed on the right side is just shown once the CPU speed of 1,3GHz and in *pi boxes you see the speed 4 times and no single process is shown >100% CPU load. 

 

But I will now test a bit around and give you feedback about the stability. 

 

Thanks a lot for now! 

Expand  

 

rk322x-config sets the maximum cpu frequency to 1.2Ghz in case you have an rk3228a because it is their rated speed. Maybe your board has a rk3228a but you choose rk3228b or rk3229.

About wifi performance, it is perfectly normal that TX and RX performance differs. Usually TX is a bit higher than RX, but that depends a lot on the setup and the connected devices.

If a process is using more than 100% of the cpu (I guess you mean using top or htop) it means that the process is using more than one core. This is perfectly normal although.

The only issue with legacy 4.4 kernel is the load average, which has its baseline at 4.00: that's a bug, because the baseline should be 0.00.

 

Posted

Thanks to all of you for your kind words! I also forget to thank all the other who helped ;)

 

FYI I am French, 62, living now in Portugal, *soldered* my first computer (a Z80 Nascom ;) ) at 19, and I have a good experience in embedded systems, electronics, network and system programming on various OSes.

 

@fabiobassa @Jock :

I tried to extract the dtb using PabloCastellano's extract_dtb.py, but it gave weird things. Thanks for your tool (I work on Linux and there was also a Linux version!). Using it with 2nd level decoding, and then using linux's dtc on Image/resource.img.dump/rk-kernel.dtb for my working android image gave:

  Reveal hidden contents

 

But before taking the dtb route, I would like to fully reprogram this board from scratch, as I am sure that I did some mistakes somewhere.

especially:

GPT 0x63337df8 signature is wrong
recovery gpt...
GPT 0x63337df8 signature is wrong
recovery gpt fail!

At the beginning of the boot seems very bad!

 

I am new to those boards, knowing nothing from them 2 weeks ago, and the information is scattered in lots of places (is there a WIKI somewhere, as it is BADLY needed?), so this is what I understood:

  • The RK322X chips are done by Rockchip which assembles IP blocs licenced by ARM to make a SoC. ARM and the communauty provides compilers, linkers and the like.
  • The box is intended by Rockchip to run under Android, and Rockchip tools are heavily biaised toward this environnement, with a lot of specific tools, and an old kernel (3.x and maybe 4.x).
  • Armbian is a Debian distribution, adapted to run on Arm chips, which makes for a very diverse ecosystem, and follows the Linux track (new kernels, etc). Both environments do the same job, but there are many places where armbian and rk/android tools are not compatible.
  • The box has a (set of) processors, RAM and flash plus various peripherals, some of them being integrated in the SoC. The flash can be Nand, or eMMC (which is nand plus a controller taking care of many details, including bad blocks and wear levelling). As seen from the software, flash is a linear vector of blocks (of typically 512K each) which can be R/W with only this granularity. All of them have a (usually hidden) serial line, that runs @ 115200 bauds, and gives lots of system information.
  • Putting Linux on this box consists in reprogramming fully the flash, and this is done using an *image* (extension ".img"). It can be flashed using RK tools (rkdeveloptool for linux) directly on the chip through USB, or by crafting an sdCard which will do the job.
  • The RK322X has 2 reset modes:
    • Loader mode which allows only access to flash above 0x2000*0x200
    • maskrom mode which allows for full access. The chip enters maskrom mode when it cannot read flash; that can be accomplished  in a wild way by shorting pins 8 and 9 of the eMMC chip at boot (which is why RK322X chips are nearly unbrickable)
  • The boot sequence is complex:
    • Execution starts first with a miniloader (? at a certain offset in flash?) whose job is to load a 2nd level loader (?located at another offset in flash?) called u-boot.
    • U-boot is based on Das U-Boot modified by many people. All of them are more or less compatible, with subtle differences. They have one thing in common, which is that a ^C on the serial line stops the boot and gives a CLI. The Job of uboot is to load the Linux kernel in memory, and start it using a command line with various parameters.
    • One important parameter is the DTB, which indicates to the kernel (drivers) the hardware details. This is a binary blob (.dtb) compiled from various source modules (.dts). The armbian and android dtb are similar but not compatible. They can be decompiled by (mostly uncompatible) compilers (dtc in linux).
    • Another important parameter is the offset in flash of various filesystems.
    • Then he kernel starts...
  • An image is the concatenation of various blobs according to a certain format. Armbian and RK images are NOT compatible, as they don't have the same numbers and type of blobs, and so require different sets of tools (?which ones?)
  • Is the 1st-level loader (?located at offset 0 in flash?) part of the armbian image

So, in order in order to *fully* reflash my box:

  1. Manage to enter maskrom
  2. rkdeveloptool db rk322x_loader.bin
  3. rkdeveloptool ul rk322x_loader.bin
  4. rkdeveloptool wl 0 multitool.img

Am I right or should I have missed something?

 

Michel

 

 

Posted

@gurzixo
hello Michel , yes to ALL your questions except for
 

  Quote

maskrom mode which allows for full access

Expand  

 

this is true for emmc. For nand since them charateristic the discussion is little little different, but let's assume is quite the same for our purpose:
It is good idea and safe approach DON'T TOUCH idbloader , the very very very first stage of loading something in ram and go modify starting from address 2000
Will follow a different approach for your board so please be patient some hours so i can give you more details
EDIT :

  Quote

or by crafting an sdCard which will do the job

Expand  

  this also is half half correct: the sd card will do the job if there is a uboot and a trust ALSO in sd card at right places . It will happena " jump" from the internal uboot to sd uboot and then continue bootng from sd.
But don't worry we wil go back from scratch

Posted

I have a couple of questions:

- Is this storage map the one used by android, multitool, legacy and up-to-date armbian, or are they each using different maps?

- I found very few information about the GPT partition table, what to put inside and how to build the parameter_gpt.txt  file used by rkdeveloptool. Are there some pointers available?

 

I have also a strange thing: I am able to enter loader mode by wiping emmc, and everything works well (ie. test chip, read id, etc.). But when I enter maskrom mode, I have the correct PID/VID on USB, but all rkdevelop commands block (ie I have to press ^C to come back to shell).

This is the case either when I reboot by software (rkdevelop rd 3) or by hardware (ie. short emmc pins)

And when I reload multitool in emmc, it still gives kernel panic.

strange...

 

 

 

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines