This is useful if, for example, the web interface keeps resetting the connections.
Upgrading the firmware requires first updating the boot code, and the regular console in the earlier firware doesn’t have support for flashing the boot code. However, there is a hidden IOS-like cli available, that makes it possible to upgrade the boot code over tftp. An additional benefit is that it is much faster than using xmodem.
The steps
- Setup a tftp server on your machine, serving the files 
srw2024_16_boot-101.rfbandls20xx-12230.ros(download from Cisco) - Connect your computer to the switch using ethernet and serial cables.
 - Boot the switch.
 - Log into the console.
 - Press C-z.
 - On the new promt, type 
lcliand press enter. - To upgrade the boot code, type 
copy tftp:///srw2024_16_boot-101.rfb boot  - Then upgrade the firmware: 
copy tftp:///ls20xx-12230.ros image  - Lastly, restart the switch: 
reload 
That’s it.
As an aside, please note that the web interface only works in Internet Explorer, so if it seems like it doesn’t work, it’s probably because your’re using another browser.