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.

OMAP-L138 uboot with sd/mmc support

Other Parts Discussed in Thread: OMAP-L138

Hi,

 

is there a u-boot for the OMAP-L138 that supports read/writing from to SD card, reading a uImage from say an ext3 partition?

 

Thanks,

--Gunter

  • Hi Gunter,

    There is work in progress in getting this support working directly at U-Boot mainline tree. While that happens, I have hosted the latest patches on the OMAP-L1 U-Boot tree on arago project.

    http://arago-project.org/git/projects/?p=u-boot-omapl1.git;a=shortlog;h=refs/heads/mmc

    Please do try it out. Some usage notes follow.

    Thanks,

    Sekhar

    The MMC/SD support for DA850EVM is done through the Generic MMC framework
    of u-boot.  Following options shall be enabled in the default configuration
    to include MMC/SD support. 

            CONFIG_MMC
            CONFIG_GENERIC_MMC
            CONFIG_DAVINCI_MMC
            CONFIG_CMD_MMC

    To include File system support for MMC, following configuration options
    shall be enabled
            CONFIG_DOS_PARTITION
            CONFIG_CMD_EXT2
            CONFIG_CMD_FAT

    Following configuration options shall be set to enable
    Environment variables to reside on MMC.  Offset is specified in bytes from the beginning of the card.
           CONFIG_ENV_IS_IN_MMC

           CONFIG_ENV_SIZE
           CONFIG_ENV_OFFSET

  • Thanks, Sekhar. I was able to pull this u-boot from the git and build it with MMC support and was able to read a kernel from an ext2 partition on the SD Card and boot it.

     

    Regards,

    --Gunter

  • What is the proper way to bitbake this?   What I came up with is to modify following lines in arago/recipes/u-boot/u-boot_git.bb

    (in my case, MACHINE=da850-omapl138-evm):

    SRC_URI_da850-omapl138-evm = "git://arago-project.org/git/people/sekhar/u-boot-omapl1.git;protocol=git;branch=master"
    SRCREV_da850-omapl138-evm = "17a083a2bdfc84cc9c9894c7a5c8156d6d4d1e62"

    to

    SRC_URI_da850-omapl138-evm = "git://arago-project.org/git/people/sekhar/u-boot-omapl1.git;protocol=git;branch=mmc"
    SRCREV_da850-omapl138-evm = "50db5a87527fa689b9ce50d36291b15095f69fcc"

    Is this the right way to do it? 

    Hiroto

     

  • Hi,

    Also for storages under 4 gB "mke2fs -j -T small /dev/<device>", for both ext2 and ext3 can make a trick ( to reserve enough inodes ).

     

    Yetkin.