====== Repartition Internal eMMC ====== Warning! Use this instruction at you own risk!
You should definitly know what are you doing
All data on you internal mmc will be lost if you follow this instruction!
Also you cannot install Android on the new layout.
See [[http://tosh-ac100.wetpaint.com/page/Repartition+Internal+Storage]] for additional information. ==== 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://paz00.ru/index.php/File:Part.cfg|part.cfg]] and command file in the same dir #!/bin/bash # Change this paths to you own nvflash=~/ac100/ldk/bootloader/nvflash fastboot=~/ac100/ldk/bootloader/harmony/fastboot.bin mkdir work cd work $nvflash --bl $fastboot --sync || exit 1 echo -n "Making a backup .." 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 "Creating new layout .." 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 "Restoring backup .." $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://raw.github.com/Stuw/ac100-repart/master/configs/default.cfg|default.cfg]] ====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 | / | |