Part Number: AM4378
I have custom board AM437x_GP_EVM board that want to partition emmc on u-boot for booting from emmc.
But My emmc interface is using mmc 0
So Could I partition emmc on u-boot?
Thanks.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM4378
I have custom board AM437x_GP_EVM board that want to partition emmc on u-boot for booting from emmc.
But My emmc interface is using mmc 0
So Could I partition emmc on u-boot?
Thanks.
Hi Jense,
You cannot connect eMMC to PC. What I meant is something like this, in Linux PC
# dd if=/dev/zero of=file.fs bs=1024 count=102400
# mkfs.fat file.fs
# mkdir /mnt/tmp
# mount file.fs /mnt/tmp/
# cp contents_in_first_partition /mnt/tmp (Here you would copy the MLO, uboot , boot scripts etc)
# sync
# umount /mnt/tmp
Copy the file.fs into SDCard and connect to the Board. In the uboot of AM437x:
# fatload mmc 1 1 0x80800000 file.fs (Assuming SDCard is mmc 1 and partition is 1 )
# mmc write 0 0x80800000 0x200 0xA00000 (Writing in eMMC, which is mmc 0. 0x200 since first 512 bytes of MBR. Also need to flash it)
This is an example. May not be all commands correct. You can do the same for ext4 fs which contains the filesystems. Easier would be to partition the eMMC from the Linux(AM437x) and program it.