Uploading the firmware into the USBasp board

Hi all,

As the title says, I am building my own USBasp board, integrating it into my own custom microcontroller, ATmega328. The microcontroller I am using for the USBasp is the ATmega8, so the question is how am I able to upload the USBasp firmware into the ATmega8 chip? Will this be done through the ISP connectors? btw I am using the 6-pin ISP connector instead of the 10-pin.

I have been looking for articles or forums on USBasp but only found how to update the firmware in the USBasp, would it work the same way as they have suggested on the way to update the firmware?

Those are some of my doubts, I hope someone can help me clarify.

Update:
Forgot to add the links that is used
the sketch and firmware from - USBasp - USB programmer for Atmel AVR controllers - fischl.de
updating the firmware - http://www.rogerclark.net/updating-firmware-on-usbasp-bought-from-ebay/

Here is what I have so far:

  • The board layout of the USBasp on Eagle.
  • The hex file of the USBasp firmware for ATmega8.
  • AVRDUDE for uploading the program.

You program it through the 3 ISP data pins, plus the reset pin, using another ISP programmer - just like you'd write a .hex file to any other MCU via ISP.

Don't forget to set the fuses too.