how to compile Atmega168PA_PU sketch

I bought a Atmega168PA_PU thinking it was supported by arduino but it turns out that it is not. I had trouble getting burning a bootloader onto the chip which I implemented on a breadboard, but after countless hours I managed to get it burned (Solved a device signature problem http://letsmakerobots.com/node/32096 ). I used a AVRISP MKII or MK2 which I used to burn the bootloader and it worked.

The problem im having is that I cant use my arduino USB2Serial FTDI device to burn a sketch through the UART. I get a device not in sync error when I try to upload, even though I am using a 16Mhz crystal. And if I try using that modified boards.txt setting with the changed signature then the sketch does not compile. Using the original boards.txt I tried just about every board type (from uno - nano etc) in the menu. Im not sure what to do. please help :cold_sweat:

Is the DTR signal connected (via a 100nF) to reset ?
Which bootloader did you use?
Burning the bootloader is not enough, did you set the fuses according to the Arduino fuse settings?
To add a new board to boards.txt is very well possible. Perhaps you made an error. Why is that not compiling?

So you see, there are many problems with this.

EDIT: I removed some lines that were wrong.

Several of the boards use the Atmega168P processor.
The PA-PU is just a device signature change from a A-PU device.
Worst case just need to copy some files & update for the correct signature.

ATmega168A 0x1E 0x94 0x06
ATmega168PA 0x1E 0x94 0x0B