2 of 2 people found this helpful
The first Path to Programmable is a good resource to see how others got on. The course they were following is available as Avnet Speedway which you can download and follow for free. (registration on the Avnet site is required.)
The first two.
Hi, do you know what default file system eMMC has?. I want to read image.ub from eMMC but it says that it can't read file system.
Did you do the read under root?
3 of 3 people found this helpful
If the MiniZed is brand new and the eMMC has never been used, it will need to be partitioned and formatted. The PetaLinux BSPs provided by Avnet for the MiniZed include a shell script (format_emmc.sh) to create and format a small (128MB) DOS partition.
The PetaLinux BSPs for MiniZed can be found here:
The shell script looks like this:
#Delete partition and add a new one of 128MB
echo "fdisk /dev/mmcblk1 (1 partition of 128MB)"
echo -e "d
" | fdisk /dev/mmcblk1
echo "sleep 1"
#Format as a DOS partition
echo "mkdosfs -F 32 /dev/mmcblk1p1"
mkdosfs -F 32 /dev/mmcblk1p1
echo "sleep 1"
echo "/dev/mmcblk1p1 /mnt"
mount /dev/mmcblk1p1 /mnt
echo "ls -l /mnt"
ls -l /mnt
#Unmount drive again:
echo "umount /mnt"
NOTE! You may want to use fdisk first to verify the eMMC is indeed empty. Creating a new partition table and formatting a new partition will destroy any data already on the eMMC.
Thank you, Tom!
I have managed to run my minized (again) on Petalinux 2019.2. I just have one more question, do you know what petalinux package is required to have "mkdosfs"?.
I bypassed this issue by flash programming with minimal bootable version from restoring minized tutorial but still I would like to know.