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.

Linux/DRA72: mk-eMMC error

Part Number: DRA72

Tool/software: Linux

root@dra7xx-evm:~# fdisk -l

Disk /dev/mmcblk0: 15.7 GB, 15758000128 bytes
255 heads, 63 sectors/track, 1915 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1   *           8        1915    15326010   1 FAT12

Disk /dev/mmcblk0boot1: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/mmcblk0boot1 doesn't contain a valid partition table

Disk /dev/mmcblk0boot0: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/mmcblk0boot0 doesn't contain a valid partition table

Disk /dev/mmcblk1: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk1p1   *          33        2016       63488   c Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
/dev/mmcblk1p2            2017      242560     7697408  83 Linux
Partition 2 does not end on cylinder boundary

  • Sorry, please to refer to this? VISIONSDK-0304


    root@dra7xx-evm:~# ./mk-eMMC-boot.sh
    This has to be run on target, don't run on host
    Are you running on target? (Press ENTER to continue)

    -- Main device is: /dev/mmcblk1p2
    ************************************************************
    * THIS WILL DELETE ALL THE DATA ON /dev/mmcblk0 *
    * *
    * 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/mmcblk0p1'
    unmounting device '/dev/mmcblk0p2'
    2048+0 records in
    2048+0 records out
    Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
    Building a new DOS disklabel. Changes will remain in memory only,
    until you decide to write them. After that the previous content
    won't be recoverable.


    The number of cylinders for this disk is set to 1915.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)

    Command (m for help): Command action
    e extended
    p primary partition (1-4)
    Partition number (1-4): First cylinder (1-1915, default 1): Value is out of range
    First cylinder (1-1915, default 1): Last cylinder or +size or +sizeM or +sizeK (8-1915, default 1915): Last cylinder or +size or +sizeM or +sizeK (8-1915, default 1915): Last cylinder or +size or +sizeM or +sizeK (8-1915, default 1915): Value is out of range
    Last cylinder or +size or +sizeM or +sizeK (8-1915, default 1915): Value is out of range
    Last cylinder or +size or +sizeM or +sizeK (8-1915, default 1915): Using default value 1915

    Command (m for help): Selected partition 1
    Hex code (type L to list codes): Changed system type of partition 1 to 1 (FAT12)

    Command (m for help): DOS Compatibility flag is not set

    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
    [ 36.196756] mmcblk0: p1
    Formating /dev/mmcblk0p1 ...
    ./mk-eMMC-boot.sh: line 157: mkfs.vfat: command not found
    Formating /dev/mmcblk0p2 ...
    ./mk-eMMC-boot.sh: line 164: mkfs.ext4: command not found
    Preparing for Copy...
    mount: wrong fs type, bad option, bad superblock on /dev/mmcblk0p1,
    missing codepage or helper program, or other error

    In some cases useful info is found in syslog - try
    dmesg | tail or so.

    ERROR: executing mount /dev/mmcblk0p1 /tmp/sdk/678/emmc_boot

    root@dra7xx-evm:~# [ 36.639968] random: nonblocking pool is initialized
  • Hi,

    The Vision-SDK(VSDK) 3.04 file-system, is a reduced file-system and contains components essential for VSDK.
    The script fails as the the commands ' mkfs.vfat' and ' mkfs.ext4' are not found.
    To overcome this issue, download the complete file-system from the below link and extract it. This extracted file-system will have all the binaries necessary (the above two binaries are present in the sbin folder after extracting). Copy these binaries to your SD card (running VSDK-3.04 with reduced file-system), maintaining the parent structure (i.e copy these files also to the sbin folder of the rootfs partition of your SD card).

    Regards
    Shravan

    downloads.ti.com/.../index_FDS.html
  • I have encourred this question. can you give some advice.
    root@dra7xx-evm:~# [ 228.121694] omap_hwmod: dcan1: _wait_target_disable failed
    [ 238.120988] omap_hwmod: dcan1: _wait_target_disable failed
    ./mk-eMMC-boot.sh
    This has to be run on target, don't run on host
    Are you running on target? (Press ENTER to continue)
    -- Main device is: /dev/mmcblk0p2
    ************************************************************
    * THIS WILL DELETE ALL THE DATA ON /dev/mmcblk1 *
    * *
    * 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/mmcblk1p1'
    unmounting device '/dev/mmcblk1p2'
    Preparing for Copy...
    [ 250.736410] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ 250.824889] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    Copying boot image from /dev/mmcblk0p1 to /dev/mmcblk1p1
    cp: can't stat '/tmp/sdk/953/mmc_boot/uenv-emmc.txt': No such file or directory

    ERROR: executing cp /tmp/sdk/953/mmc_boot/uenv-emmc.txt /tmp/sdk/953/emmc_boot/uenv.txt
  • Hi,

    Please make sure your boot partition of the SD card has the file uenv-emmc.txt. Also please run the fsck command on the EMMC partition.

    Regards
    Shravan