2009-11-04 10:32:11     SD/MMC card access from u-boot - 2009r1-rc3 bf537

Document created by Aaronwu Employee on Sep 24, 2013Last modified by Aaronwu Employee on Sep 24, 2013
Version 2Show Document
  • View in full screen mode

2009-11-04 10:32:11     SD/MMC card access from u-boot - 2009r1-rc3 bf537

Mads le maire (NORWAY)

Message: 82056   

 

Hi,

 

I am trying to access a MMC/SD card with u-bbot. the mmcinit command gives me this printout:

 

*********************************************************************************

 

bfin> mmcinit

Using rubico default SPISSEL 4

To change, set environment variable mmc_spi_ssel

to the desired SSEL and run mmcinit again

Currently SSEL 2,3 and 5 doesnt work!

OK! MMC/SD card found.

bfin>

 

*********************************************************************************

 

This looks promising, but is far from what is described in the documentation. A little research brings me to a conclution that the mmcinit couldt be broken in some way.

 

The mmcinit code first calls a detection routine which seems to detect the card, the last code executed before returning 0 is at it calls the init_part routine to check out the filesystem, init_part will in turn call test_part_dos, which checks for magic number,(which seems to work fine) before returning to mmcinit which returns to the monitor.

 

mmcinit detects the card and the dos filesystem and here it ends - no mounting as far as I can see. Someone succeeded with this issue?

 

regards MOLM

QuoteReplyEditDelete

 

 

2009-11-04 11:02:53     Re: SD/MMC card access from u-boot - 2009r1-rc3 bf537

Mike Frysinger (UNITED STATES)

Message: 82059   

 

what exactly is your question ?  i dont see any problems listed in your post.

QuoteReplyEditDelete

 

 

2009-11-05 02:26:24     Re: SD/MMC card access from u-boot - 2009r1-rc3 bf537

Mads le maire (NORWAY)

Message: 82069   

 

what exactly is your question ?  i dont see any problems listed in your post.

 

---

 

The problem is that I cannot mount the SD card - the fatinfo, fatload and fatls u-boot commands does not work. The card is detected, (even checked spi signals with a scope) but my code investigation show me that the mmcinit command does not logically connect the dos filesystem with the MMC/SD card. My question is therefore: has this  ever really worked,could it have been broken recently, has anybody fixed it in some way?

QuoteReplyEditDelete

 

 

2009-11-05 03:45:29     Re: SD/MMC card access from u-boot - 2009r1-rc3 bf537

Mads le maire (NORWAY)

Message: 82086   

 

Sorry,

 

It's working, the documentation page confused me a bit. (http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:mmc)  The syntax "fatinfo mmc 0" works fine.

 

MOLM

Attachments

Outcomes