@luz said in GPIO Interrupts Omega2:
Hi @Zerog @luz, I've managed to compile and insmod the kernel module for Omega2. Thanks to your hints :)
however, I can't win the fight with the gpioirq (which is a part of this package https://github.com/KitBishop/Omega-GPIO-I2C-Arduino/tree/master/gpioirq).
i've been trying with "toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2" recommended in PDF doc. successfully, but it doesn't work on Omega2 (giving: syntax error: unexpected "(" (expecting ")") ) , probably by architecture/binary difference. The original Omega2 toolchain can't link it (.o fileas are baked) and producing errors like:
./../../../mipsel-openwrt-linux-musl/bin/ld: ../libnewgpio/bin/static/libnewgpio.a(GPIOPin.o): compiled for a big endian system and target is little endian
./../../../mipsel-openwrt-linux-musl/bin/ld: ../libnewgpio/bin/static/libnewgpio.a(GPIOPin.o): endianness incompatible with that of the selected emulation
./../../../mipsel-openwrt-linux-musl/bin/ld: failed to merge target specific data of file ../libnewgpio/bin/static/libnewgpio.a(GPIOPin.o)
Would appreciate for any recommendations!