ethernet-bootloader
ethernet-bootloader copied to clipboard
Ethernet bootloader doesn't seem to work
Once loaded on the board, the LED blinks according to the README but the TFTP times out.
comments from Tom: I got the TFTP bootloader on one of my boards. Had to switch programmers in the makefile for the firmware, but that was simple, just swapped usbtiny for avrispmkII and I was all set. Also note: the Adafruit USBTiny programmers can power the ETH board for programming, so no external power source is needed.
- uploaded using make install. worked.
- Tried changing the IP settings in settings.c. tftp times out, and no response to ping.
- Went back to the defaults and set up a closed net to try it on. Same thing, tftp times out, and no response to ping.
- Changed settings.c so that it enters a specific MAC address, not the random numbers it was generating. Same results.
So I can get the tftp bootloader on there, but I can't ping it or tftp to it, or change its settings. What am I missing?
I also tried to use atftp with a crossover cable, no results... tftp times out... Under "Linux": atftp -p -l yourapp.bin 192.168.1.250
I got the ethernet bootloader uploaded onto the board. Was able to connect to the board with tftp, but couldn't get it to upload a file. TFTP timed out. Here's the transcript of my tftp session:
https://gist.github.com/804860
Ping also times out with 100% packet loss for me.
Note: I'm not sure if that hex file is actually what I should be trying to put with tftp. It's the result of an old very simple sketch I had around. I couldn't figure out where 0022 puts the binary output from the compilation process...
convert the elf to bin and transfer the file in octet mode ... see readme
how do I do that?
avr-objcopy -j .text -j .data -O binary app.elf app.bin
tftp -e 192.168.1.250 or when you are into tftp command line press ? for help
mode octet put app.bin
I tried a few things today:
-
burning the Uno bootloader to the board and then trying to load sketches serially. Got "Programmer not responding" every time.
-
burning the Duemilanove bootloader to the board and then trying to load sketches serially. Got "Programmer not responding" every time.
-
Trying the tftp bootloader again. Same results as last time, it programs, but the device doesn't show up on Ethernet.
-
tried all of the above with an ETH board with the POE adapter mounted. Same results.
Then I tried running a packet sniffer while I tried to TFTP. Saw nothing whatsoever. I did see ETH TX and RX lights on the board light up occasionally, but no packets. Has anyone gotten the Ethernet bootloader to do anything?
In a final desperate bi to get anything working, I uploaded a sketch using the usbtinyisp by changing my Arduino 0022 prefs file. Sure enough, that worked fine.