Jump to content

CSC Armbian for RK3318/RK3328 TV box boards


jock

Recommended Posts

@jock and @MattWestB 

 

The module probe warning needs to be investigated further.

 

About the display service, it's simply a bash script. It relies on existing other kernel modules to manages the iconsledtrig_timer and  ledtrig_netdev. ledtrig_timer is a basic timer trigger to make the colon blink every half second and is missing from @MattWestB stack trace. If the module is not loaded, the display service will fail on line "echo timer > /sys/class/leds/display::colon/trigger".  So make sure the module ledtrig_timer is available and loaded first. "make service-install" adds a modprobe soft dependency on ledtrig_timer and ledtrig_netdev and will load them automatically if present. So you just need to get sure the modules are built and available.

 

For testing the display LEDs and segments, the first thing to check is whether all LEDs and segments are turned on when probing the module (but before starting the display service). The driver purposely turns on everything on the controller can on probing. If the led doesn't turn on, it's a device tree / controller model / hardware problem. Then you can use "display-utils -c" and follow these instructions: Check your display configuration.

Edited by Jean-Francois Lessard
Link to comment
Share on other sites

@MattWestB did you happen to configure a default led trigger in your display device tree? I think that was the issue.

 

I've updated the tm16xx GitHub repo with a couple of changes:

- fixed default trigger init value

- fixed /usr/sbin service path

- revised error management & verbosity of display service

- added prompts to display check

 

Please update to this latest version and confirm if it solves your issues (please tag me in your reply).

Link to comment
Share on other sites

Thanks for great work @Jean-Francois Lessard !!!

I think the trigger was not loaded OK with my manual install.

My 2 boxes is for the moment HA in production and the second one is updated Android V11 (from V10) then it was having problems running large IPTV (corrupting the files system) that looks working OK now.

Then i have getting all stable and also can getting HyperHDR also running (USB problems . . .  with V1.4 hardware but one other box looks doing better but not the USB3) i can doing one rockade and doing more testing.

Link to comment
Share on other sites

I have been running all ok with kernel 6.6.2-edge-rockchip64

A few days ago updated to 6.6.47-current-rockchip64, now HDMI audio is not working, video is ok, Everything else works like a charm.

Uboot has been also updated. 


I have all the output configuration well configured, but no output at all. Cards detected, output sink detected, default output points to the right ouput, not muted, volume 100%.

 

aplay -l 

card 0: HDMI [HDMI], device 0: ff000000.i2s-i2s-hifi i2s-hifi-0 [ff000000.i2s-i2s-hifi i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ANALOG [ANALOG], device 0: ff010000.i2s-rk3328-hifi rk3328-hifi-0 [ff010000.i2s-rk3328-hifi rk3328-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: SPDIF [SPDIF], device 0: ff030000.spdif-dit-hifi dit-hifi-0 [ff030000.spdif-dit-hifi dit-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 

In dmseg I see this error (maybe related):

[   69.740081] hdmi-audio-codec hdmi-audio-codec.3.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -22
[   69.769681] hdmi-audio-codec hdmi-audio-codec.3.auto: ASoC: error at snd_soc_dai_hw_params on i2s-hifi: -22

 

Any idea how to get HDMI audio working?

Edited by haven
Link to comment
Share on other sites

@haven could not check right now, but nothing should have changed from the audio side. Perhaps the order of the devices changed and what was once the default, now it is not anymore?

Recently I enjoyed some Quake running on an rk3318 box and analog audio was the default.

 

Those errors also are not relevant, the audio devices will still work with no issues.

Link to comment
Share on other sites

Hi everyone! I have 2 TV-boxes H96Max on RK3318 4/64 Gb. I would like to install Linux on them and get the most out of them. 
Ideally to use them as DAW and software synthesizer for Midi keyboard. But even using them as an office desktop would be cool too. 
I am new to the Armbian universe. Can you please tell me which image would be best for these tasks ? Maybe there are some installation and configuration guides. 
Having working wifi, bluetooth and clock is not necessary at all unlike sound. 
I apologize in advance if I have addressed to the wrong place

Link to comment
Share on other sites

@ExUser 44 From the first post download and flash multitool on one SD-Card (USB is not supported by factory android bootloader) and put it in the box and power on.

Make one backup of the eMMCand then shutdown the box and copy the backup to one safe place.

Download one Armbian from links in the first post (stable Ubuntu or debian server or desktop).

Copy the tar file to the (multitool) sd-card image folder and puting it in the box and power it up.

The safest and brutal is erase eMMC and write the Arbian image to ti but can being one brick.

The more safe is only erase the eMMC then the SOC is not finding boot-loader on it its trying booting from sc-card .

If only erasing eMMC you can burning Armbian on one SD-Card and the system shall booting from it  and cant being bricked.

Then getting it working try writing the eMMC with multitol and hope its working well (then you also getting USB boot support).

Link to comment
Share on other sites

Still working on HDMI audio, with some updates.

Pulseaudio default sink set correctly.

 

Fisrt of all the issue appears only on my home TV. Tested with other TV sound seems ok. HDMI port works with other device (my notebook)

  • kernel 6.6.47-current    Armbian v24.8.4  -> no hdmi audio
  • kernel 6.6.2-edge    Armbian v23.11.1 -> no hdmi audio
  • kernel 6.8.11-edge    Armbian v24.8.4 -> no hdmi audio
  • kernel 6.11.0-edge    Armbian v24.8.4 -> no hdmi audio
  • kernel 6.1.63-current  Armbian v23.11.1 ->  hdmi audio OK

still working on ..

Link to comment
Share on other sites

@jock Please help me!! I want to run armbian on my android box but multitool not work!!

My device is H30 Rk3318 4G/64GB. You can see here for full specs:
https://bringyourhope.en.made-in-china.com/product/vZjmPilhAJVo/China-Rk3318-Android-Smart-TV-Box-4GB-RAM-64GM-ROM.html

 

My stock rom link here: https://mega.nz/file/f7oxwRyL#MlehtAsq-XvCw7yYrdBqJuxQMtASRqEjbnDvtOHqbgU

 

 

IMG_20241103_135406.jpg

IMG_20241103_135417.jpg

IMG_20241103_135544.jpg

IMG_20241103_135600.jpg

IMG_20241103_135651.jpg

dmesg.multitool.log

Edited by Truong Thinh Chau
Link to comment
Share on other sites

@Truong Thinh Chau hello, happy to lend a hand, but you should be more specific on what is your problem... dmesg looks ok to me; your board is a new entry too, and it looks to me it has an unknown (to me) PMIC that could be a source of issues.

I will try to have a look into the dtb from your firmware (thanks for that), but lately I've been quite busy and can't promise anything

Link to comment
Share on other sites

@Truong Thinh Chau perfect, thanks fot the device tree, I had the chance to give a quick look into and I can't see anything very different about your board, so it should work out of the box. As long as dmesg looks ok to me, it could be an issue with HDMI. Did you try to access the box via SSH? Here are the instructions: https://forum.armbian.com/topic/34923-csc-armbian-for-rk322x-tv-box-boards/page/45/#comment-135407

 

In case HDMI is not accessible or is not working, the multitool can be operated via regular SSH access, just give a dozen seconds or more to boot. The board led should be blinking when ready and the device should be pingable.

Link to comment
Share on other sites

@Truong Thinh Chau Your board has 2GB of RAM because the tv box has fake specs. My tv box also claims 4gb of RAM, but has 2.

 

About the HDMI issue, in 6.6 kernel there were some important patches to improve HDMI compatibility, but general HDMI raccomendations apply, so try another cable or try another monitor/TV.

There could be something related to the the device tree (a GPIO, mostly), but I had no time to check in detail, sorry.

 

What you can also do is try to use get-edid/parse-edid (google for tutorials) to try and read the EDID from the connected monitor to see if it gets detected

Link to comment
Share on other sites

@Truong Thinh Chau hmmm, preferred mode is 10 which has no modeline but just hsync and vsync indications. i'm no expert in such material, but it doesn't look right to me and your monitor may be not exactly right telling the modeline to the kernel.

 

You may try to append extraargs=video=HDMI-A-1:1920x1080@60 in /boot/armbianEnv.txt to see if the console shows up. If it works, notice that this only forces the console framebuffer to handle such resolution and if you start a desktop environment it will go black again because you have to force the resolution the way the desktop environment wants (for example, xfce requires you to edit an XML configuration file if I recall correctly).

 

Some reference for the kernel command line flag: https://docs.kernel.org/fb/modedb.html

Examples: https://forum.armbian.com/topic/3749-how-to-change-resolution-hdmi-display-armbian527/?do=findComment&comment=66311 (here there is also an attempt to load a custom EDID, which I don't remember if it is enabled or not in the rockchip64 kernel)

 

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

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

Important Information

Terms of Use - Privacy Policy - Guidelines