In this examble we are using 10.10.10.1 for the switch, and the PC have 10.10.10.2
Telnet or attach the serial cable to you switch, then run these commands:
enable
configure terminal
vlan 1
no ip add
ip address 10.10.10.1/24
exit
ping 10.10.10.2
copy tftp flash 10.10.10.2 k_12_02.swi
y
copy tftp flash 10.10.10.2 k_12_02.swi secondary
y