Program Atmega324P with raspi and arduino IDE

Hi,
I have worked a long time with arduino IDE and Attiny84 and raspi.

what i would like to do is:
Program an Atmega324P with raspberry pi Pins (ISP) out of ARDUINO IDE which is installed on RASP.

It works perfectly with Attiny84.

I would like to burn a bootloader on the ATMEGA324P to use all Arduino libraries like 1wire and so on.

Does anybody can show me the way how. I tested it over Mighty-Core not working. (not maybe the specific hardware).

I have installed Arduino 1.0.1 on Raspi also Arduino 1.8.0
1.6.4 on windows laptop and also have an Arduino Micro board. Maybe Arduino as ISP ? but that is not working with ATMEGA 324P ?

PLease help