Daniel

I'm interested to hear the answer to this too, as I am trying something similar on mac.

Anyway, to me it looks like AVRdude worked. the probelm is you need more command lines-- the one you have just sets the fuses. You need also to unlock it the first time around, and then another line to upload and burn the hex file.. etc etc.

Wolf Paulus has a really excellent page on this....http://wolfpaulus.com/journal/embedded/arduino2.htmlHe shows three steps, as does the original Arduino burn.command that used ot use UISP to do the same thing.

amsmnptarks

Victory!!!I followed the tutorial in the link above and got it working. The only problem I ran into was that avrdude wasn't installed where it said (could be because I tried to install it earlier). Once I figured that out, I put my hex into the same directory as avrdude and ran all three commands from the link. Switched everything over to arduino programmer and got the LED blink working just fine. So thanks a million for that link!

I think the -Pusb might not be right. What kind of programmer (or usb-to-serial converter) are you using? Does it create a virtual serial port in /dev (e.g. /dev/tty.SOMETHING)? If so, you need to pass that to the -P argument.

Also, I've successfully burned the bootloader onto an ATmega168 using an avrude, an AVRISP, and a Keyspan USB-to-serial converter, but it only works about half the time (if it fails, just try it again, it doesn't seem to damage the chip).