8 8
balbes150

Armbian for TV box rk3328

Recommended Posts

25 minutes ago, mb16 said:

 

Now, I found that there are patches to support the 8723cs bluetooth in the kernel ( https://patchwork.kernel.org/patch/10771231/ ) and found the related firmware files in /lib/firmware/rtlbt but I'm by far not brave enough to get stuff like that working. 

 

 

An experiment worth trying would be to copy the 8723cs bt fw and config files from rtlbt to rtl_bt and rename them to rtlbt_fw and rtlbt_config. Maybe then rtk_hciattach would work.

 

I have bt working on the latest 5.74 now, with the same process as before. I am still playing around with the dts as I see some wifi reconnects once in a while.

Share this post


Link to post
Share on other sites

Does anyone know how to get a usb webcam working on the rk3328 based boxes? 

It is a uvc webcam .

On connecting I see it recognized as a camera in dmesg, and it shows up in lsusb, but no /dev/video*

 

Share this post


Link to post
Share on other sites

Hi,

 

got a H96 Max+ with 4GB and 64GB eMMC today (https://www.banggood.com/H96-Max-Plus-RK3328-4GB-RAM-64GB-ROM-Android-8_1-USB3_0-5G-WIFI-TV-Box-Support-HD-Netflix-4K-Youtube-p-1335810.html?ID=533601).  It's booting Android 8.1 with a kernel 4.4.120, build date 2018-12-18.

I opened it using a GB-5A opening tool. Attached are some pictures.

 

1. PCB is labelled as "RK3328_8D4_V1.1" with date "20180703"

2 .Wifi/BT chip seems to be:

HS2734A
V15628
98MA

3. eMMC seems to be Samsung:

SEC525
B031
(unreadable due to QA marks)

I flashed Armbian_5.68_Rk3328-tv_Ubuntu_bionic_default_4.4.154_20190110.img from your mega account to an microSD card. 

 

Tried all rk3328 FDTs in extlinux.conf 

 

# Result: LABEL=ROOTFS does not exists + drop to busybox
rk3328-box-trn9.dtb 
rk3328-box-z28.dtb
rk3328-box.dtb
rk3328-evb-100m.dtb 
rk3328-evb.dtb
rk3328-mx10.dtb
rk3328-roc-cc.dtb 
rk3328-rock64-android.dtb 
rk3328-rock64.dtb                            
rk3328-rockbox.dtb  

 

# Result: black screen/crash?
rk3328-box-liantong.dtb
rk3328-evb-android.dtb   
rk3328-t9-android.dtb

 

Thanks

Roland
                             

h96-1.jpg

h96-2.jpg

h96-3.jpg

h96-4.jpg

Share this post


Link to post
Share on other sites
41 minutes ago, rmoriz said:

got a H96 Max+ with 4GB and 64GB eMMC today (https://www.banggood.com/H96-Max-Plus-RK3328-4GB-RAM-64GB-ROM-Android-8_1-USB3_0-5G-WIFI-TV-Box-Support-HD-Netflix-4K-Youtube-p-1335810.html?ID=533601).  It's booting Android 8.1 with a kernel 4.4.120, build date 2018-12-18.

I opened it using a GB-5A opening tool.

 

I've got same tv box (mine is 32 GB), I get DTB and DTS file from Android but I cannot recompile with Armbian sources, adjunt files.

 

I need some tips to recompile or someone who can do it, I'll help with all necessary. Thanks in advance.

rk3328_H96Max+.zip

Share this post


Link to post
Share on other sites
On 8/31/2018 at 5:55 AM, martos said:

I open the box v88 mini box :

15357125913428282.jpg

i see connection in J3500.

Search my usb, my soldering gun ...

 

hello martos a query, I have a tv box rk3328 sichion ai one, the motherboard is very similar to yours, you know what are the pins to enter Maskrom mode, the pc does not detect my device, thanks

 

motherboard: https://goo.gl/LMMSe2

Edited by Lopez Alarcon Jorge Luis
add image

Share this post


Link to post
Share on other sites
17 hours ago, rmoriz said:

1. PCB is labelled as "RK3328_8D4_V1.1" with date "20180703"

2 .Wifi/BT chip seems to be:

I have H96 max+,32gb, board is same, wifi is sv6051, no bluetooth

Like you, most of the dtb give root fs not found, no /dev/block/mmc....  ,, or

for the android versions a black screen, serial shows only a few lines of kernel load (<5)

--edit--

you can make it work by writing image to both a uSD card and a usb stick,

it will probably find the stick and run from it. The uSd can be small and slow

Not so good with only 2 usb sockets

Share this post


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

I have H96 max+,32gb, board is same, wifi is sv6051, no bluetooth

Like you, most of the dtb give root fs not found, no /dev/block/mmc....  ,, or

for the android versions a black screen, serial shows only a few lines of kernel load (<5)

--edit--

you can make it work by writing image to both a uSD card and a usb stick,

it will probably find the stick and run from it. The uSd can be small and slow

Not so good with only 2 usb sockets

 

They are not the same, as my 64GB version has another radio chipset. There are at least two hardware versions out there, and there are different android firmware releases. One is "SSV6051_RTL8189" the other one is "HS2734".

Share this post


Link to post
Share on other sites
On 2/15/2019 at 7:49 PM, rmoriz said:

 

They are not the same, as my 64GB version has another radio chipset. There are at least two hardware versions out there, and there are different android firmware releases. One is "SSV6051_RTL8189" the other one is "HS2734".

Board is labeled RK3328_8D4_V1.1, same as yours, wifi chip is indeed different, SV6051P

Serial connection as shown in your photo

I think the problem with sd card is power to socket,

if you read this thread I have a few posts previous

Share this post


Link to post
Share on other sites

Armbian_5.74_Rk3328-tv_Ubuntu_bionic_default_4.4.154_desktop_20190208

rk3328-mx10-fast.dtb

Screenshot_2019-02-18_12-43-06.png.cc81501a3549341a96800b0ac4396439.png

The Cpu Temp can't be right, can it?

BTW what's the difference between mx10, mx10-fast & mx10-low dtbs?

Share this post


Link to post
Share on other sites
22 minutes ago, amirul said:

The Cpu Temp can't be right, can it?

 

Such temperature can be. In the dtb "fast" increased parameters (including temperature limit) for maximum performance.

Share this post


Link to post
Share on other sites
1 minute ago, balbes150 said:

Such temperature can be. In the dtb "fast" increased parameters (including temperature limit) for maximum performance.

Is it safe without any cooling mods or do I need to install a fan?

Share this post


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

I always recommend using a fan at maximum load.

Screenshot_2019-02-18_16-00-15.png.05047858ec0502001123c2e0000dfdb2.png

With the board totally out of the casing, a more reasobable Cpu Temp at full load. Let's mod the casing with more air-holes and see what happens

Share this post


Link to post
Share on other sites

IMG-20190218-204512-2.jpgI tryed some ways of cooling that device passive, but only this one keeps the temperature constant over time. Current came first from a modded usb-cable, but connecting to the 3,3v of the uart port does the job too and keep the noise down. Not pretty, but it improves the lifetime of the cpu 😎

Share this post


Link to post
Share on other sites
9 hours ago, Escobar523 said:

Current came first from a modded usb-cable, but connecting to the 3,3v of the uart port does the job too and keep the noise down.

Have you tried connecting to USB ports ? I noticed that on some models, when you turn off the TV box, the USB power is turned off and the fan is well controlled with the TV box. When the TV box is turned off, the fan does not work, when the TV box is turned on, the fan turns on at the same time. But on some TV boxes USB does not turn off and the fan is running constantly. I'm interested in how you turn off TV box the USB off or on.

Share this post


Link to post
Share on other sites
On 2/15/2019 at 9:35 AM, wdtz said:

you can make it work by writing image to both a uSD card and a usb stick,

it will probably find the stick and run from it. The uSd can be small and slow

Not so good with only 2 usb sockets

Thanks for the tip! Using the identical image with the same UUID on SD and USB the system boots. First part of the boot process reads from the  SD card but later mounting rootfs from USB (both devices are required to boot successfully).  Ethernet works and I can access the internal eMMC. (nand-install and boot does not work on the first try, at least requires manual partitioning and bootloader installation. Will try later this week). Sadly WiFi and SD-Card seem not to work.

 

Update: Booting with SD+eMMC (both required) works for me now (no USB stick) after:

 

- used cfdisk to dump partition layout of my USB stick (select DUMP)

- cfdisk --zero /dev/mmcblk1  (press L, load file from step above) to restore layout to eMMC (will delete all data on emmc!)

- in cfdisk re-created ext4 partition to extend size to emmc + saved

- changed `nand-sata-install` script to use /dev/mmcblk1

- executed nand-sata-install, without errors

- after finish: change UUID of ext4 emmc partition to UUID of (inaccessible) SD ext4 partition.

- sudo tune2fs /dev/mmcblk1p2 -U <UUID>

- reboot

 

Spoiler

root@rk3328:~# blkid

/dev/mmcblk1p1: SEC_TYPE="msdos" LABEL="BOOT_EMMC" UUID="6BC9-1A16" TYPE="vfat" PARTUUID="674bd3e2-01"

/dev/mmcblk1p2: LABEL="ROOT_EMMC" UUID="0ac91c4b-082d-4aa4-888f-3b24a3516103" TYPE="ext4" PARTUUID="674bd3e2-02"

/dev/zram0: LABEL="log2ram" UUID="9395094d-731b-46c5-a3fd-94d2399a5cac" TYPE="ext4"

/dev/zram1: UUID="a6cfa5e8-df4f-445a-bc0a-14908272a3c5" TYPE="swap"

/dev/zram2: UUID="17b0a1f5-1678-43c0-876c-022a7ad5557d" TYPE="swap"

/dev/zram3: UUID="65beebe7-6dd2-44ab-86a6-2d0fafb7a075" TYPE="swap"

/dev/zram4: UUID="c7702171-7779-4e92-bf36-bc415064f691" TYPE="swap"

/dev/mmcblk1: PTUUID="674bd3e2" PTTYPE="dos"

root@rk3328:~# fdisk -l /dev/mmcblk1

Disk /dev/mmcblk1: 58.2 GiB, 62537072640 bytes, 122142720 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: 0x674bd3e2



Device         Boot  Start       End   Sectors  Size Id Type

/dev/mmcblk1p1       32768    294911    262144  128M  e W95 FAT16 (LBA)

/dev/mmcblk1p2      294912 122142719 121847808 58.1G 83 Linux

 

 

Edited by rmoriz

Share this post


Link to post
Share on other sites

Hello, guys

 

I'm a newbie at this forum, and I would like to ask your advice.

 

Recently I bought a MX10 Android TV box based on RK3228 SOC and sv6501 wi-fi chip. I'd managed to make wi-fi work, I used the image form @balbes150 , the firmware extracted from the original Android image and DTS-file with small changes from the Android images as well. Even front LED works properly with this DTS.

 

But here is my question: is it possible to achieve smoothly GUI experience on this TV box with Linux? I'd tried several versions of X server, "armsoc" and "fbdev" drivers, native Mali450 libs, but didn't succeed. Tell me please, maybe someone has tested these scripts? https://forum.armbian.com/topic/7262-rk3288-media-script-tinkerboard/ I tried to do that, but I had 64-bit version of Armbian (Debian) and the scripts are targeted to 32-bit Ubuntu, so I didn't succeed with that too, and I didn't get around to move my wf-fi-related dirty hacks to 32-bit Ubuntu )  And what do you think about Wayland instead of Xorg? I heard that Xorg support is dropped from the newest versions of Mali450 OpenGL libs...

Share this post


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

I'm a newbie at this forum, and I would like to ask your advice.

 

Recently I bought a MX10 Android TV box based on RK3228 SOC and sv6501 wi-fi chip. I'd managed to make wi-fi work, I used the image form @balbes150 , the firmware extracted from the original Android image and DTS-file with small changes from the Android images as well. Even front LED works properly with this DTS.

 

But here is my question: is it possible to achieve smoothly GUI experience on this TV box with Linux? I'd tried several versions of X server, "armsoc" and "fbdev" drivers, native Mali450 libs, but didn't succeed. Tell me please, maybe someone has tested these scripts? https://forum.armbian.com/topic/7262-rk3288-media-script-tinkerboard/ I tried to do that, but I had 64-bit version of Armbian (Debian) and the scripts are targeted to 32-bit Ubuntu, so I didn't succeed with that too, and I didn't get around to move my wf-fi-related dirty hacks to 32-bit Ubuntu )  And what do you think about Wayland instead of Xorg? I heard that Xorg support is dropped from the newest versions of Mali450 OpenGL libs...

Write the details and attach the files (firmware and dts) to get Wi-Fi on the MX10. This will be useful for all users. For rk3328 has its own version of the media script and it works fine. I recommend you look at the last few pages of this topic, there are test details. This is a theme for the script.

 

 

 

 

Share this post


Link to post
Share on other sites
On 2/18/2019 at 4:06 PM, amirul said:

Screenshot_2019-02-18_16-00-15.png.05047858ec0502001123c2e0000dfdb2.png

With the board totally out of the casing, a more reasobable Cpu Temp at full load. Let's mod the casing with more air-holes and see what happens

Screenshot_2019-02-21_10-21-43.png.0fc56055e049fa2a9e068db0713105e6.png

sudo stress --cpu  8 --timeout 3600

Lets go look for a bigger/copper heatsink and an open case - trying hard to avoid active cooling :-)

I've hit peaks of 100 degrees and it still keeps on going. I guess I've shortened the life quite a bit.

From spec sheet max operating temp is 125 degrees!

Share this post


Link to post
Share on other sites

Does anyone have the  IR remote that came with the TV box working?

Does the default kernel have support for these, or as I read in some post a kernel

with

CONFIG_ROCKCHIP_REMOTECTL=y
CONFIG_ROCKCHIP_REMOTECTL_PWM=y
 

is needed?

 

Any ideas on how to get it to work? I see 2 references in the .dts files. The android ones have a pwm node with ir_key[n] settings. There is also a ir-receiver node in a lot of dts but not in the android dts. So it looks like these are 2 different approaches.

 

There is also a package called lirc which creates interfaces for the ir keys to be used in applications. Is that needed?

 

 

Share this post


Link to post
Share on other sites
On 2/19/2019 at 6:35 AM, balbes150 said:

Have you tried connecting to USB ports ? I noticed that on some models, when you turn off the TV box, the USB power is turned off and the fan is well controlled with the TV box.

I first connected the fan to the, in earlyer versions disfunctional, USB3 port. I didnt came accross such behavior like u described, but i will check it out. Thanks for the advice

After reading most of this thread again (just to not miss the big breaktrough #install_armbian_to_emmc) without finding a working solution for my box. 

If somebody got use for it, i managed to extract the original dtb/dts from emmc of the Box, but compiling them with a 5.0 Kernel didnt work. I just got a black screen/Box didnt start.

Lets hope somebody have better compiling skills and manage to give the box a meaning of life; cause just running Android must be depressing for this nice device 😎😋

Share this post


Link to post
Share on other sites

Armbian_5.74_Rk3328-tv_Ubuntu_bionic_default_4.4.154_desktop_20190208 with rk3328-mx10-fast.dtb

 

/etc/defaults/cpufrequtils:

# WARNING: this file will be replaced on board support package (linux-root-...) upgrade
ENABLE=true
MIN_SPEED=600000
MAX_SPEED=1512000
GOVERNOR=ondemand

 

cpufreq-info shows

  hardware limits: 408 MHz - 1.30 GHz
  available frequency steps: 408 MHz, 600 MHz, 816 MHz, 1.01 GHz, 1.20 GHz, 1.30 GHz

 

I'm sure I had 1.5GHz before all the updates. Anyone have any idea how I might have lost it?

Share this post


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

Armbian_5.74_Rk3328-tv_Ubuntu_bionic_default_4.4.154_desktop_20190208 with rk3328-mx10-fast.dtb

 

You need a different dtb.  Look at the rk3328-a5x-1500.dtb  It will go to 1500 Mhz, but its temperature limits are low. (75000,80000, and 100000)

 

You need to change the temperature limits of the nodes  trip-point-0, trip-point-1 and soc-crit to 90000,105000 and 110000 respectively  (like the mx10-fast) in the a5x-1500.dtb to  run it with 1500 Mhz and High Limits..

 

I found that the A5X MAX run at 1500 Mhz and high limits, crashes  mpv on the Test.mkv after running for a bit. I don't have the media-script on.

 

Share this post


Link to post
Share on other sites
5 hours ago, armar said:

 

You need a different dtb.  Look at the rk3328-a5x-1500.dtb  It will go to 1500 Mhz, but its temperature limits are low. (75000,80000, and 100000)

 

You need to change the temperature limits of the nodes  trip-point-0, trip-point-1 and soc-crit to 90000,105000 and 110000 respectively  (like the mx10-fast) in the a5x-1500.dtb to  run it with 1500 Mhz and High Limits..

 

I found that the A5X MAX run at 1500 Mhz and high limits, crashes  mpv on the Test.mkv after running for a bit. I don't have the media-script on.

 

Inserted the opp-1392000000 & opp-1512000000 stanzas into mx10-fast dtb - doesn't boot

Share this post


Link to post
Share on other sites
On 2/20/2019 at 8:10 AM, alexfv said:

Hello, guys

 

I'm a newbie at this forum, and I would like to ask your advice.

 

Recently I bought a MX10 Android TV box based on RK3228 SOC and sv6501 wi-fi chip. I'd managed to make wi-fi work, I used the image form @balbes150 , the firmware extracted from the original Android image and DTS-file with small changes from the Android images as well. Even front LED works properly with this DTS.

 

But here is my question: is it possible to achieve smoothly GUI experience on this TV box with Linux? I'd tried several versions of X server, "armsoc" and "fbdev" drivers, native Mali450 libs, but didn't succeed. Tell me please, maybe someone has tested these scripts? https://forum.armbian.com/topic/7262-rk3288-media-script-tinkerboard/ I tried to do that, but I had 64-bit version of Armbian (Debian) and the scripts are targeted to 32-bit Ubuntu, so I didn't succeed with that too, and I didn't get around to move my wf-fi-related dirty hacks to 32-bit Ubuntu )  And what do you think about Wayland instead of Xorg? I heard that Xorg support is dropped from the newest versions of Mali450 OpenGL libs...

Hello,

 

I have bought an MXQ PRO that has a Rockchip RK322x (don't know if it's 3228 or 3229).

Can I use this RK3328 ROM and it will work?

I just want to have a wordpress server using ethernet, I don't need wifi, bluetooth or desktop.

 

Thank you very much,

 

Share this post


Link to post
Share on other sites
51 minutes ago, smp said:

I bought A5X Plus (1G/8G) box and I can't get it to boot Linux from an sdcard (I tried Armbian and LibreELEC images). All I get is a red LED. Can anyone help me get this box working?

Here are the board photos:

 

 

 

Step 1 get a serial console... do you have a TTL serial adapter?    so those 3 or 4 holes in the bottom of the board.....  get an output and then take it from there.

Share this post


Link to post
Share on other sites
22 hours ago, smp said:

I bought A5X Plus (1G/8G) box and I can't get it to boot Linux from an sdcard (I tried Armbian and LibreELEC images). All I get is a red LED. Can anyone help me get this box working?

Here are the board photos:

 

It looks like no one has yet got it running on the A5X Plus, which means a little more work for you.

The first thing to do is trying the different rk3328 dtb s in /boot/dtb/rockchip/ by modifying /boot/extlinux/extlinux.conf  s FDT field. Read the first post of this thread and use the latest armbian image from the yadi link. If you are lucky one of those dtb s will take you further. For my A5X MAX it was the rk3328-evb.dtb

 

Or you can look at this thread and get a TV Box known to work with Armbian

https://forum.armbian.com/topic/8434-the-list-of-models-that-are-running-armbian-amlogic-rockchip-etc/

 

Share this post


Link to post
Share on other sites

Thank you for your replies. I already sold the box because I tried pretty much all RK3328 dtbs I could find. I also tried different sdcards just to make sure sdcard is not a problem. I do have a TTL serial adapter but since there is no proper connector on the board I didn't want to solder the wires (my soldering skills are not very good).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
8 8