mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
ipq5332: enable JFFS2_CLEANMARKER for all the tiny profiles
This patch also skips adding clean marker if rootfs_data size is less than 1MB Change-Id: I3687a1d9954dfc319f6b3880556169269a72c4ea Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
This commit is contained in:
parent
5b1b2ae33c
commit
2df60bce7d
2 changed files with 8 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ extern struct sdhci_host mmc_host;
|
|||
#define HEADER_VERSION 4
|
||||
|
||||
#define SHA1_SIG_LEN 41
|
||||
#define SZ_1M 0x00100000
|
||||
|
||||
struct header {
|
||||
unsigned magic[2];
|
||||
|
|
@ -448,6 +449,12 @@ char * const argv[])
|
|||
#ifdef CONFIG_IPQ_JFFS2_CLEANMARKER
|
||||
if (write_cleanmarker) {
|
||||
file_size = ALIGN(file_size, sfi->flash_block_size);
|
||||
if ( part_size - file_size < SZ_1M) {
|
||||
printf("Skipping clean marker as space is less 0x%x \n",
|
||||
part_size - file_size);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
printf("Adding clean markers in rootfs_data\n");
|
||||
setenv("stdout", "nulldev");
|
||||
for (j = 0; j < part_size - file_size;
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@
|
|||
#ifdef CONFIG_IPQ_TINY
|
||||
#define CONFIG_SYS_TEXT_BASE 0x4A450000
|
||||
#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + (64 << 20))
|
||||
#define CONFIG_IPQ_JFFS2_CLEANMARKER
|
||||
#else
|
||||
#define CONFIG_SYS_TEXT_BASE 0x4A400000
|
||||
#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + (256 << 20))
|
||||
|
|
@ -453,7 +454,6 @@ extern loff_t board_env_size;
|
|||
#define CONFIG_DISABLE_KERNEL64
|
||||
#define CONFIG_CMD_DISABLE_EXECTZT
|
||||
#define CONFIG_DISABLE_RAMDISK
|
||||
#define CONFIG_IPQ_JFFS2_CLEANMARKER
|
||||
#undef CONFIG_GZIP
|
||||
#undef CONFIG_ZLIB
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue