Within the Uboot window we have some commands available to us. Using these commands along with the boot menu we can transfer the bootcode to the switch. Both of these options can take some time to finish transferring, but the first option will be quicker than using the console method. Some of these steps can change slightly based on the software you are using. Process for transferring the bootcode using the OOB interface:  Process for transferring the bootcode using the console interface:
I was trying to reset an N2048P to factory defaults and inadvertently selected the option to reformat the filesystem instead. Now the switch boots only to a u-boot menu. I tried to reload the firmware via TFTP, but I get an Error: Ethernet external port not connected. How can I recover this switch?
Inadvertently reformatted N2048P