LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: sphinx

gentoo之我见

[复制链接]
发表于 2009-8-1 09:31:01 | 显示全部楼层
Post by 32idea;2010503
linuxsir中不是流传着一个世外传说——无网络,不gentoo


非常同意,没网络gentoo是痛苦的。
回复 支持 反对

使用道具 举报

发表于 2009-8-1 10:23:23 | 显示全部楼层
Post by sphinx
ati radeon 3400 series 的驱动 安装 中 出现 了 need support for pci_find_slot  
这个需要在内核中启用pci_find_slot。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-2 12:19:23 | 显示全部楼层
谢谢,那个pci_find_slot加上了。
无线网卡出现了网上说 的问题:
http://forums.fedoraforum.org/showthread.php?t=227035&page=2

很恼火的事情。
另外想请教一个问题:
livecd下可以使用wifi link 5300,因为我将 iwlwifi-5000-1.ucode拷贝到了/lib/firmware。这样就可以了。同时chroot过后,也能使用wifi link 5300上网。
我尝试了genkernel all和 manual configure方式来编译内核,全部完工后,重启进入安装好的系统,只有一次成功的用wifi link 5300上网,然后我安装了xorg-x11,然后,卸载了xorg-x11,之后wifi link 5300就一直是上面连接中的情况。我想尽了一切办法,包括重新编译内核,设置wlan0,甚至重装了2次,都是上面连接中的情况。
我就纳闷了,为什么不能将 livecd 环境下的所有功能 import 到真实的系统呢?
我还比较了mandriva2009在我的t400上完美安装运行时的modules列表,发现mandrivay也之用了 iwlcore,iwlagn,mac80211,iwlwifi-5000-1.ucode就驱动了wifi link5300,舒畅的上网。
我照着这样的配置重新编译了内核,仍然没有改性。
这个是玄案


所以,有没有方法将livecd环境“复制”成要的系统。 (GENKERNEL ALL 未必可行)

谢谢
回复 支持 反对

使用道具 举报

发表于 2009-8-2 13:12:04 | 显示全部楼层
怎么说呢,根据我的经验,网络问题都是内核配置的问题。
不知道你是不是手动配置的内核,不过建议你自己手动来配,放弃genkernel吧。

emerge net-wireless/iwl5000-ucode 了吗?
内核中是如何设置的?仅供参考:http://bildr.no/view/460098

另外你的无线管理工具是什么?要不试试wicd ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-2 21:05:27 | 显示全部楼层
我尝试了genkernel。还是不行。也尝试了所有的关于wireless的配置方案,都不行。
我用的wireless-tools。
我在想,是不是在编译内核的时候,应该把bios中的switchable graphics和os detect (for switchable graphics) 关闭呢? 再试一次,不行就不用gentoo了。成本太高了。这几天经常弄到凌晨2点。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-2 21:12:29 | 显示全部楼层
而且我在配置的时候,时刻都检查了 /etc/conf.d/net, /etc/resolv.conf, 文件。livecd环境下/etc/resolv.conf中会自动加入我的router的gateway。 chroot以后,即便是手动配置wifi 5300, /etc/resolv.conf中每次都是空的。而且我还跟踪了 /var 中的 net-wireless.info文件的信息。
很奇怪的事情。
也就是说: livecd环境下,wireless能用,因为自己加入了iwlwifi-5000-1.ucode
真实情况下,同样的genkernel,和iwlwifi-5000-1.ucode,dhcpcd,却无法获得ip
回复 支持 反对

使用道具 举报

发表于 2009-8-2 21:22:57 | 显示全部楼层
是呀,别的发行版可能都不需要如此折腾。
但折腾的过程其实是学习的过程,你不去编译内核,你永远也不会编译它。(千万别问,为什么要会编译内核。)

之所以如此的折腾,之所以碰到这么多的问题,是因为自己的知识不够,能力不够,经验不足,而不是gentoo的问题,是不?
坛子里这么多老大哥对gentoo运用自如,你难道不想成为他们当中的一员?

内核配置是比较困难,有个小文档可以供你参考(nvidia芯片组+amd athlon64 cpu):
  1. General setup  --->
  2.         <*> Kernel .config support # 把内核配置文件编译进内核。
  3.         [*]   Enable access to .config through /proc/config.gz #内核启动时把配置文件放到/proc
  4. Processor type and features  --->             #cpu设置
  5.     Processor处理器 family (Generic一类-x86-64)  --->   #cpu类型
  6.                  (X) Opteron (amd cpu型号)/Athlon64/Hammer/K8             
  7.         ……
  8.         [ ]   Intel microcode微码 patch补丁 loading  support                           
  9.         [*]   AMD microcode微码 patch loading support  #amd cpu支持
  10. Power management管理 and ACPI高级配置与电源接口 options  --->  #电源管理选项
  11.         CPU Frequency 频率scaling 刻度 --->  
  12.                 [ ]   (Enable CPUfreq debugging)允许对CPUfreq进行调试             #cpu的频率变换调试                                
  13.                 <*>   CPU (frequency translation statistics)         #cpu频率变换状态显示                       
  14.                 [*]     CPU frequency translation statistics details  #cpu频率变换状态显示详情
  15. Device Drivers  --->
  16.        
  17. #硬盘接口驱动
  18.         <*> Serial ATA (prod) and Parallel ATA (experimental) drivers  --->
  19.                 < >     Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
  20.                 <*>     NVIDIA SATA support
  21.                 <*>     AMD/NVidia PATA support
  22.                 < >     Intel PATA old PIIX support
  23.                 < >     Intel SCH PATA support
  24.        
  25. #网络设备驱动
  26.         [*] Network device support  --->
  27.                 <*>   Universal全球 TUN/TAP device driver support
  28.                 [*]   Ethernet (10 or 100Mbit)  --->
  29.                         <*>   Generic Media Independent独立 Interface device support
  30.                         [*]   EISA, VLB, PCI and on board controllers
  31.                         <*>   nForce Ethernet support
  32.                 [ ]   Ethernet (1000 Mbit)  --->                                          
  33.                 [ ]   Ethernet (10000 Mbit)  --->                                      
  34.                 < >   Token Ring driver support  --->
  35.                 [ ]   PCMCIA network device support  --->
  36.                 < >   FDDI driver support
  37.                 <*>   PPP (point-to-point protocol) support                                    
  38.          [*]     PPP multilink support (EXPERIMENTAL)                                         
  39.                 [*]     PPP filtering                                                               
  40.                 <*>     PPP support for async serial ports                                 
  41.                 <*>     PPP support for sync tty ports                                         
  42.                 <*>     PPP Deflate compression                                                      
  43.                 <*>     PPP BSD-Compress compression                                         
  44.                 <*>     PPP MPPE compression (encryption) (EXPERIMENTAL)                           
  45.                 <*>     PPP over Ethernet (EXPERIMENTAL)                                          
  46.                 <*>     PPP over L2TP (EXPERIMENTAL)
  47.        
  48. #声卡驱动
  49.         <*> Sound card support  --->
  50.                 <*>   Advanced Linux Sound Architecture  --->
  51.                 [*]   PCI sound devices  --->   
  52.                         <*>   Intel HD Audio  --->
  53.                                 [*]   Build hwdep interface for HD-audio driver                          
  54.                                 [*]     Allow dynamic codec reconfiguration (EXPERIMENTAL)
  55. **
  56.                                 [*]   Build NVIDIA HDMI HD-audio codec support
  57.                                 [*]   Enable generic HD-audio codec parser
  58.                 Graphics support  --->
  59.                         <*> Support for frame buffer devices  --->
  60.                                 -*-   Enable Video Mode Handling Helpers                              
  61.                                 [*]   Enable Tile Blitting Support
  62.                                 <*>   Userspace VESA VGA graphics support
  63.                                 <*>   Virtual Frame Buffer support (ONLY FOR TESTING!)
  64.                         Console display driver support  --->
  65.                                 <*> Framebuffer Console support
  66.                                 [*]   Map the console to the primary display device        
  67.                                 [*]   Framebuffer Console Rotation
  68. #文件系统
  69. File systems  --->
  70.         <*> The Extended 4 (ext4) filesystem                        
  71.         [*]   Enable ext4dev compatibility                              
  72.         [*]   Ext4 extended attributes (NEW)                          
  73.         [*]     Ext4 POSIX Access Control Lists                          
  74.         [*]     Ext4 Security Labels                                
  75.         [ ] JBD (ext3) debugging support                          
  76.         [ ] JBD2 (ext4) debugging support (NEW)                 
  77.         <*> Reiserfs support                                   
  78.         [ ]   Enable reiserfs debug mode (NEW)                  
  79.         [*]   Stats in /proc/fs/reiserfs         
  80.         [*]   ReiserFS extended attributes                                 
  81.         [*]     ReiserFS POSIX Access Control Lists                  
  82.         [*]     ReiserFS Security Labels
  83.         <M> FUSE (Filesystem in Userspace) support
  84.         DOS/FAT/NT Filesystems  --->
  85.                 (936) Default codepage for FAT
  86.                 (utf8) Default iocharset for FAT
  87.         -*- Native language support  --->
  88.                 <*>   Simplified Chinese charset (CP936, GB2312)
  89. #KVM内核虚拟机支持
  90. [*] Virtualization  --->
  91.         <M>   Kernel-based Virtual Machine (KVM) support            
  92.         < >     KVM for Intel processors support (NEW)                       
  93.         <M>     KVM for AMD processors support                                   
  94.         [*]     KVM trace support                                                   
  95.         <*>   PCI driver for virtio devices (EXPERIMENTAL)               
  96.         <*>   Virtio balloon driver (EXPERIMENTAL)
  97. #网络支持
  98. [*] Networking support  --->
  99.         Networking options  --->
  100.                 <*>   IP: tunneling
  101.                 <*>   IP: GRE tunnels over IP
  102.                 [*]   IP: ARP daemon support (EXPERIMENTAL)
  103.                 < >   The IPv6 protocol  --->
  104.                 <*> 802.1d Ethernet Bridging
  105.                 <*> 802.1Q VLAN Support
  106.                 [*] Network packet filtering framework (Netfilter)  --->
  107.                         [*]   Advanced netfilter configuration
  108.                         Core Netfilter Configuration  ---> ***
  109.                         IP: Netfilter Configuration  --->  *
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-2 21:36:00 | 显示全部楼层
谢谢你这么热心的帮组。我甚至还尝试了network 中的 tcp/ip协议中的选项,generic 80211 (也就是 mac80211模块),等等。可能是由于 pci_slot_find,和 i2c中的一些deprecated选项吧。哈哈。
原则上就是: 内核加载硬件对应的库文件,加载硬件的firmware文件,然后该硬件就可以运行了。所有的操作系统关于硬件的支持原理都是这样的。
可能是内核配置中与其他选项override或者intefere了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-2 21:39:00 | 显示全部楼层
当然了,只可能是自己的水平不够啦。哈哈。
搞好之后我会写一个专门针对t400的帖子
我都是manual config的,只是在没有出路的时候,才用auto config
呵呵
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-2 22:18:39 | 显示全部楼层
坛里有我发的编译内核的体会,很久以前了。所以,对内核的编译我还是颇具心得和技巧的。哈哈
回复 支持 反对

使用道具 举报

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

本版积分规则

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