# 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.