OpenWrt Forum Archive

Topic: SNOOP patch to OpenWrt kernel

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Ok, so I tried to package the snoop module, but in fact, I am getting several uncompatible opcodes :

cd /home/florian/dev/sdk/build_mipsel/snoop_v0.1 && /home/florian/dev/sdk/staging_dir_mipsel/bin/mipsel-linux-gcc -D__KERNEL__ -DMODULE -O -Wall  -I/home/florian/dev/openwrt/build_mipsel/linux/include   -c -o snoop.o snoop.c);
/tmp/cchUz1DS.s: Assembler messages:
/tmp/cchUz1DS.s:360: Error: opcode not supported on this processor: mips1 (mips1) `ll $3,52($16)'
/tmp/cchUz1DS.s:362: Error: opcode not supported on this processor: mips1 (mips1) `sc $5,52($16)'
/tmp/cchUz1DS.s:365: Error: opcode not supported on this processor: mips1 (mips1) `sync '
/tmp/cchUz1DS.s:1608: Error: opcode not supported on this processor: mips1 (mips1) `ll $3,112($4)'
/tmp/cchUz1DS.s:1610: Error: opcode not supported on this processor: mips1 (mips1) `sc $5,112($4)'
/tmp/cchUz1DS.s:1613: Error: opcode not supported on this processor: mips1 (mips1) `sync '
/tmp/cchUz1DS.s:1655: Error: opcode not supported on this processor: mips1 (mips1) `ll $3,52($17)'
/tmp/cchUz1DS.s:1657: Error: opcode not supported on this processor: mips1 (mips1) `sc $5,52($17)'
/tmp/cchUz1DS.s:1660: Error: opcode not supported on this processor: mips1 (mips1) `sync '

I did not see what is the real problem with this.

If you want to try by yourself, the makefile is available here :

http://openwrt.alphacore.net/experiment … ces/snoop/

Please let me know if you are successful building this module smile

Hi Florian,

Thanks for help with this. I got it compiled now. But when I put it to run it reboots the WRT54Gv3 every time it receives a new TCP connection to forward.
I put it in DEBUG mode and tried to syslog to my machine to see if there is a message, but with no success.

Kernel patch e Makefile I used is available at: http://www2.uganet.com.br/openwrt/snoop/

May be PKT_CFLAGS in Makefile for module compiling isn't correct. I wouldn't like to debug this code because it's know to run.

Any ideas ?

Well it is a really strange behavior, maybe the author can answer you because I can't smile

The discussion might have continued from here.