Pogramming atmega8 development board[noob here]

Hi, im new to Arduino, i have this old development board which uses a ATMEGA8L-8PU microcontroller and it is flashed with a path following script/program. I would like to use this board and flash my own script/programs for other projects. I have installed the latest Arduino IDE(1.8.1) on my PC and would like to know what changes i should make to "boards.txt" file and any other modifications to Arduino IDE.

The board Image Error while uploading Blink example using the following setting for IDE Board: Arduino NG or older Processor: ATmega8 Port: COM1 Programmer: AVRISP mkII Error

I don't see a usb-to-serial chip on there, nor the usual ISP connectors. How are you connecting it to your PC? Do you have an AVRISP programmer? Are you using the "upload using programmer" command (there isn't enough of the error log showing to tell.) It would be relatively unlikely for a random ATmega8-vintage board to have the arduino bootloader loaded (and I don't see a serial interface, either.)

westfw: I don't see a usb-to-serial chip on there, nor the usual ISP connectors. How are you connecting it to your PC? Do you have an AVRISP programmer? Are you using the "upload using programmer" command (there isn't enough of the error log showing to tell.) It would be relatively unlikely for a random ATmega8-vintage board to have the arduino bootloader loaded (and I don't see a serial interface, either.)

The board is connected via USB type A to B cable and the power led switches on when connected. I don't have a AVRISP programmer. So my only option would be to use a Arduino UNO and program the microcontroller on a breadboard using ISP?

Ah. The presence of Z01 and Z02 lead me to believe that this is using "VUSB"; the software implementation of USB (sort-of) on a non-USB avr. As far as I know, there is no Arduino-compatible bootloader or board definition for such a thing, though I guess it is theoretically possible (http://www.fischl.de/avrusbboot/) The (apparent) project page (https://www.robomart.com/avr-development-microcontroller-boards-india/buy-at-mega8-mini-robotics-development-board-v2.0) says that it does have some sort of loader, but I don't see any info on how to use it. With a 12MHz crystal, it's not going to be fully "arduino-compatible", probably.

https://github.com/MCUdude/MiniCore This should help also with the Atmega8