Menu

96338CG gets stuck in a loop during boot

Help
dgktkr
2011-03-31
2013-05-29
  • dgktkr

    dgktkr - 2011-03-31

    Coolman1982? Anybody?

    I downloaded the BS source in the svn trunk and prepped my computer with commands detailed in the thread https://sourceforge.net/projects/bitswitcher/forums/forum/799261/topic/4404528. I then modified 2 lines in the 96338CG profile file: 1) Changed the board id to "96338L-2M-8M" 2) changed the base MAC address to what's printed on the bottom of my router. Executing the top level make file with PROFILE=96338CG successfully generated a kernel/fs flash file. I successfully flashed that to my modem, but the bootup only gets to where I believe control is supposed to be passed the the uncompressed vmlinux. At this point, the boot starts over and cycles till I turn off the power.

    I'm wondering if the problem lies here: the CFE file (cfe6338) in my modem could be different from the one in the BS distribution.

    Here is the serial console log starting with the 15 second press of the reset button:

    *** Restore to Factory Default Setting ***
    Boot Address 0xbfc00000
    Initializing Arena.
    Initializing Devices.
    Serial flash device: name EN25P16, id 0x1c14, size 2048KB
    Flash Layout: Boot[0,0xbfc00000] Kern[1,0xbfc10000]
                  AuxFS[31,0xbfdf0000] Misc[31,0xbfdf0000] PSI[31,0xbfdf0000]
    Flash RootFS Partition Length: 1966080
    100 MB Full-Duplex (auto-neg)
    CPU type 0x29010: 240MHz
    Total memory: 8388608 bytes (8MB)
    Total memory used by CFE:  0x80401000 - 0x80528EF0 (1212144)
    Initialized Data:          0x8041E730 - 0x80420710 (8160)
    *** Break into CFE console ***
    DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:31.
    Board IP address                  : 192.168.1.1:ffffff00  
    Host IP address                   : 192.168.1.100  
    Gateway IP address                :   
    Run from flash/host (f/h)         : f  
    Default host run file name        : vmlinux  
    Default host flash file name      : bcm963xx_fs_kernel  
    Boot delay (0-9 seconds)          : 1  
    Board Id (0-7)                    : 96338L-2M-8M  
    Number of MAC Addresses (1-32)    : 11  
    Base MAC Address                  : 5c:d9:98:7b:7b:3a  
    PSI Size (1-64) KBytes            : 24  
    Flash Block Size (1-128) in KBytes: 0  
    Auxillary File System Size Percent: 0  
    udp_send finished
    No answer .auto boot ...
    web info: Waiting for connection on socket 0.
    web info: Waiting for connection on socket 1.
    web info: Waiting for connection on socket 0.
    web info: Waiting for connection on socket 1.
    web info: Upload 1823499 bytes, Broadcom image format.
    CFE> 
    Flashing root file system and kernel at 0xbfc10000: DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:1.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:2.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:3.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:4.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:5.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:6.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:7.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:8.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:9.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:10.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:11.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:12.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:13.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:14.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:15.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:16.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:17.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:18.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:19.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:20.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:21.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:22.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:23.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:24.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:25.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:26.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:27.
    .DBG FUNC:spi_flash_sector_erase_int,LINE:875,Will erase setor:28.
    .
    .
    *** Image flash done *** !
    Resetting board...Boot Address 0xbfc00000
    Initializing Arena.
    Initializing Devices.
    Serial flash device: name EN25P16, id 0x1c14, size 2048KB
    Flash Layout: Boot[0,0xbfc00000] Kern[1,0xbfc10000]
                  AuxFS[31,0xbfdf0000] Misc[31,0xbfdf0000] PSI[31,0xbfdf0000]
    Flash RootFS Partition Length: 1966080
    100 MB Full-Duplex (auto-neg)
    CPU type 0x29010: 240MHz
    Total memory: 8388608 bytes (8MB)
    Total memory used by CFE:  0x80401000 - 0x80528EF0 (1212144)
    Initialized Data:          0x8041E730 - 0x80420710 (8160)
    Board IP address                  : 192.168.1.1:ffffff00  
    Host IP address                   : 192.168.1.100  
    Gateway IP address                :   
    Run from flash/host (f/h)         : f  
    Default host run file name        : vmlinux  
    Default host flash file name      : bcm963xx_fs_kernel  
    Boot delay (0-9 seconds)          : 1  
    Board Id (0-7)                    : 96338L-2M-8M  
    Number of MAC Addresses (1-32)    : 11  
    Base MAC Address                  : 5c:d9:98:7b:7b:3a  
    PSI Size (1-64) KBytes            : 24  
    Flash Block Size (1-128) in KBytes: 0  
    Auxillary File System Size Percent: 0  
    udp_send finished
    No answer .auto boot ...
    *** Press any key to stop auto run (1 seconds) ***
    Auto run second count down: 0
    Booting from only image (0xbfc10000) ...
    Code Address: 0x80010000, Entry Address: 0x801b9018
    Decompression OK!
    Entry at 0x801b9018
    Closing network.
    Starting program at 0x801b9018
    

    After that it goes back to the line with "Boot Address 0xbfc00000" and loops until I turn the power off. It appears that the entry address 0x801b9018 is not good for some reason.

    dgktkr

     
  • dgktkr

    dgktkr - 2011-04-04

    Hi,

    I'm wondering if the problem is that the Bitswitcher code doesn't yet support the flash memory chip in my modem (Eon EN25P16). The CFE seems to support it, but maybe the vmlinux doesn't yet. One file that looks like it should be modified to make this happen is shared/opensource/flash/spiflash.c.

    Any comments anyone?

    dgktkr

     
  • dgktkr

    dgktkr - 2011-05-09

    I replaced the EN25P16 flash memory with an SST25VF016B, which the BS 96332CG firmware should know about. After all, that chip is dealt with in the source file  spiflash.c. That didn't help. The CFE seems to proceed nicely, identifies the flash chip properly, decompresses the kernel, passes control to the entry point 0x801b9018 and then apparently runs into trouble because it reboots at that point. The Linux kernel never gives its startup message.

    dgktkr

     

Log in to post a comment.

MongoDB Logo MongoDB