OpenWRT Build file --- Error


 
Ah now there's an error! The build system is a little wonky in that I can't include mac80211 as a dependency because then it would include the incompatible kernel modules, but I do need it because I steal files from it. However, OpenWrt doesn't know that it needs to be built before incompat-wireless so try forcing it to build first:
Code:
make package/mac80211/compile
Once that completes, the regular make should be able to carry on.

Why are you doing this again? Something about a wifi adapter? Not that I don't encourage people to build source code, but if there's something I should be helping you fix I want to know :-D
 
Really just interested in seeing if I can do it :) Purchased another $9 Wifi that should work ---
 
Actually - isn't this entire project based on learning hardware / software -- If we were just interested in BBQ'ing then we would simply buy something off the self. I am actually interested in understanding the Arduino and Raspberry Pi and also OpenWRT - Specifically I a have worked with DDWRT and now learning OpenWRT.

Not sure exactly the source of your comment?

Here is the output in case you change your position - If not I can struggle until I get it or give up --- just seems to go against the spirit of the site. In no means do I intend to offend you as I know you have put in 1'000's of hours into this project and it is much appreciated.

make[1]: Entering directory `/home/user/openwrt'
make[2]: Entering directory `/home/user/openwrt/package/toolchain'
WARNING: skipping libssp -- package not selected
WARNING: skipping libstdcpp -- package not selected
WARNING: skipping libgfortran -- package not selected
WARNING: skipping ldd -- package not selected
WARNING: skipping ldconfig -- package not selected
make[2]: Leaving directory `/home/user/openwrt/package/toolchain'
make[2]: Entering directory `/home/user/openwrt/package/libnl-tiny'
make[2]: Leaving directory `/home/user/openwrt/package/libnl-tiny'
make[2]: Entering directory `/home/user/openwrt/package/iw'
mkdir -p /home/user/openwrt/dl
/home/user/openwrt/scripts/download.pl "/home/user/openwrt/dl" "iw-3.6.tar.bz2" "1c18bfbbc8773629e5e8ac733a39540c" "http://wireless.kernel.org/download/iw/"
--2015-09-18 11:09:54-- http://wireless.kernel.org/download/iw/iw-3.6.tar.bz2
Resolving wireless.kernel.org (wireless.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address 'wireless.kernel.org'
Download failed.
--2015-09-18 11:09:54-- http://mirror2.openwrt.org/sources/iw-3.6.tar.bz2
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... failed: Name or service not known.
wget: unable to resolve host address 'mirror2.openwrt.org'
Download failed.
--2015-09-18 11:09:54-- http://downloads.openwrt.org/sources/iw-3.6.tar.bz2
Resolving downloads.openwrt.org (downloads.openwrt.org)... failed: Name or service not known.
wget: unable to resolve host address 'downloads.openwrt.org'
Download failed.
No more mirrors to try - giving up.
make[2]: *** [/home/user/openwrt/dl/iw-3.6.tar.bz2] Error 2
make[2]: Leaving directory `/home/user/openwrt/package/iw'
make[1]: *** [package/iw/compile] Error 2
make[1]: Leaving directory `/home/user/openwrt'
make: *** [package/mac80211/compile] Error 2
 
Actually the iw-3.6.tar.bz2 file is not on any of these sites listed --- other versions are -- these links are bad -- my DNS / connectivity is fine.
 
Actually - isn't this entire project based on learning hardware / software -- If we were just interested in BBQ'ing then we would simply buy something off the self. I am actually interested in understanding the Arduino and Raspberry Pi and also OpenWRT - Specifically I a have worked with DDWRT and now learning OpenWRT.
Yeah that's what I was saying. If you want to learn then step one is figuring out easy problems like DNS resolution problems. I have no problem helping with esoteric stuff like the previous issue about the build dependency, but you can't just type `make` and paste the output over and over and expect to learn anything.
 
Apparently that was a problem -- found another source....

Now it fails and tells me to "Type 'make config' and enable loadable module support." --- Don't know if that is what I am suppose to do and and can not find it.

--------------------------

make[1]: Entering directory `/home/user/openwrt'
make[2]: Entering directory `/home/user/openwrt'
make[3]: Entering directory `/home/user/openwrt/target/linux'
make[4]: Entering directory `/home/user/openwrt/target/linux/brcm2708'
/home/user/openwrt/scripts/kconfig.pl + /home/user/openwrt/target/linux/generic/config-3.3 /home/user/openwrt/target/linux/brcm2708/config-3.3 > /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.target
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /home/user/openwrt/.config >> /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.target
echo "# CONFIG_KPROBES is not set" >> /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.target
/home/user/openwrt/scripts/metadata.pl kconfig /home/user/openwrt/tmp/.packageinfo /home/user/openwrt/.config > /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.override
/home/user/openwrt/scripts/kconfig.pl 'm+' '+' /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.target /dev/null /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.override > /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config
mv /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.old
grep -v INITRAMFS /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config.old > /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config
rm -rf /home/user/openwrt/build_dir/linux-brcm2708/modules
[ -d /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/user_headers ] || make -C /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8 HOSTCFLAGS="-O2 -I/home/user/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-uclibcgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V='' CC="arm-openwrt-linux-uclibcgnueabi-gcc" INSTALL_HDR_PATH=/home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/user_headers headers_install
. /home/user/openwrt/include/shell.sh; grep '=[ym]' /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.config | LC_ALL=C sort | md5s > /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.vermagic
touch /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.configured
rm -f /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/vmlinux /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/System.map
make -C /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8 HOSTCFLAGS="-O2 -I/home/user/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-uclibcgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V='' CC="arm-openwrt-linux-uclibcgnueabi-gcc" modules
make[5]: Entering directory `/home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8'
scripts/kconfig/conf --silentoldconfig Kconfig
*
* Restart config...
*
*
* SPI support
*
SPI support (SPI) [Y/n/?] y
Debug support for SPI drivers (SPI_DEBUG) [N/y/?] n
*
* SPI Master Controller Drivers
*
Altera SPI Controller (SPI_ALTERA) [N/m/y/?] n
BCM2708 SPI controller driver (SPI0) (SPI_BCM2708) [N/m/y/?] (NEW) aborted!

Console input/output is redirected. Run 'make oldconfig' to update configuration.

make[7]: *** [silentoldconfig] Error 1
make[6]: *** [silentoldconfig] Error 2

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

make[5]: *** [modules] Error 1
make[5]: Leaving directory `/home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8'
make[4]: *** [/home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8/.modules] Error 2
make[4]: Leaving directory `/home/user/openwrt/target/linux/brcm2708'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/user/openwrt/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/user/openwrt'
make[1]: *** [/home/user/openwrt/staging_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/user/openwrt'
make: *** [world] Error 2
 
Yeah now I don't know what is up. The kernel is reconfigured on the fly with all the proper configuration options so you don't have to go in and enable loadable module support manually. Mine starts similarly except it shows the last config is the wireless module install. Maybe try blowing away your /home/user/openwrt/build_dir/linux-brcm2708/linux-3.3.8 directory and going again?

Note it will bomb out on the incompat-wireless package again, but then make the mac80211 packge, then do make again.
 
Seems like it is downloading the following: compat-wireless-2014-05-22.tar.bz2 but it is actually looking for compat-wireless-2012-09-07.tar.bz2

-----
mkdir -p /home/user/openwrt/bin/brcm2708/packages /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL /home/user/openwrt/staging_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/pkginfo
. /home/user/openwrt/include/shell.sh; export modules=; add_module() { priority="$1"; mods="$2"; boot="$3"; shift 3; for mod in $mods; do if [ -e /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/lib/modules/3.3.8/$mod.ko ]; then mkdir -p /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules.d; echo "$mod" >> /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules.d/$priority-rt2800-usb-incompat; fi; done; if [ -e /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules.d/$priority-rt2800-usb-incompat ]; then if [ "$boot" = "1" ]; then mkdir -p /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules-boot.d; ln -s ../modules.d/$priority-rt2800-usb-incompat /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules-boot.d/; fi; modules="${modules:+$modules }$priority-rt2800-usb-incompat"; fi; }; add_module "28" "rt2800usb" ""; if [ -n "$modules" ]; then mkdir -p /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules.d; mkdir -p /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL; echo "#!/bin/sh" > /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; echo "[ -z "\$IPKG_INSTROOT" ] || exit 0" >> /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; echo ". /etc/functions.sh" >> /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; echo "load_modules $modules" >> /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; chmod 0755 /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; fi
install -d -m0755 /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/lib/firmware
install -m0644 /home/user/openwrt/build_dir/linux-brcm2708/compat-wireless-2012-09-07/linux-firmware-375e9548bf75a5664256d47a2f9e14b79181e02d/rt2870.bin /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/lib/firmware/
install: cannot stat '/home/user/openwrt/build_dir/linux-brcm2708/compat-wireless-2012-09-07/linux-firmware-375e9548bf75a5664256d47a2f9e14b79181e02d/rt2870.bin': No such file or directory
make[3]: *** [/home/user/openwrt/bin/brcm2708/packages/kmod-rt2800-usb-incompat_3.3.8-1_brcm2708.ipk] Error 1
make[3]: Leaving directory `/home/user/heatermeter/openwrt/package/incompat-wireless'
make[2]: *** [package/feeds/linkmeter/incompat-wireless/compile] Error 2
make[2]: Leaving directory `/home/user/openwrt'
make[1]: *** [/home/user/openwrt/staging_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/user/openwrt'
make: *** [world] Error 2
----
 
Seems like it is downloading the following: compat-wireless-2014-05-22.tar.bz2 but it is actually looking for compat-wireless-2012-09-07.tar.bz2

-----
mkdir -p /home/user/openwrt/bin/brcm2708/packages /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL /home/user/openwrt/staging_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/pkginfo
. /home/user/openwrt/include/shell.sh; export modules=; add_module() { priority="$1"; mods="$2"; boot="$3"; shift 3; for mod in $mods; do if [ -e /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/lib/modules/3.3.8/$mod.ko ]; then mkdir -p /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules.d; echo "$mod" >> /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules.d/$priority-rt2800-usb-incompat; fi; done; if [ -e /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules.d/$priority-rt2800-usb-incompat ]; then if [ "$boot" = "1" ]; then mkdir -p /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules-boot.d; ln -s ../modules.d/$priority-rt2800-usb-incompat /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules-boot.d/; fi; modules="${modules:+$modules }$priority-rt2800-usb-incompat"; fi; }; add_module "28" "rt2800usb" ""; if [ -n "$modules" ]; then mkdir -p /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/etc/modules.d; mkdir -p /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL; echo "#!/bin/sh" > /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; echo "[ -z "\$IPKG_INSTROOT" ] || exit 0" >> /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; echo ". /etc/functions.sh" >> /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; echo "load_modules $modules" >> /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; chmod 0755 /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/CONTROL/postinst; fi
install -d -m0755 /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/lib/firmware
install -m0644 /home/user/openwrt/build_dir/linux-brcm2708/compat-wireless-2012-09-07/linux-firmware-375e9548bf75a5664256d47a2f9e14b79181e02d/rt2870.bin /home/user/openwrt/build_dir/linux-brcm2708/incompat-wireless/ipkg-brcm2708/kmod-rt2800-usb-incompat/lib/firmware/
install: cannot stat '/home/user/openwrt/build_dir/linux-brcm2708/compat-wireless-2012-09-07/linux-firmware-375e9548bf75a5664256d47a2f9e14b79181e02d/rt2870.bin': No such file or directory
make[3]: *** [/home/user/openwrt/bin/brcm2708/packages/kmod-rt2800-usb-incompat_3.3.8-1_brcm2708.ipk] Error 1
make[3]: Leaving directory `/home/user/heatermeter/openwrt/package/incompat-wireless'
make[2]: *** [package/feeds/linkmeter/incompat-wireless/compile] Error 2
make[2]: Leaving directory `/home/user/openwrt'
make[1]: *** [/home/user/openwrt/staging_dir/target-arm_v6zk_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/user/openwrt'
make: *** [world] Error 2
----

I've got the same issue when I build. I can't for the life of me figure out where it is picking up the version date/ firmware version from. It looks right in the files. I've ended up copy/paste the rt2870.bin file into the directory the make file is looking for and marching in.
 

 

Back
Top