Hello,
Hello,
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:
MiniZed
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
o
n
p
1
1
+128M
w
" | fdisk /dev/mmcblk1
echo "sleep 1"
sleep 1
#Format as a DOS partition
echo "mkdosfs -F 32 /dev/mmcblk1p1"
mkdosfs -F 32 /dev/mmcblk1p1
echo "sleep 1"
sleep 1
#Mount eMMC
echo "/dev/mmcblk1p1 /mnt"
mount /dev/mmcblk1p1 /mnt
echo "ls -l /mnt"
ls -l /mnt
#Unmount drive again:
echo "umount /mnt"
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.
--Tom
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:
MiniZed
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
o
n
p
1
1
+128M
w
" | fdisk /dev/mmcblk1
echo "sleep 1"
sleep 1
#Format as a DOS partition
echo "mkdosfs -F 32 /dev/mmcblk1p1"
mkdosfs -F 32 /dev/mmcblk1p1
echo "sleep 1"
sleep 1
#Mount eMMC
echo "/dev/mmcblk1p1 /mnt"
mount /dev/mmcblk1p1 /mnt
echo "ls -l /mnt"
ls -l /mnt
#Unmount drive again:
echo "umount /mnt"
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.
--Tom
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.
Thanks.