diff options
author | wdenk <wdenk> | 2004-02-08 22:55:38 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-02-08 22:55:38 +0000 |
commit | 5653fc335a450fa46d89989e1afe5e8bb9a0a52e (patch) | |
tree | e0429de78cb5c69f7fbd4fe7b84a19b1152809ce /common/cmd_bootm.c | |
parent | f6e20fc6ca5a45316f94743d8b60dce4d9766bc8 (diff) | |
download | u-boot-imx-5653fc335a450fa46d89989e1afe5e8bb9a0a52e.zip u-boot-imx-5653fc335a450fa46d89989e1afe5e8bb9a0a52e.tar.gz u-boot-imx-5653fc335a450fa46d89989e1afe5e8bb9a0a52e.tar.bz2 |
* Patch by Yuli Barcohen, 26 Jan 2004:
Allow bzip2 compression for small memory footprint boards
* Patch by Brad Kemp, 21 Jan 2004:
Add support for CFI flash driver for both the Intel and the AMD
command sets.
* Patch by Travis Sawyer, 20 Jan 2004:
Fix pci bridge auto enumeration of sibling p2p bridges.
* Patch by Tolunay Orkun, 12 Jan 2004:
Add some delays as needed for Intel LXT971A PHY support
* Patches by Stephan Linz, 09 Jan 2004:
- avoid warning: unused variable `piop' in board/altera/common/sevenseg.c
- make DK1C20 board configuration related to ASMI conform to
documentation
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r-- | common/cmd_bootm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 34a74ce..ac9c32e 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -333,8 +333,14 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) #ifdef CONFIG_BZIP2 case IH_COMP_BZIP2: printf (" Uncompressing %s ... ", name); + /* + * If we've got less than 4 MB of malloc() space, + * use slower decompression algorithm which requires + * at most 2300 KB of memory. + */ i = BZ2_bzBuffToBuffDecompress ((char*)ntohl(hdr->ih_load), - &unc_len, (char *)data, len, 0, 0); + &unc_len, (char *)data, len, + CFG_MALLOC_LEN < (4096 * 1024), 0); if (i != BZ_OK) { printf ("BUNZIP2 ERROR %d - must RESET board to recover\n", i); SHOW_BOOT_PROGRESS (-6); |