LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1409|回复: 4

有谁编过uClinux,过来看看啦!

[复制链接]
发表于 2008-1-23 15:51:49 | 显示全部楼层 |阅读模式
拿arm-linux-tools的编译环境编译没问题,产生了根文件系统,但是换成了我自己做lfs产生的工具链,make menuconfig时就报错:

  /bin/sh: /usr/local/bin/grep: 没有那个文件或目录
  /bin/sh: line 0: [: -gt:unary operator expected
  /bin/sh: /usr/local/bin/date: 没有那个文件或目录
  config/mkconfig > config.in
  config/mkconfig: line 34: /usr/local/bin/find: 没有那个文件或目录
  config/mkconfig: line 35: /usr/local/bin/sort: 没有那个文件或目录
  config/mkconfig: line 34: /usr/local/bin/sed: 没有那个文件或目录
  config/mkconfig: line 90: /usr/local/bin/wc: 没有那个文件或目录
  ERROR: you have no kernels available in this directory.
  make: *** [ config.in ] 错误 1

不知怎么回事?
 楼主| 发表于 2008-1-23 17:38:06 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-24 11:09:54 | 显示全部楼层
http://www.snapgear.org 上下了个i386-linux-tools编译时提示arm-linux-gcc命令不存在,是不是uclinux默认的编译环境是arm-linux-gcc ?这个设置是在哪个文件中指定的?我想换成我自己制作的工具链。谢谢了!!
回复 支持 反对

使用道具 举报

发表于 2008-2-24 11:19:34 | 显示全部楼层
在uClinux-dist/linux-2.4.x/Makefile中的指定的:CROSS_COMPILE   = arm-elf-
这个定义的只是前缀,后面跟的肯定都是gcc了!

如果你用的是2.6内核,就到uClinux-dist/linux-2.6.x/Makefile中去修改吧!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-25 10:44:09 | 显示全部楼层
从uclinux.org上取来uClinux-dist-20070130.tar.gz2,再从snapgear.net取来i386-linux-tools-20070808.tar.gz工具链,make时出现错误:

  drivers/mtd/chips/jedec_probe.c:395:error: 'MTD_UADDR_0x1554_0x0AAA' undeclared &nbsphere (not in a function)
    make[4]: *** [drivers/mtd/chips/jedec_probe.o] Error 1
    make[3]: *** [drivers/mtd/chips] Error 2
    make[2]: *** [drivers/mtd] Error 2
    make[1]: *** [drivers] Error 2
    make[1]: Leaving directory '/uClinux-dist/linux-2.6.x'
    make: *** [modules] Error 2
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表