Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,277 Views

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
0 Kudos
6 Replies
Jacky_R_Intel
Employee
281 Views

Seeing the same problem - Is there a solution?

Jacky_R_Intel
Employee
281 Views

Seeing the same problem - Is there a solution?

Susannah_M_Intel
Employee
281 Views

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 .

Susannah_M_Intel
Employee
281 Views

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

LChua3
Partner
281 Views

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

 

https://raw.githubusercontent.com/rsarwar87/altera-soc-rootfs/master/make_sdimage2.py

 

MNoli2
Beginner
281 Views

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

' . make_sdimage2.py did not hang.

Reply