board types & bootloaders

Crossroads,
It sounds like you're the person I need to talk to. I took the "Mighty 1284" boards.txt files and the associated optiboot executables, and installed them in "Arduino1-5". When verifying a sketch, it can't find "Arduino.h". Is that because of the extra directory level (Avr) in the cores path?

I then moved the "Mighty 1284" to "Arduino1.0.2". Verify can now find the "Arduino.h file, no AVR directory, but it can't find the "Serial" function. Neither could "Arduino1-5".

If I change the board type to UNO, it verifies fine, of course it wont execute correctly.

Got any ideas?

P.S. Why different boot loaders for different clock speeds, does the boot loader contain speed dependent code?

Following is my boards.txt entry.

atmega1284_8.name=ATMega1284P 8MHz using Optiboot 3.3V

atmega1284_8.upload.protocol=arduino
atmega1284_8.upload.maximum_size=130048
atmega1284_8.upload.speed=57600

atmega1284_8.bootloader.low_fuses=0xff
atmega1284_8.bootloader.high_fuses=0xde
atmega1284_8.bootloader.extended_fuses=0xfd
atmega1284_8.bootloader.path=optiboot
atmega1284_8.bootloader.file=optiboot_atmega1284p_8MHz.hex
atmega1284_8.bootloader.unlock_bits=0x3F
atmega1284_8.bootloader.lock_bits=0x0F

atmega1284_8.build.mcu=atmega1284p
atmega1284_8.build.f_cpu=8000000L
atmega1284_8.build.core=standard
atmega1284_8.build.variant=standard

This is the sketch I'm working with. As you can see it's extremely complicated.

//#include "Wiz820.h"
#include <Arduino.h>
void setup(){
Serial.begin(9600);
}

void loop(){
}