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.

u-boot support for OMAP-L1x SD/MMC card controller?

Other Parts Discussed in Thread: OMAP-L138, DA8XX, OMAPL138, PMP

Currently we are developing our product around OMAP-L138 SOM using L138 dev kit. 

We have chosen SD card for our primary storage, and I have successfully brought up a system

with root file system on it.  But when I tried to move up to booting uImage off SD card,

I didn't find SD/MMC card support on u-boot built for L138 dev kit (da8xx board).

 

First I throught it was simply not enabled in the build configuration, but taking a closer look,

it seems that DaVinci processors have different SD/MMC controller from OMAP3 and

the MMC driver drivers/mmc/omap3_mmc.c does not work with L138. 

 

Since TI added L138 SD/MMC card support in the kernel, do you have any plan to add

same support for u-boot in (very) near future?

  • Hello,

    Yes, there is a plan to support MMC/SD in U-Boot on OMAP-L138 and patches should be submitted to U-Boot mailing list in the near future. I will confirm the approximate ETA to you.

    Thanks,

    Sekhar

  • Hi Sekhar, 

    That is great!  Looking forward to seeing that patch.  Thank you.

     

    Hiroto

     

  • Hi Sekhar, 

    Do you have better idea of when this can implemented?  Thank you.

     

  • Shibuya-san,

    There was another thread regarding this where I posted the code details.

    Please see: http://e2e.ti.com/support/embedded/f/354/p/43807/171520.aspx#171520

    Apologize for not keeping this thread updated.

    Thanks,

    Sekhar

  • Hi Sekhar,

    I finally got around to try this out.  Somehow I couldn't get fatload working:

    U-Boot > mmc init
    U-Boot > mmcinfo 0
    Device: davinci
    Manufacturer ID: 3
    OEM: 5344
    Name: SD02G
    Tran Speed: 25000000
    Rd Block Len: 512
    SD version 2.0
    High Capacity: No
    Capacity: 1977614336

    Bus Width: 4-bit

    U-Boot > fatinfo mmc
    Interface:  MMC
      Device 0: Vendor: Man 035344 Snr 03625a1e Rev: 8.0 Prod: SD02G
                Type: Removable Hard Disk
                Capacity: 1886.0 MB = 1.8 GB (3862528 x 512)

    Partition 1: Filesystem: FAT32 "uImage     "

    U-Boot > fatls mmc 0:1
      1828020   uimage
    U-Boot > fatload mmc 0:1 0xc0700000 uimage
    reading uimage

    0 bytes read <<<<< 

    I followed instruction in http://code.google.com/p/beagleboard/wiki/LinuxBootDiskFormat for SD card formatting.

    BUT,  then I tried out ext2 file system instead of FAT,  noticing the existance of new ext2ls and ext2load command in u-boot, and that worked perfectly for me.  I could boot from uImage in ext2 partition with root file system placed in the adjacent ext3 partition.

    Hiroto

     

  • Hi Hiroto,

    I'm trying to do the same as you but I have problems accessing to the SD/MMC.

    I add the options that Sekhar Nori said at the end of the da850evm.h config before recompile the u-boot:

    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

    Then I write the ubl and the u-boot to the SPI flash, the u-boot print out this, and mmc commands are added, but doesn't work:

    U-Boot 2009.11 (ago 24 2010 - 16:21:50)                                                                                         
                                                                                                                                    
    I2C:   ready                                                                                                                    
    DRAM:  64 MB                                                                                                                    
    In:    serial                                                                                                                   
    Out:   serial                                                                                                                   
    Err:   serial                                                                                                                   
    ARM Clock : 300000000 Hz                                                                                                        
    DDR Clock : 150000000 Hz                                                                                                        
    MMC:                                                                                                                            
    Net:   Ethernet PHY: GENERIC @ 0x00

    I don't know what I am doing wrong. Could you tell me what did you do to compile a u-boot with SD/MMC support?


    Thanks,

    Cerilet.

  • Hi Cerilet,


    Did you build from repository pointed at by that post?  Actually, I'm not so sure why he had to mention the config change because when I pulled from

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

    it was all already configured properly as you can see in dm850's configuration file:

    http://arago-project.org/git/projects/?p=u-boot-omapl1.git;a=blob;f=include/configs/da850evm.h;h=fb96f896d7d41cddce536034c98178303e9532bc;hb=refs/heads/mmc

    So I didn't have to do anything to configured it.  All I did was make the following change in the u-boot recipe to point to that branch and bitbake it.

    http://e2e.ti.com/support/embedded/f/354/p/43807/192577.aspx#192577

     

    Here is the boot message I see from my build:

    U-Boot 2009.11 (Jun 29 2010 - 19:15:01)

    I2C:   ready
    DRAM:  64 MB
    MMC:   davinci: 0
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x00

  • Thanks for your quick response Hiroto.

    I'm compiling the u-boot from the source of DaVinci-PSP-SDK. I can't find the file arago/recipes/u-boot/u-boot_git.bb to modify it.

    I look for information but I can't find nothing.

    I have never used neither git nor bitbake and am a bit lost.

  • Cerilet,

    The u-boot code in DaVinci-PSP-SDK does not have support for SD/MMC support for L138 EVM.  You have to pull the code from the git repository specified in:

    http://e2e.ti.com/support/embedded/f/354/p/43807/153307.aspx#153307

     $ git clone git://arago-project.org/git/people/sekhar/u-boot-omapl1.git;protocol=git;branch=mmc


  • Hi Hiroto,

    finally I could download the right source code. I had problems executing git on a virtual machine (maybe port problems). I executed on a machine with an installed ubuntu and could download it:

    user@host:~$ git clone git://arago-project.org/git/people/sekhar/u-boot-omapl1.git;protocol=git;branch=mmc

    I build the u-boot but this source haven't support the mmc. I had to download the source code clicking on the snapshot link at the arago webpage.

    Finally I build it and loaded. It seems to load the driver but didn't detect any card:

    OMAP-L138 initialization passed!                                                                                                
    Booting TI User Boot Loader                                                                                                     
            UBL Version: 1.65                                                                                                       
            UBL Flashtype: SPI                                                                                                      
    Starting SPI Memory Copy...                                                                                                     
    Valid magicnum, 0x55424CBB, found at offset 0x00010000.                                                                         
       DONE                                                                                                                         
    Jumping to entry point at 0xC1080000.                                                                                           
                                                                                                                                    
                                                                                                                                    
    U-Boot 2009.11 (ago 26 2010 - 13:37:37)                                                                                         
                                                                                                                                    
    I2C:   ready                                                                                                                    
    DRAM:  64 MB                                                                                                                    
    MMC:   davinci: 0                                                                                                               
    In:    serial                                                                                                                   
    Out:   serial                                                                                                                   
    Err:   serial                                                                                                                   
    ARM Clock : 300000000 Hz                                                                                                        
    DDR Clock : 150000000 Hz                                                                                                        
    Net:   Ethernet PHY: GENERIC @ 0x00                                                                                             
                                                                                                                                    
    Hit any key to stop autoboot:  0                                                                                                
    U-Boot > mmc init                                                                                                               
    U-Boot > mmcinfo                                                                                                                
    Card did not respond to voltage select!                                                                                         
    Device: davinci                                                                                                                 
    Manufacturer ID: 0                                                                                                              
    OEM: 0                                                                                                                          
    Name: Tran Speed: 0                                                                                                             
    Rd Block Len: 0                                                                                                                 
    MMC version 0.0                                                                                                                 
    High Capacity: No                                                                                                               
    Capacity: 0                                                                                                                     
    Bus Width: 1-bit

     

    I tried several cards, and the output is the same. Maybe because I am using SD instead MMC? I don't think so.

    It's really strange, because I downloaded the kernel from the arago webpage also and it hasn't support the SD card? But in the menuconfig is set. I'm getting frustrated...

    Thanks again for helping me.

  • After pulling from the git repository, did you set it to "mmc" branch?  If you just pulled, you are in master branch which does not have mmc support.

    $ git branch  

    master
    $ git branch -a

    * master
      origin/DAVINCIPSP_03.20.00.08
      origin/HEAD
      origin/master
      origin/mmc
      origin/wakeup

    # now creat local branch "mmc" from "origin/mmc" and switch to it

    $ git branch mmc origin/mmc

    $ git checkout mmc

    Switched to branch "mmc"

    # Now, you have the source with mmc support.

    I'm also using SD card.  Just a regular SanDIsk 2G SD card I picked up at local office supply store. 

    U-Boot > mmcinfo

    Device: davinci                                                                
    Manufacturer ID: 3                                                             
    OEM: 5344                                                                      
    Name: SD02G                                                                    
    Tran Speed: 25000000                                                           
    Rd Block Len: 512                                                              
    SD version 2.0                                                                 
    High Capacity: No                                                              
    Capacity: 1977614336                                                           
    Bus Width: 4-bit

     

  • Hi Hiroto,

    thank you for the git manual. I had build it again and got the same error:

    OMAP-L138 initialization passed!
    Booting TI User Boot Loader
            UBL Version: 1.65
            UBL Flashtype: SPI
    Starting SPI Memory Copy...
    Valid magicnum, 0x55424CBB, found at offset 0x00010000.
       DONE
    Jumping to entry point at 0xC1080000.


    U-Boot 2009.11-00003-g50db5a8 (ago 30 2010 - 11:16:44)

    I2C:   ready
    DRAM:  64 MB
    MMC:   davinci: 0
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net:   Ethernet PHY: GENERIC @ 0x00

    Hit any key to stop autoboot:  0
    U-Boot > mmc init                                                                                                               
    U-Boot > mmcinfo 0                                                                                                              
    Card did not respond to voltage select!                                                                                         
    Device: davinci                                                                                                                 
    Manufacturer ID: 0                                                                                                              
    OEM: 0                                                                                                                          
    Name: Tran Speed: 0                                                                                                             
    Rd Block Len: 0                                                                                                                 
    MMC version 0.0                                                                                                                 
    High Capacity: No                                                                                                               
    Capacity: 0                                                                                                                     
    Bus Width: 1-bit

    After execute the git commands I execute nexts to compile u-boot. Are they correct?

    host$ make distclean CROSS_COMPILE=arm-none-linux-gnueabi-
    host$ make da850_omapl138_evm_config CROSS_COMPILE=arm-none-linux-gnueabi-
    host$ make all CROSS_COMPILE=arm-none-linux-gnueabi-

    Then I copied the u-boot.bin to windows and execute the serial flasher on MS-DOS:

    C:\SerialFlasher\sfh_OMAP-L138.exe -flash ubl_OMAPL138_SPI_MEM.bin u-boot.bin

    If is correct this procedure maybe the problem are my 6 different SD cards, I don't think so.

    Anyway, could you send me your UBL, U-Boot and kernel (if yours has support for SD/MMC) by mail to try if works or do the same? cerilet (at) yahoo.com.

    There is no way to do nothing with de SD card. I will thy this and leave it if doesn't works. I can't waste more time on this.

    Thank you so much for your kind help Hiroto.

  • Hi Cerilet, 

    Are you really running on da850 hardware?  

    http://www.logicpd.com/products/development-kits/zoom-omap-l138-evm-development-kit

    > Bus Width: 1-bit

    You output claims that Bus width is 1-bit, but on L138 EVM kit, the bus width is 4.  Are you running on custom hardware using L138 SOM? 

  • Yes, I am using Zoom OMAP-L138 Experimenter Kit which is the same as the EVM but without the user interface board:

    http://www.logicpd.com/products/development-kits/zoom-omap-l138-experimenter-kit

    I think the problem is because doesn't load the driver well.

    When I start the kernel, it recognizes 4-bit mode but doesn't works anyway:

    root@da850-omapl138-evm:~# dmesg | grep mmc

    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode

    I don't know why the TI support don't say nothing...

    Could you send me your images, please?

    Thank you.

  • Hello,

    I assume you are not able to get MMC/SD working on the EVM even with pre-build kernel image from latest SDK.

    The first thing to check is if the card detection that is built into the MMC/SD slot on the EVM is malfunctioning for some reason.

    Can you try to comment out the "get_cd" function pointer assignment in the davinci_mmc_config structure in arch/arm/mach-davinci/board-da850-evm.c.

    With this the kernel will not use a GPIO to detect the presence of the card, but will detect its presence by actually trying to read the card.

    Thanks,

    Sekhar 

  • Hello Sekhar,

    yes, I tried with the pre-build kernel uImage and nothing.

    I inspected the EVM and I didn't see anything broken. I just unbox the EVM and put it on the table.

    I did what you suggest but the problem remain.

    I add all the startup code, maybe you'll see something wrong.

    Thanks,

    Cerilet.

    ===================================================

    Booting TI User Boot Loader                                                                                                     
            UBL Version: 1.65                                                                                                       
            UBL Flashtype: SPI                                                                                                      
    Starting SPI Memory Copy...                                                                                                     
    Valid magicnum, 0x55424CBB, found at offset 0x00010000.                                                                         
       DONE                                                                                                                         
    Jumping to entry point at 0xC1080000.                                                                                           
                                                                                                                                    
                                                                                                                                    
    U-Boot 2009.11-00003-g50db5a8 (ago 30 2010 - 11:16:44)                                                                          
                                                                                                                                    
    I2C:   ready                                                                                                                    
    DRAM:  64 MB                                                                                                                    
    MMC:   davinci: 0                                                                                                               
    In:    serial                                                                                                                   
    Out:   serial                                                                                                                   
    Err:   serial                                                                                                                   
    ARM Clock : 300000000 Hz                                                                                                        
    DDR Clock : 150000000 Hz                                                                                                        
    Net:   Ethernet PHY: GENERIC @ 0x00                                                                                             
                                                                                                                                    
    Hit any key to stop autoboot:  0                                                                                                
    Using  device                                                                                                                   
    TFTP from server 158.42.163.12; our IP address is 158.42.163.19                                                                 
    Filename 'uImage_git2'.                                                                                                         
    Load address: 0xc0700000                                                                                                        
    Loading: #################################################################                                                      
             #################################################################                                                      
             ################                                                                                                       
    done                                                                                                                            
    Bytes transferred = 2131840 (208780 hex)                                                                                        
    ## Booting kernel from Legacy Image at c0700000 ...                                                                             
       Image Name:   Linux-2.6.33-rc4                                                                                               
       Image Type:   ARM Linux Kernel Image (uncompressed)                                                                          
       Data Size:    2131776 Bytes =  2 MB                                                                                          
       Load Address: c0008000                                                                                                       
       Entry Point:  c0008000                                                                                                       
       Verifying Checksum ... OK                                                                                                    
       Loading Kernel Image ... OK                                                                                                  
    OK                                                                                                                              
                                                                                                                                    
    Starting kernel ...                                                                                                             
                                                                                                                                    
    Uncompressing Linux... done, booting the kernel.                                                                                
    Linux version 2.6.33-rc4 (usuario-1@OMAP) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PREEMPT Tue Aug 3 11:50:31 CEST0
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177                                                                   
    CPU: VIVT data cache, VIVT instruction cache                                                                                    
    Machine: DaVinci DA850/OMAP-L138/AM18xx EVM                                                                                     
    Memory policy: ECC disabled, Data cache writeback                                                                               
    DaVinci da850/omap-l138 variant 0x0                                                                                             
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128                                                       
    Kernel command line: console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/sda2 rootfstype=ext2 mem=32M                          
    PID hash table entries: 128 (order: -3, 512 bytes)                                                                              
    Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)                                                                   
    Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                                     
    Memory: 32MB = 32MB total                                                                                                       
    Memory: 27928KB available (4048K code, 317K data, 148K init, 0K highmem)                                                        
    SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1                                                         
    Hierarchical RCU implementation.                                                                                                
    NR_IRQS:245                                                                                                                     
    Console: colour dummy device 80x30                                                                                              
    Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)                                                                          
    Mount-cache hash table entries: 512                                                                                             
    CPU: Testing write buffer coherency: ok                                                                                         
    DaVinci: 144 gpio irqs                                                                                                          
    regulator: core version 0.5                                                                                                     
    NET: Registered protocol family 16                                                                                              
    bio: create slab <bio-0> at 0                                                                                                   
    SCSI subsystem initialized                                                                                                      
    usbcore: registered new interface driver usbfs                                                                                  
    usbcore: registered new interface driver hub                                                                                    
    usbcore: registered new device driver usb                                                                                       
    tps6507x 1-0048: Read from reg 0xd failed                                                                                       
    set_machine_constraints: failed to enable VDCDC1                                                                                
    tps6507x 1-0048: failed to register tps6507x-pmic regulator                                                                     
    pca953x 1-0020: failed reading register                                                                                         
    i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)                                                                           
    Switching to clocksource timer0_1                                                                                               
    musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0                                                                              
    Waiting for USB PHY clock good...                                                                                               
    musb_hdrc: USB Host mode controller at fee00000 using DMA, IRQ 58                                                               
    musb_hdrc musb_hdrc: MUSB HDRC host driver                                                                                      
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1                                                              
    hub 1-0:1.0: USB hub found                                                                                                      
    hub 1-0:1.0: 1 port detected                                                                                                    
    NET: Registered protocol family 2                                                                                               
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                                                  
    TCP established hash table entries: 1024 (order: 1, 8192 bytes)                                                                 
    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)                                                                        
    TCP: Hash tables configured (established 1024 bind 1024)                                                                        
    TCP reno registered                                                                                                             
    UDP hash table entries: 256 (order: 0, 4096 bytes)                                                                              
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                                                                         
    NET: Registered protocol family 1                                                                                               
    RPC: Registered udp transport module.                                                                                           
    RPC: Registered tcp transport module.                                                                                           
    RPC: Registered tcp NFSv4.1 backchannel transport module.                                                                       
    EMAC: MII PHY configured, RMII PHY will not be functional                                                                       
    JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.                                                                            
    msgmni has been set to 54                                                                                                       
    io scheduler noop registered (default)                                                                                          
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found Sharp_LK043T1DG01 panel                                                                    
    Console: switching to colour frame buffer device 60x34                                                                          
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled                                                                        
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A                                                                    
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A                                                                    
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A                                                                    
    console [ttyS2] enabled                                                                                                         
    brd: module loaded                                                                                                              
    ahci ahci: forcing PORTS_IMPL to 0x1                                                                                            
    ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode                                                            
    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc                                                                
    scsi0 : ahci                                                                                                                    
    ata1: SATA max UDMA/133 irq 67                                                                                                  
    spi_davinci spi_davinci.1: DaVinci SPI driver in EDMA mode                                                                      
    Using RX channel = 18 , TX channel = 19 and event queue = 1                                                                     
    m25p80 spi1.0: m25p64 (8192 Kbytes)                                                                                             
    Creating 4 MTD partitions on "m25p80":                                                                                          
    0x000000000000-0x000000040000 : "U-Boot"                                                                                        
    0x000000040000-0x000000050000 : "U-Boot Environment"                                                                            
    0x000000050000-0x0000007f0000 : "Linux"                                                                                         
    0x0000007f0000-0x000000800000 : "MAC Address"                                                                                   
    Read MAC addr from EEPROM: 00:08:ee:03:85:ef                                                                                    
    spi_davinci spi_davinci.1: Controller at 0xfef0e000                                                                             
    console [netcon0] enabled                                                                                                       
    netconsole: network logging started                                                                                             
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver                                                                          
    ohci ohci.0: DA8xx OHCI                                                                                                         
    ohci ohci.0: new USB bus registered, assigned bus number 2                                                                      
    ohci ohci.0: irq 59, io mem 0x01e25000                                                                                          
    usb 1-1: new high speed USB device using musb_hdrc and address 2                                                                
    hub 2-0:1.0: USB hub found                                                                                                      
    hub 2-0:1.0: 1 port detected                                                                                                    
    usbcore: registered new interface driver cdc_wdm                                                                                
    Initializing USB Mass Storage driver...                                                                                         
    usbcore: registered new interface driver usb-storage                                                                            
    USB Mass Storage support registered.                                                                                            
    usbcore: registered new interface driver libusual                                                                               
    usbcore: registered new interface driver usbserial                                                                              
    USB Serial support registered for generic                                                                                       
    scsi1 : usb-storage 1-1:1.0                                                                                                     
    usbcore: registered new interface driver usbserial_generic                                                                      
    usbserial: USB Serial Driver core                                                                                               
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0                                                                        
    omap_rtc: RTC power up reset detected                                                                                           
    i2c /dev entries driver                                                                                                         
    ata1: SATA link down (SStatus 0 SControl 300)                                                                                   
    Linux video capture interface: v2.00                                                                                            
    usbcore: registered new interface driver uvcvideo                                                                               
    USB Video Class driver (v0.1.0)                                                                                                 
    watchdog watchdog: heartbeat 60 sec                                                                                             
    cpuidle: using governor ladder                                                                                                  
    cpuidle: using governor menu                                                                                                    
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode                                                                                
    usbcore: registered new interface driver usbhid                                                                                 
    usbhid: USB HID core driver                                                                                                     
    Advanced Linux Sound Architecture Driver Version 1.0.21.                                                                        
    usbcore: registered new interface driver snd-usb-audio                                                                          
    No device for DAI tlv320aic3x                                                                                                   
    asoc: tlv320aic3x <-> davinci-i2s mapping ok                                                                                    
    ALSA device list:                                                                                                               
      #0: DA850/OMAP-L138 EVM (tlv320aic3x)                                                                                         
    TCP cubic registered                                                                                                            
    NET: Registered protocol family 17                                                                                              
    Clocks: disable unused i2c1                                                                                                     
    Clocks: disable unused emac                                                                                                     
    Clocks: disable unused aemif                                                                                                    
    Clocks: disable unused spi0                                                                                                     
    Clocks: disable unused mcbsp0                                                                                                   
    Clocks: disable unused mcbsp1                                                                                                   
    Clocks: disable unused vpif                                                                                                     
    ------------[ cut here ]------------                                                                                            
    WARNING: at arch/arm/mach-davinci/da850.c:1170 da850_regulator_init+0x3c/0x58()                                                 
    Unable to obtain voltage regulator for CVDD; voltage scaling unsupported                                                        
    Modules linked in:                                                                                                              
    Backtrace:                                                                                                                      
    [<c0031730>] (dump_backtrace+0x0/0x114) from [<c0326f80>] (dump_stack+0x18/0x1c)                                                
     r7:c1c23d40 r6:c00394c0 r5:c03bfe86 r4:00000492                                                                                
    [<c0326f68>] (dump_stack+0x0/0x1c) from [<c0041b0c>] (warn_slowpath_common+0x50/0x68)                                           
    [<c0041abc>] (warn_slowpath_common+0x0/0x68) from [<c0041b70>] (warn_slowpath_fmt+0x30/0x38)                                    
     r7:c1dfe420 r6:c046ae38 r5:c04282a0 r4:c04511cc                                                                                
    [<c0041b40>] (warn_slowpath_fmt+0x0/0x38) from [<c00394c0>] (da850_regulator_init+0x3c/0x58)                                    
     r3:c04356d0 r2:c03bfea4                                                                                                        
    [<c0039484>] (da850_regulator_init+0x0/0x58) from [<c000f6e0>] (davinci_cpu_init+0x40/0xc0)                                     
     r5:c04282a0 r4:c1d57c00                                                                                                        
    [<c000f6a0>] (davinci_cpu_init+0x0/0xc0) from [<c024f684>] (cpufreq_add_dev+0x154/0x41c)                                        
     r5:c1d57c00 r4:00000000                                                                                                        
    [<c024f530>] (cpufreq_add_dev+0x0/0x41c) from [<c01b89fc>] (sysdev_driver_register+0xb8/0x128)                                  
    [<c01b8944>] (sysdev_driver_register+0x0/0x128) from [<c024e798>] (cpufreq_register_driver+0xf4/0x1a0)                          
     r6:c042a0d4 r5:c0426dc0 r4:c04511fc                                                                                            
    [<c024e6a4>] (cpufreq_register_driver+0x0/0x1a0) from [<c000f680>] (davinci_cpufreq_probe+0x90/0xb0)                            
     r5:c0426dc0 r4:c04511fc                                                                                                        
    [<c000f5f0>] (davinci_cpufreq_probe+0x0/0xb0) from [<c01bb0e0>] (platform_drv_probe+0x20/0x24)                                  
     r5:c04274e0 r4:c04274e0                                                                                                        
    [<c01bb0c0>] (platform_drv_probe+0x0/0x24) from [<c01ba104>] (driver_probe_device+0xb0/0x164)                                   
    [<c01ba054>] (driver_probe_device+0x0/0x164) from [<c01ba220>] (__driver_attach+0x68/0x8c)                                      
     r7:c1dfe420 r6:c042a0d4 r5:c0427514 r4:c04274e0                                                                                
    [<c01ba1b8>] (__driver_attach+0x0/0x8c) from [<c01b98c4>] (bus_for_each_dev+0x50/0x84)                                          
     r7:c1dfe420 r6:c042a0d4 r5:c01ba1b8 r4:00000000                                                                                
    [<c01b9874>] (bus_for_each_dev+0x0/0x84) from [<c01b9f68>] (driver_attach+0x20/0x28)                                            
     r6:c042a0d4 r5:c042a0d4 r4:c002450c                                                                                            
    [<c01b9f48>] (driver_attach+0x0/0x28) from [<c01b919c>] (bus_add_driver+0xa4/0x230)                                             
    [<c01b90f8>] (bus_add_driver+0x0/0x230) from [<c01ba53c>] (driver_register+0xb0/0x13c)                                          
    [<c01ba48c>] (driver_register+0x0/0x13c) from [<c01bb54c>] (platform_driver_register+0x4c/0x60)                                 
     r9:00000000 r8:00000000 r7:00000001 r6:c000f5cc r5:c042a0c0                                                                    
    r4:c002450c                                                                                                                     
    [<c01bb500>] (platform_driver_register+0x0/0x60) from [<c01bb580>] (platform_driver_probe+0x20/0xb4)                            
    [<c01bb560>] (platform_driver_probe+0x0/0xb4) from [<c000f5e4>] (davinci_cpufreq_init+0x18/0x24)                                
     r7:00000001 r6:c000f5cc r5:00000000 r4:c002450c                                                                                
    [<c000f5cc>] (davinci_cpufreq_init+0x0/0x24) from [<c002d3a4>] (do_one_initcall+0x64/0x1c4)                                     
    [<c002d340>] (do_one_initcall+0x0/0x1c4) from [<c0008480>] (kernel_init+0xa8/0x12c)                                             
     r7:00000000 r6:00000000 r5:00000000 r4:c002450c                                                                                
    [<c00083d8>] (kernel_init+0x0/0x12c) from [<c0045424>] (do_exit+0x0/0x6b4)                                                      
     r5:00000000 r4:00000000                                                                                                        
    ---[ end trace b979792e941cc1c3 ]---                                                                                            
    emac-mii: probed                                                                                                                
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)                                                  
    eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=1:00, id=7c0f1)                                              
    Sending DHCP requests ..                                                                                                        
    scsi 1:0:0:0: Direct-Access     takeMS   Mini             8.07 PQ: 0 ANSI: 2                                                    
    sd 1:0:0:0: [sda] 32916480 512-byte logical blocks: (16.8 GB/15.6 GiB)                                                          
    sd 1:0:0:0: Attached scsi generic sg0 type 0                                                                                    
    sd 1:0:0:0: [sda] Write Protect is off                                                                                          
    sd 1:0:0:0: [sda] Assuming drive cache: write through                                                                           
    sd 1:0:0:0: [sda] Assuming drive cache: write through                                                                           
     sda: sda1 sda2 sda3                                                                                                            
    sd 1:0:0:0: [sda] Assuming drive cache: write through                                                                           
    sd 1:0:0:0: [sda] Attached SCSI removable disk                                                                                  
    .... timed out!                                                                                                                 
    IP-Config: Reopening network devices...                                                                                         
    eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=1:00, id=7c0f1)                                              
    Sending DHCP requests ......                                                                                                    
    PHY: 1:00 - Link is Up - 100/Full                                                                                               
     timed out!                                                                                                                     
    IP-Config: Auto-configuration of network failed.                                                                                
    EXT2-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended                                                   
    VFS: Mounted root (ext2 filesystem) on device 8:2.                                                                              
    Freeing init memory: 148K                                                                                                       
    INIT: version 2.86 booting                                                                                                      
    Please wait: booting...                                                                                                         
    Starting udev                                                                                                                   
    udev: starting version 141                                                                                                      
    udevd[542]: inotify_add_watch(3, (null), 10) failed: Bad address                                                                
                                                                                                                                    
    udevd[542]: inotify_add_watch(3, (null), 10) failed: Bad address                                                                
                                                                                                                                    
    udevd[542]: inotify_add_watch(3, (null), 10) failed: Bad address                                                                
                                                                                                                                    
    udevd[542]: inotify_add_watch(3, (null), 10) failed: Bad address                                                                
                                                                                                                                    
    udevd[542]: inotify_add_watch(3, (null), 10) failed: Bad address                                                                
                                                                                                                                    
    Remounting root file system...                                                                                                  
    modprobe: FATAL: Could not open 'kernel/fs/minix/minix.ko': No such file or directory
    modprobe: FATAL: Could not open 'kernel/fs/minix/minix.ko': No such file or directory
    modprobe: FATAL: Could not open 'kernel/fs/minix/minix.ko': No such file or directory
    modprobe: FATAL: Could not open 'kernel/fs/minix/minix.ko': No such file or directory
    modprobe: FATAL: Could not open 'kernel/fs/minix/minix.ko': No such file or directory
    root: mount: mounting rootfs on / failed: No such file or directory                                                             
    Setting up IP spoofing protection: rp_filter.                                                                                   
    Configuring network interfaces... eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=1:00, id=7c0f1)            
    udhcpc (v1.13.2) started                                                                                                        
    Sending discover...                                                                                                             
    PHY: 1:00 - Link is Up - 100/Full                                                                                               
    Sending discover...                                                                                                             
    Sending select for 158.42.163.19...                                                                                             
    Lease of 158.42.163.19 obtained, lease time 172800                                                                              
    adding dns 158.42.249.8                                                                                                         
    adding dns 158.42.1.8                                                                                                           
    done.                                                                                                                           
    Fri Dec 11 14:08:00 UTC 2009                                                                                                    
    INIT: Entering runlevel: 5                                                                                                      
    Starting telnet daemon.                                                                                                         
    Starting syslogd/klogd: modprobe: FATAL: Could not open 'kernel/net/ipv6/ipv6.ko': No such file or directory                    
                                                                                                                                    
    done                                                                                                                            
    Starting thttpd.                                                                                                                
                                                                                                                                    
     _____                               _____                   _               _                                                                           
    |   _    |___ ___ ___ ___   |    _    |___ ___    |_|___ ___|  |_                                                                         
    |         |    _|    .'|   .  |   .  |  |      __|    _|   .  |   |  |  - _|    _|   _|                                                                        
    |__|__|_|   |__, |_    |___|  |__|     |_|   |___| _|  |___|___|_|                                                                          
                            |___|                                  |___|                                                                                    
                                                                                                                                    
    Arago Project http://arago-project.org da850-omapl138-evm ttyS2                                                                 
                                                                                                                                    
    Arago 2009.11 da850-omapl138-evm ttyS2                                                                                          
                                                                                                                                    
    da850-omapl138-evm login: root                                                                                                  
    root@da850-omapl138-evm:~# df                                                                                                   
    Filesystem           1K-blocks      Used Available Use% Mounted on                                                              
    /dev/root              2063536     41720   1916992   2% /                                                                       
    none                         8         8         0 100% /dev                                                                    
    /dev/sda3             14291904    701552  13590352   5% /media/sda3                                                             
    /dev/sda1                48052     12244     35808  25% /media/sda1                                                             
    /dev/sda2              2063536     41720   1916992   2% /media/sda2                                                             
    tmpfs                    16384        24     16360   0% /var/volatile                                                           
    tmpfs                    14036         0     14036   0% /dev/shm                                                                
    tmpfs                    16384         0     16384   0% /media/ram                                                              
    root@da850-omapl138-evm:~# mount                                                                                                
    rootfs on / type rootfs (rw)                                                                                                    
    /dev/root on / type ext2 (rw,relatime,errors=continue)                                                                          
    proc on /proc type proc (rw,relatime)                                                                                           
    sysfs on /sys type sysfs (rw,relatime)                                                                                          
    none on /dev type tmpfs (rw,relatime,size=8k,nr_inodes=8192,mode=755)                                                           
    /dev/sda3 on /media/sda3 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=)
    /dev/sda1 on /media/sda1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=)
    /dev/sda2 on /media/sda2 type ext2 (rw,relatime,errors=continue)                                                                
    devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)                                                                     
    usbfs on /proc/bus/usb type usbfs (rw,relatime)                                                                                 
    tmpfs on /var/volatile type tmpfs (rw,relatime,size=16384k)                                                                     
    tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)                                                                             
    tmpfs on /media/ram type tmpfs (rw,relatime,size=16384k)                                                                        
    root@da850-omapl138-evm:~# ls /dev/m*                                                                                           
    /dev/mem        /dev/mtd1ro     /dev/mtd3ro     /dev/mtdblock3                                                                  
    /dev/mtd0       /dev/mtd2       /dev/mtdblock0                                                                                  
    /dev/mtd0ro     /dev/mtd2ro     /dev/mtdblock1                                                                                  
    /dev/mtd1       /dev/mtd3       /dev/mtdblock2                                                                                  
    root@da850-omapl138-evm:~#

  • Hi Sekhar,

    could you send me a U-Boot and kernel with SD/MMC support by mail? cerilet (at) yahoo.com.

    I think the device is not working properly.

    Thanks,

    Cerilet.

  • The driver seems to be loaded, but I can't get access to the SD:

    root@da850-omapl138-evm:/etc# cat /proc/interrupts                                                                              
               CPU0                                                                                                                 
     11:          0     cp_intc  edma                                                                                               
     12:        194     cp_intc  edma_error                                                                                         
     16:      16888     cp_intc  mmc0                                                                                               
     19:          0     cp_intc  rtc0                                                                                               
     21:      29157     cp_intc  clockevent                                                                                         
     22:         12     cp_intc  free-run counter                                                                                   
     33:          0     cp_intc  eth0                                                                                               
     34:       5161     cp_intc  eth0                                                                                               
     35:         37     cp_intc  eth0                                                                                               
     36:          0     cp_intc  eth0                                                                                               
     52:          0     cp_intc  da8xx_lcdc                                                                                         
     56:          0     cp_intc  spi_davinci.1                                                                                      
     58:       3240     cp_intc  musb_hdrc                                                                                          
     59:          2     cp_intc  ohci_hcd:usb2                                                                                      
     61:       4698     cp_intc  serial                                                                                             
     67:          0     cp_intc  ahci                                                                                               
     93:          0     cp_intc  edma                                                                                               
     94:          0     cp_intc  edma_error                                                                                         
    210:          0        GPIO  OHCI over-current indicator                                                                        
    Err:          0