Can't access mmc #0 on mt7623 when booted from external SD

David Woodhouse dwmw2 at infradead.org
Thu Jun 18 17:52:56 CEST 2020


On Tue, 2020-06-16 at 22:12 +0100, David Woodhouse wrote:
> On Tue, 2020-06-16 at 21:38 +0200, Michael Nazzareno Trimarchi wrote:
> > Have you already tried to dump the pinmux using the cmd? in both
> > situation?
> 
> U-Boot> pinmux status -a                                                        
> --------------------------                                                      
> pinctrl at 10005000:                                                               
> Ops get_pin_muxing error (-38)                                                  
> Can't display pin muxing for pinctrl at 10005000                                   
> exit not allowed from main input shell.                                         


I found a datasheet...

Booted from SD, not working...

U-Boot> md 0x10005cc0 c                                                         
10005cc0: 00000111 00000111 00000111 00000111    ................               
10005cd0: 00000111 00000111 00000111 00000111    ................               
10005ce0: 00000011 00000011 00000011 00000011    ................               


Booted from eMMC, working...

U-Boot>  md 0x10005cc0 c                                                        
10005cc0: 00000910 00000910 00000910 00000910    ................               
10005cd0: 00000c10 00000c10 00000c10 00000c10    ................               
10005ce0: 00000010 00000010 00000010 00000010    ................               

Now when I start U-Boot from the SD card I can make it work...

U-Boot> mmc list                                                                
mmc at 11230000: 0                                                                 
mmc at 11240000: 1 (SD)                                                            
U-Boot> mmc dev 0                                                               
U-Boot> mw 0x10005cc0 0x910                                                     
U-Boot> mw 0x10005cd0 0xc10                                                     
U-Boot> mw 0x10005ce0 0x10                                                      
U-Boot> mmc dev 0                                                               
switch to partitions #0, OK                                                     
mmc0(part 0) is current device                                                  
U-Boot> mmc list                                                                
mmc at 11230000: 0 (eMMC)                                                          
mmc at 11240000: 1 (SD)                                                            
U-Boot> 

So... whose bug is that? :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5174 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200618/0b56cab0/attachment.bin>


More information about the U-Boot mailing list