How to install on SD from Android


#1

Hi all ELEC-users!
I want to suggest a way to install *ELEC .img.gz on an external sd-card from the android terminal emulator.

  1. Load tv-box into Android
  2. Insert and formatting sd-card
  3. Installing terminal emulator from Google Play store.
  4. Donwnload file of rom *.img.gz in empty directory
  5. Open terminal and input code:
cd /sdcard/<folder with rom>
su
gunzip -c ./*.img.gz | dd of=/dev/block/mmcblk1 bs=4096
  1. Extract/insert sd-card, going into root sd and copy your device tree (dtb.img)
cd /storage/<mount dir>/device_trees
cp -fv ./<your dtb> ../dtb.img
reboot update
  1. Enjoy! Your device will reboot into ELEC system…

#2

Important Note: /dev/block/mmcblk1 is device specific and might not be the same on other devices.
And if it somehow refers to the bootloader partition, you’ll brick your android device.
dd command is dangerous for those who don’t know what they are doing.


#3

No, mmcblk1 is the standard partition table for the external sdcard, as well as mmcblk0 for the internal one. This rule is suitable for all android devices from version 1.6 and up to 8.0