diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-03-27 15:44:14 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-03-27 15:44:14 +0000 |
commit | b43169c8a5b277318084a4147851a1a0fefcb750 (patch) | |
tree | 98d4078a4f9c0008ac96c1c9eb9846d106ec98c8 /target/linux/generic-2.6 | |
parent | e196ce5df5644f08ac98545cfb39e28403e58a11 (diff) | |
download | upstream-b43169c8a5b277318084a4147851a1a0fefcb750.tar.gz upstream-b43169c8a5b277318084a4147851a1a0fefcb750.tar.bz2 upstream-b43169c8a5b277318084a4147851a1a0fefcb750.zip |
Create a dummy sit package for 2.4 kernelsq
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10668 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6')
-rw-r--r-- | target/linux/generic-2.6/image/lzma-loader/src/Makefile | 4 | ||||
-rw-r--r-- | target/linux/generic-2.6/image/lzma-loader/src/decompress.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/generic-2.6/image/lzma-loader/src/Makefile b/target/linux/generic-2.6/image/lzma-loader/src/Makefile index 910172c4f8..d5f712a1db 100644 --- a/target/linux/generic-2.6/image/lzma-loader/src/Makefile +++ b/target/linux/generic-2.6/image/lzma-loader/src/Makefile @@ -49,7 +49,7 @@ lzma.bin: lzma.elf ifeq ($(IMAGE_COPY),1) LOADER_ENTRY ?= $(KERNEL_ENTRY) -lzma.o: decompress.o LzmaDecode.o kernel.o +lzma.o: decompress.o LzmaDecode.o kernel.o print.o printf.o uart16550.o sed -e 's,@LOADADDR@,$(LOADADDR),g' -e 's,@ENTRY@,entry,g' lzma.lds.in >lzma-stage2.lds $(LD) -static --no-warn-mismatch -e entry -Tlzma-stage2.lds -o temp-$@ $^ $(OBJCOPY) temp-$@ lzma.tmp @@ -60,7 +60,7 @@ lzma.elf: start.o lzma.o sed -e 's,@LOADADDR@,$(LOADER_ENTRY),g' lzma-copy.lds.in >lzma-copy.lds $(LD) -s -Tlzma-copy.lds -o $@ $^ else -lzma.elf: start.o decompress.o LzmaDecode.o kernel.o +lzma.elf: start.o decompress.o LzmaDecode.o kernel.o print.o printf.o uart16550.o $(LD) -s -Tlzma.lds -o $@ $^ endif diff --git a/target/linux/generic-2.6/image/lzma-loader/src/decompress.c b/target/linux/generic-2.6/image/lzma-loader/src/decompress.c index 45ac509cdc..e31f4183db 100644 --- a/target/linux/generic-2.6/image/lzma-loader/src/decompress.c +++ b/target/linux/generic-2.6/image/lzma-loader/src/decompress.c @@ -145,6 +145,7 @@ void entry(unsigned long icache_size, unsigned long icache_lsize, get_byte(); /* decompress kernel */ + printf("Decompressing kernel\n"); if ((i = LzmaDecode(&vs, &callback, (unsigned char*)KERNEL_ENTRY, osize, &osize)) == LZMA_RESULT_OK) { @@ -152,6 +153,8 @@ void entry(unsigned long icache_size, unsigned long icache_lsize, blast_icache(icache_size, icache_lsize); /* Jump to load address */ + printf("Jumping !\n"); ((void (*)(int a0, int a1, int a2, int a3)) KERNEL_ENTRY)(arg0, arg1, arg2, arg3); } + printf("Failed to decompress !\n"); } |