TFTP fails to load image on HPE 1920-24 Switch (JG924A)

I followed the OpenWrt installation instructions here as follows:

  1. Configure an tftp server which is reachable from the switch via Ethernet. The server ip is 192.168.1.88.

  2. Download the “KERNEL” image from the here and renamed it openwrt-24.10.5-hpe_1920-24g-initramfs.bin (i.e. less than 50 charactrs). The file was copied to the tftp server folder. I tested the tftp server from a different device on the same subnet as the server.

  3. Connect to the serial port on the front of the switch using an 8P8C RS232 adapter.

  4. Power on the switch.

  5. Allow the switch to begin booting its second stage bootloader.

  6. When prompted Press Ctrl+B to enter extended boot menu..., do-so.

  7. Select menu item 3 Enter Ethernet SubMenu.

  8. In the Ethernet SubMenu, select item 5 Modify Ethernet Parameter.

  9. When prompted Protocol (FTP or TFTP), entered tftp.

  10. When prompted Load File Name entered openwrt-24.10.5-hpe_1920-24g-initramfs.bin.

  11. When prompted Target File Name left it unchanged.

  12. When prompted Server IP Address entered 192.168.1.88.

  13. When prompted Local IP Address entered 192.168.1.222 (a spare unused IPv4 address on the subnet).

  14. When prompted Gateway IP Address entered the default.

  15. Back at the Ethernet SubMenu, select item 1 - Download Application Program To SDRAM And Run.

This results in an Loading...Failed! error, see the serial log below:

===========================<EXTEND-BOOTWARE MENU>===========================
|<1> Boot System                                                           |
|<2> Enter Serial SubMenu                                                  |
|<3> Enter Ethernet SubMenu                                                |
|<4> File Control                                                          |
|<5> Restore to Factory Default Configuration                              |
|<6> Skip Current System Configuration                                     |
|<7> BootWare Operation Menu                                               |
|<8> Clear Super Password                                                  |
|<9> Storage Device Operation                                              |
|<0> Reboot                                                                |
============================================================================
Ctrl+Z: Access EXTEND-ASSISTANT MENU
Ctrl+F: Format File System
Ctrl+C: Display Copyright
Enter your choice(0-9): 3

==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash                                        |
|<1> Download Application Program To SDRAM And Run                         |
|<2> Update Main Application File                                          |
|<3> Update Backup Application File                                        |
|<4> Update Secure Application File                                        |
|<5> Modify Ethernet Parameter                                             |
|<0> Exit To Main Menu                                                     |
|<Ensure The Parameter Be Modified Before Downloading!>                    |
============================================================================
Enter your choice(0-5): 5

==========================<ETHERNET PARAMETER SET>==========================
|Note:       '.' = Clear field.                                            |
|            '-' = Go to previous field.                                   |
|          Ctrl+D = Quit.                                                  |
============================================================================
Protocol (FTP or TFTP) :ttp tftp
Load File Name         :openwrt-24.10.5-hpe_1920-24g-initramfs.bin
                       :openwrt-24.10.5-hpe_1920-24g-initramfs.bin
Target File Name       :target
                       :
Server IP Address      :192.168.1.88
Local IP Address       :192.168.1.222
Gateway IP Address     :



==========================<Enter Ethernet SubMenu>==========================
|Note:the operating device is flash                                        |
|<1> Download Application Program To SDRAM And Run                         |
|<2> Update Main Application File                                          |
|<3> Update Backup Application File                                        |
|<4> Update Secure Application File                                        |
|<5> Modify Ethernet Parameter                                             |
|<0> Exit To Main Menu                                                     |
|<Ensure The Parameter Be Modified Before Downloading!>                    |
============================================================================
Enter your choice(0-5): 1
Loading...Failed!

After much searching and many AI red-herrings, I don't know how to proceed.

I've tried a shorter filename for the initramfs file (initramfs.bin), booted/rebooted many times, and performed a factory reset.

Also, the HPE firmware loaded is JG924A-CMW520-R1114.bin and I have tried in vain to upgrade to the latest OEM firmware of JG924A-CMW520-R1121.bin, but it fails with a "No enough space for uploading the file." error (see below):

Entering Summary in the serial console to confirm the model number yields:

<HPE>summary
Vlan-interface:                 1

Select menu option:             Summary
IP Method:
IP address:
Subnet mask:
Default gateway:

IPv6 Method:
IPv6 link-local address:
IPv6 subnet mask length:
IPv6 global address:
IPv6 subnet mask length:
IPv6 default gateway:

Mac address: xxxx-xxxx-xxxx

Current boot app is: flash:/jg924a-cmw520-r1114.bin
Next main boot app is: flash:/jg924a-cmw520-r1114.bin
Next backup boot app is: flash:/jg924a-cmw520-r1114_bak.bin

HPE Comware Platform Software
Comware Software, Version 5.20.99, Release 1114
Copyright (c) 2010-2016 Hewlett Packard Enterprise Development LP
HPE 1920-24G Switch uptime is 0 week, 0 day, 0 hour, 1 minute
                
HPE 1920-24G Switch
128M    bytes DRAM
32M     bytes Flash Memory
Config Register points to Flash
                
Hardware Version is REV.A
Bootrom Version is 117
[SubSlot 0] 24GE+4SFP Hardware Version is REV.A

Any suggestions?

Did you test the TFTP server locally or from remote ?

I tested the TFTP server on the TFTP server itself and from a separate device on the same subnet and was able to perform a successful tftp get.

Is there a way to test the tftp server access/get in the serial console?

No idea , I don't own sny of these, bit this looks weird:

The device remembers what was entered last and presents it as the default next time through. The ttp is a mistype from the prior iteration and I correctly entered tftp in the post.

ty for taking a look.

AllUpSide:

Also, the HPE firmware loaded is JG924A-CMW520-R1114.bin and I have tried in vain to upgrade to the latest OEM firmware of JG924A-CMW520-R1121.bin, but it fails with a "No enough space for uploading the file." error (see below):

After looking into this further, I suspect this "No enough space" could be the issue and it fails silently in the serial console.

In order to see free space in the console menu, needs to be enabled, so here is what I did:

  • Enable advanced console features

    • Enter: _cmdline-mode on
    • Password: Jinhua1920unauthorized
  • Run the dir command:

    <HPE>_cmdline-mode on
    All commands can be displayed and executed. Continue? [Y/N]y
    Please input password:**********************
    Warning: Now you enter an all-command mode for developer's testing, some commands may affect operation by wrong use, please carefully use it with our engineer's direction.
    <HPE>dir
    Directory of flash:/
    
       0     -rw-  12556288  Aug 08 2008 20:00:00   jg924a-cmw520-r1114.bin
       1     -rw-  12556288  Aug 08 2008 20:00:00   jg924a-cmw520-r1114_bak.bin
       2     drw-         -  Apr 26 2000 12:00:12   logfile
       3     -rw-       151  Aug 20 2019 13:18:36   system.xml
       4     -rw-      3573  Aug 20 2019 13:18:39   _startup_bak.cfg
    
    29106 KB total (4568 KB free)
    
    

There was only 4.5 MB free flash.

I remedied this via the command line, but you could also use the console menu File Control option:

  • delete jg924a-cmw520-r1114_bak.bin # moved the file to the recycle bin
  • reset recycle-bin # emptied the recycle bin

I could now successfully upgrade the OEM firmware to Release 1121.

I'm still not successful with the OpenWrt install yet.

I freed up the flash directory again, so there is 16.8MB free:

Directory of flash:/

   0     drw-         -  Apr 26 2000 12:00:12   logfile
   1     -rw-  12567552  Apr 26 2000 12:06:39   jg924a-cmw520-r1121.bin
   2     -rw-       151  Aug 20 2019 13:18:36   system.xml
   3     -rw-      3573  Aug 20 2019 13:18:39   _startup_bak.cfg

29106 KB total (16821 KB free)

Re-running the commands above still results in the Loading...Failed! error.

Any help would be appreciated.

I figured it out finally; it was the ethernet connection between the switch and my network! I’m not sure if it was the cable, it wasn’t plugged in or something else.

I didn’t realize that ping was available in the HPE console (tftp as well), which helped resolve the issue.

When I tried pinging the tftp server, it failed until I messed around with the ethernet connection. I was then able to download a small file from the console `tftp 192.168.1.88 get test.txt` to check the tftp server.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.