Hi,
I am facing some trouble in upgrading firmware using ethernet bootloader.
First, I flashed boot_emac_flash at mem location 0x0 and boot_demo_emac_flash at memory location 0x4000 using jtag and tried to write the same file at the location 0x4000 using ethernet.
I again got the same error (Unable to start bootp server) in LM Flash programmer. Then I tried switching to another utility eflash.c and which was giving error in bootp_server.c in line no 459 which was to create a socket for the bootp server.To, make changes to this eflash file, I compiled it using make utility in cygwin.
Then, I changed the bootp server port in the eflash.c to 50000(i.e. some random port) bootp client mode to 50002 and tftp server port to 50004 and I was successfully able to send MAGIC packets to udp port 9, and the LED on board stopped blinking, i.e. code succesfully branched to bootloader. But the upgrade did'nt happen(because in the bootloader, the configures udp ports were 67.68 and 69 resp.).
So, I again changed the ports in bootloader code to 50000, 50002 and 50004 resp. and again ran the eflash utility. But, the eflash utility again gives an error: failed to create bootp server socket.
Does this mean that the ports configured in the boot_emac _flash are conflicting with the eflash utility?
Also, for the whole time dhcp server was on. Can this be a problem?
Also, I tried doing netstat -a and found this:(192.168.1.150 is my laptop ip, 192.168.1.5 is the board ip assigned by DHCP server.)
UDP 0.0.0.0:58952 *:*
UDP 0.0.0.0:62859 *:*
UDP 127.0.0.1:1900 *:*
UDP 127.0.0.1:49664 *:*
UDP 127.0.0.1:59822 *:*
UDP 192.168.1.150:9 *:*
UDP 192.168.1.150:67 *:*
UDP 192.168.1.150:67 *:*
UDP 192.168.1.150:69 *:*
UDP 192.168.1.150:69 *:*
UDP 192.168.1.150:137 *:*
UDP 192.168.1.150:138 *:*
UDP 192.168.1.150:1900 *:*
UDP 192.168.1.150:40000 *:*
UDP 192.168.1.150:40004 *:*
UDP 192.168.1.150:40006 *:*
UDP 192.168.1.150:50000 *:*
UDP 192.168.1.150:50003 *:*
UDP 192.168.1.150:59820 *:*
UDP 192.168.2.96:137 *:*
UDP 192.168.2.96:138 *:*
UDP 192.168.2.96:1900 *:*
UDP 192.168.2.96:59821 *:*
Regards,
Apoorv