02-06-2020 10:09 AM
I'm trying to configure our build to boot out of eMMC instead of QSPI as we currently have it using an ultrascale device. I've found some references but some specifics aren't quite clear. What needs to change in u-boot? I've already enabled the PS SD periph. as well as enabled eMMC for boot media in u-boot. If someone can point me to a procedure or example of eMMC boot that would be great! Thanks!
02-06-2020 11:12 AM - edited 02-06-2020 11:15 AM
You basically must have 2 partitions in your MMC:
mmcblk0p1: FAT partiton with BOOT.bin and image.ub.
mmcblk0p2: Linux rootfs partition.
See UG1137 section emmc18 Boot mode.
You can make the MMC partitions using using the petalinux image running from QSPI or SD (it's up to you) using the util-linux-mkfs package (enable it from petalinux-config -c rootfs) tools.
02-06-2020 11:54 AM
Thanks for the info! I have a couple of additional questions:
When you mention creating the MMC partitions using the image do you mean creating these from within the kernel? Our issue at the moment is that our u-boot + .bit + kernel is larger than our QSPI we arent actually able to get into the kernel. Is there a way in u-boot to create the parition?