LinuxSir.cn,穿越时空的Linuxsir!

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

2006.1 livecd内核配置文件在那里?我想用它的配置编译新的内核,我自己配置内核老有问

[复制链接]
发表于 2006-10-19 00:29:21 | 显示全部楼层 |阅读模式
2006.1 livecd内核配置文件在那里?我想用它的配置编译新的内核,我自己配置内核老有问题?
发表于 2006-10-19 09:31:15 | 显示全部楼层
支持一下,关注ing
回复 支持 反对

使用道具 举报

发表于 2006-10-19 09:46:14 | 显示全部楼层
我发现是这样的:
/boot放的是你的备份文件
/etc/kernels下面放的是genkernel时用的
把这些文件全删掉,就使用默认的配置
回复 支持 反对

使用道具 举报

发表于 2006-10-19 09:46:57 | 显示全部楼层
为什么不研究一下内核配置,把问题解决掉呢?感觉gentoo要自己编译内核的情况还比较多。。
LiveCD的内核对硬件支持得好,但相应的也有臃肿的问题,因为其原理就是把大部分硬件支持都编进去了。

想知道LiveCD的内核怎么配置的,可以看这里,不过不确保和2006的一样。

http://gentoo-wiki.com/HOWTO_build_a_LiveCD_from_scratch

另外运行的内核如果编译了相应的功能的话,好象也可以通过/proc文件系统读取配置文件。

Linux Kernel Configuration: kernel configuration  
  1. File systems --->

  2. <*> Ext3 journalling file system support
  3. <*> Reiserfs support
  4. <*> JFS filesystem support
  5. <*> XFS filesystem support
  6. Miscellaneous filesystems  --->
  7.    <*> SquashFS 2.0 - Squashed file system support
  8. CD-ROM/DVD Filesystems  --->
  9.    <*> ISO 9660 CDROM file system support
  10. Pseudo filesystems  --->
  11.    [*] Virtual memory file system support (former shm fs)
  12. Device Drivers --->

  13. Block devices  --->
  14.    <*> Loopback device support
  15.    <*> RAM disk support
  16.    (16)  Default number of RAM disks
  17.    (9000) Default RAM disk size (kbytes)
  18.    [*]   Initial RAM disk (initrd) support
  19. ATA/ATAPI/MFM/RLL support  --->
  20.    <*>     Include IDE/ATAPI CDROM support
复制代码


Note: ext2 filesystem support (which we use for our initrd image), (it is a good idea if it is an rescue cd of some sort to include support for most systems, may come in handy)  


(Comment by moz667 (thank you Edna for help me in translation)) If your planning boot through usb you´ll need to compile the kernel with the USB Mass Storage support. It works when I use my usb stick with this configuration.

Linux Kernel Configuration: kernel configuration  
  1. Device Drivers --->

  2. USB support --->
  3.    <*> USB Mass Storage support
  4.      [ ] USB Mass Storage verbose debug
  5.      [*] Datafab Compact Flash Reader support (EXPERIMENTAL)
  6.      [*] Freecom USB/ATAPI Bridge support
  7.      [*] ISD-200 USB/ATA Bridge support
  8.      [*] Microtech/ZiO! CompactFlash/SmartMedia support
  9.      [ ] USBAT/USBAT02-based storage support (EXPERIMENTAL)
  10.      [*] SanDisk SDDR-09 (and other SmartMedia) support (EXPERIMENTAL)
  11.      [*] SanDisk SDDR-55 SmartMedia support (EXPERIMENTAL)
  12.      [*] Lexar Jumpshot Compact Flash Reader (EXPERIMENTAL)
  13.      [ ] Olympus MAUSB-10/Fuji DPC-R1 support (EXPERIMENTAL)
复制代码





IEEE 1394 ethenet support may disturb your system : sometimes an ethernet interface is recognized first, that is to say before "Classic" ethernet interfaace. If you don't need IEEE ethernet support, dont activate it :

Linux Kernel Configuration: kernel configuration2  
  1. Device Drivers --->

  2. IEEE 1394 (FireWire) support  --->
  3.   < >   Ethernet over 1394
复制代码



Note: If you want to let make mkxf86config.sh an usable xorg.conf at startup, you have to build usbmouse ps2mouse etc as modules (and not compiled in!) since the script is searching for them.

Optionnaly, you can add any convenient option you use. For example I use Magic SysRq Keys, which allows rebooting instantly when no file system is mounted (or you might get corrupted filesystems).

Linux Kernel Configuration: kernel configuration3  
  1. kernel hacking -> Magic SysRq Key [*]
复制代码


另外这里有一篇比较简单的文档,看看有没有参考价值。
http://linux.chinaunix.net/docs/2006-08-03/2372.shtml
回复 支持 反对

使用道具 举报

发表于 2006-10-19 09:51:14 | 显示全部楼层
看错了.
官方文档这样写着,你咋不看呢?
Next, if you are going to configure a 2.6 kernel, copy over the kernel configuration used by the Installation CD to the location where genkernel looks for the default kernel configuration:

Code Listing 17: Copying over the Installation CD kernel config

(Only do this if you are going to configure a 2.6 kernel)
# zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-19 12:19:04 | 显示全部楼层
兄弟们 我看晕了
回复 支持 反对

使用道具 举报

发表于 2006-10-19 13:24:58 | 显示全部楼层
genkernel all生成的内核应该跟liveCD上的一样吧
回复 支持 反对

使用道具 举报

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

本版积分规则

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