help!!!如何解决no rule to make tar
:cry: 请教各路高手,我在为基于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:Entering directory '/usr/src/linux/arch/arm/boot'
make*** no rule to make target ' /usr/src/linux/vmlinux',needed by 'compressed /vmlinux',stop.
make:Leaving directory '/usr/src/linux/arch/arm/boot'
make:*** Error 2
我曾试过将make zImage换为make bzImage和make vmlinux均不行,这种错误是什么原因造成的?请问该如何解决?谢谢! 你直接进入/usr/src/linux/arch/arm/boot目录做make?
Re: help!!!如何解决no rule to make
:cry: 请教各路高手,我在为基于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:Entering directory '/usr/src/linux/arch/arm/boot'
make*** no rule to make target ' /usr/src/linux/vmlinux',needed by 'compressed /vmlinux',stop.
make:Leaving directory '/usr/src/linux/arch/arm/boot'
make:*** Error 2
我曾试过将make zImage换为make bzImage和make vmlinux均不行,这种错误是什么原因造成的?请问该如何解决?谢谢!
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. 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. 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.
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. 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:*** Error1
make:Leaving directory'/usr/src/linux/arch/arm/tools'
make:***Error2
make:Leaving directory '/usr/src/linux/arch/arm/tools'
make;***Error2
后来,我将/usr/src/linux/include/asm下的param.h拷至/usr/src/linux/include/asm/arch下,dep通过.
然后,还是在/usr/src/linux下make zImage,出现上篇所述错误. cheungming, ok,I will try your way to do it.
Thanks ! 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? cheungming, 没有多余步骤.
swl补丁和指导书在一个压缩文件中
http://www.samsung.com/product/semiconductor/System LSI/Microcontrollers/32 bit PDA/S3C2410X/s3c2410x.htm 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. 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. 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 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的路径你是如何设定的
谢谢!!!!!!!!!!!!!!!!!!!! i am out of office now, will check and reply u asap.
:wink: cheungming, 大哥你可有时间会帖吗?我现在还是一筹莫展,在google上也没找着arm-linux-gcc2.95.3,不过见着一个也使用cross2.95.3的,他的ld也为0size,而应为1.3M.
页:
[1]
2