QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3508|回复: 4

求助!!!uclinux映像文件编译出错

[复制链接]
发表于 2007-3-11 10:51:06 | 显示全部楼层 |阅读模式
我是在FC1下编译uclinux2.4内核,
我先输入make distclean 删除原来编译的可执行文件
再输入make menuconfig选择要编译的选项;
依次输入:
make dep,
make lib_only,
make user_only,
make romfs,
make image;
make;
分别出现了一些反馈的信息,但是却没有生成uclinux_rom.bin,只有一个uclinux_ram.bin, 和romfs.img,请问一下各位大哥,这是怎么回事;?
以下是分别的反馈信息

在输入make dep命令以后,下面是最后一部分的信息反馈:
arm-elf-gcc -O2 -g -fomit-frame-pointer -fno-builtin -DEMBED -I/usr/uClinux-dist/lib/uClibc/include -I/usr/uClinux-dist -Dlinux -D__linux__ -D__uClinux__ -Dunix -I/usr/uClinux-dist/linux-2.4.x/include -I. -c -o jdmerge.o jdmerge.c
cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
arm-elf-gcc -O2 -g -fomit-frame-pointer -fno-builtin -DEMBED -I/usr/uClinux-dist/lib/uClibc/include -I/usr/uClinux-dist -Dlinux -D__linux__ -D__uClinux__ -Dunix -I/usr/uClinux-dist/linux-2.4.x/include -I. -c -o jcomapi.o jcomapi.c
cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
arm-elf-gcc -O2 -g -fomit-frame-pointer -fno-builtin -DEMBED -I/usr/uClinux-dist/lib/uClibc/include -I/usr/uClinux-dist -Dlinux -D__linux__ -D__uClinux__ -Dunix -I/usr/uClinux-dist/linux-2.4.x/include -I. -c -o jutils.o jutils.c
cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
arm-elf-gcc -O2 -g -fomit-frame-pointer -fno-builtin -DEMBED -I/usr/uClinux-dist/lib/uClibc/include -I/usr/uClinux-dist -Dlinux -D__linux__ -D__uClinux__ -Dunix -I/usr/uClinux-dist/linux-2.4.x/include -I. -c -o jerror.o jerror.c
cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
arm-elf-gcc -O2 -g -fomit-frame-pointer -fno-builtin -DEMBED -I/usr/uClinux-dist/lib/uClibc/include -I/usr/uClinux-dist -Dlinux -D__linux__ -D__uClinux__ -Dunix -I/usr/uClinux-dist/linux-2.4.x/include -I. -c -o jmemmgr.o jmemmgr.c
cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
arm-elf-gcc -O2 -g -fomit-frame-pointer -fno-builtin -DEMBED -I/usr/uClinux-dist/lib/uClibc/include -I/usr/uClinux-dist -Dlinux -D__linux__ -D__uClinux__ -Dunix -I/usr/uClinux-dist/linux-2.4.x/include -I. -c -o jmemnobs.o jmemnobs.c
cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
rm -f libjpeg.a
arm-elf-ar rc libjpeg.a jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o jfdctint.o jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o jcomapi.o jutils.o jerror.o jmemmgr.o jmemnobs.o
arm-elf-ranlib libjpeg.a
make[2]: Leaving directory `/usr/uClinux-dist/lib/libjpeg'
make[1]: Leaving directory `/usr/uClinux-dist/lib'
[root@localhost uClinux-dist]#


在输入make lib_only命令后下面是最后一部分编译信息的反馈:
#@rm -f termcap.o tparam.o
make[3]: Leaving directory `/usr/uClinux-dist/lib/libg/gtermcap'
make[2]: Leaving directory `/usr/uClinux-dist/lib/libg'
make[2]: Entering directory `/usr/uClinux-dist/lib/libg'
for i in gtermcap ; do make -C $i || exit gtermcap ; done
make[3]: Entering directory `/usr/uClinux-dist/lib/libg/gtermcap'
#@rm -f termcap.o tparam.o
make[3]: Leaving directory `/usr/uClinux-dist/lib/libg/gtermcap'
make[2]: Leaving directory `/usr/uClinux-dist/lib/libg'
make[2]: Entering directory `/usr/uClinux-dist/lib/libpam'
rm -f security
ln -sf . security
make -C libpam all
make[3]: Entering directory `/usr/uClinux-dist/lib/libpam/libpam'
mkdir -p dynamic
make[3]: Leaving directory `/usr/uClinux-dist/lib/libpam/libpam'
make[2]: Leaving directory `/usr/uClinux-dist/lib/libpam'
make[2]: Entering directory `/usr/uClinux-dist/lib/libpcap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/uClinux-dist/lib/libpcap'
make[2]: Entering directory `/usr/uClinux-dist/lib/zlib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/uClinux-dist/lib/zlib'
make[2]: Entering directory `/usr/uClinux-dist/lib/libjpeg'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/uClinux-dist/lib/libjpeg'
make[1]: Leaving directory `/usr/uClinux-dist/lib'
[root@localhost uClinux-dist]#

在输入make user_only命令以后,下面是最后一部分编译信息的反馈:

#@rm -f termcap.o tparam.o
make[3]: Leaving directory `/usr/uClinux-dist/lib/libg/gtermcap'
make[2]: Leaving directory `/usr/uClinux-dist/lib/libg'
make[2]: Entering directory `/usr/uClinux-dist/lib/libg'
for i in gtermcap ; do make -C $i || exit gtermcap ; done
make[3]: Entering directory `/usr/uClinux-dist/lib/libg/gtermcap'
#@rm -f termcap.o tparam.o
make[3]: Leaving directory `/usr/uClinux-dist/lib/libg/gtermcap'
make[2]: Leaving directory `/usr/uClinux-dist/lib/libg'
make[2]: Entering directory `/usr/uClinux-dist/lib/libpam'
rm -f security
ln -sf . security
make -C libpam all
make[3]: Entering directory `/usr/uClinux-dist/lib/libpam/libpam'
mkdir -p dynamic
make[3]: Leaving directory `/usr/uClinux-dist/lib/libpam/libpam'
make[2]: Leaving directory `/usr/uClinux-dist/lib/libpam'
make[2]: Entering directory `/usr/uClinux-dist/lib/libpcap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/uClinux-dist/lib/libpcap'
make[2]: Entering directory `/usr/uClinux-dist/lib/zlib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/uClinux-dist/lib/zlib'
make[2]: Entering directory `/usr/uClinux-dist/lib/libjpeg'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/uClinux-dist/lib/libjpeg'
make[1]: Leaving directory `/usr/uClinux-dist/lib'
[root@localhost uClinux-dist]#

在输入make romfs命令后,下面是最后一部分编译信息的反馈:

#@rm -f termcap.o tparam.o
make[3]: Leaving directory `/usr/uClinux-dist/lib/libg/gtermcap'
make[2]: Leaving directory `/usr/uClinux-dist/lib/libg'
make[2]: Entering directory `/usr/uClinux-dist/lib/libg'
for i in gtermcap ; do make -C $i || exit gtermcap ; done
make[3]: Entering directory `/usr/uClinux-dist/lib/libg/gtermcap'
#@rm -f termcap.o tparam.o
make[3]: Leaving directory `/usr/uClinux-dist/lib/libg/gtermcap'
make[2]: Leaving directory `/usr/uClinux-dist/lib/libg'
make[2]: Entering directory `/usr/uClinux-dist/lib/libpam'
rm -f security
ln -sf . security
make -C libpam all
make[3]: Entering directory `/usr/uClinux-dist/lib/libpam/libpam'
mkdir -p dynamic
make[3]: Leaving directory `/usr/uClinux-dist/lib/libpam/libpam'
make[2]: Leaving directory `/usr/uClinux-dist/lib/libpam'
make[2]: Entering directory `/usr/uClinux-dist/lib/libpcap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/uClinux-dist/lib/libpcap'
make[2]: Entering directory `/usr/uClinux-dist/lib/zlib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/uClinux-dist/lib/zlib'
make[2]: Entering directory `/usr/uClinux-dist/lib/libjpeg'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/uClinux-dist/lib/libjpeg'
make[1]: Leaving directory `/usr/uClinux-dist/lib'
[root@localhost uClinux-dist]#

在输入make image命令后,下面是最后一部分编译信息的反馈:
arm-elf-ld -r -o /usr/uClinux-dist/linux-2.4.x/romfs.o -b binary /usr/uClinux-dist/images/romfs.img
arm-elf-objcopy -O binary -R .note -R .comment -S /usr/uClinux-dist/linux-2.4.x/linux /usr/uClinux-dist/images/uclinux_ram.bin
arm-elf-objcopy: /usr/uClinux-dist/linux-2.4.x/linux: 没有那个文件或目录
make[1]: *** [image] Error 1
make[1]: Leaving directory `/usr/uClinux-dist/vendors/Samsung/44B0'
make: *** [image] Error 2
[root@localhost uClinux-dist]#


在输入make命令后,下面是最后一部分编译信息的反馈:
acct.c: In function `do_acct_process':
acct.c:320: structure has no member named `mmap'
acct.c:323: structure has no member named `vm_next'
acct.c:318: warning: `vma' might be used uninitialized in this function
make[3]: *** [acct.o] Error 1
make[3]: Leaving directory `/usr/uClinux-dist/linux-2.4.x/kernel'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/uClinux-dist/linux-2.4.x/kernel'
make[1]: *** [_dir_kernel] Error 2
make[1]: Leaving directory `/usr/uClinux-dist/linux-2.4.x'
make: *** [linux] Error 1
[root@localhost uClinux-dist]#


望各位高手给小弟指点指点,小弟感激不尽!!!
 楼主| 发表于 2007-3-19 08:33:36 | 显示全部楼层
问题已经解决!!!!!!!!!1
回复

使用道具 举报

 楼主| 发表于 2007-3-19 08:34:00 | 显示全部楼层
问题已经解决!!!!!!!!!1
回复

使用道具 举报

 楼主| 发表于 2007-3-19 08:34:27 | 显示全部楼层
问题已经解决!!!!!!!!!1
回复

使用道具 举报

发表于 2008-4-23 15:54:40 | 显示全部楼层
我也遇到这种情况 能说说怎么解决的吗?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-21 19:36 , Processed in 0.135224 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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