Hi Paul,<br><br>This is a known problem with some generations of OpenWRT trunk that precede the v12.09 Attitude Adjustment version they're working on now.  The work-around is either to disable CONFIG_PACKAGE_kmod-leds-gpio in the OpenWRT .config file or disable the corresponding option in the kernel itself (illustrated below).<br>
<br>Here is a diff relevant to the openwrt root directory:<br><br>Index: target/linux/atheros/config-3.3<br>===================================================================<br>--- target/linux/atheros/config-3.3    (revision 33537)<br>
+++ target/linux/atheros/config-3.3    (working copy)<br>@@ -70,7 +70,7 @@<br> CONFIG_IP17XX_PHY=y<br> CONFIG_IRQ_CPU=y<br> CONFIG_IRQ_FORCED_THREADING=y<br>-CONFIG_LEDS_GPIO=y<br>+# CONFIG_LEDS_GPIO=y<br> CONFIG_MDIO_BOARDINFO=y<br>
 CONFIG_MIPS=y<br> CONFIG_MIPS_L1_CACHE_SHIFT=5<br><br><br><div class="gmail_quote">On Wed, Dec 19, 2012 at 4:06 PM, Paul Gardner-Stephen <span dir="ltr"><<a href="mailto:paul@servalproject.org" target="_blank">paul@servalproject.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I have just tried building commotion-openwrt from github for the<br>
Draginos (AR2317 based).<br>
The openwrt build process fails with some problems with compiling the<br>
linux kernel as far as I can see.  Anyone have any tips on how to sort<br>
this out?  Compilation errors follow.<br>
<br>
make[5]: Leaving directory<br>
`/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'<br>
. /home/gardners/commotion-openwrt/openwrt/include/shell.sh; grep<br>
'=[ym]' /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config<br>
| LC_ALL=C sort | md5s ><br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.vermagic<br>
touch /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.configured<br>
rm -f /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/vmlinux<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/System.map<br>
make -C /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4<br>
CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips"<br>
KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V=''<br>
CC="mips-openwrt-linux-uclibc-gcc" modules<br>
make[5]: Entering directory<br>
`/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'<br>
  CHK     include/linux/version.h<br>
  CHK     include/generated/utsrelease.h<br>
  CALL    scripts/checksyscalls.sh<br>
  CC [M]  fs/autofs4/init.o<br>
  CC [M]  fs/autofs4/inode.o<br>
  CC [M]  fs/autofs4/root.o<br>
  CC [M]  fs/autofs4/symlink.o<br>
  CC [M]  fs/autofs4/waitq.o<br>
  CC [M]  fs/autofs4/expire.o<br>
  CC [M]  fs/autofs4/dev-ioctl.o<br>
  LD [M]  fs/autofs4/autofs4.o<br>
  CC [M]  fs/nls/nls_base.o<br>
  CC [M]  crypto/algapi.o<br>
  CC [M]  crypto/scatterwalk.o<br>
  CC [M]  crypto/proc.o<br>
  LD [M]  crypto/crypto_algapi.o<br>
  CC [M]  crypto/aes_generic.o<br>
  CC [M]  crypto/arc4.o<br>
  CC [M]  drivers/leds/leds-gpio.o<br>
In file included from<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/gpio.h:4:0,<br>
                 from<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/gpio.h:4,<br>
                 from include/linux/gpio.h:30,<br>
                 from include/linux/of_gpio.h:20,<br>
                 from drivers/leds/leds-gpio.c:18:<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:<br>
In function 'ar231x_read_reg':<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:2:<br>
error: implicit declaration of function '__raw_readl'<br>
[-Werror=implicit-function-declaration]<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:<br>
In function 'ar231x_write_reg':<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2:<br>
error: implicit declaration of function '__raw_writel'<br>
[-Werror=implicit-function-declaration]<br>
In file included from<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/page.h:51:0,<br>
                 from include/linux/mmzone.h:20,<br>
                 from include/linux/gfp.h:4,<br>
                 from include/linux/slab.h:12,<br>
                 from drivers/leds/leds-gpio.c:19:<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:<br>
At top level:<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:<br>
warning: conflicting types for '__raw_writel' [enabled by default]<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:<br>
error: static declaration of '__raw_writel' follows non-static<br>
declaration<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2:<br>
note: previous implicit declaration of '__raw_writel' was here<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:<br>
error: conflicting types for '__raw_readl'<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:9:<br>
note: previous implicit declaration of '__raw_readl' was here<br>
cc1: some warnings being treated as errors<br>
<br>
make[7]: *** [drivers/leds/leds-gpio.o] Error 1<br>
make[6]: *** [drivers/leds] Error 2<br>
make[5]: *** [drivers] Error 2<br>
make[5]: Leaving directory<br>
`/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'<br>
make[4]: *** [/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.modules]<br>
Error 2<br>
make[4]: Leaving directory<br>
`/home/gardners/commotion-openwrt/openwrt/target/linux/atheros'<br>
make[3]: *** [compile] Error 2<br>
make[3]: Leaving directory<br>
`/home/gardners/commotion-openwrt/openwrt/target/linux'<br>
make[2]: *** [target/linux/compile] Error 2<br>
make[2]: Leaving directory `/home/gardners/commotion-openwrt/openwrt'<br>
make[1]: *** [/home/gardners/commotion-openwrt/openwrt/staging_dir/target-mips_uClibc-0.9.33/stamp/.target_compile]<br>
Error 2<br>
make[1]: Leaving directory `/home/gardners/commotion-openwrt/openwrt'<br>
make: *** [world] Error 2<br>
[gardners@fedora-on-mbp openwrt]$ make V=99<br>
make[1]: Entering directory `/home/gardners/commotion-openwrt/openwrt'<br>
make[2]: Entering directory `/home/gardners/commotion-openwrt/openwrt'<br>
make[3]: Entering directory<br>
`/home/gardners/commotion-openwrt/openwrt/target/linux'<br>
make[4]: Entering directory<br>
`/home/gardners/commotion-openwrt/openwrt/target/linux/atheros'<br>
/home/gardners/commotion-openwrt/openwrt/scripts/<a href="http://kconfig.pl" target="_blank">kconfig.pl</a>  +<br>
/home/gardners/commotion-openwrt/openwrt/target/linux/generic/config-3.3<br>
/home/gardners/commotion-openwrt/openwrt/target/linux/atheros/config-3.3<br>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target<br>
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}'<br>
/home/gardners/commotion-openwrt/openwrt/.config >><br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target<br>
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >><br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target<br>
echo "# CONFIG_KALLSYMS_ALL is not set" >><br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target<br>
echo "# CONFIG_KPROBES is not set" >><br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target<br>
/home/gardners/commotion-openwrt/openwrt/scripts/<a href="http://metadata.pl" target="_blank">metadata.pl</a> kconfig<br>
/home/gardners/commotion-openwrt/openwrt/tmp/.packageinfo<br>
/home/gardners/commotion-openwrt/openwrt/.config ><br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.override<br>
/home/gardners/commotion-openwrt/openwrt/scripts/<a href="http://kconfig.pl" target="_blank">kconfig.pl</a> 'm+' '+'<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target<br>
/dev/null /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.override<br>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config<br>
mv /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.old<br>
grep -v INITRAMFS<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.old<br>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config<br>
echo 'CONFIG_INITRAMFS_SOURCE=""' >><br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config<br>
export MAKEFLAGS= ;make -C<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4<br>
CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips"<br>
KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V=''<br>
CC="mips-openwrt-linux-uclibc-gcc" oldconfig prepare scripts<br>
make[5]: Entering directory<br>
`/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'<br>
scripts/kconfig/conf --oldconfig Kconfig<br>
#<br>
# configuration written to .config<br>
#<br>
scripts/kconfig/conf --silentoldconfig Kconfig<br>
  CHK     include/linux/version.h<br>
  CHK     include/generated/utsrelease.h<br>
  CALL    scripts/checksyscalls.sh<br>
make[5]: Leaving directory<br>
`/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'<br>
rm -rf /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/modules<br>
make -C /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4<br>
CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips"<br>
KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V=''<br>
CC="mips-openwrt-linux-uclibc-gcc"<br>
INSTALL_HDR_PATH=/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/user_headers<br>
headers_install<br>
make[5]: Entering directory<br>
`/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'<br>
  CHK     include/linux/version.h<br>
make[5]: Leaving directory<br>
`/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'<br>
. /home/gardners/commotion-openwrt/openwrt/include/shell.sh; grep<br>
'=[ym]' /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config<br>
| LC_ALL=C sort | md5s ><br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.vermagic<br>
touch /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.configured<br>
rm -f /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/vmlinux<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/System.map<br>
make -C /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4<br>
CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips"<br>
KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V=''<br>
CC="mips-openwrt-linux-uclibc-gcc" modules<br>
make[5]: Entering directory<br>
`/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'<br>
  CHK     include/linux/version.h<br>
  CHK     include/generated/utsrelease.h<br>
  CALL    scripts/checksyscalls.sh<br>
  CC [M]  drivers/leds/leds-gpio.o<br>
In file included from<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/gpio.h:4:0,<br>
                 from<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/gpio.h:4,<br>
                 from include/linux/gpio.h:30,<br>
                 from include/linux/of_gpio.h:20,<br>
                 from drivers/leds/leds-gpio.c:18:<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:<br>
In function 'ar231x_read_reg':<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:2:<br>
error: implicit declaration of function '__raw_readl'<br>
[-Werror=implicit-function-declaration]<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:<br>
In function 'ar231x_write_reg':<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2:<br>
error: implicit declaration of function '__raw_writel'<br>
[-Werror=implicit-function-declaration]<br>
In file included from<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/page.h:51:0,<br>
                 from include/linux/mmzone.h:20,<br>
                 from include/linux/gfp.h:4,<br>
                 from include/linux/slab.h:12,<br>
                 from drivers/leds/leds-gpio.c:19:<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:<br>
At top level:<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:<br>
warning: conflicting types for '__raw_writel' [enabled by default]<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:<br>
error: static declaration of '__raw_writel' follows non-static<br>
declaration<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2:<br>
note: previous implicit declaration of '__raw_writel' was here<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:<br>
error: conflicting types for '__raw_readl'<br>
/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:9:<br>
note: previous implicit declaration of '__raw_readl' was here<br>
cc1: some warnings being treated as errors<br>
<br>
make[7]: *** [drivers/leds/leds-gpio.o] Error 1<br>
make[6]: *** [drivers/leds] Error 2<br>
make[5]: *** [drivers] Error 2<br>
make[5]: Leaving directory<br>
`/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'<br>
make[4]: *** [/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.modules]<br>
Error 2<br>
make[4]: Leaving directory<br>
`/home/gardners/commotion-openwrt/openwrt/target/linux/atheros'<br>
make[3]: *** [compile] Error 2<br>
make[3]: Leaving directory<br>
`/home/gardners/commotion-openwrt/openwrt/target/linux'<br>
make[2]: *** [target/linux/compile] Error 2<br>
make[2]: Leaving directory `/home/gardners/commotion-openwrt/openwrt'<br>
make[1]: *** [/home/gardners/commotion-openwrt/openwrt/staging_dir/target-mips_uClibc-0.9.33/stamp/.target_compile]<br>
Error 2<br>
make[1]: Leaving directory `/home/gardners/commotion-openwrt/openwrt'<br>
make: *** [world] Error 2<br>
<br>
_______________________________________________<br>
Commotion-dev mailing list<br>
<a href="mailto:Commotion-dev@lists.chambana.net">Commotion-dev@lists.chambana.net</a><br>
<a href="http://lists.chambana.net/mailman/listinfo/commotion-dev" target="_blank">http://lists.chambana.net/mailman/listinfo/commotion-dev</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br>314-246-9434<br>
</div><br>