QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2389|回复: 32

编译后的疑问?

[复制链接]
发表于 2003-8-11 08:14:09 | 显示全部楼层 |阅读模式
RH9
第一个问题,make bzImage这步做好,找不到生成的文件!
第二个,如果我编译好一个内核,GRUP菜单里也有选项,但我现在不要了,哪些文件可以删除,请具体指出文件的位置。
第3,在做配置的时候,有些选项是灰色的,但原来的2.4.20是可以的,为什么2.4.21不行!

谢谢
发表于 2003-8-11 22:08:33 | 显示全部楼层
if u are x86 pc and u can not find arch/i386/boot/bzImage, u make bzImage must has problem.

it depends on what step u already do. have u done make module and make modules_install? have u done make install?

some configurations depends on others, tell us which items.
回复

使用道具 举报

 楼主| 发表于 2003-8-11 23:32:15 | 显示全部楼层
1、下载内核文件如:linux-2.4.21.tar.gz拷贝到/usr/src目录并解压缩。
# cd /usr/src
# tar zvxf linux-2.4.21.tar.gz
# cd /usr/src/linux-2.4.21
# make mrproper
# make xconfig
3、进行选译,自己设定个性化的内核。完后点“save and exit”

4、进行编译。
# make dep
# make clean
# make bzImage
5、编译模块。
# make modules
# make modules_install
# depmod -a

我是这么做的啊,然后我在LINUX下查看相应的目录,没有文件啊!

UHCI (Intel PIIX4, VIA,...) Support [M] 这个选项看不见
回复

使用道具 举报

发表于 2003-8-11 23:38:31 | 显示全部楼层
# cd /usr/src/linux-2.4.18-3 ?
2.4.21 or 2.4.18-3?


after make bzImage,  what mesg there?

u need not to run depmod -a

have u choose experimental in code maturity option?
回复

使用道具 举报

 楼主| 发表于 2003-8-12 08:31:48 | 显示全部楼层
have u choose experimental in code maturity option?
这个没选啊,要选吗?
老内核我也没弄过这个啊

还有如何更新Tcl/Tk到8.4,我是RH9,解压后有很多目录,有UNIX等,安装哪个啊?
回复

使用道具 举报

 楼主| 发表于 2003-8-12 09:28:31 | 显示全部楼层
错了,有消息的,但没说错啊。
只是后面的步骤总说什么NOTING TO DO,什么LEAVING

You still didn't answered me which distribution you are using but anyways
这句话中文什么意思,该怎么回答

还有就是我升级内核后启动出现下列错误。
ds:no socker drivers loaded!
VFS=Cannot open root device "LABEL/" or 00:00
Please append a correct "root"= boot option
Kernel panic:VFS:Unable to mount root fs on 00:00

这个提示在我编辑原内核也出现,无论是升级到新内核还是编辑新的内核,都有!
回复

使用道具 举报

发表于 2003-8-12 11:33:01 | 显示全部楼层
u need choose that experimental in code maturity option, i think so.

no idea on u tcl/tk.

can u run make bzImage and post the last 5 lines msg here?

i want u to tell me which linux u use, mdk or rh? or sth else?

for vfs can not open problem. u need to build an initrd file use mkinitrd command. run it or see  man to know how to use.
回复

使用道具 举报

 楼主| 发表于 2003-8-12 11:38:24 | 显示全部楼层
我用的是RH 9,那个命令我运行过的啊!有文件的!
experimental 这个在 code maturity option没有的啊!具体在哪个选项啊!
我把GRUB里的一句改成ro root=/dev/hdb1后就可以进入系统了。
现在出现新问题,就是启动的时候出现很多错误提示:
In USB HID Interface modprobe:Can't locate module hid
............keyboard........................................................keybdev
............mouse............................................................mousedev
还有什么vfat、freevfav、ip-table错误,这些错误使我的USB猫无法用了,挂载的HDD也无法挂载。但是我在先前的XCONFIG中选了对USB的支持啊。

还有出现modprobe:modprobe:Can't locate module char-major-10-135这个提示错误,关机也有这个提示,并有soudservice -00什么错误,完了!
弄好了支持PPPOE,反而USB ADSL MODEM连识别都不行!
回复

使用道具 举报

 楼主| 发表于 2003-8-12 14:07:20 | 显示全部楼层
第一条选项里只有一个,我是选上的。
/dev中创建设备挂载点,这个不是在MNT的目录下创建的吗?

[quote:e91da6821f="gxl117"]哇,我没说错,问题大条
老版说的那个选项在配置介面的第一条选项里,你把它选上就OK。
GRUB??我不用,不知道
对于这些提示你要在input选项中将keyboard mouse等设为M,其它的错误提示也是你没选相关选项所造成的,在进行usb设置时也要把HID interface选上,如果先前input中的模块不选的话这里的选项是不能用的,你所说的灰是不是这个呀。
最后的警告是因为你没有在/dev中创建设备挂载点。[/quote]
回复

使用道具 举报

 楼主| 发表于 2003-8-12 15:41:18 | 显示全部楼层
Root device is (3, 65)
Boot sector 512 bytes.
Setup is 2516 bytes.
System is 1177 kB
warning: kernel is too big for standalone boot from floppy
make[1]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/boot'


[quote:42050f3b18="Dragonfly"]u need choose that experimental in code maturity option, i think so.

no idea on u tcl/tk.

can u run make bzImage and post the last 5 lines msg here?

i want u to tell me which linux u use, mdk or rh? or sth else?

for vfs can not open problem. u need to build an initrd file use mkinitrd command. run it or see  man to know how to use.[/quote]
回复

使用道具 举报

 楼主| 发表于 2003-8-12 15:42:17 | 显示全部楼层
一个重要的问题就是启动的时候ip-table错误始终有!
回复

使用道具 举报

 楼主| 发表于 2003-8-12 17:24:29 | 显示全部楼层
我现在只是对RH9原来的内核进行编译,还算好!
可是当我编译新的内核启动,就会出现很多错误,现在先搁置,把RH9原来的搞定。
有个问题,是不是每次修改过那个XCONFIG后,就要做这么多步啊,如果我仅仅改一个选项,还要重新编译吗?能不能直接安装这个模块啊?
回复

使用道具 举报

 楼主| 发表于 2003-8-12 17:26:28 | 显示全部楼层

我原来RH9一装好就可以挂载,为什么编译原来的内核不行?

[quote:366aba34ad="gxl117"]我的表达可能不太正确,你的问题出现的原因一般是模块没有编译,或是编译了但没有在/dev中创建相关设备的特殊文件使模块无法定位所造成的。这一般要用mkmod来创建,具体如何创建要看模块的相关说明。至于mkmod的使用你可以能过man来查看。[/quote]
回复

使用道具 举报

 楼主| 发表于 2003-8-12 17:29:15 | 显示全部楼层
不运行make mrproper
总到后面说有错

[quote:802dbeec2c="gxl117"]可以,不要运行make mrproper直接修改配置文件后运行make modules\make modules_install[/quote]
回复

使用道具 举报

 楼主| 发表于 2003-8-12 21:40:57 | 显示全部楼层
IPtable这个问题,我搜索了BBS,发现这个做法,但是找不到choose iptable这个啊!
network option, choose that network filter, then go network filter option to choose iptable
choose M

还有编译出现2次不同的错误信息,而且不同哦!是在make bzImage后出现的ERROR。
还有我现在使用XCONFIG后,保存退出提示会多一句话,本来只有要你去执行MAKE DEP,现在还说什么看上层的目录里的MAKEFILE文件以及什么附加的设备(我没选附加设备啊),这是为什么?我有打make mrproper啊!

make[3]: Entering directory `/usr/src/linux-2.4.20-8/drivers/pci'
make[3]: *** No rule to make target `/usr/src/linux-2.4.20-8/drivers/pci/devlist.h', needed by `names.o'.  Stop.
make[3]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/pci'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/pci'
make[1]: *** [_subdir_pci] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/drivers'
make: *** [_dir_drivers] Error 2


base.c: In function `is_devfsd_or_child':
base.c:1417: structure has no member named `p_opptr'
base.c:1417: structure has no member named `p_opptr'
base.c:1412: warning: `p' might be used uninitialized in this function
base.c: In function `devfsd_ioctl':
base.c:3433: warning: unused variable `lock'
make[3]: *** [base.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-8/fs/devfs'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/fs/devfs'
make[1]: *** [_subdir_devfs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/fs'
make: *** [_dir_fs] Error 2
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-18 15:21 , Processed in 0.064235 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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