In `fastboot.c` `load_file()` loads the entire file into memory. This means that if you're flashing a device with 2 GB flash memory then you must have 2 GB RAM free.