repartition_mmc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
repartition_mmc [2011/08/11 18:48] – ggrandou | repartition_mmc [2015/02/27 17:07] (current) – stuw | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | TODO | ||
- | |||
====== Repartition Internal eMMC ====== | ====== Repartition Internal eMMC ====== | ||
+ | |||
+ | < | ||
+ | <span style=" | ||
+ | You should definitly know what are you doing <br/> | ||
+ | All data on you internal mmc will be lost if you follow this instruction! <br/> | ||
+ | Also you cannot install Android on the new layout. | ||
+ | </ | ||
+ | </ | ||
+ | See [[http:// | ||
+ | |||
+ | ==== Backup ==== | ||
+ | [[backups|First backup everything]] if you care. | ||
+ | |||
+ | ====Default partition layout:==== | ||
+ | ^ part # ^ name ^ size ^ description ^ remarks | | ||
+ | ^ 2 | BCT | 3 145 728 (3 MB) | boot config table | | | ||
+ | ^ 3 | PT | 524 288 (512 kB) | partition table | | | ||
+ | ^ 4 | EBT | 2 097 152 (2 MB) | bootloader | | | ||
+ | ^ 5 | SOS | 5 242 880 (5 MB) | recovery partition | | | ||
+ | ^ 6 | LNX | 8 388 608 (8 MB) | linux kernel and initrd | kernel starts at 0x800 initrd starts at 0x20E800 | | ||
+ | ^ 7 | MBR | 1 048 576 (1 MB) | master boot record | | | ||
+ | ^ 8 | APP | 314 572 800 (300 MB) | applications (/system) | | | ||
+ | ^ 9 | CAC | 419 430 400 (400 MB) | cache (/cache) | | | ||
+ | ^ 10 | MSC | 2 097 152 (2 MB) | misc (/misc) | | | ||
+ | ^ 11 | EM1 | 524 288 (512 kB) | | ||
+ | ^ 12 | UBA | 1 294 991 360 (1235 MB) | user data (/data) | | | ||
+ | ^ 13 | EM2 | 524 288 (512 kB) | | ||
+ | ^ 14 | UDB | 5 950 144 512 (5674.5 MB) depends on model | user data (/storage) | | ||
+ | |||
+ | ==== Repartitioning ==== | ||
+ | Download partition table [[http:// | ||
+ | |||
+ | and command file in the same dir | ||
+ | <file bash repartition.sh> | ||
+ | #!/bin/bash | ||
+ | |||
+ | # Change this paths to you own | ||
+ | nvflash=~/ | ||
+ | fastboot=~/ | ||
+ | |||
+ | |||
+ | mkdir work | ||
+ | cd work | ||
+ | $nvflash --bl $fastboot --sync || exit 1 | ||
+ | echo -n " | ||
+ | for i in $(seq 2 6) | ||
+ | do | ||
+ | $nvflash -r -q --read $i part$i.img || exit 1 | ||
+ | done | ||
+ | echo " Done" | ||
+ | |||
+ | read -p "Press [Enter] key when device rebooted to new recovery mode ..." | ||
+ | echo -n " | ||
+ | dd if=part2.img bs=1 count=4080 of=original.bct | ||
+ | ln -s $fastboot bootloader.bin | ||
+ | $nvflash --bl bootloader.bin --bct original.bct --setbct --configfile ../part.cfg --create --verifypart -1 --go|| exit 1 | ||
+ | echo " Done" | ||
+ | |||
+ | read -p "Press [Enter] key when device rebooted to new recovery mode ..." | ||
+ | echo " | ||
+ | $nvflash --bl $fastboot --sync || exit 1 | ||
+ | $nvflash -r -q --rawdevicewrite 0 1536 part2.img | ||
+ | $nvflash -r -q --rawdevicewrite 1792 1024 part4.img | ||
+ | $nvflash -r -q --download 5 part5.img | ||
+ | $nvflash -r -q --download 6 part6.img | ||
+ | echo " Done" | ||
+ | </ | ||
+ | |||
+ | |||
+ | You should power on you device in recovery mode and connect it to the computer via USB.\\ | ||
+ | Edit **repartition.sh** to fix pathes for **nvflash** and **fastboot.bin**\\ | ||
+ | and run **repartition.sh**\\ | ||
+ | While repartion you also need to reboot ac100 in recovery mode twice (script will ask you for it).\\ | ||
+ | |||
+ | You could return default layout back using this file: [[https:// | ||
+ | |||
+ | ====Resulting layout==== | ||
+ | ^ part # ^ name ^ size ^ description ^ remarks | | ||
+ | ^ 2 | BCT | 3 145 728 (3 MB) | boot config table | | | ||
+ | ^ 3 | PT | 524 288 (512 kB) | partition table | | | ||
+ | ^ 4 | EBT | 2 097 152 (2 MB) | bootloader | | | ||
+ | ^ 5 | SOS | 5 242 880 (5 MB) | recovery partition | | | ||
+ | ^ 6 | LNX | 8 388 608 (8 MB) | linux kernel and initrd | kernel starts at 0x800 initrd starts at 0x20E800 | | ||
+ | ^ 7 | MBR | 1 048 576 (1 MB) | master boot record | | | ||
+ | ^ 8 | APP | ALL AVAILABLE | / | | | ||
repartition_mmc.1313081339.txt.gz · Last modified: 2011/08/11 18:48 by ggrandou