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.

DM814x evm question: how to setting up Boot Environment on SD Card

Hello,

Since when I used the original  SD card provided by TI with the DM814x evm board, I got "VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2)" errors when booting up. I need recover this SD card or creat a new one.

I did the below steps to creat a new one, but it doesn't work.

1. downloaded and installed TI EZSDK and CodeSourcery GCC Toolchain

2. "MLO, u-boot.bin and uImage-dm814x-evm.bin" from TI EZSDK board/support/prebuilt-image , "ezsdk-dm814x-evm-rootfs.tar.gz" from filesystem and "mksd-ti814x.sh" from board-support/host-tools

3. ran " sudo ./mksd-ti814x.sh  /dev/sdc MLO u-boot.bin uImage-dm814x-evm.bin ezsdk-dm814x-evm-rootfs.tar.gz ".

Can someone tell me how to creat a new SD card just as the one provided by TI with the DM814x evm board?

Thanks,

Jian


  • Hi Jian,

    Procedure to create a bootable SD/MMC Card from the EZSDK will be mentioned in the Software Developers Guide(SDG).

    For more information, I have attached the SDG. Refer to the 21st  page which details the same.1651.DM814x_EZ_Software_Developers_Guide.pdf

    Regards,

    N.S.SriHarsha

  • It works.

    Thanks a lot, SriHarsha

    Jian

  • Hi, I have a question,

    (please consider my question as a question from a newbie)

    I compiled Angstrom Linux for dm814x-evm and I have the following in my directory structure

    sdamarla@WSLINUXDAS:~/consoleAngstrom/setup-scripts/build/tmp-angstrom_2010_x-eglibc/deploy/images/dm814x-evm$ ls -la
    total 17440
    drwxrwxrwx 2 sdamarla sdamarla 4096 2012-02-20 17:48 .
    drwxr-xr-x 3 sdamarla sdamarla 4096 2012-02-20 17:00 ..
    -rwxrwxrwx 1 sdamarla sdamarla 12057237 2012-02-20 17:48 Angstrom-console-image-eglibc-ipk-v2012.02-core-dm814x-evm.rootfs.tar.bz2
    -rwxrwxrwx 1 sdamarla sdamarla 48487 2012-02-20 17:29 config-2.6.37-r2a+gitr745a06cb913ad7a9ab44855aa36d8c012cd5793b-dm814x-evm.config
    -rwxrwxrwx 1 sdamarla sdamarla 47918 2012-02-20 17:00 config-2.6.37-r2a+gitr745a06cb913ad7a9ab44855aa36d8c012cd5793b-dm814x-evm.multi-config-psp.config
    lrwxrwxrwx 1 sdamarla sdamarla 80 2012-02-21 09:47 config-dm814x-evm.config -> config-2.6.37-r2a+gitr745a06cb913ad7a9ab44855aa36d8c012cd5793b-dm814x-evm.config
    lrwxrwxrwx 1 sdamarla sdamarla 97 2012-02-21 09:47 config-dm814x-evm.multi-config-psp.config -> config-2.6.37-r2a+gitr745a06cb913ad7a9ab44855aa36d8c012cd5793b-dm814x-evm.multi-config-psp.config
    lrwxrwxrwx 1 sdamarla sdamarla 73 2012-02-21 09:47 console-image-dm814x-evm.tar.bz2 -> Angstrom-console-image-eglibc-ipk-v2012.02-core-dm814x-evm.rootfs.tar.bz2
    -rwxrwxrwx 1 sdamarla sdamarla 249731 2012-02-20 17:29 modules-2.6.37+-r2a+gitr745a06cb913ad7a9ab44855aa36d8c012cd5793b-dm814x-evm.tgz
    lrwxrwxrwx 1 sdamarla sdamarla 21 2012-02-21 09:47 modules-dm814x-evm.multi-config-psp.tgz -> .multi-config-psp.tgz
    lrwxrwxrwx 1 sdamarla sdamarla 4 2012-02-21 09:47 modules-dm814x-evm.tgz -> .tgz
    -rwxrwxrwx 1 sdamarla sdamarla 238550 2012-02-20 17:00 .multi-config-psp.tgz
    -rwxrwxrwx 1 sdamarla sdamarla 294 2012-02-20 17:46 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
    lrwxrwxrwx 1 sdamarla sdamarla 36 2012-02-21 09:47 u-boot.bin -> u-boot-dm814x-evm-2010.06-psp-r0.bin
    -rwxrwxrwx 1 sdamarla sdamarla 173780 2012-02-20 17:45 u-boot-dm814x-evm-2010.06-psp-r0.bin
    lrwxrwxrwx 1 sdamarla sdamarla 36 2012-02-21 09:47 u-boot-dm814x-evm.bin -> u-boot-dm814x-evm-2010.06-psp-r0.bin
    -rwxrwxrwx 1 sdamarla sdamarla 2567836 2012-02-20 17:29 uImage-2.6.37-r2a+gitr745a06cb913ad7a9ab44855aa36d8c012cd5793b-dm814x-evm-20120220143547.bin
    -rwxrwxrwx 1 sdamarla sdamarla 2429044 2012-02-20 17:00 uImage-2.6.37-r2a+gitr745a06cb913ad7a9ab44855aa36d8c012cd5793b-dm814x-evm-20120220143547.multi-config-psp.bin
    lrwxrwxrwx 1 sdamarla sdamarla 92 2012-02-21 09:47 uImage-dm814x-evm.bin -> uImage-2.6.37-r2a+gitr745a06cb913ad7a9ab44855aa36d8c012cd5793b-dm814x-evm-20120220143547.bin
    lrwxrwxrwx 1 sdamarla sdamarla 109 2012-02-21 09:47 uImage-dm814x-evm.multi-config-psp.bin -> uImage-2.6.37-r2a+gitr745a06cb913ad7a9ab44855aa36d8c012cd5793b-dm814x-evm-20120220143547.multi-config-psp.bin

    briefly,

    1. Angstrom Linux Rootfs in tar.bz2

    2. u-boot.bin

    3. uImage

    The EZSDK Linux boot perfectly from the SD card. Now, I want to boot Angstrom Image from SD card and I did the following as advised by http://www.youtube.com/watch?v=zymOmduNWyI&feature=player_embedded

    I format my SD card (4GB) into 50MB of FAT32 and rest EXT3. I copied the ROOTFS into Ext3 and uImage into FAT32 partition. Unfortunately I am unable to still boot.

    So, I later added the MLO, uboot.bin,boot.scr and boot.cmd from EZSDK Linux into FAT32 partion and tried to boot but still it didnot boot...

    Can anyone explain me what is the mistake I have done...

    Million Thanks,

    Swaroop

  • I forgot to set the boot flag on FAT32 drive .. Now work is done