Difference between revisions of "Amlogic TV boxes"

Add 'Reflashing with flash-tool.sh' section
(Add 'Enable multiboot mode' section)
(Add 'Reflashing with flash-tool.sh' section)
Line 50: Line 50:


If this is your first time attempting to boot from an SD card or USB disk, you must enable multiboot mode. Insert your Manjaro micro SD card or attach the Manjaro USB disk then hold down the button in the AV port by inserting a paper clip, a pin or something similar and keep it depressed while powering the device on. Keep the button pressed until you see the boot screen of your box. After a few seconds it should reboot off your SD card or USB disk. You are only required to do this once unless you reflash your eMMC.
If this is your first time attempting to boot from an SD card or USB disk, you must enable multiboot mode. Insert your Manjaro micro SD card or attach the Manjaro USB disk then hold down the button in the AV port by inserting a paper clip, a pin or something similar and keep it depressed while powering the device on. Keep the button pressed until you see the boot screen of your box. After a few seconds it should reboot off your SD card or USB disk. You are only required to do this once unless you reflash your eMMC.
== Reflashing Android with flash-tool.sh ==
In emergency situations, like when Manjaro stops booting due to your bootloader having been modified or corrupted, you may need to reflash the Android OS on your TV box eMMC. If you have got a suitable installation image for your box, they are usually a couple of gigabytes in size, and you have a USB A to A cable then you can perform the following steps to reflash your TV box under Linux.
=== Installing aml-flash-tool ===
Clone the '''aml-flash-tool''' repo:
{{UserCmd|command=git clone https://github.com/osmc/aml-flash-tool.git}}
Copy '''aml_image_v2_packer''' and the amlogic '''update''' program into your path:
{{UserCmd|command=cp ./aml-flash-tool/tools/linux-x86/* ~/.local/bin}}
You are now prepared to run '''flash-tool.sh'''
=== Reflashing with flash-tool.sh ===
Disconnect the power from your TV box and plug a USB A to USB A cable into your TV box. It varies which port to use but usually only one port will work for reflashing. Now insert a pin or similar into the AV hole, depress the button and keep it pressed as you connect the USB A to A cable to your other machine. You will know when your TV box is ready to be flashed with '''flash-tool.sh''' because you will see an Amlogic device listed when you run '''lsusb'''.
When you can see your TV box is connected, you can flash it using a command such as:
{{UserCmd|command=./flash-tool.sh --img=X96AIR_Q1000_20210127-2121.img --parts=all --wipe --soc=g12a}}
Replacing '''X96AIR_Q1000_20210127-2121.img''' with the path to the image you wish to flash. You do not need to run '''flash-tool.sh''' as root.
32

edits