Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Apr 2014 05:25 AM by  Jean-Paul De Lemos
Problem with mkLogicFATcard.sh
 5 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Jean-Paul De Lemos
New Member
New Member
Posts:15


--
09 Apr 2014 04:15 AM

    Hi all,

    I try to create a bootable SD Card for the DM3730.

    My SD Card is on /dev/sdb but when I launch the command : ./mkLogicFATcard.sh /dev/sdb

    the following error is displayed :

     

    ./mkLogicFATcard.sh: 131: ./mkLogicFATcard.sh: Bad substitution

     

    What could I do to fix the problem?

     

    bradb
    Basic Member
    Basic Member
    Posts:203


    --
    09 Apr 2014 08:55 AM
    Jean-Paul,

    I am not seeing this issue with the script in the DM37x Linux 2.4-2 BSP release.

    logic@logic-VirtualBox:~/logic/Logic_BSPs/Linux_3.0/REL-ltib-DM3730-2.4-2/bin$ ./mkLogicFATcard.sh /dev/sdb
    All the data on device "/dev/sdb" will be removed!
    
    Do you wish to continue? (y/N) y
    [sudo] password for logic: 
    Formatting /dev/sdb...
    Disk /dev/sdb doesn't contain a valid partition table
    Disk /dev/sdb doesn't contain a valid partition table
    DISK SIZE - 1920MiB
    PARTITION SIZE - 196MiB
    CYLINDERS - 25
    [sudo] password for logic: 
    logic@logic-VirtualBox:~/logic/Logic_BSPs/Linux_3.0/REL-ltib-DM3730-2.4-2/bin$  


    If this issue is related to your SD Card you might consider trying to recover it using the Windows HP USB Disk Storage Format Tool[1] or trying other SD Cards. This tool requires a USB SD Card Reader.

    Note: You may need to log into the Logic PD support site and register your product before you can access the link provided.

    [1] http://support.logicpd.co...talid=0&EntryId=2760
    Jean-Paul De Lemos
    New Member
    New Member
    Posts:15


    --
    09 Apr 2014 09:04 AM
    Hi bradb,

    I tested with several SD Card using a USB Card Reader, and I always get the same error.

    For information, I use Ubuntu 12.04 LTS .
    bradb
    Basic Member
    Basic Member
    Posts:203


    --
    09 Apr 2014 09:24 AM
    Jean-Paul,

    The working example above was also using Ubuntu 12.04 LTS. Try to recover a SD Card by formatting it with Windows HP USB Disk Storage Format Tool. If that does not work, you might consider trying to use the Virtual Machine SDK for the DM37x Linux BSP[1] to isolate the failure. The VM should help determine if this issue is your Linux Host environment or your SD Card reader. Information how to use the Virtual Machine SDK for the DM37x Linux BSP can be found in the Virtual Machine SDK for the DM37x Linux BSP ReadMe[2].

    Note: You may need to log into the Logic PD support site and register your product before you can access the link provided.

    [1] http://support.logicpd.co...rtalid=0&EntryId=858
    [2] http://support.logicpd.co...talid=0&EntryId=1401
    Jean-Paul De Lemos
    New Member
    New Member
    Posts:15


    --
    09 Apr 2014 09:31 AM
    I had already try formatting SD Cards,

    I download the Virtual Machine and I come back to tell you the news.
    Jean-Paul De Lemos
    New Member
    New Member
    Posts:15


    --
    10 Apr 2014 05:25 AM
    Hi bradb,

    With the Virtual Machine, there is no problem.

    Thank you for your help.
    You are not authorized to post a reply.