Has anyone had any success using AVRISP mkii on Mac OS X to burn the Arduino bootloader? Is it possible? I can't find any mention of drivers for Mac and it doesn't show up in /dev so I don't know how to address it in the burn script.
Thanks,
Damon
P.S. I'm having similar problems attempting it on PC, but I have no idea what I'm doing on PC anyway.
OK, I finally got the bootloader to burn using avrdude instead of the burn script in the Arduino package. I have to run off, but I'll post detailed instructions later since it may be helpful to others.
hey, I'd also be pretty interested in how you got the avrisp mkii working with the mac...
here's what I got so far: I'm running Tiger and installed libusb from darwinports. When I tried to also install avrdude that way, darwinports complained about mismatching md5 sums, so I downloaded avrdude 5.1 from the official archive and built it manually, linking against the libusb from darwinports (libusb support is definitely compiled in now since I can see it's loading libusb dynamically (one can check using 'otool')).
anyways, when I pass '-P usb' to avrdude, it says
avrdude: usbdev_open(): did not find any USB device "usb"
even though the avrisp2 is connected to USB, the plug is connected to the Arduino board and the board is powered externally from a wall wart. I managed to upload the new 1k bootloader to my boards using avrstudio on windows, but I would greatly prefer to get it working on the mac...
Thanks for the info, unfortunately, it doesn't work for me yet.
Which versions of avrdude/libusb did you download (I doubt gcc plays a role here), the most recent stable versions or did you check out their cvs?
Are you on an Intel or PPC Mac?
Also, did you have to change any permissions somewhere (like in /dev, for example) and are you working as superuser or with sudo, as user with administrator privileges or a normal user?
Sorry for bothering you with even more questions, I just really want to get this to work.
I do have the Development tools installed. Because I also want to write code for the board in C, I have build the whole toolchain including the avr-gcc and serialproxy etc.
I used sudo only to install (make install). I also did not change the target so everything got build for /usr/local. I did not have any problems compiling and installing.
Thanks for answering my questions, I'll give it another shot this evening and keep you updated on the results. Also thanks for posting the bootloader burning script using avrdude, that saves me some fiddling as well!
One more thing though, did you change anything in avrdude.conf from the default one that gets installed during "make install"?
I presumed that avrdude is looking for the config file in the home directory and there is none. All options necessary should be given on the command line.
Since you are apparently busy, I could also write the article, however, I don't know into which category it would fit, any hints/preferences from a moderator?