This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
update for SMP863x Rev C
now USB ports are correctly enabled !
How big is your vmlinux.lzma ?
gpiodir = ((( 0xc & 0xffff) << 16) | 0xffff);
gpiodata = (( 0xc & 0xffff) << 16);
gbus_writel(0x10500, gpiodir);
gbus_writel(0x10504, gpiodata);
/bin/gpiotest WRITE 5 1 # usb reset high
/bin/gpiotest WRITE 2 0 # usbA enable (bottom USB slot on HY100 STB)
/bin/gpiotest WRITE 3 1 # usbB disable
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