This is just for personal reference, but it might also help anyone searching the Googles.
I recently bought the wrong ATMEGA (328 in stead of 328P). I had a hell of a time trying to burn the bootloader with Ladyada’s USBTinyISP.
Anyway; here’s a command-line snippet to burn a bootloader:
cd /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/
./avrdude -p m328p -C /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -c usbtiny -F -e -U flash:w:/Applications/Arduino22.app/Contents/Resources/Java/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i
However, the bootloader that was burnt this way, didn’t respond to the Arduino IDE. The solution was following this approach: http://arduino.cc/forum/index.php?topic=58670.0
Like this? You might be interested in my latest project. It's a desk light made completely from a single sheet of printed circuit board. Check it out:
This did help, thanks – I was attempting to program a standalone 328p with an arduino nano (as ISP) via avrdude, and instead wrote an avr-c program over the nano’s flash memory. For the record, the nano uses the same bootloader as the uno.
Something missed in your answer. The command should be
./avrdude -p m328p -C /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -c usbtiny -F -e -U flash:w:/Applications/Arduino22.app/Contents/Resources/Java/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i
There is a “:i” behind, but the answer is useful.
Thanks, I updated the post. Maybe something changed in avrdude 🙂