I realize this is an old thread and marked as answered, but I believe the answer is incorrect. You can do it via TFTP, here is how:
Initialize the flash:switch: flash_init
Initialize the management interface:switch: mgmt_init
Then assign an IP addre...