主题 : 给mini2440编译openwrt的固件时报错 复制链接 | 浏览器收藏 | 打印
Tough times don`t last, tough people do(艰难时期不会长久,能吃苦的人才会笑到最后).....
级别: 新手上路
UID: 10449
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 48 分
注册时间: 2009-11-04
最后登录: 2014-08-28
楼主  发表于: 2012-11-12 12:03

 给mini2440编译openwrt的固件时报错

如题...
虚拟机:virtualbox
系统:甀戀甀渀琀甀 10.04 lts

编译了三个多小时 结果报错了,报错代码如下

Applying /home/zzf/openwrt-dreambox/target/linux/generic/patches-2.6.32/930-kmsg_dump_backport.patch using plaintext:
patching file include/linux/kmsg_dump.h
patching file kernel/panic.c
patching file kernel/printk.c
Hunk #2 succeeded at 1408 (offset 2 lines).

Applying /home/zzf/openwrt-dreambox/target/linux/generic/patches-2.6.32/931-crashlog.patch using plaintext:
patching file include/linux/crashlog.h
patching file init/Kconfig
Hunk #1 succeeded at 688 (offset -22 lines).
patching file kernel/Makefile
patching file kernel/crashlog.c
patching file mm/bootmem.c
patching file kernel/module.c

Applying /home/zzf/openwrt-dreambox/target/linux/generic/patches-2.6.32/940-wireless_mesh_header.patch using plaintext:
patching file include/linux/netdevice.h

Applying /home/zzf/openwrt-dreambox/target/linux/generic/patches-2.6.32/951-revert_gcc4_4_fixes.patch using plaintext:
patching file arch/powerpc/boot/crtsavres.S
patching file arch/powerpc/boot/Makefile
patching file arch/powerpc/kernel/prom_init_check.sh
patching file arch/powerpc/lib/crtsavres.S
patching file arch/powerpc/lib/Makefile
patching file arch/powerpc/Makefile

Applying /home/zzf/openwrt-dreambox/target/linux/generic/patches-2.6.32/970-ocf_kbuild_integration.patch using plaintext:
patching file crypto/Kconfig
patching file crypto/Makefile

Applying /home/zzf/openwrt-dreambox/target/linux/generic/patches-2.6.32/971-ocf_20080917.patch using plaintext:
patching file drivers/char/random.c
Hunk #1 succeeded at 139 with fuzz 2 (offset 10 lines).
Hunk #2 succeeded at 155 with fuzz 2 (offset 12 lines).
Hunk #3 FAILED at 724.
1 out of 3 hunks FAILED -- saving rejects to file drivers/char/random.c.rej

patching file fs/fcntl.c
patching file include/linux/miscdevice.h
patching file include/linux/random.h
Hunk #2 succeeded at 73 with fuzz 2 (offset -1 lines).
Patch failed!倀氀攀愀猀攀 fix /home/zzf/openwrt-dreambox/target/linux/generic/patches-2.6.32/971-ocf_20080917.patch!
make[3]: *** [/home/zzf/openwrt-dreambox/build_dir/toolchain-arm_v4t_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/linux-2.6.32.60/.prepared] Error 1
make[3]: Leaving directory `/home/zzf/openwrt-dreambox/toolchain/kernel-headers'
make[2]: *** [toolchain/kernel-headers/prepare] Error 2
make[2]: Leaving directory `/home/zzf/openwrt-dreambox'
make[1]: *** [/home/zzf/openwrt-dreambox/staging_dir/toolchain-arm_v4t_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/zzf/openwrt-dreambox'
make: *** [world] 错误 2


第一次编译openwrt-dreambox阿嬀猀:6] 求大侠解救...
[ 此帖被潇湘书笛在2012-11-12 17:27重新编辑 ]
Tough times don`t last, tough people do(艰难时期不会长久,能吃苦的人才会笑到最后).....
级别: 新手上路
UID: 10449
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 48 分
注册时间: 2009-11-04
最后登录: 2014-08-28
1楼  发表于: 2012-11-12 12:49
版本是556的
Tough times don`t last, tough people do(艰难时期不会长久,能吃苦的人才会笑到最后).....
级别: 新手上路
UID: 10449
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 48 分
注册时间: 2009-11-04
最后登录: 2014-08-28
2楼  发表于: 2012-11-12 12:53
问题补充 还有在 ./scripts/feeds update -a 时在更新qtopia时 停顿,貌似更新不了

Create index file './feeds/dreambox_packages.index'
Updating feed 'qtopia' from 'http://openwrt-for-embedded.googlecode.com/svn/branches/qtopia_12.05' ...
Tough times don`t last, tough people do(艰难时期不会长久,能吃苦的人才会笑到最后).....
级别: 新手上路
UID: 10449
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 48 分
注册时间: 2009-11-04
最后登录: 2014-08-28
3楼  发表于: 2012-11-12 17:34
到底是怎么回事呢?
级别: 骑士
UID: 61140
精华: 1
发帖: 213
金钱: 1125 两
威望: 225 点
贡献值: 1 点
综合积分: 446 分
注册时间: 2011-12-23
最后登录: 2016-11-20
4楼  发表于: 2012-11-12 19:15
引用第2楼潇湘书笛于2012-11-12 12:53发表的  :
问题补充 还有在 ./scripts/feeds update -a 时在更新qtopia时 停顿,貌似更新不了

Create index file './feeds/dreambox_packages.index'
Updating feed 'qtopia' from 'http://openwrt-for-embedded.googlecode.com/svn/branches/qtopia_12.05' ...


qtopia用的feeds改为src-svn qpe http://openwrt-for-embedded.googlecode.com/svn/feeds/qpe
你重新试下
级别: 骑士
UID: 61140
精华: 1
发帖: 213
金钱: 1125 两
威望: 225 点
贡献值: 1 点
综合积分: 446 分
注册时间: 2011-12-23
最后登录: 2016-11-20
5楼  发表于: 2012-11-12 19:18
引用楼主潇湘书笛于2012-11-12 12:03发表的 给mini2440编译openwrt的固件时报错 :
如题...
虚拟机:virtualbox
系统:甀戀甀渀琀甀 10.04 lts

编译了三个多小时 结果报错了,报错代码如下
.......


这个可能是lintel内核还没升级完全,你把trunk/target/linux/s3c24xx/Makefile中的内核版本调为LINUX_VERSION:=2.6.32.59或者更低一点的2.6.32.55
Tough times don`t last, tough people do(艰难时期不会长久,能吃苦的人才会笑到最后).....
级别: 新手上路
UID: 10449
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 48 分
注册时间: 2009-11-04
最后登录: 2014-08-28
6楼  发表于: 2012-11-12 22:32
引用第4楼neechard于2012-11-12 19:15发表的  :


qtopia用的feeds改为src-svn qpe http://openwrt-for-embedded.googlecode.com/svn/feeds/qpe
你重新试下


我是个菜鸟新手 这个是怎么改? 在哪改啊?
Tough times don`t last, tough people do(艰难时期不会长久,能吃苦的人才会笑到最后).....
级别: 新手上路
UID: 10449
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 48 分
注册时间: 2009-11-04
最后登录: 2014-08-28
7楼  发表于: 2012-11-12 22:47
[quote]引用第4楼neechard于2012-11-12 19:15发表的  :

找到了 被这个问题折磨成白痴了 用了一个笨方法 用命令找了一下 src-svn 吼吼 多谢您提醒
级别: 骑士
UID: 61140
精华: 1
发帖: 213
金钱: 1125 两
威望: 225 点
贡献值: 1 点
综合积分: 446 分
注册时间: 2011-12-23
最后登录: 2016-11-20
8楼  发表于: 2012-11-13 17:14
引用第6楼潇湘书笛于2012-11-12 22:32发表的  :


我是个菜鸟新手 这个是怎么改? 在哪改啊?


注释feeds.conf.default中的src-svn qtopia http://openwrt-for-embedded.googlecode.com/svn/branches/qtopia_12.05这行
加上src-svn qpe http://openwrt-for-embedded.googlecode.com/svn/feeds/qpe

已经把openwrt-dreambox解决升级了,你svn up下就ok了