summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharles.park <charles.park@hardkernel.com>2017-08-09 12:38:12 +0300
committercodewalker <codewalker@hardkernel.com>2017-08-10 04:32:33 +0300
commitb8b8f33310bf11b87b815b55b6caa4ad34d94213 (patch)
tree5ec643c82a5444008f21f70401969964b0d08e6e
parentf0155e80962c9c822079d288653deae42d8eac0e (diff)
downloadu-boot-b8b8f33310bf11b87b815b55b6caa4ad34d94213.tar.xz
ODROID-XU4 : info display error fix & fastboot download buffer increase.
Change-Id: I84eea553b7c7041326f46ff9692936087a312ed2
-rwxr-xr-xcmd/odroid_fastboot.c4
-rwxr-xr-xinclude/configs/odroid_xu4.h22
2 files changed, 15 insertions, 11 deletions
diff --git a/cmd/odroid_fastboot.c b/cmd/odroid_fastboot.c
index 9a3201432b..3019fd6a5c 100755
--- a/cmd/odroid_fastboot.c
+++ b/cmd/odroid_fastboot.c
@@ -37,7 +37,7 @@ static struct cmd_fastboot_interface interface =
/*---------------------------------------------------------------------------*/
static int flashing_raw_data(struct partition_info *pinfo,
- unsigned int addr, unsigned int size, unsigned int dev_no)
+ unsigned int addr, u64 size, unsigned int dev_no)
{
struct mmc *mmc;
char cmd[64] = { 0, };
@@ -82,7 +82,7 @@ static void erase_partition(struct partition_info *pinfo, unsigned int dev_no)
unsigned char *clrbuf =
(unsigned char *)calloc(sizeof(char), BLOCK_ERASE_SIZE);
- printf("Erasing partition(%s)... blk_st = 0x%08x, blk_cnt = 0x%08x\n",
+ printf("Erasing partition(%s)... blk_st = %d, blk_cnt = %d\n",
pinfo->name, blk_start, blk_cnt);
mmc = find_mmc_device(dev_no);
diff --git a/include/configs/odroid_xu4.h b/include/configs/odroid_xu4.h
index 351883be44..29ddaea212 100755
--- a/include/configs/odroid_xu4.h
+++ b/include/configs/odroid_xu4.h
@@ -68,7 +68,7 @@
/* Android Partition size for ODROID */
#define PART_SIZE_SYSTEM SZ_1G
-#define PART_SIZE_USER_DATA SZ_2G
+#define PART_SIZE_USERDATA SZ_2G
#define PART_SIZE_CACHE SZ_256M
#define ANDROID_PART_START SZ_64M
@@ -89,11 +89,12 @@
/* Fastboot SDMMC Partition Table for ODROID(Exynos5422) */
-/* BL1 BLK#: 1 (0x0001) ~ 30 (0x001E) */
-/* BL2 BLK#: 31 (0x001F) ~ 62 (0x003E) */
-/* UBOOT BLK#: 63 (0x003F) ~ 1502 (0x05DE) */
-/* TZSW BLK#: 1503 (0x05DF) ~ 2014 (0x07DE) */
-/* UBOOT ENV BLK#: 2015 (0x07DF) ~ 2046 (0x07FE) */
+/* BL1 BLK#: 1 (0x0001) ~ 30 (0x001E) */
+/* BL2 BLK#: 31 (0x001F) ~ 62 (0x003E) */
+/* UBOOT BLK#: 63 (0x003F) ~ 1502 (0x05DE) */
+/* TZSW BLK#: 1503 (0x05DF) ~ 2014 (0x07DE) */
+/* UBOOT ENV BLK#: 2015 (0x07DF) ~ 2046 (0x07FE) */
+/* KERNEL BLK#: 2047 (0x07DF) ~ 18430 (0x47FE) */
#define UBOOT_ENV_ERASE \
"mw.l ${loadaddr} 0 4000;" \
"mmc dev 0; mmc write ${loadaddr} 0x07df 0x0020;mmc dev 0\0"
@@ -159,9 +160,12 @@
#if defined(CONFIG_FASTBOOT)
#define CFG_FASTBOOT_TRANSFER_BUFFER (0x50000000)
- #define CFG_FASTBOOT_TRANSFER_BUFFER_SIZE (0x30000000) /* 768MB */
- #define CFG_FASTBOOT_PAGESIZE (2048) // Page size of booting device
- #define CFG_FASTBOOT_SDMMC_BLOCKSIZE (512) // Block size of sdmmc
+ /* Download maximum size 1024MB */
+ #define CFG_FASTBOOT_TRANSFER_BUFFER_SIZE (0x40000000)
+ /* Page size of booting device */
+ #define CFG_FASTBOOT_PAGESIZE (2048)
+ /* Block size of sdmmc */
+ #define CFG_FASTBOOT_SDMMC_BLOCKSIZE (512)
#endif
/* cmd from kernel reboot */