MK802II A20: Unterschied zwischen den Versionen
Amir (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Amir (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
__FORCETOC__ | |||
This page is a rough guide on how to get linux running on the MK802II_A20 android hdmi stick. | This page is a rough guide on how to get linux running on the MK802II_A20 android hdmi stick. | ||
[[Image:Cover_small.jpg]] | |||
==== Name ==== | ==== Name ==== | ||
Zeile 16: | Zeile 19: | ||
[[Image:Serial_mk802ii_a20.jpg]] | [[Image:Serial_mk802ii_a20.jpg]] | ||
==== Bootloader ==== | |||
The stick comes with a boot1 bootloader configured to allow booting from the micro sd card. If no sd card is inserted it boots uboot as secondary bootloader from the internal nand which boots android. | |||
So i needed a compatible [http://linux-sunxi.org/U-Boot uboot] written to an sd card that will boot the linux kernel. | |||
But how to know which uboot configuration to choose? After having a few tries guessing sensible values from dram configurations of similar devices i found out about [http://linux-sunxi.org/FEL fel]. | |||
Fel is a really cool tool for Allwinner cpus that let's you do all kind of interesting things but in our case we are interested | |||
in dumping data from the internal nand device. That way i was able to access the [http://linux-sunxi.org/Fex_Guide script.bin] data which is compiled from a fex file. | |||
Luckily there are also the [http://linux-sunxi.org/Sunxi-tools sunxi tools] which let you decompile the script.bin back to a fex file. | |||
And it this fex file i found the exact values in order to use for the dram config. I edited the dram file corresponding to mk802II_a20 and compiled uboot with spl. | |||
After writing it to an sd card i had a working secondary bootloader. | |||
==== Kernel ==== | |||
I decided to use kernel version [https://github.com/linux-sunxi/linux-sunxi 3.4.90] since it's quite recent and i've already used it for A10 based devices. Based on my experience with similar devices and a bit of guess work i came up with [https://metalab.at/wiki/images/2/2d/Mk802ii_a20_kernel.txt this configuration]. |