主题 : 請問openwrt編譯問題 复制链接 | 浏览器收藏 | 打印
级别: 圣骑士
UID: 44407
精华: 0
发帖: 386
金钱: 1945 两
威望: 389 点
贡献值: 0 点
综合积分: 772 分
注册时间: 2011-04-25
最后登录: 2014-08-25
楼主  发表于: 2011-12-06 13:27

 請問openwrt編譯問題

抱歉!不知道為什麼linux上無法貼上錯誤訊息!

如題,依照帖子編譯出問題,
svn co http://openwrt-dreambox.googlecode.com/svn/backfire openwrt-dreambox
cd openwrt-dreambox
./scripts/feeds update –a
./scripts/feeds install –a
make menuconfig
make menuconfig:選擇sc64XX,sc64XX(full)其餘未選。


錯誤訊息如下:

make V=99 2>&1 | tee build.log | grep -i error

  CC      drivers/char/consolemap_deftbl.o
  CC      drivers/char/vt.o
  SHIPPED drivers/char/defkeymap.c
  CC      drivers/char/defkeymap.o
  CC      drivers/char/tty_audit.o
  CC      drivers/char/gpio_dev.o
drivers/char/gpio_dev.c:126: error: unknown field 'ioctl' specified in initializer
drivers/char/gpio_dev.c:126: warning: initialization from incompatible pointer type
make[7]: *** [drivers/char/gpio_dev.o] Error 1
make[6]: *** [drivers/char] Error 2
make[5]: *** [drivers] Error 2
make[5]: Leaving directory `/home/test/openwrt/openwrt-dreambox/build_dir/linux-s3c64xx_mini6410/linux-2.6.36.4'
make[4]: *** [/home/test/openwrt/openwrt-dreambox/build_dir/linux-s3c64xx_mini6410/linux-2.6.36.4/.image] Error 2
make[4]: Leaving directory `/home/test/openwrt/openwrt-dreambox/target/linux/s3c64xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/test/openwrt/openwrt-dreambox/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/test/openwrt/openwrt-dreambox'
make[1]: *** [/home/test/openwrt/openwrt-dreambox/staging_dir/target-arm_uClibc-0.9.30.1_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/test/openwrt/openwrt-dreambox'
make: *** [world] Error 2

請問如何解決,目前在google還沒有找到相關解決之道,因為與公版錯誤相同....
[ 此帖被kazaya在2011-12-06 18:01重新编辑 ]
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
贡献值: 3 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
1楼  发表于: 2011-12-06 13:43
没看到错误信息呀
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
贡献值: 3 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
2楼  发表于: 2011-12-06 17:32
解决方法比较xx。

直接把/home/test/openwrt/openwrt-dreambox/build_dir/linux-s3c64xx_mini6410/linux-2.6.36.4/drivers/char/gpio_dev.c的第126行屏蔽掉!

经测试可行且不影响编译出来的二进制文件的使用。
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 圣骑士
UID: 44407
精华: 0
发帖: 386
金钱: 1945 两
威望: 389 点
贡献值: 0 点
综合积分: 772 分
注册时间: 2011-04-25
最后登录: 2014-08-25
3楼  发表于: 2011-12-07 14:04
抱歉...依照你的做法,還是出現一樣的錯誤

但是
/home/test/openwrt/openwrt-dreambox/bin/s3c64xx

1207-openwrt-s3c64xx-mini6410-jffs2-64k.img
1207-openwrt-s3c64xx-mini6410-uImage
1207-openwrt-s3c64xx-mini6410-zImage

請問這樣正常嗎?因為偶不知道如何燒錄到Mini6410?我是用SD方式燒錄Android系統的
  

    f 0644     11974 (        0)  3789:0   (null)
    f 0644     12349 (        0)  4201:0   (null)
/usr/lib/python2.6/xml/etree
    f 0644      5038 (        0)  2346:0   (null)
    f 0644      6066 (        0)  2582:0   (null)
    f 0644     41056 (        0) 15410:0   (null)
    f 0644      1604 (        0)   942:0   (null)
    f 0644        62 (        0)   130:0   (null)
/usr/lib/python2.6/xml/parsers
    f 0644       167 (        0)   214:0   (null)
    f 0644       114 (        0)   182:0   (null)
/usr/lib/python2.6/xml/sax
    f 0644      3587 (        0)  1422:0   (null)
    f 0644      4785 (        0)  1973:0   (null)
    f 0644     14508 (        0)  4717:0   (null)
    f 0644     13968 (        0)  5164:0   (null)
    f 0644      9449 (        0)  3222:0   (null)
    f 0644     12638 (        0)  4521:0   (null)
/usr/sbin
    l 0777        17                 0:0   (null) -> brctl
    l 0777        17                 0:0   (null) -> chroot
    l 0777        17                 0:0   (null) -> crond
    f 0755    150621 (        0) 91688:0   (null)
    f 0755    160971 (        0) 97102:0   (null)
    f 0755     50521 (        0) 28210:0   (null)
    l 0777         8                 0:0   (null) -> iptables-restore
    l 0777         8                 0:0   (null) -> iptables-save
    f 0755     58491 (        0) 34122:0   (null)
    l 0777         8                 0:0   (null) -> iwgetid
    l 0777         8                 0:0   (null) -> iwlist
    l 0777         8                 0:0   (null) -> iwpriv
    l 0777         8                 0:0   (null) -> iwspy
    f 0755    253759 (        0) 145549:0   (null)
    l 0777        17                 0:0   (null) -> telnetd
/usr/share
    d 0755         0                 0:0   (null)
/usr/share/udhcpc
    f 0755      4658 (        0)  1882:0   (null)
/www


Compression mode: priority
Compressors:
      none             compr: 57 blocks (14956)  decompr: 0 blocks
      zlib (prio:60) + compr: 3662 blocks (5391201/12874036)  decompr: 0 blocks
     rtime (prio:50) + compr: 2 blocks (54/65)  decompr: 0 blocks
Compression errors: 0
echo -ne '\xde\xad\xc0\xde' >> /home/test/openwrt/openwrt-dreambox/build_dir/linux-s3c64xx_mini6410/root.jffs2-64k
dd if=/home/test/openwrt/openwrt-dreambox/build_dir/linux-s3c64xx_mini6410/root.jffs2-64k of=/home/test/openwrt/openwrt-dreambox/bin/s3c64xx/1207-openwrt-s3c64xx-mini6410-jffs2-64k.img bs=65536 conv=sync
88+1 records in
89+0 records out
5832704 bytes (5.8 MB) copied, 0.0162903 s, 358 MB/s
BIN_DIR=/home/test/openwrt/openwrt-dreambox/bin/s3c64xx /home/test/openwrt/openwrt-dreambox/scripts/combined-image.sh /home/test/openwrt/openwrt-dreambox/bin/s3c64xx/1207-openwrt-s3c64xx-mini6410-uImage /home/test/openwrt/openwrt-dreambox/bin/s3c64xx/1207-openwrt-s3c64xx-mini6410-jffs2-64k.img /home/test/openwrt/openwrt-dreambox/bin/s3c64xx/openwrt-mini6410-jffs2-64k.bin
--: /home/test/openwrt/openwrt-dreambox/scripts/combined-image.sh: Permission denied
make[5]: *** [install] Error 126
make[5]: Leaving directory `/home/test/openwrt/openwrt-dreambox/target/linux/s3c64xx/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/test/openwrt/openwrt-dreambox/target/linux/s3c64xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/test/openwrt/openwrt-dreambox/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/test/openwrt/openwrt-dreambox'
make[1]: *** [/home/test/openwrt/openwrt-dreambox/staging_dir/target-arm_uClibc-0.9.30.1_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/test/openwrt/openwrt-dreambox'
make: *** [world] Error 2
[ 此帖被kazaya在2011-12-07 14:52重新编辑 ]
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
贡献值: 3 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
4楼  发表于: 2011-12-07 18:59
请问您的意思是现在屏蔽掉那一行以后还会来相同的毛病,还是出现/home/test/openwrt/openwrt-dreambox/scripts/combined-image.sh: Permission denied的提示?


若是/home/test/openwrt/openwrt-dreambox/scripts/combined-image.sh: Permission denied的话,先进入到编译工作目录,然后执行如下命令:

cd scripts

chmod 777 *

即可。
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
贡献值: 3 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
5楼  发表于: 2011-12-07 18:59
另外,刷机的话可见教程。
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com