diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-06-08 12:58:55 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-06-08 12:58:55 +0000 |
commit | f0776fe06ad1c9a787daecb89ccd97479a0a1235 (patch) | |
tree | f409643702fcbe509bbe2c1036e5516eb225061f /target/linux/adm5120-2.6/image/lzma-loader | |
parent | ec7df316638a6deeed9e4939ece9a63484b8ff18 (diff) | |
download | upstream-f0776fe06ad1c9a787daecb89ccd97479a0a1235.tar.gz upstream-f0776fe06ad1c9a787daecb89ccd97479a0a1235.tar.bz2 upstream-f0776fe06ad1c9a787daecb89ccd97479a0a1235.zip |
Resync adm5120 kernel config, lzma-loader fixes from Gabor
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7536 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/image/lzma-loader')
3 files changed, 17 insertions, 5 deletions
diff --git a/target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c b/target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c index f867e20dc5..ffc87ee0db 100644 --- a/target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c +++ b/target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c @@ -277,9 +277,20 @@ void decompress_entry(unsigned long reg_a0, unsigned long reg_a1, (unsigned char*)LOADADDR, osize, &i); #endif if (res != LZMA_RESULT_OK) { - print_str("failed, LzmaDecode error: "); - print_hex(res); - print_str("\n"); + print_str("failed!\n"); + print_str("LzmaDecode: "); + switch (res) { + case LZMA_RESULT_DATA_ERROR: + print_str("data error\n"); + break; + case LZMA_RESULT_NOT_ENOUGH_MEM: + print_str("not enough memory\n"); + break; + default: + print_str("unknown error, err=0x"); + print_hex(res); + print_str("\n"); + } halt(); } diff --git a/target/linux/adm5120-2.6/image/lzma-loader/src/loader.lds b/target/linux/adm5120-2.6/image/lzma-loader/src/loader.lds index f9358257c9..bae70fb6ea 100644 --- a/target/linux/adm5120-2.6/image/lzma-loader/src/loader.lds +++ b/target/linux/adm5120-2.6/image/lzma-loader/src/loader.lds @@ -6,6 +6,8 @@ SECTIONS { *(.text.*) *(.rodata) *(.rodata.*) + . = ALIGN(16); + *(.data.lzma) } .data : { diff --git a/target/linux/adm5120-2.6/image/lzma-loader/src/lzma-data.lds b/target/linux/adm5120-2.6/image/lzma-loader/src/lzma-data.lds index b6984d742a..abf756ba13 100644 --- a/target/linux/adm5120-2.6/image/lzma-loader/src/lzma-data.lds +++ b/target/linux/adm5120-2.6/image/lzma-loader/src/lzma-data.lds @@ -1,7 +1,6 @@ OUTPUT_ARCH(mips) SECTIONS { - .rodata : { - . = ALIGN(16); + .data.lzma : { _lzma_data_start = .; *(.data) _lzma_data_end = .; |