Jump to content

Recommended Posts

Posted (edited)

Good evening, I want to thank you for your help, I finally managed to boot and I already have the box with klipper and mainsail. After dual booting the computer to be able to have Ubuntu. I was able to use rkdeveloptool to completely erase the TVbox's flash and now it starts from SD.

 

Overlays=led-conf7 only Change led. I make more tests

Edited by Carlos Ervedoso
Posted

yes the hdmi works. I even have klipperscreen installed. apparently everything works except the wifi. the wifi I'll try to get the chip model and see if I can get a driver for it or try with an external receiver. Sorry but my English is not very good

Posted
  On 12/12/2023 at 8:44 AM, Carlos Ervedoso said:

yes the hdmi works

Expand  

Hi @Carlos Ervedoso, so you are running Armbian on H20 tv box? Can you please summarize me what kernel version are you using, and what option you selected when you compiled the image? 

@jock; unfortunately adding overlays=led-conf7 in /boot/armbianEnv.txt didn't help in my case. I have to do more tests.

 

Thanks a lot.

 

Posted (edited)

Bom dia, não compilei, apenas usei uma versão pronta. o segredo era apagar todo o emmc . Não mostrará nada no HDMI. Eu dimensiono tudo com massa. mas deve estar conectado à internet via cabo. depois de iniciar e usar rk322x-config para alterar as configurações.
Escolhi rk3228a, ram ddr3 e ledconf 7. depois disso acende a luz azul e já tenho hdmi

a imagem que usei foi esta: Armbian_23.11.1_Rk322x-box_bookworm_current_6.1.63_minimal.img

mas inicialize com qualquer imagem

 

Captura de tela 2023-12-12 113153.png

Captura de tela 2023-12-12 113041.png

Edited by Carlos Ervedoso
Posted

I realized that it's been a few days, anyway, by burning the image using rkdeveloptool after erasing emmc, I successfully booted with Ubuntu using kernel 6.1.

I set it up using SSH with everything at default and led-conf7, rebooted and had success with HDMI and ETH.

 

image.thumb.png.7d917b11893a4d13ceb20d4e2ac2666e.png

 

The CPU only exceeded 60ºC during the update, but that was because it was without the case.

 

Edit1: After a complete system update, I ran rk322x-config again and the HDMI and LED stopped working, but that was ok, I decided to use it as a local server and for that I only need the SSH and ETH connection, WIFI would be interesting but it's not a necessity.

I am sending you the dmesg, fdisk and journalctl attachment for the board initialization after all this.

So I used .dtbo to get led-conf7 working again, but I didn't get to test HDMI.

Detail, when the HDMI worked I tried to install LXDE to test the power of the box, it crashed in the middle of the installation and I had to reinstall the entire system, as it was corrupted.

 

Edit2: With the case installed, the card got very hot, so I installed 2 coolers to cool the card, one sending air to the CPU and the other to remove air from inside the case (but I intend to remove the second one). After that, the card doesn't even exceed 50ºC during the benchmark.

 

Case.thumb.jpeg.b8e88c4e4b39627140884fdae20b71df.jpegSystem.thumb.jpeg.b949745972f40200b73f38ecc3a52466.jpeg

 

The objective is to use its useful life to test some applications. I'll wait for system updates to test the HDMI and WIFI again, but like I said it's not really necessary

dmesg_k405.txtFetching info... fdisk_k405.txtFetching info... journalctl_k405.txtFetching info...

Posted
  On 12/12/2023 at 10:39 PM, k405 said:

After a complete system update, I ran rk322x-config again and the HDMI and LED stopped working, but that was ok,

Expand  

Perhaps you did not select led-conf7 again? rk322x-config is supposed to be run once when system is freshly installed and then it should not be anymore necessary.

Posted

Thank you @Carlos Ervedoso, it works.

My fault I didn't  follow with trust @jock's detailed installation manual.

When I tried for the first time armbian and librelec images on h20 box, none of them was booting. Only the multitool worked. But after resetting the eMMC, even the multitool was no longer booting.
The Armbian image still seemed not to boot (due to the absence of LEDs and HDMI of the default dtb; at that time I had not yet connections to the serial interface) so I (erroneously) deduced that for the h20 box the eMMC reset was a wrong step to take. My fault.

Now it works fine: thanks again for your great job and for sharing it.

Posted (edited)

Também inicialmente não segui bem o manual, depois instalei o Ubuntu em dualboot com Windows e consegui apagar o flash com sucesso. Aí conectei o TVbox a cabo no modem e consegui acessar o TVbox usando o PuTTY. Configurei o ledconf7 e agora tenho led e hdmi. Eu poderia inicializar com multitool e libreelec, mas com Armbian não consegui até apagar completamente o flash. Agora gostaria de conseguir fazer o wifi interno funcionar, mas não consigo identificar o chip

Screenshot_2023-12-14-11-18-54-206_com.miui.gallery.jpg

Screenshot_2023-12-14-11-18-45-203_com.miui.gallery.jpg

Edited by Carlos Ervedoso
Posted
  Quote

Perhaps you did not select led-conf7 again?

Expand  

@jock I remember selecting exactly in led-conf7, that was more than 1 week ago.

Currently I don't have much time, but as soon as I do I will redo the whole process

Posted (edited)

Hello

 

My box needs a power cycle if I do sudo reboot and the wifi driver doesn't load so I tried to download its DTS to find the right overlay and rk322x-config correct choices but I'm a bit lost reading it, can someone point me to the right direction?

 

The file is at this link 05_dtbdump_rockchip,rk3229.dts and the backup image file is at tvbox-backup.gz


I don't know if it is the correct (or easier) procedure but here is how I get the DTS

  Reveal hidden contents

My box pictures and info are at

Any help or pointers will be greatelly appreciated, thanks!

!3runo

from Brazil

Edited by BLFC
Posted

Hi everyone,

 

I'm quite new to both these rockchip devices as well as armbian (at least from a developer's perspective),

but have quite some experience with OpenWrt (adding BSP for several wireless routers e.g. ath79, ramips-mt7621), so am familiar with device tree files and the low level hardware stuff.

 

For some fun over the holidays, I grabbed a few cheap rockchip boxes from AliExpress - starting with the rk322x ones here.
Sorry I didn't read through the full 79 pages of this thread yet, so not sure about how much of this is still relevant, and what is in mainline armbian already.

 

Box #1: "MX Q Pro 4K", eMMC + separate RAM chips. L-shaped PCB "MXQ-18DP58_01" with SD card on the thinner side

Could not manage to get it to boot multitool or armbian from SD card, the box would halt with a dim blue LED.
Looking at the serial console (booting OEM Android), the TX pin seems to be shared with the external SD card, so there is some garbage visible after "FwPartOffset", when it probes for SD card, but none is inserted:

 

  Reveal hidden contents


When the SD card is inserted, it boots until "FwPartOffset" with lots of garbage following, i.e. it is apparently reading lots of stuff from the SD card.


Couldn't get much further with this for now, so proceeded to

 

Box #2: "H20 4K Ultra HD", green board with eMCP, board label "H20-221-V1.71-2-B HXW23071201 20230714".
This one perfectly booted multitool from microSD, made a full backup, downloaded `Armbian_23.8.1_Rk322x-box_bookworm_current_6.1.50.img.xz`, thinking "what could probably go wrong", dared to write this image to flash.

Trying to restore the backup, but now it's not even booting to multitool from microSD anymore (This box is probably a new version of H20, as also mentioned in this thread https://forum.armbian.com/topic/29644-h20-box-with-rk3228a-bricked/).

Backup: https://mega.nz/file/SZ433bJA#RQZTSJrsjyJWOXlFWV6TLaqxMB0-C4JtExWyQbAyqp8

 

Tried to enter maskrom to re-flash the backup with rkdeveloptool, shorting resistors to GND as seen in some post here..., but no success yet.

Can't see anything enumerating on USB. Is the cable quality relevant here? I built a ~10cm USB A<->A cable based on flat cable, with only GND, D- and D+ connected (the 5V from the H20 power plug go directly to the VBUS pins of the pins, don't want to feed this back to my host coputer). So there is probably no VBUS detection required for enumerating the USB, since it is forced to 5V all the time anyways?

 

Is there any special output to be expected on the serial console to verify maskrom was entered? I only see

 

DDR Version V1.10 20190926
In
ID:0xFFF
330MHz
LPDDR3
Bus Width=32 Col=10 Bank=8 Row=15 CS=2 Die Bus-Width=32 Size=2048MB
mach:14
rd addr 0xC0000000 = 0xFFFF
ERR

 

What is located at 0xC000000? The output is the same no matter if an sd card is inserted or not.

My understanding is, mask ROM mode will be entered when no other bootable source was detected, that's why we short the eMMC clock line to GND? (i.e. also microSD needs to be removed then)

 

So, how do I know I'm in maskrom mode, can someone show a serial log? Maybe I just need to try different pins, or something was damaged while soldering a push-button to the CLK line (are those tiny capacitors really needed? 😇 )

Posted

@s-2

hello welcome on this thread, and unfornutately  is a huge one with sone really interesting pages and some other less.
but go staight  to answers

The first one isn' t a rk322x but a "CPU: rk3128" and thus you'll not find anything interesting on this thread , go search for 3128 (if any)

The second is splitting out errors due to incorrect ddrbin ( let' s call it bios...) and you must go in maskrom to correct the problem by shorting pins on the board ( i haven't one so ignore which ones)

Surely @jock will share this answer

Posted
  On 12/17/2023 at 4:43 PM, fabiobassa said:

The first one isn' t a rk322x but a "CPU: rk3128"

Expand  

Oh wow, that seemed almost too obivous, so these are indeed a completely different family of devices... sorry for the noise.

 

  On 12/17/2023 at 4:43 PM, fabiobassa said:

and you must go in maskrom to correct the problem by shorting pins on the board

Expand  

Okay thanks, I will just try more pins then, maybe also CLK line from external microSD slot etc. 🙂

Posted
  On 12/17/2023 at 3:05 PM, s-2 said:

Is there any special output to be expected on the serial console to verify maskrom was entered? I only see

Expand  

Because your board wants ddrbin v1.11 and not v1.10; just use a new multitool and, perhaps, a fresh armbian image from official repositories and not taken here or there on the forums

Posted (edited)

Okay, finally managed to get this thing into mask ROM mode 🙂

Shorting the resistor arrays on the top PCB layer near the eMCP helped (the visible difference is, there is just no UART output in maskrom).

 

The device is listed, but can not display info about flash (not sure if that's to be expected), will look further into which loader to use from here on etc.

$ rkdeveloptool ld
DevNo=1    Vid=0x2207,Pid=0x320b,LocationID=101    Maskrom
$ rkdeveloptool rid
Reading flash ID failed!
$ rkdeveloptool rfi
Read Flash Info failed!

// edit: okay, booting multitool rom microSD works just the same way as entering maskrom, by shorting the eMCp pins, simple as that. trying to restore backup for a start,
 

  On 12/17/2023 at 7:49 PM, jock said:

and, perhaps, a fresh armbian image from official repositories

Expand  

I had used 6.1.50 from https://imola.armbian.com/dl/rk322x-box/archive/ (downloaded ~3 weeks ago, but can try 6.1.63 as well).

When using the "Enhanced By Google" search on the official armbian website, it would always lead me back to this thread.

Are there any other official download sources for the latest (official) images?

 

Indeed the size of multitool.img.gz linked in the first post also changed since then, using the latest version now. // edit: they're identical, size difference was only reported during download

Edited by s-2
Posted

Hi
I had heard that you can install LINUX on a TV BOX, so I got an X96 which has the RK322X CHIPSET.
Since I am a Hamradio and I did some tinkering I told myself that I would create an interconnected repeater with the X96 as a server.
After installation and configuration I was able to create my repeater which worked very well for more than three months.
Here is the photo of the interconnected repeater in working order:

 

Repeteur_interco_sans_Raspberry.thumb.jpg.d4b67e0d9089d3c9720683fa3be8ec4c.jpg

 

I made a tutorial on my site where I described my configuration and installation of the system: https://www.dmr-maroc.com/Repeteur_sans_Raspberry.php

Posted
  On 12/17/2023 at 8:45 PM, jock said:

try 6.1.63; the new ddrbin has been introduced very recently

Expand  

Thanks, works like a charm! I guess I was just a little too early to the party for this particular box 😇

Posted

@djoness

Welcome to the forum, italian HAM here.

I also manager to install hblink and hdswitch in a rk322x .

If you dont mind i will drop you some Infos in you private message, Just to let clean the forum for hardware and firmware related questions

Posted

Thanks for your work. I have been able to give my old android box an actual use, but I am facing some issues.

 

The LEDs on the box don't work as expected. I've tried them all, but none of them have the correct pinout. I have attached the decompiled device tree from it's stock android ROM. I cannot upload the compiled file. The board is labeled MXQ-4K-3229X3D-20170928-V1.8. devicetree.dts

 

I am also having issues with it's wifi chip. I don't know if this is a known issue, but the sv6051p chip it has disables itself after a reboot. It only re-appears after a power cycle. This isn't as much of a deal breaker as I could use Ethernet, but I'd still like the option to use WiFi. It might be related to user BLFC's isuess.

 

I'm hoping there's a resolution for these problems. It would really improve the functionality of the android box.

Posted

I'm currently running home assistant on my tvbox rk322x with USB boot and for wifi I'm using a usb adapter. for me it works with ledconf7 the light stays solid blue while it is booting and then it always blinks after being in the system. I couldn't get the internal WiFi to work and I'm not going to waste much time on it either. For my application this is fine. I want this just as home assistant learning

Posted

@Le Best Noob Thanks for the photos. It looks like a quite a standard rk3229 board, in fact looking into the device tree it uses the same led wiring of mxq_rk3229, which is led-conf2; the only thing doubt is that the leds may be switched in polarity: when set to on, they turn off, and viceversa.

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