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.

GLSDK 6.04.00.02 - Preparing SD Card for OMAPt uEVM



I've downloaded the GLSDK for the OMAP5 uEVM from here.

And I'm trying to prepare the SD card for boot on Ubuntu 16.04 with the command -

$sudo ${GLSDK}/bin/mksdboot.sh --device /dev/sdb --sdk ${GLSDK}

When I do that, I get the error -

.

.

.

Formating /dev/sdb1 ...
mkfs.fat 3.0.28 (2015-05-16)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mke2fs 1.42.13 (17-May-2015)
/dev/sdb2 contains a ext4 file system labelled 'rootfs'
    last mounted on Wed Nov 30 14:51:22 2016
Proceed anyway? (y,n) y
Creating filesystem with 7775616 4k blocks and 1945888 inodes
Filesystem UUID: 26160eaf-082a-466e-9cfa-a9adbb06973f
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done   

Copying filesystem on /dev/sdb1,/dev/sdb2
Creating boot.scr.sd from boot.script.sd
/media/projects/ti/GLSDK/ti-glsdk_omap5-uevm_6_04_00_02/bin/mksdboot.sh: line 168: mkimage: command not found
Creating boot.scr.emmc from boot.script.emmc
/media/projects/ti/GLSDK/ti-glsdk_omap5-uevm_6_04_00_02/bin/mksdboot.sh: line 171: mkimage: command not found
cp: cannot stat '/media/projects/ti/GLSDK/ti-glsdk_omap5-uevm_6_04_00_02/board-support/prebuilt-images/boot.scr.sd': No such file or directory

ERROR: executing cp /media/projects/ti/GLSDK/ti-glsdk_omap5-uevm_6_04_00_02/board-support/prebuilt-images/boot.scr.sd /tmp/sdk/29374/boot/boot.scr

Can someone help why this isn't working?

Thanks,

Kaushal

  • Hi Kaushal,

    Did you follow the steps from the SW dev guide?
    Try executing the commands from the GLSDK directory, so that you would need to execute:
    sudo ./bin/mksdboot.sh --device /dev/sdb --sdk ${GLSDK}

    I'll download the GLSDK and test your steps and get back with the result.

    Best Regards,
    Yordan
  • Hi Kaushal,

    I confirm that the mksdboot works correct. I downloaded & installed the SDK, and used the following sequence to create bootable sd card:
    1. cd ~/ti-glsdk_omap5-uevm_6_04_00_02
    2. export GLSDK=`pwd`
    3. sudo ./bin/mksdboot.sh --device /dev/sdb --sdk ${GLSDK}

    And the result was as expected (NO Errors) and the sd card was formatted properly:
    -- Main device is: /dev/mapper/sda5_crypt
    ************************************************************
    * THIS WILL DELETE ALL THE DATA ON /dev/sdb *
    * *
    * WARNING! Make sure your computer does not go *
    * in to idle mode while this script is *
    * running. The script will complete, *
    * but your SD card may be corrupted. *
    * *
    * Press <ENTER> to confirm.... *
    ************************************************************

    unmounting device '/dev/sdb1'
    unmounting device '/dev/sdb2'
    unmounting device '/dev/sdb3'
    1024+0 records in
    1024+0 records out
    1048576 bytes (1.0 MB) copied, 0.223378 s, 4.7 MB/s
    Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
    Building a new DOS disklabel with disk identifier 0xfff502d7.
    Changes will remain in memory only, until you decide to write them.
    After that, of course, the previous content won't be recoverable.

    Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

    Command (m for help): Partition type:
    p primary (0 primary, 0 extended, 4 free)
    e extended
    Select (default p): Partition number (1-4, default 1): First sector (2048-7626751, default 2048): Using default value 2048
    Last sector, +sectors or +size{K,M,G} (2048-7626751, default 7626751):
    Command (m for help): Partition type:
    p primary (1 primary, 0 extended, 3 free)
    e extended
    Select (default p): Partition number (1-4, default 2): First sector (129024-7626751, default 129024): Using default value 129024
    Last sector, +sectors or +size{K,M,G} (129024-7626751, default 7626751): Using default value 7626751

    Command (m for help): Partition number (1-4): Hex code (type L to list codes): Changed system type of partition 1 to c (W95 FAT32 (LBA))

    Command (m for help): Partition number (1-4):
    Command (m for help): The partition table has been altered!

    Calling ioctl() to re-read partition table.

    WARNING: If you have created or modified any DOS 6.x
    partitions, please see the fdisk manual page for additional
    information.
    Syncing disks.
    Formating /dev/sdb1 ...
    mkfs.fat 3.0.26 (2014-03-07)
    mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
    mke2fs 1.42.9 (4-Feb-2014)
    Filesystem label=rootfs
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    234320 inodes, 937216 blocks
    46860 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=960495616
    29 block groups
    32768 blocks per group, 32768 fragments per group
    8080 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736

    Allocating group tables: done
    Writing inode tables: done
    Creating journal (16384 blocks): done
    Writing superblocks and filesystem accounting information: done

    Copying filesystem on /dev/sdb1,/dev/sdb2
    Creating boot.scr.sd from boot.script.sd
    Image Name: Boot Image
    Created: Thu Dec 1 15:44:47 2016
    Image Type: ARM Linux Script (uncompressed)
    Data Size: 290 Bytes = 0.28 kB = 0.00 MB
    Load Address: 00000000
    Entry Point: 00000000
    Contents:
    Image 0: 282 Bytes = 0.28 kB = 0.00 MB
    Creating boot.scr.emmc from boot.script.emmc
    Image Name: Boot Image
    Created: Thu Dec 1 15:44:47 2016
    Image Type: ARM Linux Script (uncompressed)
    Data Size: 298 Bytes = 0.29 kB = 0.00 MB
    Load Address: 00000000
    Entry Point: 00000000
    Contents:
    Image 0: 290 Bytes = 0.28 kB = 0.00 MB
    Extracting filesystem on /dev/sdb2 ...
    unmounting /dev/sdb1,/dev/sdb2
    completed!

    I am using Ubuntu 14.04 on my host pc, so you should be fine with your host running Ubuntu 16.04. Make sure you have the mkimage installed.

    Best Regards,
    Yordan
  • Hi Yordan,

    Thanks for your quick response. I think I had forgotten to run $./setup.sh. After I did that the mksdboot.sh ran successfully.

    However, I now face a new problem. When I boot with that SD card, I see that there is no GUI. Is this image supposed to have a GUI like Matrix for PSDKLA? I've connected HDMI touch screen display to the OMAP board and all I see is the console output.

    Thanks,

    Kaushal

  • Hi Kaushal,

    I don't think setup.sh has anything to do with the mksdboot, I ran it without executing sudo ./setup.sh and it was a success. Anyway, yes the GLSDK has some sort of gui (weston), but it is quite different that the Matrix from PSDK.

    Run the following commands to enable it:
    pvrsrvinit
    weston --tty=1

    This is explained in the SW dev guide:
    downloads.ti.com/.../OMAP5_GLSDK_Software_Developers_Guide.html

    Best Regards,
    Yordan
  • Hi Yordan,

    You are right, setup.sh may not have anything do with it. But after my initial fail, I did several things including run setup.sh to try to prepare the SD card. I also did sudo apt-get install u-boot-tools
    May be that's what made it work.

    ===

    Would you know if you can run Qt 5.0 apps with GLSDK & weston?

    Thanks,
    Kaushal
  • Hi,

    This has not been tested. Officially GLSDK6.04 does not support QT.
    IMO you should be able to get it work, because QT is a cross-platform tool, but you'll have to rely mainly on community support.

    Best Regards,
    Yordan
  • do i need to do partation of sd card
    i am getting below error please let me know how to proceed


    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

    Allocating group tables: done
    Writing inode tables: done
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done

    Copying filesystem on /dev/sdb1,/dev/sdb2
    Creating boot.scr.sd from boot.script.sd
    mkimage: Can't open /opt/board-support/prebuilt-images/boot.scr.sd: No such file or directory
    cp: cannot stat `/opt/board-support/prebuilt-images/MLO': No such file or directory

    ERROR: executing cp /opt/board-support/prebuilt-images/MLO /tmp/sdk/24685/boot/
  • Please start a new thread.

    Best Regards,
    Yordan