+ -
当前位置:首页 → 问答吧 → 编译内核时候出现 error {squashfs,wireless.... } 帮帮忙,谢谢了. 暂时解决

编译内核时候出现 error {squashfs,wireless.... } 帮帮忙,谢谢了. 暂时解决

时间:2008-04-01

来源:互联网

squashfs提示error后,我就 去掉他。

接着编译, 然后b44(博通)不过,就去掉。

wireless 不过,去掉(应该是因为去掉了b44,所以wireless无法过)

下来,

mipsel-unknown-linux-uclibc-ld:arch/mips/kernel/vmlinux.lds:37: syntax error
make: *** [.tmp_vmlinux1] Error 1

这个我就晕了,不知道如何解决了...

我是按照 CLFS-EMBEDDED-SVN-0.0.1-20080109/wrt/bootable/kernel.html 这个文章来一步一步进行的。


除了 8. System Build
Introduction
bcm43xx firmware v4.80.53.0

9. Making the CLFS System Bootable
Introduction
Creating the /etc/fstab File

这两步没做,其他都做了。并且前面没出错。

检查了export LD,没问题。
代码:
declare -x AR="mipsel-unknown-linux-uclibc-ar"
declare -x AS="mipsel-unknown-linux-uclibc-as"
declare -x BUILD=""
declare -x CC="mipsel-unknown-linux-uclibc-gcc"
declare -x CLFS="/home/clfs"
declare -x CLFS_HOST="i586-cross-linux-gnu"
declare -x CLFS_MIPS_LEVEL="1"
declare -x CLFS_TARGET="mipsel-unknown-linux-uclibc"
declare -x CXX="mipsel-unknown-linux-uclibc-g++"
declare -x HOME="/home/clfs"
declare -x LC_ALL="POSIX"
declare -x LD="mipsel-unknown-linux-uclibc-ld"
declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rp
m=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.m
ng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*
.voc=00;32:*.wav=00;32:"
declare -x LS_OPTIONS="-N --color=tty -T 0"
declare -x OLDPWD="/"

代码:
clfs:~/mips-wrt/patch/all/linux-2.6.20.1$ make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- vmlinux.bin modules 
 CHK include/linux/version.h
 CHK include/linux/utsrelease.h
 CHK include/linux/compile.h
 GEN .version
 CHK include/linux/compile.h
 UPD include/linux/compile.h
 CC init/version.o
 LD init/built-in.o
 LD .tmp_vmlinux1
mipsel-unknown-linux-uclibc-ld:arch/mips/kernel/vmlinux.lds:37: syntax error
make: *** [.tmp_vmlinux1] Error 1
希望高人能指点下。

google了直接关键字,http://www.linux-mips.org/archives/l.../msg00047.html 这个文章完全不对。 然后就没有可用信息了(我查不出来了)

http://www.linuxsir.org/bbs/attachme...0&d=1206740320 参考文章.(附件在此)

发了帖子我又仔细想想,提示语法错误的话是否 在前面 编译的binutils LD出现了问题?? 可是没报错阿!并且都打过了文章所说的PATCH. 已经使用的是 binutils-2.17 ,最新的版本了, 除了port 没作(这个embedded文章也没提及)

作者: linux_pro   发布时间: 2008-04-01

重新 又弄了一边.

发现在culib-headers 的时候有提示说 有command不支持.
但是头文件复制成功.
然后 再进行内核编译的时候通过 ( make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- vmlinux.bin modules )

但是 进行install 的时候提示 arch里面的很多文件找不到....

给我自己的机器升级内核的时候从来没碰到过这个现象,各位随便说点什么啊~

难道真 是 沉默是金?

这两天网络ARP严重......让我郁闷了...

作者: linux_pro   发布时间: 2008-04-03

稍等,昨日好忙,未看清给我发消息的是pro兄。

作者: tfkdmwmqtr   发布时间: 2008-04-03

难道你的机器是 mips 或 要做的系统是 mpis 的?

作者: tfkdmwmqtr   发布时间: 2008-04-03

引用:
作者: tfkdmwmqtr
难道你的机器是 mips 或 要做的系统是 mpis 的?
我的机器是 I386 版本.

target 是 一个 mipsel 的.

一个 无线路由器.

想移植个 kernel过去.

作者: linux_pro   发布时间: 2008-04-03

检查你的开发工具版本是否合乎开发需要。
http://cross-lfs.org/view/CLFS-EMBED.../hostreqs.html


用 lfslivecd-x86-6.2-5 来做吧。

作者: tfkdmwmqtr   发布时间: 2008-04-03

引用:
作者: tfkdmwmqtr
检查你的开发工具版本是否合乎开发需要。
http://cross-lfs.org/view/CLFS-EMBED.../hostreqs.html


用 lfslivecd-x86-6.2-5 来做吧。


软件方面除了版本不同以外,都有的 (好像说废话)

我是AMD 蜘蛛平台,在启动时候有些问题,必须加载 ACIP=OFF才可以.
LFSLIVECD我用了,无法加载参数使用的.

又遇到学校的破网络,真是让我难受啊!!!!!!!!

啊啊啊啊啊啊~~~~

作者: linux_pro   发布时间: 2008-04-03

opensuse 10 ~ 10.3 的可能不好使。

作者: tfkdmwmqtr   发布时间: 2008-04-03

引用:
作者: tfkdmwmqtr
opensuse 10 ~ 10.3 的可能不好使。
为什么这么说呢??

正在下载 Linksys WRT54G Ultimate Hacking 这本书 (BT慢的要死, 一个小时才1M)

看看到底怎么来构建工具链.

作者: linux_pro   发布时间: 2008-04-03

Binutils-2.12 (Versions greater than 2.17 are not recommended as they have not been tested)

#

Gcc-2.95.3 (Versions greater than 4.1.2 are not recommended as they have not been tested)
#

Glibc-2.2.5 (Versions greater than 2.5; are not recommended as they have not been tested)


用 lfslivecd 来做吧 6.2-5 的。

作者: tfkdmwmqtr   发布时间: 2008-04-03

引用:
作者: tfkdmwmqtr
Binutils-2.12 (Versions greater than 2.17 are not recommended as they have not been tested)

#

Gcc-2.95.3 (Versions greater than 4.1.2 are not recommended as they have not been tested)
#

Glibc-2.2.5 (Versions greater than 2.5; are not recommended as they have not been tested)


用 lfslivecd 来做吧 6.2-5 的。

你说的这个版本是 我HOST版本还是 工具链的版本?

建立的临时工具链的版本全部在建议值范围内,和手册说的一模一样的.

作者: linux_pro   发布时间: 2008-04-03

在 make bin的时候出现了语法错误的问题终于解决了。

是kernel的问题。

gcc 4.1.2
kernel 2.6.24

uClibc 0.9.29

binutils 2.18

编译通过。

在make过程中,MTD出错,去掉。 SCSI出错,去掉。

然后建立成功。 2.9MB大小。

虽然这个东西很大,多出了1M之多,但是 意义在于通过了make,那么,下来的事情就是 缩减内核和 解决MTD,SCSI出错的问题了。

作者: linux_pro   发布时间: 2008-04-09