Skip to content

Getting device tree from TVbox vendor Android

Piotr Oniszczuk edited this page Aug 4, 2023 · 2 revisions

If you want to retrieve Android kernel device-tree, you can do following:

By USB

  1. start device with factory Android
  2. connect box to computer by USB cable or by Ethernet or by WiFi
  3. enable Developer Mode in box Android:
  • go to Settings > About phone and tap Build number seven times
  • Return to the previous screen and find Developer options (usually at the bottom)
  • Enter Developer Options then switch ON option USB settings > Connect-disconnect to computer
  1. go to terminal on computer and type:
  • If box is connected by USB cable

./adb devices -l

You should see your box listed as available devices.

  • if box is connected by Ethernet or WiFi: type in terminal:

./adb connect <IP address of the Android device>

then accept connection on device (there should be pop-up asking for debugging access)

  1. When box is connected by ADB, then type in terminal:

./adb shell

su

cat /sys/firmware/fdt > /sdcard/extracted.dtb

exit

  1. Download extracted.dtb. Im Terminal type:

./adb pull /sdcard/extracted.dtb box.dtb

  1. Decompile dtb: install DTC and in terminal type:

dtc -I dtb -O dts extracted.dtb -o box.dts

Clone this wiki locally