Jump to content

Recommended Posts

Posted

Armbian now supports MangoPI M28K (BOARD=mangopi-m28k BRANCH=vendor), which uses kernel 6.1. HDMI-audio works with dtb from MangoPI. But now Ethernet port doesn't work, neither with this dtb, nor with what I did for the old kernel.

Posted (edited)

I recently got two rk3528 tvbox.

 

Lemfo T1 2G/16G only.

transpeed mx10 (Mx box S)

 

They work with hinlink ht2 image, hdmi always out. ( LAN should be changed , gmac1 - > gmac0  )

 

DQ08 has missed something on hdmi or rk3528 becomes a revision up ??

Edited by blust0ne
Posted
26 minutes ago, blust0ne said:

They work with hinlink ht2 image, hdmi always out. ( LAN should be changed , gmac1 - > gmac0  )

 

Is it like this in the dts file or did you do it another way?

 

-        ethernet0 = &gmac1;
+        ethernet0 = &gmac0;

 &gmac0 {
-	status = "disabled";
+  	status = "okay";
 };

 

I tried this in rk3528-mangopi-m28k.dts but no luck.

Posted
29 minutes ago, jpegqs said:
-        ethernet0 = &gmac1;
+        ethernet0 = &gmac0;

 &gmac0 {
-	status = "disabled";
+  	status = "okay";
 };

It's been a while so I don't remember exactly, but I think I made this change.

Posted (edited)

Please give at least compiled dtb's for your TV-boxes.

 

I tried to rebuild the image for legacy kernel with the latest Armbian-build, and now HDMI doesn't work at all.

 

Update: The problem seems to be that the TV boxes use gmac0, the driver of which is RK630_PHY, and this driver is not enabled in linux-rk35xx-vendor.config.

 

compatible = "ethernet-phy-id0044.1400", "ethernet-phy-ieee802.3-c22";

 

#define RK630_PHY_ID                0x00441400

 

Update2: Still doesn't work, even with this driver (preinstalled Android uses this driver).

Edited by jpegqs
update
Posted (edited)

# TV Box X88PRO13

My TV box is the X88PRO13. It  is equipped with the RK3528 chip.
I successfully  running Armbian on the box.  

Find How To build and create Image for this BOX  on http://github.com/joilg/x88pro
A ready to go iso image is on  https://github.com/joilg/x88pro/releases/tag/0.3

-------------------------------------------------------------------------------------------------
## For those who have a different TV Box with RK3528 CPU, try the following procedure:

The USB 2.0 and HDMI interfaces are the same for most boxes, so the console output should also be posible over HDMI here.

1. Flash MMC with the x88pro image and insert it into the box's MMC slot.  
2. Connect a monitor via the HDMI interface.  
3. Connect a USB keyboard to a USB port.  
4. Power on the box.
5. In most cases, boot messages appear on the monitor, ending in a login prompt.
6. Follow the instructions on the monitor.

## 7. Extracting the correct DTB file

 

binwalk /dev/mmcblk1 | grep -i "Flattened device tree"



This should give output something like this:


67451654      0x4053B06       Flattened device tree, size: 99077 bytes, version: 17
67550731      0x406BE0B       Flattened device tree, size: 99112 bytes, version: 17
138280448     0x83DFE00       Flattened device tree, size: 99112 bytes, version: 17
143958080     0x894A040       Flattened device tree, size: 379 bytes, version: 17
143960064     0x894A800       Flattened device tree, size: 99078 bytes, version: 17
 

Select the row with the largest size value. 

 
Replace the placeholders in the following commands:

- `<TV_BOX_NAME>` with your box's name  
- `<START_ADDR>` with the first number from the selected row  
- `<SIZE>` with the size value from the selected row

 

Extract the DTB file with:

dd if=/dev/mmcblk1p2 of=rk3528-<TV_BOX_NAME>.dtb skip=<START_ADDR> count=<SIZE> bs=1

 

Copy it to boot directory:

```bash

cp rk3528-<TV_BOX_NAME>.dtb /boot/dtb-6.1.115-vendor-rk35xx/rockchip/

# or

cp rk3528-<TV_BOX_NAME>-android.dtb /boot/dtb-$(uname -r)/rockchip/

```

Edit the `armbianEnv.txt` file:

sed -i '/fdtfile=/c\fdtfile=rockchip/rk3528-<TV_BOX_NAME>.dtb' /boot/armbianEnv.txt

 

sync and reboot your box. 

 

Now test if LAN, Audio, IR Remote Control,  RTC ... is OK.
Wifi is only implemented for the AIC8800 Chip.

 

 

### optional
convert dtb file to readable DTS source file::

dtc -@ -I dtb -O dts -o rk3528-<TV_BOX_NAME>-android.dts rk3528-<TV_BOX_NAME>-android.dtb

 

## Additional notes

I only have a  X88PRO13 box, so I 'm not be able to test whether this works for your device. But it might be worth a try.


### all in one Script
 

#! /bin/sh
## Note:** Replace all placeholders (`<TV_BOX_NAME>`, `<START_ADDR>`, `<SIZE>`) with your actual values.
dd if=/dev/mmcblk1 of=rk3528-<TV_BOX_NAME>-android.dtb skip=<START_ADDR> count=<SIZE> bs=1
cp rk3528-<TV_BOX_NAME>-android.dtb /boot/dtb-$(uname -r)/rockchip/
sed -i '/fdtfile=/c\fdtfile=rockchip/rk3528-<TV_BOX_NAME>-android.dtb' /boot/armbianEnv.txt
dtc -@ -I dtb -O dts -o rk3528-<TV_BOX_NAME>-android.dts rk3528-<TV_BOX_NAME>-android.dtb

```
## contribute
please report if you have success or anny problens. 
please contribute also Info to your box, embedded chips (wifi,RTC)  and publish your DTB or DTS file. 

 

Edited by johlnx

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