SOLVED:Due to my inexperience with Ubuntu/Linux, I did not know of the symlink files. After finding the "real" files and using them I were able to create the sd-image. Hi, I'm trying to create a sd-card from rebuilt binaries. I've followed the GSRD tutorials on Rocketboards, but I've hit a wall. I have some issues when trying to execute the make_sdimage.py script supplied by Altera/Intel. Here is the script call with parameters:
# sudo ./make_sdimage.py -f -P preloader-mkpimage.bin,u-boot-sockit.img,num=3,format=raw,size=10M,type=A2 -P rootfs/*,num=2,format=ext3,size=1500M -P zImage,u-boot.scr,soc_system.rbf,socfpga.dtb,num=1,format=vfat,size=500M -s 2G -n sd_card_image_cyclone5.binHere is the error output:
# info: creating the image sd_card_image_cyclone5.bin# info: creating the partition table# info: processing partitions... partition# 1...# error: failed to copy zImageI'm running Ubuntu 16.04 LTS as a virtual image with VirtualBox. Anyone have any ideas what might cause this? Folder contents: https://alteraforum.com/forum/attachment.php?attachmentid=15455&stc=1
Did it hang a long time before finally showing an error? When I ran the script it was hanging. I didn't have the patience to wait to see if it finally produced an error. For me, it was a problem with Python interacting with the fdisk command. The system wasn't outputting the output of fdisk in time for the script to interact with it. I think because my virus/security software was doing something with that data buffer in the background. Anyway - what solved it for me was I added stdbuf -i0 -o0 -e0 to the command at the beginning (after sudo and before ./make_sdimage.py .
forward forum thread from: https://github.com/thinkoco/c5soc_opencl/issues/12
the python script works fine on ubuntu 16.04 , but get stuck on ubuntu 18.04.
This issue may be fixed by rsarwar87 make_sdimage2.py