1、编译中遇到如下错误:
drivers/net/phy/ip17xx.c:1365: error: unknown field 'aneg_done' specified in initializer
drivers/net/phy/ip17xx.c:1366: error: unknown field 'update_link' specified in initializer
drivers/net/phy/ip17xx.c:1380: error: unknown field 'aneg_done' specified in initializer
drivers/net/phy/ip17xx.c:1381: error: unknown field 'update_link' specified in initializer
make[8]: *** [drivers/net/phy/ip17xx.o] Error 1
make[7]: *** [drivers/net/phy] Error 2
make[6]: *** [drivers/net] Error 2
make[5]: *** [drivers] Error 2
make[5]: Leaving directory `/home/ftp/wdi/openwrt-dreambox/build_dir/linux-ar93xx/linux-2.6.32.48'
make[4]: *** [/home/ftp/wdi/openwrt-dreambox/build_dir/linux-ar93xx/linux-2.6.32.48/.image] Error 2
make[4]: Leaving directory `/home/ftp/wdi/openwrt-dreambox/target/linux/ar93xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/ftp/wdi/openwrt-dreambox/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/ftp/wdi/openwrt-dreambox'
make[1]: *** [/home/ftp/wdi/openwrt-dreambox/staging_dir/target-mips_r2_uClibc-0.9.30.1/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/ftp/wdi/openwrt-dreambox'
make: *** [world] 错误 2
解决办法:
如果你make menuconfig选择的target system是AR71xx/AR7240/AR913x,修改/openwrt-dreambox/target/linux/ar71xx/config-2.6.32这个文件, 注释掉47行 CONFIG_AR8216_PHY=y, 131行 CONFIG_IP17XX_PHY=y 。 target system是AR913x/AR934X,修改/openwrt-dreambox/target/linux/ar93xx/config-2.6.32,注释掉 60行,135行,254行,338行。 修改完后, make clean make dirclean 2、两种固件的区别 DreamBox编译出的固件为两种,如下: openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade openwrt-ar71xx-generic-tl-wr703n-v1-jffs2-factory openwrt-ar71xx-generic-tl-wr703n-v1-jffs2-sysupgrade 他们的区别是:
|