[Commotion-dev] Commotion OpenWRT on Dragino Build Problems

Ben West ben at gowasabi.net
Wed Dec 19 22:17:02 UTC 2012


Hi Paul,

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).

Here is a diff relevant to the openwrt root directory:

Index: target/linux/atheros/config-3.3
===================================================================
--- target/linux/atheros/config-3.3    (revision 33537)
+++ target/linux/atheros/config-3.3    (working copy)
@@ -70,7 +70,7 @@
 CONFIG_IP17XX_PHY=y
 CONFIG_IRQ_CPU=y
 CONFIG_IRQ_FORCED_THREADING=y
-CONFIG_LEDS_GPIO=y
+# CONFIG_LEDS_GPIO=y
 CONFIG_MDIO_BOARDINFO=y
 CONFIG_MIPS=y
 CONFIG_MIPS_L1_CACHE_SHIFT=5


On Wed, Dec 19, 2012 at 4:06 PM, Paul Gardner-Stephen <
paul at servalproject.org> wrote:

> Hi all,
>
> I have just tried building commotion-openwrt from github for the
> Draginos (AR2317 based).
> The openwrt build process fails with some problems with compiling the
> linux kernel as far as I can see.  Anyone have any tips on how to sort
> this out?  Compilation errors follow.
>
> make[5]: Leaving directory
>
> `/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'
> . /home/gardners/commotion-openwrt/openwrt/include/shell.sh; grep
> '=[ym]'
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config
> | LC_ALL=C sort | md5s >
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.vermagic
> touch
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.configured
> rm -f
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/vmlinux
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/System.map
> make -C
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4
> CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips"
> KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V=''
> CC="mips-openwrt-linux-uclibc-gcc" modules
> make[5]: Entering directory
>
> `/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'
>   CHK     include/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CALL    scripts/checksyscalls.sh
>   CC [M]  fs/autofs4/init.o
>   CC [M]  fs/autofs4/inode.o
>   CC [M]  fs/autofs4/root.o
>   CC [M]  fs/autofs4/symlink.o
>   CC [M]  fs/autofs4/waitq.o
>   CC [M]  fs/autofs4/expire.o
>   CC [M]  fs/autofs4/dev-ioctl.o
>   LD [M]  fs/autofs4/autofs4.o
>   CC [M]  fs/nls/nls_base.o
>   CC [M]  crypto/algapi.o
>   CC [M]  crypto/scatterwalk.o
>   CC [M]  crypto/proc.o
>   LD [M]  crypto/crypto_algapi.o
>   CC [M]  crypto/aes_generic.o
>   CC [M]  crypto/arc4.o
>   CC [M]  drivers/leds/leds-gpio.o
> In file included from
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/gpio.h:4:0,
>                  from
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/gpio.h:4,
>                  from include/linux/gpio.h:30,
>                  from include/linux/of_gpio.h:20,
>                  from drivers/leds/leds-gpio.c:18:
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:
> In function 'ar231x_read_reg':
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:2:
> error: implicit declaration of function '__raw_readl'
> [-Werror=implicit-function-declaration]
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:
> In function 'ar231x_write_reg':
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2:
> error: implicit declaration of function '__raw_writel'
> [-Werror=implicit-function-declaration]
> In file included from
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/page.h:51:0,
>                  from include/linux/mmzone.h:20,
>                  from include/linux/gfp.h:4,
>                  from include/linux/slab.h:12,
>                  from drivers/leds/leds-gpio.c:19:
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:
> At top level:
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:
> warning: conflicting types for '__raw_writel' [enabled by default]
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:
> error: static declaration of '__raw_writel' follows non-static
> declaration
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2:
> note: previous implicit declaration of '__raw_writel' was here
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:
> error: conflicting types for '__raw_readl'
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:9:
> note: previous implicit declaration of '__raw_readl' was here
> cc1: some warnings being treated as errors
>
> make[7]: *** [drivers/leds/leds-gpio.o] Error 1
> make[6]: *** [drivers/leds] Error 2
> make[5]: *** [drivers] Error 2
> make[5]: Leaving directory
>
> `/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'
> make[4]: ***
> [/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.modules]
> Error 2
> make[4]: Leaving directory
> `/home/gardners/commotion-openwrt/openwrt/target/linux/atheros'
> make[3]: *** [compile] Error 2
> make[3]: Leaving directory
> `/home/gardners/commotion-openwrt/openwrt/target/linux'
> make[2]: *** [target/linux/compile] Error 2
> make[2]: Leaving directory `/home/gardners/commotion-openwrt/openwrt'
> make[1]: ***
> [/home/gardners/commotion-openwrt/openwrt/staging_dir/target-mips_uClibc-0.9.33/stamp/.target_compile]
> Error 2
> make[1]: Leaving directory `/home/gardners/commotion-openwrt/openwrt'
> make: *** [world] Error 2
> [gardners at fedora-on-mbp openwrt]$ make V=99
> make[1]: Entering directory `/home/gardners/commotion-openwrt/openwrt'
> make[2]: Entering directory `/home/gardners/commotion-openwrt/openwrt'
> make[3]: Entering directory
> `/home/gardners/commotion-openwrt/openwrt/target/linux'
> make[4]: Entering directory
> `/home/gardners/commotion-openwrt/openwrt/target/linux/atheros'
> /home/gardners/commotion-openwrt/openwrt/scripts/kconfig.pl  +
> /home/gardners/commotion-openwrt/openwrt/target/linux/generic/config-3.3
> /home/gardners/commotion-openwrt/openwrt/target/linux/atheros/config-3.3
> >
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target
> awk
> '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}'
> /home/gardners/commotion-openwrt/openwrt/.config >>
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target
> echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >>
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target
> echo "# CONFIG_KALLSYMS_ALL is not set" >>
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target
> echo "# CONFIG_KPROBES is not set" >>
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target
> /home/gardners/commotion-openwrt/openwrt/scripts/metadata.pl kconfig
> /home/gardners/commotion-openwrt/openwrt/tmp/.packageinfo
> /home/gardners/commotion-openwrt/openwrt/.config >
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.override
> /home/gardners/commotion-openwrt/openwrt/scripts/kconfig.pl 'm+' '+'
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.target
> /dev/null
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.override
> >
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config
> mv
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.old
> grep -v INITRAMFS
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config.old
> >
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config
> echo 'CONFIG_INITRAMFS_SOURCE=""' >>
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config
> export MAKEFLAGS= ;make -C
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4
> CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips"
> KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V=''
> CC="mips-openwrt-linux-uclibc-gcc" oldconfig prepare scripts
> make[5]: Entering directory
>
> `/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'
> scripts/kconfig/conf --oldconfig Kconfig
> #
> # configuration written to .config
> #
> scripts/kconfig/conf --silentoldconfig Kconfig
>   CHK     include/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CALL    scripts/checksyscalls.sh
> make[5]: Leaving directory
>
> `/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'
> rm -rf
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/modules
> make -C
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4
> CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips"
> KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V=''
> CC="mips-openwrt-linux-uclibc-gcc"
>
> INSTALL_HDR_PATH=/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/user_headers
> headers_install
> make[5]: Entering directory
>
> `/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'
>   CHK     include/linux/version.h
> make[5]: Leaving directory
>
> `/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'
> . /home/gardners/commotion-openwrt/openwrt/include/shell.sh; grep
> '=[ym]'
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.config
> | LC_ALL=C sort | md5s >
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.vermagic
> touch
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.configured
> rm -f
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/vmlinux
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/System.map
> make -C
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4
> CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips"
> KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V=''
> CC="mips-openwrt-linux-uclibc-gcc" modules
> make[5]: Entering directory
>
> `/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'
>   CHK     include/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CALL    scripts/checksyscalls.sh
>   CC [M]  drivers/leds/leds-gpio.o
> In file included from
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/gpio.h:4:0,
>                  from
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/gpio.h:4,
>                  from include/linux/gpio.h:30,
>                  from include/linux/of_gpio.h:20,
>                  from drivers/leds/leds-gpio.c:18:
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:
> In function 'ar231x_read_reg':
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:2:
> error: implicit declaration of function '__raw_readl'
> [-Werror=implicit-function-declaration]
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:
> In function 'ar231x_write_reg':
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2:
> error: implicit declaration of function '__raw_writel'
> [-Werror=implicit-function-declaration]
> In file included from
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/page.h:51:0,
>                  from include/linux/mmzone.h:20,
>                  from include/linux/gfp.h:4,
>                  from include/linux/slab.h:12,
>                  from drivers/leds/leds-gpio.c:19:
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:
> At top level:
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:
> warning: conflicting types for '__raw_writel' [enabled by default]
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:
> error: static declaration of '__raw_writel' follows non-static
> declaration
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:38:2:
> note: previous implicit declaration of '__raw_writel' was here
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/io.h:421:1:
> error: conflicting types for '__raw_readl'
>
> /home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/arch/mips/include/asm/mach-ar231x/ar231x.h:32:9:
> note: previous implicit declaration of '__raw_readl' was here
> cc1: some warnings being treated as errors
>
> make[7]: *** [drivers/leds/leds-gpio.o] Error 1
> make[6]: *** [drivers/leds] Error 2
> make[5]: *** [drivers] Error 2
> make[5]: Leaving directory
>
> `/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4'
> make[4]: ***
> [/home/gardners/commotion-openwrt/openwrt/build_dir/linux-atheros/linux-3.3.4/.modules]
> Error 2
> make[4]: Leaving directory
> `/home/gardners/commotion-openwrt/openwrt/target/linux/atheros'
> make[3]: *** [compile] Error 2
> make[3]: Leaving directory
> `/home/gardners/commotion-openwrt/openwrt/target/linux'
> make[2]: *** [target/linux/compile] Error 2
> make[2]: Leaving directory `/home/gardners/commotion-openwrt/openwrt'
> make[1]: ***
> [/home/gardners/commotion-openwrt/openwrt/staging_dir/target-mips_uClibc-0.9.33/stamp/.target_compile]
> Error 2
> make[1]: Leaving directory `/home/gardners/commotion-openwrt/openwrt'
> make: *** [world] Error 2
>
> _______________________________________________
> Commotion-dev mailing list
> Commotion-dev at lists.chambana.net
> http://lists.chambana.net/mailman/listinfo/commotion-dev
>
>


-- 
Ben West
http://gowasabi.net
ben at gowasabi.net
314-246-9434
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-dev/attachments/20121219/a9b78812/attachment-0001.html>


More information about the Commotion-dev mailing list