I’m using PYNQ-2.4 to build PYNQ SD card for Zedboard.
Currently, this tutorial: PYNQ SD card is followed.
This is the folder ~/Documents/PYNQ-2.4/boards/* structure, and I have moved Pynq-Z1, Pynq-Z2 and ZCU104 to another directory:
The zedboard.tcl script contains only this:
Both zedboard_ps.bit and system.hdf is the files generated by Vivado v2018.3 according to the zedboard.tcl script. (I read from this post: petalinux tcl question 258)
The bsp file in ~/Documents/PYNQ-2.4/avnet-digilent-zedboard-v2018.3-final.bsp is downloaded from here:
avnet-digilent-zedboard-v2018.3-final.bsp in the Xilinx download website
And the specification file ~/Documents/PYNQ-2.4/boards/zedboard/zedboard.spec contains this
Then I go to ~/Documents/PYNQ-2.4/sdbuild/ and do the following command:
cd ~/Documents/PYNQ-2.4/sdbuild/
make
However, I get this error:
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x2661ba02.
Command (m for help): Created a new DOS disklabel with disk identifier 0x64f7530e.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-14680063, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-14680063, default 14680063):
Created a new partition 1 of type 'Linux' and of size 100 MiB.
Command (m for help): Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (206848-14680063, default 206848): Last sector, +sectors or +size{K,M,G,T,P} (206848-14680063, default 14680063):
Created a new partition 2 of type 'Linux' and of size 6.9 GiB.
Command (m for help): Partition number (1,2, default 2):
The bootable flag on partition 1 is enabled now.
Command (m for help): Partition number (1,2, default 2): Partition type (type L to list all types):
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
Command (m for help): Disk /home/yang/Documents/PYNQ-2.4/sdbuild/build/bionic.arm.stage1.img: 7 GiB, 7516192768 bytes, 14680064 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x64f7530e
Device Boot Start End Sectors Size Id Type
/home/yang/Documents/PYNQ-2.4/sdbuild/build/bionic.arm.stage1.img1 * 2048 206847 204800 100M c W95 FAT
/home/yang/Documents/PYNQ-2.4/sdbuild/build/bionic.arm.stage1.img2 206848 14680063 14473216 6.9G 83 Linux
Command (m for help): The partition table has been altered.
Syncing disks.
+ mount_points=($(sudo kpartx -av $image_file | cut -d ' ' -f 3))
++ sudo kpartx -av /home/yang/Documents/PYNQ-2.4/sdbuild/build/bionic.arm.stage1.img
++ cut -d ' ' -f 3
+ echo loop5p1
loop5p1
+ echo loop5p2
loop5p2
+ root_part=/dev/mapper/loop5p2
+ boot_part=/dev/mapper/loop5p1
+ sleep 1
+ sudo chroot / mkfs -t fat /dev/mapper/loop5p1
mkfs.fat 3.0.28 (2015-05-16)
/dev/mapper/loop5p1: No such file or directory
Makefile:299: recipe for target '/home/yang/Documents/PYNQ-2.4/sdbuild/build/bionic.arm.stage1.img' failed
make: *** [/home/yang/Documents/PYNQ-2.4/sdbuild/build/bionic.arm.stage1.img] Error 1
Can someone help me to check which part I have done it wrong?
The build folder structure is shown: