|
我的环境
Ubuntu 12.04.2 (64位)
安装如下模块 build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext sdcc
1、按中文官网教程
svn co svn://svn.openwrt.org.cn/dreambox/branches/dreambox-EOL openwrt-dreambox
svn update
cp feeds.conf.default feeds.conf
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make menuconfig
先选择默认值
Reset to defaults
然后选择如下选项
Target System (Broadcom BCM947xx/953xx) --->
Target Profile (Broadcom BCM43xx WiFi (default)) ---> Advanced configuration options (for developers) --->
Automatic rebuild of packages
Toolchain Options --->
Enable Stack-Smashing Protection support
Build/install c++ compiler and libstdc++?
Build gdb Build the OpenWrt SDK
LuCI --->
Collections --->
<*> luci
make V=99
可以编译成功
在编译过去的基础设置上选择全部扩展包
Global build settings ---> Select all packages by default
无法编译过去提示
echo "Package: libssp" > /home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/base-files/ipkg-brcm47xx/libssp/CONTROL/control
echo "Version: 4.3.3+cs-43.32" >> /home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/base-files/ipkg-brcm47xx/libssp/CONTROL/control
( DEPENDS=''; for depend in ; do DEPENDS=${DEPENDS:+$DEPENDS, }${depend##+}; done; echo "Depends: $DEPENDS"; echo "Provides: "; echo "Source: package/base-files"; echo "Section: libs"; echo "Status: unknown hold not-installed"; echo "Essential: yes"; echo "Priority: optional"; echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>"; echo "Architecture: brcm47xx"; echo "Installed-Size: 0"; echo -n "Description: "; getvar V_Package_libssp_description | sed -e 's,^[[:space:]]*, ,g'; ) >> /home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/base-files/ipkg-brcm47xx/libssp/CONTROL/control
chmod 644 /home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/base-files/ipkg-brcm47xx/libssp/CONTROL/control
(cd /home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/base-files/ipkg-brcm47xx/libssp/CONTROL; )
install -d -m0755 /home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/base-files/ipkg-brcm47xx/libssp/lib
cp -fpR /home/gavin/OpenWrt/openwrt-dreambox/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/lib/libssp.so.* /home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/base-files/ipkg-brcm47xx/libssp/lib/
cp: cannot stat `/home/gavin/OpenWrt/openwrt-dreambox/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/lib/libssp.so.*': No such file or directory
make[3]: *** [/home/gavin/OpenWrt/openwrt-dreambox/bin/brcm47xx/packages/libssp_4.3.3+cs-43.32_brcm47xx.ipk] Error 1
make[3]: Leaving directory `/home/gavin/OpenWrt/openwrt-dreambox/package/base-files'
make[2]: *** [package/base-files/compile] Error 2
make[2]: Leaving directory `/home/gavin/OpenWrt/openwrt-dreambox'
make[1]: *** [/home/gavin/OpenWrt/openwrt-dreambox/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/gavin/OpenWrt/openwrt-dreambox'
make: *** [world] 错误 2
gavin@ubuntu:~/OpenWrt/openwrt-dreambox$
在上述选择全部扩展包,关闭Stack-Smashing Protection support
Global build settings ---> Select all packages by default
去掉选项 Toolchain Options --->
[ ] Enable Stack-Smashing Protection support
无法编译过去提示
make[4]: Entering directory `/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/linux-2.6.32.48'
CC [M] /home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/broadcom-wl-5.10.56.27.3/glue/wl_glue.o
/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/broadcom-wl-5.10.56.27.3/glue/wl_glue.c: In function 'wl_glue_init':
/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/broadcom-wl-5.10.56.27.3/glue/wl_glue.c:287: error: 'bcm47xx_bus_type' undeclared (first use in this function)
/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/broadcom-wl-5.10.56.27.3/glue/wl_glue.c:287: error: (Each undeclared identifier is reported only once
/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/broadcom-wl-5.10.56.27.3/glue/wl_glue.c:287: error: for each function it appears in.)
/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/broadcom-wl-5.10.56.27.3/glue/wl_glue.c:290: error: 'BCM47XX_BUS_TYPE_SSB' undeclared (first use in this function)
make[5]: *** [/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/broadcom-wl-5.10.56.27.3/glue/wl_glue.o] Error 1
make[4]: *** [_module_/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/broadcom-wl-5.10.56.27.3/glue] Error 2
make[4]: Leaving directory `/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/linux-2.6.32.48'
make[3]: *** [/home/gavin/OpenWrt/openwrt-dreambox/build_dir/linux-brcm47xx/broadcom-wl-5.10.56.27.3/.built] Error 2
make[3]: Leaving directory `/home/gavin/OpenWrt/openwrt-dreambox/package/broadcom-wl'
make[2]: *** [package/broadcom-wl/compile] Error 2
make[2]: Leaving directory `/home/gavin/OpenWrt/openwrt-dreambox'
make[1]: *** [/home/gavin/OpenWrt/openwrt-dreambox/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/gavin/OpenWrt/openwrt-dreambox'
make: *** [world] 错误 2
gavin@ubuntu:~/OpenWrt/openwrt-dreambox$
2、按英文官网教程
svn co -r 36088 svn://svn.openwrt.org/openwrt/branches/attitude_adjustment
cp feeds.conf.default feeds.conf
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make prereq
make menuconfig
先选择默认值
Reset to defaults
然后选择如下选项
Target System (Broadcom BCM947xx/953xx) --->
Target Profile (Broadcom BCM43xx WiFi (b43, default)) --->
Global build settings ---> Select all packages by default Advanced configuration options (for developers) --->
Automatic rebuild of packages
Toolchain Options --->
Enable Stack-Smashing Protection support
Build/install c++ compiler and libstdc++?
Build/install fortran compiler?
Build gdb Build the OpenWrt SDK
LuCI --->
Collections --->
<*> luci
make V=99
无法编译过去提示
install -d -m0755 /home/gavin/OpenWrt/attitude_adjustment/build_dir/target-mipsel_uClibc-0.9.33.2/avahi/dbus/avahi-0.6.31/ipkg-brcm47xx/avahi-autoipd/usr/sbin
install -m0755 /home/gavin/OpenWrt/attitude_adjustment/build_dir/target-mipsel_uClibc-0.9.33.2/avahi/dbus/avahi-0.6.31/ipkg-install/usr/sbin/avahi-autoipd /home/gavin/OpenWrt/attitude_adjustment/build_dir/target-mipsel_uClibc-0.9.33.2/avahi/dbus/avahi-0.6.31/ipkg-brcm47xx/avahi-autoipd/usr/sbin/
find /home/gavin/OpenWrt/attitude_adjustment/build_dir/target-mipsel_uClibc-0.9.33.2/avahi/dbus/avahi-0.6.31/ipkg-brcm47xx/avahi-autoipd -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package avahi-autoipd is missing dependencies for the following libraries:
libssp.so.0
make[3]: *** [/home/gavin/OpenWrt/attitude_adjustment/bin/brcm47xx/packages/avahi-autoipd_0.6.31-5_brcm47xx.ipk] Error 1
make[3]: Leaving directory `/home/gavin/OpenWrt/attitude_adjustment/feeds/packages/libs/avahi'
make[2]: *** [package/feeds/packages/avahi/compile] Error 2
make[2]: Leaving directory `/home/gavin/OpenWrt/attitude_adjustment'
make[1]: *** [/home/gavin/OpenWrt/attitude_adjustment/staging_dir/target-mipsel_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/gavin/OpenWrt/attitude_adjustment'
make: *** [world] 错误 2
gavin@ubuntu:~/OpenWrt/attitude_adjustment$
3、按英文官网教程升级到最新版
svn co svn://svn.openwrt.org/openwrt/branches/attitude_adjustment
svn update
cp feeds.conf.default feeds.conf
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make prereq
make menuconfig
先选择默认值
Reset to defaults
然后选择如下选项
Target System (Broadcom BCM947xx/953xx) --->
Target Profile (Broadcom BCM43xx WiFi (b43, default)) --->
Global build settings ---> Select all packages by default Advanced configuration options (for developers) --->
Automatic rebuild of packages
Toolchain Options --->
Enable Stack-Smashing Protection support
Build/install c++ compiler and libstdc++?
Build/install fortran compiler?
Build gdb Build the OpenWrt SDK
LuCI --->
Collections --->
<*> luci
make V=99
无法编译过去提示
/home/gavin/OpenWrt/12.09/staging_dir/target-mipsel_uClibc-0.9.33.2/usr/include/mac80211/net/cfg80211.h:3848:9: warning: 'enum nl80211_radar_event' declared inside parameter list [enabled by default]
make[5]: *** [/home/gavin/OpenWrt/12.09/build_dir/linux-brcm47xx/acx-mac80211-20121004/pci.o] Error 1
make[4]: *** [_module_/home/gavin/OpenWrt/12.09/build_dir/linux-brcm47xx/acx-mac80211-20121004] Error 2
make[4]: Leaving directory `/home/gavin/OpenWrt/12.09/build_dir/linux-brcm47xx/linux-3.3.8'
make[3]: *** [/home/gavin/OpenWrt/12.09/build_dir/linux-brcm47xx/acx-mac80211-20121004/.built] Error 2
make[3]: Leaving directory `/home/gavin/OpenWrt/12.09/package/acx-mac80211'
make[2]: *** [package/acx-mac80211/compile] Error 2
make[2]: Leaving directory `/home/gavin/OpenWrt/12.09'
make[1]: *** [/home/gavin/OpenWrt/12.09/staging_dir/target-mipsel_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/gavin/OpenWrt/12.09'
make: *** [world] 错误 2
gavin@ubuntu:~/OpenWrt/12.09$
不管是中文官方和英文官方如果不选择 Select all packages by default 都可以编译过去
另外从英文官方原版的SDK中复制.config 也是无法完整编译过去?
|
|