u-boot版本: v2009.08
在调试其他功能时增加了u-boot.bin容量到1M,使用fastboot download时提示:
sending 'bootloader' (1191 KB)...
OKAY [ 1.062s]
writing 'bootloader'...
FAILED (remote: image too large for partition)
finished. total time: 1.098s
但是分区的时候是预留蛮大空间的:
# partition size in MB
BOOTLOAD_RESERVE=8
只能先查找出现error log的地方, uboot-imx/common/cmd_fastboot.c
static int rx_handler (const unsigned char *buffer, unsigned int buffer_size)
{
......
else if ((download_bytes >
(ptn->length * MMC_SATA_BLOCK_SIZE)) &&
!(ptn->flags & FASTBOOT_PTENTRY_FLAGS_WRITE_ENV)) {
printf("Image too large for the partition\n");
sprintf(response, "FAILimage too large for partition");
} else if (ptn->flags & FA