Hi,
I'm trying to use your sources but when I run the last make I have the followinfg error:
mipsel-linux-uclibc-gcc -fno-builtin -Os -G 0 -ffunction-sections -mno-abicalls -fno-pic -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Wall -DRAMSTART=0x92000000 -DRAMSIZE=0x00100000 -DKERNEL_ENTRY=0x90020000 -D_LZMA_IN_CB -c start.S -o start.o
mipsel-linux-uclibc-gcc -fno-builtin -Os -G 0 -ffunction-sections -mno-abicalls -fno-pic -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Wall -DRAMSTART=0x92000000 -DRAMSIZE=0x00100000 -DKERNEL_ENTRY=0x90020000 -D_LZMA_IN_CB -c decompress.c -o decompress.o
decompress.c: In function `entry':
decompress.c:173: warning: assignment from incompatible pointer type
decompress.c:139: warning: unused variable `props'
mipsel-linux-uclibc-gcc -fno-builtin -Os -G 0 -ffunction-sections -mno-abicalls -fno-pic -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Wall -DRAMSTART=0x92000000 -DRAMSIZE=0x00100000 -DKERNEL_ENTRY=0x90020000 -D_LZMA_IN_CB -c LzmaDecode.c -o LzmaDecode.o
sed -e 's,@LOADADDR@,0x91400000,g' -e 's,@ENTRY@,_start,g' lzma.lds.in >lzma.lds
mipsel-linux-uclibc-ld -r -b binary --oformat elf32-tradlittlemips -o kernel.o vmlinux.lzma
mipsel-linux-uclibc-gcc -fno-builtin -Os -G 0 -ffunction-sections -mno-abicalls -fno-pic -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Wall -DRAMSTART=0x92000000 -DRAMSIZE=0x00100000 -DKERNEL_ENTRY=0x90020000 -D_LZMA_IN_CB -c uart.c -o uart.o
mipsel-linux-uclibc-ld -Map lzma.elf.map -s -Tlzma.lds -o lzma.elf start.o decompress.o LzmaDecode.o kernel.o uart.o
mipsel-linux-uclibc-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S lzma.elf lzma.bin
BFD: Warning: Writing section `.text' to huge (ie negative) file offset 0x91400000.
BFD: Warning: Writing section `.text.read_byte' to huge (ie negative) file offset 0x9151cdb4.
BFD: Warning: Writing section `.text.LzmaDecode' to huge (ie negative) file offset 0x9151cddc.
BFD: Warning: Writing section `.text.set_remap' to huge (ie negative) file offset 0x9151dd24.
BFD: Warning: Writing section `.text.gbus_readl' to huge (ie negative) file offset 0x9151dd5c.
BFD: Warning: Writing section `.text.gbus_writel' to huge (ie negative) file offset 0x9151ddf4.
BFD: Warning: Writing section `.text.uart_init_port' to huge (ie negative) file offset 0x9151de98.
BFD: Warning: Writing section `.text.uart_putc' to huge (ie negative) file offset 0x9151df44.
BFD: Warning: Writing section `.text.uart_puts' to huge (ie negative) file offset 0x9151dffc.
BFD: Warning: Writing section `.text.convert' to huge (ie negative) file offset 0x9151e03c.
BFD: Warning: Writing section `.text.myprintf' to huge (ie negative) file offset 0x9151e088.
BFD: Warning: Writing section `.reginfo' to huge (ie negative) file offset 0x9151e1f8.
BFD: Warning: Writing section `.data' to huge (ie negative) file offset 0x9151e250.
mipsel-linux-uclibc-objcopy: lzma.bin: File truncated
Ideas?
Thank you.
--- EDIT ---
Partially solved.
Using a toolchain with gcc 4.0.4 works correctly.
Using a toolchain with gcc 3.4.2 doesn't work.
roleo