Forum Discussion

JosephI's avatar
JosephI
Tutor
Mar 12, 2024
Solved

Recover from uboot interface on M4300-52G GSM4352S

When setting up a set of stacked network switches, one switch hung and did not reboot correctly.  Upon inspection of the console port the switch seems to be sitting at a uboot interface as shown:

 

m4300r2> reset
resetting M4352S board...


U-Boot 2012.10-00258-g1c5018dfe9 (Jul 26 2019 - 11:17:57)VerNo=1.0.0.15

 

/image2 not found!
ubifsload - load file from an UBIFS filesystem

Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Saving Environment to SPI Flash...
/image1 not found!
ubifsload - load file from an UBIFS filesystem

Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Saving Environment to SPI Flash...
/image2 not found!
ubifsload - load file from an UBIFS filesystem

Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
ETH LINK UP: 1000FD
BOOTP broadcast 1
m4300r2> <INTERRUPT>
m4300r2>

 

I have placed a firmware image 

m4300v12.0.17.13.stk  on a tftp server as image1

 

I then had some success with the command

m4300r2> dhcp 0x62000000 <tftp_server_ip>:image1

 

That loaded the image successfully.

I then validate the image:

m4300r2> validate
Validating image
STK file size 44081737
STK validation Success

 

Set image1 as the bootfile

m4300r2> setenv bootfile image1

 

Then reset:

m4300r2> reset
resetting M4352S board...


U-Boot 2012.10-00258-g1c5018dfe9 (Jul 26 2019 - 11:17:57)VerNo=1.0.0.15

 

/image2 not found!
ubifsload - load file from an UBIFS filesystem

Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
+ + Uncompressing Kernel Image ... Checking for application
code file image2 not present.
booting image1
Extracting application from .stk file...sh: open: unknown operand
Failed!
Failed to start Operational code, trying other image image2
Operational code not executed!

 

But still fail to load into a working image.  I feel as though I am missing a step.  Can anyone share any guidance on what might be causing the "Extracting application from .stk file...sh: open: unknown operand" or any other troubleshooting advice?

 

Thanks!

  • I will add that after pushing enter at the final state above I get this prompt:

    Operational code Startup Rev: 8.2

    Operational code Startup -- Utility Menu

    1 - Start Operational code Application
    2 - Load Code Update Package
    3 - Load Configuration
    4 - Select Serial Speed
    5 - Retrieve Error Log
    6 - Erase Current Configuration
    8 - Select Boot Method
    9 - Activate Backup Image
    10 - Start Diagnostic Application
    11 - Reboot
    12 - Erase All Configuration Files
    13 - Start Password Recovery

    Q - Quit from Operational code Startup

    Select any of above (options or Q):

     

    Rebooting at this stage will put me back into the uboot setup...

     

    However if I first do a (2) and type in the same TFTP server info it seems to do a "Code Update"

    Code update instructions found!

    Critical components modified -- system reboot recommended!

    Reboot? (Y/N): y

     

    Rebooting...

    syncing filesystems....This may take a few moments
    Rebooting system!
    The system is going down NOW!
    Sent SIGTERM to all processes
    Sent SIGKILL to

    U-Boot 2012.10-00258-g1c5018dfe9 (Jul 26 2019 - 11:17:57)VerNo=1.0.0.15

     

    + + Uncompressing Kernel Image ... Checking for application
    Extracting application from .stk file...done.
    Loading Operational code...U-boot upgrade required. Initiating BootCode Update on image1....Extracting components. Please wait...
    Integrity-checking components. Please wait...
    Erasing /dev/mtd0...
    Flashing /dev/mtd0...
    Done.
    done
    Rebooting the system now

    syncing filesystems....This may take a few moments
    Rebooting system!
    The system is going down NOW!
    Sent SIGTERM to all processes
    Sent SIGKILL to

    U-Boot 2012.10-00261-g7910a15be9 (May 13 2022 - 15:39:37)VerNo=1.0.0.17

     

    + + Uncompressing Kernel Image ... Checking for application
    Extracting application from .stk file...done.
    Loading Operational code...done.
    Extracting Original AVUI package...
    Extracting discAgent package...
    Extracting restAgent package.Uncompressing apps.lzma

    Validating the backup image:image2 failed. stkRC: 2
    DMA pool size: 16777216
    hpc - No stack ports. Starting in stand-alone mode.

    started!

    (Unit 1)>

     

     

    So I think I may have solved my own issue.  I will leave this here as hopefully help to others.

     

    Thanks.

2 Replies

  • I will add that after pushing enter at the final state above I get this prompt:

    Operational code Startup Rev: 8.2

    Operational code Startup -- Utility Menu

    1 - Start Operational code Application
    2 - Load Code Update Package
    3 - Load Configuration
    4 - Select Serial Speed
    5 - Retrieve Error Log
    6 - Erase Current Configuration
    8 - Select Boot Method
    9 - Activate Backup Image
    10 - Start Diagnostic Application
    11 - Reboot
    12 - Erase All Configuration Files
    13 - Start Password Recovery

    Q - Quit from Operational code Startup

    Select any of above (options or Q):

     

    Rebooting at this stage will put me back into the uboot setup...

     

    However if I first do a (2) and type in the same TFTP server info it seems to do a "Code Update"

    Code update instructions found!

    Critical components modified -- system reboot recommended!

    Reboot? (Y/N): y

     

    Rebooting...

    syncing filesystems....This may take a few moments
    Rebooting system!
    The system is going down NOW!
    Sent SIGTERM to all processes
    Sent SIGKILL to

    U-Boot 2012.10-00258-g1c5018dfe9 (Jul 26 2019 - 11:17:57)VerNo=1.0.0.15

     

    + + Uncompressing Kernel Image ... Checking for application
    Extracting application from .stk file...done.
    Loading Operational code...U-boot upgrade required. Initiating BootCode Update on image1....Extracting components. Please wait...
    Integrity-checking components. Please wait...
    Erasing /dev/mtd0...
    Flashing /dev/mtd0...
    Done.
    done
    Rebooting the system now

    syncing filesystems....This may take a few moments
    Rebooting system!
    The system is going down NOW!
    Sent SIGTERM to all processes
    Sent SIGKILL to

    U-Boot 2012.10-00261-g7910a15be9 (May 13 2022 - 15:39:37)VerNo=1.0.0.17

     

    + + Uncompressing Kernel Image ... Checking for application
    Extracting application from .stk file...done.
    Loading Operational code...done.
    Extracting Original AVUI package...
    Extracting discAgent package...
    Extracting restAgent package.Uncompressing apps.lzma

    Validating the backup image:image2 failed. stkRC: 2
    DMA pool size: 16777216
    hpc - No stack ports. Starting in stand-alone mode.

    started!

    (Unit 1)>

     

     

    So I think I may have solved my own issue.  I will leave this here as hopefully help to others.

     

    Thanks.

  • One more side note:

     

    The value of 0x62000000 came from the loadaddr environment variable.  Use printenv to get that value.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More