Edited by sghazagh at Wed Oct 28, 2015 16:50 |
To load and run my above mentioned Image to 3rd partition of eMMC without using the 'Actions Firmware Tool'.
If you are interested, here is the step-to-step guide allowing you to run your own 'rootfs' from another partition of eMMC:
Step1: Write above Image to an SD card.
Step2: Load to any existing Linux on eMMC and run the command prompt as root
Step3: Use "gdisk" to create the 3rd partition starting from next sector of existing 2nd partition to minimum size of 3.0GB. (If you have a question ask and I will post a guide for making partition by using "gdisk" as well.
Note: use "gdisk" and not "fdisk" as the eMMC is GPT. Also use PArtition type "0700" for creating the new partition.
You can use "parted" as well if you want to
Step4: Now insert the created SD to Sd card slot. Check the device by usinf "lsblk".I assume the SD card is "/dev/mmcblk1" now and eMMC will be "/dev/mmcblk0".
You can check it with "lsblk" command.
If it is, then use dd command to copy the 2nd partition of SD card , to newly created 3rd partition of eMMC:
dd if=/dev/mmcblk1p2 of=/dev/mmcblk0p3 bs=512 conv=noerror,sync
I don't explain about the "dd" switches above as you all are guru.
Step5: Modify the "uEnv.txt" file located in /media/root/misc and change the boot partition:
With : root=/dev/mmcblk0p3
Step6: Remove the SD and reboot.
You will be in Linux loading from Partition 3 of your eMMC.