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.

problem about formatting SD Card for DM365

U-Boot on DM365 EVM is broken.

so trying booting u-boot with SD Card is only way.

I tried to format the SD Card on my Linux PC.

but it didn't work.

-----------------------------------------------------------------------------------------------
[root@localhost]# ./dm3xx_Sd_boot format /dev/sdc
cleaning SD card
1000+0 records in
1000+0 records out
1024000 bytes (1.0 MB) copied, 0.0044254 s, 231 MB/s
BLKRRPART: Invalid factor

Disk /dev/sdc: 1013 cylinders, 1 heads, 60 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
  /dev/sdc: unrecognized partition table type
Old situation:
No partitions found

sfdisk: bad input
Failed to format SD card
10000+0 records in
10000+0 records out
10240000 bytes (10 MB) copied, 3.02254 s, 3.4 MB/s
dm3xx_boot_data_addr=0x
Image dm3xx_boot_rec:please define dm3xx_boot_data_addr
10000+0 records in
10000+0 records out
10240000 bytes (10 MB) copied, 0.107949 s, 94.9 MB/s
dm3xx boot record is written
Please reinsert the card for auto mounting or mount it manually
----------------------------------------------------------------------------------------------------------

that's the result of formatting.

I don't know why formatting doesn't work.

The Linux is Fedora Core 9, and I'm using SD Card Reader.

u-boot on dm365 EVM is broken, that's why I can't try that on dm365 EVM.

anybody has solution for that?

please help me.

  • I had the same problem with SUSE 10.  I could however partition and format the card on Ubuntu.  Just getting the card formatted will not allow you to boot on the EVM.  There are some other threads on here regarding this.  Maybe someone can chime in with the latest info.

  • Hi, I am author of the utility.

    run please:
    sh -x ./dm3xx_Sd_boot format /dev/sdc

    and send me logs. It seems sfdisk for you Fedora Core 9 is too old. Send me also output of "sfdisk --help"

    You may try to make 40MB first partition manually.

  • I couldn't find any way to send you the logs, so I post them here.

    ----------------------------------sh -x ./dm3xx_sd_boot format /dev/sdc---------------------------------------------

    [root@localhost dm3xx_sd_boot-6.1]# sh -x ./dm3xx_sd_boot format /dev/sdc
    + set -o allexport
    + SUCCESS='\033[2;32m'
    + BLUE='\033[1;34m'
    + RED='\033[0;31m'
    + WARNING='\033[0;33m'
    + NOCOLOR='\033[0;39m'
    + GREENU='\033[4;32m'
    + sdc_mnt=/mnt/sdc
    + u=DM35x_FlashAndBootUtils_1_10_sd
    ++ uname -m
    ++ sed -e 's/i.86.*/x86/' -e 's/arm.*/arm/' -e 's/x86.*/x86/'
    + arch=x86
    + export PATH=/media/Biggest/DM365/SD_U-Boot/dm3xx_sd_boot-6.1/bin.x86/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:bin.x86
    + PATH=/media/Biggest/DM365/SD_U-Boot/dm3xx_sd_boot-6.1/bin.x86/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:bin.x86
    + . ./dm3xx_sd.config
    ++ a=DM36x
    ++ case $platform in
    ++ ubl=original/UBL_DM36x_NAND.bin
    ++ uboot=original/u-boot-1.3.4-dm365_evm.bin
    ++ kernel=original/uImage-dm365
    ++ rootfs=original/ramdisk.gz
    +++ echo '/media/*/dm3xx.dat'
    ++ data_file='/media/*/dm3xx.dat'
    ++ ls sdcard_flash/sdcard_flash_DM36x.bin
    + sdboot=sdcard_flash/sdcard_flash_DM36x.bin
    + cmd=format
    + '[' -z format ']'
    + shift
    + sd=/dev/sdc
    + case "$cmd" in
    + :
    + sdcard_fat /dev/sdc
    + sd=/dev/sdc
    + '[' -z /dev/sdc ']'
    + test -b /dev/sdc1
    + test -b /dev/sdcp1
    + sfdisk -s
    + umount /mnt/sdc
    + true
    + umount
    + true
    + printf 'cleaning SD card\n'
    cleaning SD card
    + dd if=/dev/zero of=/dev/sdc bs=1024 count=1000
    1000+0 records in
    1000+0 records out
    1024000 bytes (1.0 MB) copied, 1.35907 s, 753 kB/s
    + umount
    + true
    + printf ',40,b,*\n,,,*\n'
    + sfdisk -uM -q /dev/sdc
    ----------------------------------------------------------------------------------------------------------------------------

    ------------------------------------------------------sfdisk --help-----------------------------------------------------

    ot@localhost dm3xx_sd_boot-6.1]# sfdisk --help
    sfdisk (util-linux-ng 2.13.1)Usage: sfdisk [options] device ...
    device: something like /dev/hda or /dev/sda
    useful options:
        -s [or --show-size]: list size of a partition
        -c [or --id]:        print or change partition Id
        -l [or --list]:      list partitions of each device
        -d [or --dump]:      idem, but in a format suitable for later input
        -i [or --increment]: number cylinders etc. from 1 instead of from 0
        -uS, -uB, -uC, -uM:  accept/report in units of sectors/blocks/cylinders/MB
        -T [or --list-types]:list the known partition types
        -D [or --DOS]:       for DOS-compatibility: waste a little space
        -R [or --re-read]:   make kernel reread partition table
        -N# :                change only the partition with number #
        -n :                 do not actually write to disk
        -O file :            save the sectors that will be overwritten to file
        -I file :            restore these sectors again
        -v [or --version]:   print version
        -? [or --help]:      print this message
    dangerous options:
        -g [or --show-geometry]: print the kernel's idea of the geometry
        -G [or --show-pt-geometry]: print geometry guessed from the partition table
        -x [or --show-extended]: also list extended partitions on output
                                 or expect descriptors for them on input
        -L  [or --Linux]:      do not complain about things irrelevant for Linux
        -q  [or --quiet]:      suppress warning messages
        You can override the detected geometry using:
        -C# [or --cylinders #]:set the number of cylinders to use
        -H# [or --heads #]:    set the number of heads to use
        -S# [or --sectors #]:  set the number of sectors to use
    You can disable all consistency checking with:
        -f  [or --force]:      do what I say, even if it is stupid

    ------------------------------------------------------------------------------------------------------------------------

    In additional, My SD Card is just 32MB, Could it be a problem ?

    any way thank you and, I hope you could gimme the solution.

  • I need log exactly after   sfdisk -uM -q /dev/sdc, where you cut it off.

    Please remove -q in sfdisk -uM -q /dev/sdc in the script.

  • I did it...

    I formatted SD Card successfully after changed to another SD Card.

    but new problem was occured.

    why I tried to boot u-boot by SD Card was,,,I thought u-boot is broken on DM365.

    I couldn't see anything on the terminal through serial connection.

    It doesn't show me anything even a letter.

    so...I just tried to boot with SD Card on DM365 after formatted and data copy successfully.

    I did set the switch4 BTSEL 2 and BTSEL 0 on and switch5 vcore on.

    but it still doesn't show me anything..

    I tried switch4 BTSEL1 and BTSEL 0 on <- it's serial booting mode...maybe..

    it shows me something like broken letters...it means serial connection is alive, right?

    but I can't see anything on SD Card boot mode...

    doest that mean the problem is not about u-boot ? doest that mean there is some problems on DM365 physically ?