diff options
author | LiGang <b41990@freescale.com> | 2012-07-27 13:41:20 +0800 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2012-09-12 11:05:53 -0400 |
commit | 0669bf693c25a424ef4a66ee5145309459f9bf5e (patch) | |
tree | d0ed65bf7ae2a189c518690cdd17f98c35e635cd | |
parent | 2e3e13aab2b9c991328726fe5134a6de8cba5104 (diff) |
ENGR00218465 Android: mx6sl-arm2: fix fastboot crash issue
Fix fastboot crash issue on fastmx6sl-arm2 board.
Enlarge fastboot buffer size to 320MB for mx6 arm2 board, mx6 sabresd
board, thus fastboot could flash system.img up to 320MB
Signed-off-by: LiGang <b41990@freescale.com>
-rw-r--r-- | include/configs/mx6dl_sabresd_android.h | 8 | ||||
-rw-r--r-- | include/configs/mx6q_sabresd_android.h | 7 | ||||
-rw-r--r-- | include/configs/mx6sl_arm2_android.h | 12 |
3 files changed, 19 insertions, 8 deletions
diff --git a/include/configs/mx6dl_sabresd_android.h b/include/configs/mx6dl_sabresd_android.h index 1b34c215f3a..c66d274f948 100644 --- a/include/configs/mx6dl_sabresd_android.h +++ b/include/configs/mx6dl_sabresd_android.h @@ -38,8 +38,12 @@ #define CONFIG_FASTBOOT_CONFIGURATION_STR "Android fastboot" #define CONFIG_FASTBOOT_SERIAL_NUM "12345" #define CONFIG_FASTBOOT_SATA_NO 0 -#define CONFIG_FASTBOOT_TRANSFER_BUF 0x30000000 -#define CONFIG_FASTBOOT_TRANSFER_BUF_SIZE 0x10000000 /* 256M byte */ + +/* For system.img growing up more than 256MB, more buffer needs +* to receive the system.img*/ +#define CONFIG_FASTBOOT_TRANSFER_BUF 0x2c000000 +#define CONFIG_FASTBOOT_TRANSFER_BUF_SIZE 0x14000000 /* 320M byte */ + #define CONFIG_CMD_BOOTI #define CONFIG_ANDROID_RECOVERY diff --git a/include/configs/mx6q_sabresd_android.h b/include/configs/mx6q_sabresd_android.h index 0996de5e752..79768187e33 100644 --- a/include/configs/mx6q_sabresd_android.h +++ b/include/configs/mx6q_sabresd_android.h @@ -37,8 +37,11 @@ #define CONFIG_FASTBOOT_CONFIGURATION_STR "Android fastboot" #define CONFIG_FASTBOOT_SERIAL_NUM "12345" #define CONFIG_FASTBOOT_SATA_NO 0 -#define CONFIG_FASTBOOT_TRANSFER_BUF 0x30000000 -#define CONFIG_FASTBOOT_TRANSFER_BUF_SIZE 0x10000000 /* 256M byte */ + +/* For system.img growing up more than 256MB, more buffer needs +* to receive the system.img*/ +#define CONFIG_FASTBOOT_TRANSFER_BUF 0x2c000000 +#define CONFIG_FASTBOOT_TRANSFER_BUF_SIZE 0x14000000 /* 320M byte */ #define CONFIG_CMD_BOOTI #define CONFIG_ANDROID_RECOVERY diff --git a/include/configs/mx6sl_arm2_android.h b/include/configs/mx6sl_arm2_android.h index 5afb8ac3af0..0e25277c310 100644 --- a/include/configs/mx6sl_arm2_android.h +++ b/include/configs/mx6sl_arm2_android.h @@ -24,7 +24,6 @@ #include <configs/mx6sl_arm2.h> -#if 0 #define CONFIG_USB_DEVICE #define CONFIG_IMX_UDC 1 #define CONFIG_FASTBOOT 1 @@ -38,9 +37,14 @@ #define CONFIG_FASTBOOT_CONFIGURATION_STR "Android fastboot" #define CONFIG_FASTBOOT_SERIAL_NUM "12345" #define CONFIG_FASTBOOT_SATA_NO 0 -#define CONFIG_FASTBOOT_TRANSFER_BUF 0x30000000 -#define CONFIG_FASTBOOT_TRANSFER_BUF_SIZE 0x10000000 /* 256M byte */ -#endif + +/* mx6sl ddr address starts from 0x80000000, not like mx6dl and mx6q +* which start from 0x10000000 +* For system.img growing up more than 256MB, more buffer needs +* to receive the system.img*/ +#define CONFIG_FASTBOOT_TRANSFER_BUF 0x8c000000 +#define CONFIG_FASTBOOT_TRANSFER_BUF_SIZE 0x14000000 /* 320M byte */ + #define CONFIG_CMD_BOOTI #define CONFIG_ANDROID_RECOVERY |