Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
7 years ago

make_sdimage - Scrpt not working correctly

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.bin

Here 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 zImage

I'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

6 Replies

    • MNoli2's avatar
      MNoli2
      Icon for New Contributor rankNew Contributor

      On ubuntu 18.04 make_sdimage.py hangs on 'info: creating the partition table

      ' . make_sdimage2.py did not hang.

  • 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 .

  • Oh - I just saw the OP was edited to have a solution. Ah well perhaps my experience relayed above will help someone else :)