summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZubairLK <ZubairLK@users.noreply.github.com>2015-09-01 18:00:14 +0300
committerZubairLK <ZubairLK@users.noreply.github.com>2015-09-01 18:00:14 +0300
commit2e320c155f936519b52fee05ff152ac949ce3bb8 (patch)
tree60d351e3c46d2ffef414638423e20aed92af679f
parent6cfaf802b580f2f7e92a5dec705ff9c196c637b4 (diff)
parentf58cce3658f503e6b56f79ad77304c4d6977d904 (diff)
downloadCI20_u-boot-2e320c155f936519b52fee05ff152ac949ce3bb8.tar.xz
Merge pull request #9 from mpredfearn/ci20-v2013.10-boot-time
Ci20 v2013.10 make boot partition 32mb to boot time and some optimizations
-rw-r--r--fs/ext4/ext4_common.c2
-rw-r--r--include/configs/ci20.h12
2 files changed, 8 insertions, 6 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index 352943ec5..bcc8fc97a 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -1430,7 +1430,7 @@ static struct ext4_extent_header *ext4fs_get_extent_block
i++;
if (i >= le16_to_cpu(ext_block->eh_entries))
break;
- } while (fileblock > le32_to_cpu(index[i].ei_block));
+ } while (fileblock >= le32_to_cpu(index[i].ei_block));
if (--i < 0)
return 0;
diff --git a/include/configs/ci20.h b/include/configs/ci20.h
index 6acf416df..79a512b06 100644
--- a/include/configs/ci20.h
+++ b/include/configs/ci20.h
@@ -71,10 +71,11 @@
#define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAUL)
-#define CONFIG_BOOTDELAY 2
+#define CONFIG_BOOTDELAY 1
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
#define BOOTARGS_COMMON \
- "console=ttyS4,115200 console=tty0 mem=256M@0x0 mem=768M@0x30000000 rootwait"
+ "console=ttyS4,115200 console=tty0 mem=256M@0x0 mem=768M@0x30000000 " \
+ "rootwait quiet"
#ifdef CONFIG_SPL_MMC_SUPPORT
@@ -90,9 +91,10 @@
/* NAND defaults */
#define CONFIG_BOOTARGS \
- BOOTARGS_COMMON " ubi.mtd=3 root=ubi0:root rootfstype=ubifs rw"
+ BOOTARGS_COMMON " ubi.mtd=3 ubi.mtd=4 ubi.fm_autoconvert=1 " \
+ "root=ubi1:root rootfstype=ubifs rw"
#define CONFIG_BOOTCOMMAND \
- "run ethargs; mtdparts default; ubi part system; ubifsmount ubi:boot; " \
+ "run ethargs; mtdparts default; ubi part boot; ubifsmount ubi:boot; " \
"ubifsload 0x88000000 uImage; bootm 0x88000000"
#endif /* !CONFIG_SPL_MMC_SUPPORT */
@@ -168,7 +170,7 @@
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS
#define MTDIDS_DEFAULT "nand0=nand"
-#define MTDPARTS_DEFAULT "mtdparts=nand:8m(uboot-spl),2m(uboot),2m(uboot-env),-(system)"
+#define MTDPARTS_DEFAULT "mtdparts=nand:8m(uboot-spl),2m(uboot),2m(uboot-env),64m(boot),-(system)"
/*
* MMC