jarrocha / XinuBBB

Source and guide to run Xinu on the BeagleBone Black
Other
43 stars 10 forks source link

BBB Xinu Hanging on ETHERNET PHY #5

Closed mediocracy closed 2 years ago

mediocracy commented 2 years ago

I'm not sure if you've encountered this issue in the wild. But I followed the instructions to load Xinu on the BBB via SD and Serial connector. When I get to the boot screen, I encounter this issue and everything seems to hang.

U-Boot SPL 2019.04-g923f8b8 (Jan 02 2022 - 19:05:15 +0000)                                                                      
Trying to boot from MMC2                                                                                                        
Loading Environment from EXT4...                                                                                                
** Unable to use mmc 0:1 for loading the env **                                                                                 

U-Boot 2019.04-g923f8b8 (Jan 02 2022 - 19:05:15 +0000)                                                                          

CPU  : AM335X-GP rev 2.1                                                                                                        
I2C:   ready                                                                                                                    
DRAM:  512 MiB                                                                                                                  
No match for driver 'omap_hsmmc'                                                                                                
No match for driver 'omap_hsmmc'                                                                                                
Some drivers were not found                                                                                                     
Reset Source: Power-on reset has occurred.                                                                                      
RTC 32KCLK Source: External.                                                                                                    
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                                                                           
Loading Environment from EXT4...                                                                                                
** Unable to use mmc 0:1 for loading the env **                                                                                 
Board: BeagleBone Black                                                                                                         
<ethaddr> not set. Validating first E-fuse MAC                                                                                  
BeagleBone Black:                                                                                                               
BeagleBone Cape EEPROM: no EEPROM at address: 0x54                                                                              

Xinu for bbb -- version #12  (matt)  Sat 02 Apr 2022 08:20:15 PM EDT

Cannot reset Ethernet PHY                                                                                                       
 519809280 bytes of free memory.  Free list:                                                                                    
           [0x8103F700 to 0x9FFF9FFF]                                                                                           
     86444 bytes of Xinu code.                                                                                                  
           [0x81000000 to 0x810151AB]                                                                                           
    131996 bytes of data.                                                                                                       
           [0x81016000 to 0x8103639B]    

Do you know what the issue may be?

Edit: FWIW, I'm using an SD with FAT32. I'm not sure what mmc is supposed to be, but the line above mentions EXT4, which would be the onboard storage. Not sure if that's relevant at all.

EDIT2: I tried disabling eth_phy_reset and removing it from ethinit and removing ethinit altogether, but I still get to a hang point.

Thank you!

jarrocha commented 2 years ago

Hello @mediocracy, if you connect Ethernet live connection to it the error should go away. But if you are not able to do that, use the patch below: patch1.txt I haven't submitted this since this is not a complete fix.

mediocracy commented 2 years ago

Hi @jarrocha, thank you for the patch text, I'll try that out. I plugged in an ethernet cable today into the BBB for sanity's sake and got to the shell. Bypassing that altogether will be ideal though, so thank you again for the patch.