MK802II A20: Unterschied zwischen den Versionen
Amir (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Amir (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 16: | Zeile 16: | ||
[[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. |