Amazon Fire HD 8 2017 (amazon-douglas)

Contributors

 * shuhao

Known Issues

 * When accessing the audio device (such as via ), the device freezes. After reboot you may be prompted with a "Collecting Logs" screen with an Amazon logo, indicating some sort of firmware level log collector.
 * CPU1,2,3 continuously enable and disable themselves, with logs such as:

[ 378.053320] -(3)[0:swapper/3]CPU3: Booted secondary processor [ 378.053334] -(3)[0:swapper/3][name:cpuinfo&]Detected VIPT I-cache on CPU3 [ 378.053385] -(3)[0:swapper/3][name:topology&]CPU3: update cpu_capacity 1024 [ 378.122632]  (0)[1829:kworker/0:2][name:mtk_wcn_stub_alps&][cmb_stub] thermal_ctrl_cb null [ 378.342631] -(0)[1600:kwin_wayland][name:sched_monitor&][BURST IRQ DURATION WARN] IRQ[ 51:musb-hdrc.0.auto] +1237 ( dur 30000 us, avg 24 us) [ 379.122661]  (0)[1829:kworker/0:2][name:mtk_wcn_stub_alps&][cmb_stub] thermal_ctrl_cb null [ 380.053771]  (1)[71:hps_main][name:smp&]CPU3: shutdown


 * Although the kernel can detect plugged in USB keyboard, nor X neither wayland can use the keyboard. evtest works tho. USB drives also mounts correctly..

How to enter flash mode

 * You need to be bootloader unlocked via this method: https://forum.xda-developers.com/hd8-hd10/orig-development/unlock-fire-hd-8-2017-douglas-t3962846.
 * After unlock, the normal fastboot doesn't let us flash in the required partitions? See notes on Amazon Fire HD 10 (amazon-suez).
 * Holding +  gets you into TWRP.
 * Flash with the ADB sideload method.
 * However, the default recovery.zip generated by pmbootstrap flashes into the boot partition, not the boot_x partition which is what is needed for this device. The recovery.zip file has to be manually editted to replace  with   in   and  . Again, see notes on Amazon Fire HD 10 (amazon-suez).

Alternatively, you can flash just the boot_x partition and then flash the rest of the system on an external sdcard:


 * : This will install the rootfs on a SD card mounted on your computer.
 * : This will flash the initramfs onto the device.
 * Then remove the sd card from your computer and insert it into the device. Then reboot it.
 * Future updates to the rootfs does not require additional fastboot operations.