I’ve just come up with a (FreeBSD) script for installing CoreELEC on an SD card/USB stick/ hard disk:-
mkdir ~/CoreELEC cd ~/CoreELEC fetch https://github.com/CoreELEC/CoreELEC/releases/download/9.0.3/CoreELEC-Amlogic.arm-9.0.3-Generic.img.gz gzip -dc CoreELEC-Amlogic.arm-9.0.3-Generic.img.gz > /dev/da0 mkdir /mnt/CoreELEC mount -t msdosfs /dev/da0s1 /mnt/CoreELEC. cp /mnt/CoreELEC/device_trees/gxm_q200_k3_pro.dtb /mnt/CoreELEC/dtb.img. umount /mnt/CoreELEC rm /mnt/CoreELEC rm -R ~/CoreELEC
I guess it can be translated into Linux land - you would definitely need to change ‘/dev/da0’ among other things. Let me know if you have a problem.
Run at your own risk.