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.

am335x emmc烧录问题

Other Parts Discussed in Thread: UNIFLASH

1.硬件:使用am335x处理器,自己做的板子

2. 软件:TI-Android-JB-4.2.2-DevKit-4.1.1

fastboot只能在SD下烧录成功,emmc始终烧录不进去。好像没有烧对,不知道是硬件需要注意什么,还是代码需要修改,好像mmc没有对应上。

  • 请问是通过USB口烧写么?可以尝试用我们的uniflash烧写,请参考:

    http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/73278.aspx?pi2132219853=1

  • 我们是自己做的板子,试过了还是不行。麻烦帮我看看打印信息。

    U-Boot# mmcinfo                                                                 
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: 2                                                              
    OEM: 544d                                                                       
    Name: SA08G                                                                     
    Tran Speed: 50000000                                                            
    Rd Block Len: 512                                                               
    SD version 2.0                                                                  
    High Capacity: Yes                                                              
    Capacity: 7.2 GiB                                                               
    Bus Width: 4-bit

    U-Boot# mmc dev 1                                                               
    mmc_send_cmd : timeout: No status update   //    切换mmc1时,有时会出现这个信息     不知道是不是真的切换过来了          
    mmc1(part 0) is current device                                                  
    U-Boot# mmcinfo                                                                 
    Device: OMAP SD/MMC                                                             
    Manufacturer ID: fe                                                             
    OEM: 14e                                                                        
    Name: MMC04                                                                     
    Tran Speed: 52000000                                                            
    Rd Block Len: 512                                                               
    MMC version 4.0                                                                 
    High Capacity: Yes                                                              
    Capacity: 3.7 GiB                                                               
    Bus Width: 4-bit

    U-Boot# fastboot                                                                
    Fastboot entered...                                                             
    musb-hdrc: peripheral reset irq lost!                                           
    calling fastboot oem!! : oem format                                             
    fastboot_oem:format                                                             
    do_format ..!!                                                                  
    mmc capacity is:0x9fb92f17                                                      
    mmc: number of blocks:0xe6e000                                                  
    mmc: block size:0x200                                                           
    MMC write: dev # 1, block # 0, count 35 ... 35 blocks write: OK                 
    Writing mbr is DONE!                                                            
                                                                                    
    new partition table:                                                            
                                                                                    
    MMC read: dev # 1, block # 1, count 1 ... 1 blocks read: OK                     
    efi partition table not found                                                   
    每次在这里出现问题,不知是硬件配置,还是软件定义问题?感觉MMC write好像没写对地方,导致总是读不到分区表??我的板子没有sysboot。



  • 你是参考BBB板子做的硬件么?SD连到MMC0上,eMMC连到MMC1上?

    如果u-boot下都初始化不了eMMC,那说明硬件本身有问题啊

  • 板子是参考BBB做的。有几点我不是很明白的地方。

    1.当输入mmc dev 1时,可以显示读出的内容,是不是说明硬件读写没有问题?另外emmc显示为4-bit,不知是否正确?

    2.每次上电时,切换mmc dev 1总是mmc_send_cmd : timeout: No status update   ,我不知是否已经真的切换过来了?

    3.当切换成mmc dev 0时,却可以用fastboot建立分区表,并烧录。到mmc1却不行。总是显示如下: 我不知道分区表是写进去了,读不出来?还是本来就没写进去》

    U-Boot# fastboot                                                                
    Fastboot entered...                                                             
    musb-hdrc: peripheral reset irq lost!                                           
    calling fastboot oem!! : oem format                                             
    fastboot_oem:format                                                             
    do_format ..!!                                                                  
    mmc capacity is:0x9fb92f17                                                      
    mmc: number of blocks:0xe6e000                                                  
    mmc: block size:0x200                                                           
    MMC write: dev # 1, block # 0, count 35 ... 35 blocks write: OK                 
    Writing mbr is DONE!                                                            
                                                                                    
    new partition table:                                                            
                                                                                    
    MMC read: dev # 1, block # 1, count 1 ... 1 blocks read: OK                     
    efi partition table not found        

    4.我想知道到底是状态没有切换,还是没有写进去,或者读不出来,还是寄存器错误,或者define没有开启?

    附件为emmc图

  • 手头有没有BBB的板子?可以用同样的软件在BBB板子做个参考,定位下是硬件还是软件的问题。

  • 手上没有BBB的板子。硬件应该不成问题,听说有人移植成功过,不过那人走了。我只是屏蔽了一些eeprom的内容,应该对mmc影响不大吧。你能帮我分析下uboot的,看看打印信息到底是什么原因造成的吗?我现在不知道是什么问题造成的。