Arduino Mega 2560 bootloader with higher upload speed

Hi everyone,

I want to increase the baud rate of the bootloder to 500000. I Need to do this because I often upload big sketches ~150k to my arduino mega and it takes forever. Can somebody give me a full description what I have to do? I also have some questions:

1: Is it right that the source of the bootloader for the arduino mega 2560 is stk500boot.c located in the stk500boot folder?

2: The stk500boot.c says that 115200 is the only baud rate for the AVRISP programmer. Is this relevant to my case?

3: I tried to compile the modified bootloader but it failed. This is my error:
Makefile:439: recipe for target 'gccversion' failed
make: *** [gccversion] Error 2

Thank you in advice.

use MegaCore. install it in Boards Manage and burn Optiboot with requested options. then you must use MegaCore for upload to this Mega

This solution worked. Thank you ;D
One question: Is the Mega Core bootloader bigger/slower?

TechnikTV:
Is the Mega Core bootloader bigger

The MegaCore bootloader fits in the minimum 1 kB boot section of the ATmega2560 (actually I think the bootloader itself is less than 0.5 kB). The stock bootloader on the Arduino Mega requires an 8 kB boot section! This means you free up 7 kB of flash memory by switching to the MegaCore bootloader.

TechnikTV:
slower?

The upload baud rate on both the stock Mega bootloader and the default MegaCore bootloader is 115200. However, MegaCore does come with the bootloader compiled for higher upload baud rates. There is a 250000, 500000, and 1000000 baud options. To switch to the higher baud rate bootloader, you need to change this line of MegaCore's boards.txt file:

2560.menu.clock.16MHz_external.upload.speed=115200

You need to restart the Arduino IDE after modifying boards.txt before the changes will take effect. Don't forget to do a Tools > Burn Bootloader to install the new bootloader. If you need help finding the MegaCore boards.txt, let me know.

Ok thanks for the information. ;D