QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2867|回复: 19

help!!!如何解决no rule to make tar

[复制链接]
发表于 2003-4-21 16:36:52 | 显示全部楼层 |阅读模式
请教各路高手,我在为基于ARM的三星s3c2410x嵌入一个linux内核,用到的源程序有:linux-2.4.18tar.gz,patch-2.4.18-rmk6.gz,patch-2.4.18-rmk6-swl6.交叉编译器为cross2.95.3.现在编译生成zImage时,报错如下:
make[1]:Entering directory '/usr/src/linux/arch/arm/boot'
make[1]*** no rule to make target ' /usr/src/linux/vmlinux',needed by 'compressed /vmlinux',stop.
make[1]:Leaving directory '/usr/src/linux/arch/arm/boot'
make:***[zImage] Error 2
我曾试过将make zImage换为make bzImage和make vmlinux均不行,这种错误是什么原因造成的?请问该如何解决?谢谢!
发表于 2003-4-22 15:09:07 | 显示全部楼层
你直接进入/usr/src/linux/arch/arm/boot目录做make?
回复

使用道具 举报

发表于 2003-4-23 00:05:07 | 显示全部楼层

Re: help!!!如何解决no rule to make

[quote:7755d4daa5="xinlan104"] 请教各路高手,我在为基于ARM的三星s3c2410x嵌入一个linux内核,用到的源程序有:linux-2.4.18tar.gz,patch-2.4.18-rmk6.gz,patch-2.4.18-rmk6-swl6.交叉编译器为cross2.95.3.现在编译生成zImage时,报错如下:
make[1]:Entering directory '/usr/src/linux/arch/arm/boot'
make[1]*** no rule to make target ' /usr/src/linux/vmlinux',needed by 'compressed /vmlinux',stop.
make[1]:Leaving directory '/usr/src/linux/arch/arm/boot'
make:***[zImage] Error 2
我曾试过将make zImage换为make bzImage和make vmlinux均不行,这种错误是什么原因造成的?请问该如何解决?谢谢![/quote]

i use intel iop321, and it also use an arm kernel. mine is 'make zImage'. can u describe each step u did and what command u ran under what dir, for us easier help u.
回复

使用道具 举报

 楼主| 发表于 2003-4-23 09:45:30 | 显示全部楼层
mozilla, 我先是在/usr/src/linux下make.后改为在/usr/src/linux/arch/arm/boot下敲make zImage,依旧报错为:
make:*** No rule to make target '/vmlinux',needed by 'compressed/vmlinux'.stop.
回复

使用道具 举报

发表于 2003-4-23 10:12:15 | 显示全部楼层
[quote:91372e9eb4="xinlan104"]mozilla, 我先是在/usr/src/linux下make.后改为在/usr/src/linux/arch/arm/boot下敲make zImage,依旧报错为:
make:*** No rule to make target '/vmlinux',needed by 'compressed/vmlinux'.stop.[/quote]

nooo, u run make zImage directly under /usr/src/linux.
btw, u /usr/src/linux should store kernel for u host system, not for u target system. u can store target system other places. that can omit some unnessary potential conflicts.
回复

使用道具 举报

 楼主| 发表于 2003-4-23 10:12:21 | 显示全部楼层
cheungming,
先将cross2.95.3解压后的文件夹2.95.3放在/usr/local/arm下,再
cd /usr/src
tar zxvf linux-2.4.18.tar.gz
gzip -dc patch-2.4.18-rmk6.gz|(cd linux;patch -p1)
gzip -dc patch-2.4.18-rmk6-swl6|(cd linux;patch -p1)
修改linux下的Makefile中crosscompile=/usr/local/arm/2.95.3/bin/arm-linux-
退出.
cd linux
make menuconfig
然后.我按默认的最小配置保存退出.
在/usr/src/linux下 make dep
报错:
/usr/src/linux/include/asm/param.h:13: asm/arch/param.h:Not a directory
make[2]:***[constants.h] Error1
make[2]:Leaving directory'/usr/src/linux/arch/arm/tools'
make[1]:***[dep]Error2
make[1]:Leaving directory '/usr/src/linux/arch/arm/tools'
make;***[archdep]Error2
后来,我将/usr/src/linux/include/asm下的param.h拷至/usr/src/linux/include/asm/arch下,dep通过.
然后,还是在/usr/src/linux下make zImage,出现上篇所述错误.
回复

使用道具 举报

 楼主| 发表于 2003-4-23 10:17:27 | 显示全部楼层
cheungming, ok,I will try your way to do it.
Thanks !
回复

使用道具 举报

发表于 2003-4-23 10:19:31 | 显示全部楼层
before 'make menuconfig' is there any extra step? when i compile kernel for iop321. after patch, i need run make iq80321_config and make oldconfig before run make menuconfig. otherwise will fail. can u tell me where u downlaod this -swl6 patch? and is there any doc on it?
回复

使用道具 举报

 楼主| 发表于 2003-4-23 10:36:59 | 显示全部楼层
cheungming, 没有多余步骤.
swl补丁和指导书在一个压缩文件中
http://www.samsung.com/product/semiconductor/System LSI/Microcontrollers/32 bit PDA/S3C2410X/s3c2410x.htm
回复

使用道具 举报

发表于 2003-4-23 10:48:15 | 显示全部楼层
that url is wrong now. i can not find s3c2410x from samsung site.
btw, this one '/usr/src/linux/include/asm/param.h:13: asm/arch/param.h:Not a directory '
include/asm should be a symbol link to rasm-arm. and u asm/arch should also be a symbol link.
回复

使用道具 举报

 楼主| 发表于 2003-4-23 15:42:22 | 显示全部楼层
cheungming,
新的url为:http://www.samsung.com/Products/Semiconductor/SystemLSI/MobileSolutions/MobileASSP/MobileComputing/S3C2410X/S3C2410X.htm
指导和补丁为:S3C2410 Linux Patch File:patch-2.4.18-rmk6-swl6.
若直接链不上,可在http://www.samsung.com/Products/Semiconductor/SystemLSI中搜索s3c2410x.
回复

使用道具 举报

发表于 2003-4-23 22:10:37 | 显示全部楼层
i download and compile it just now. works fine.
can u try:
put linux-2.4.18.tar.gz, patch-2.4.18-rmk6.gz, and patch-2.4.28-rmk6-swl6 in same dir, and then

tar zxvf linux-2.4.18.tgz
cd linux
zcat ../patch-2.4.18-rmk6.gz |patch -p1
zcat ../patch-2.4.18-rmk6-swl6 |patch -p1
make menuconfig  (simple save and exit)
make dep
make clean
make zImage


my arm-linux-gcc is 2.95.3 (20010315) i put it under the same dir as u, but i set the path and i can access arm-linux-gcc directly without /usr..../bin/...
try again. good luck
回复

使用道具 举报

 楼主| 发表于 2003-4-25 10:05:14 | 显示全部楼层
cheungming, 我又作了一遍,还是出错!但我发现,no rule to make target的原因好像是cross2.95.3/bin下的arm-linux-ld和arm-linux-nm大小为0byte所致。请问:
1、linux原码是否可释放在/usr/src
2、我做make dep时仍报错,我自己在/include/asm-arm/arch-arm下改写了一个param.h,你做make dep 时有无报错
3、我用的cross-2.95.3是从handhelds.org上下的,后又下了一个2003年的arm-linux-gcc3.2.3,编译还报错,你的arm-linux-gcc2.95.3是从那里下的
4、Makefile中关于cross_compile的路径你是如何设定的
谢谢!!!!!!!!!!!!!!!!!!!!
回复

使用道具 举报

发表于 2003-4-25 21:41:19 | 显示全部楼层
i am out of office now, will check and reply u asap.
回复

使用道具 举报

 楼主| 发表于 2003-4-29 10:36:31 | 显示全部楼层
cheungming, 大哥你可有时间会帖吗?我现在还是一筹莫展,在google上也没找着arm-linux-gcc2.95.3,不过见着一个也使用cross2.95.3的,他的ld也为0size,而应为1.3M.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-20 02:24 , Processed in 0.089792 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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