This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

trouble with create-sdcard.sh

Hi Forum,

So I have been going thru the Sitara and OE labs and have built the minimal filesystem.  I am trying to use the create_sdcard.sh script and not having much luck.  Im running it from the ti-sdk-am335x-evm-07.00.00.00/bin folder.  If I have it use the prebuilt images (option 1 after partitioning)  from the sdk it work with no problems.  If I have it use a custom boot and rootfs I run in to a bunch of troubles.

When I run it Im giving it the path to the deploy/images folder.  Im using that directory for each of the three times it asks for a directory or files.  All the file are in there I think.  Its the files that are built from the Arago setting up the build environment page.  I have also tried moving the needed files out of there into their own directory and not had any luck.  See attached output from the script and my directory lists.  Anyone have any suggestions what to try or change?


Thanks

Matt

  • Hi Matt,

    Are you running the script with "sudo" rights?

    I just tried creating an SD card and selecting the option to use custom images, then I pointed the script to use the pre-built images as if they were custom ones and everything works as expected. Try to follow my steps and share the results.

    Another question - what is your host OS?

    Best regards,
    Miroslav

  • Hi Miroslav,

    Yes I have been running as root or sudo, and the linux distro is ubuntu 12.04lts.

    Were you able to see the text file I attached that had the terminal window output?

    Thanks

    Matt

  • Hi Miroslav,

    Can you attach the text output from your terminal doing that process?  I would like to compare how you did it with respect to what Im doing.

    Thanks

    Matt

  • Sure, Matt,

    Here it is, attached.

    2541.create-sdcard-log.txt

    Best regards,
    Miroslav

  • Hi Miroslav,


    Thank you for the logfile.  That helped, but Im still having issues.  Im seeing I think two different issues.  First one is on the attached log file line number 164.  There is some kind of a error failure happening.  This was from doing exactly as you were doing.  Wonder if maybe I have some corruption in that rootfs file.  What is the md5 on yours?

    Second attempt I used my own files.  This time I placed all the files in separate directories.  See how the directories are structured down on lines 572-588.  For the options for kernel I choose to select a dir for the kernel files.  When entering the directories I kept the "/"  on the ends of the directories.  Down on line 361 you can see the two // in the accessing of the .dtb file.  Tried it in the next run with no / at the end of the directories.  Still seeing those errors though I dont think they are related to the //.  Now most of the sdcard is getting built.  See lines 590-616.  It seems like Im missing the uboot image.  In lines 619-639 you can see the output from using the (corrupted)sdk prebuilt images.  Can you see why Im not getting the uboot image to show up on the card? 

    Thank you

    Matt