编译内核是安装linux系统中最难的一项,当然大多人前期都是逃避此问题,比如选择使用GenKernel或者索性使用ubuntu ,fedora等等

其实编译一两次内核就会发现其实它并没那么难,就是对照手册,按照自己的需求开关一些选项而已.

下面是我Y450-tsi在编译内核时一些配置的记录

我的内核版本是2.6.39

首先网卡
网卡是这个型号的 Intel Corporation 82801 Mobile PCI Bridge (rev 93)
在内核中按下面的选:
Device Driver -->
    [*]Network device suport -->
        [*] Ethernet (1000 Mbit) -->
            <*> Broadcom Tigon3 support


显卡:什么都别选,nvida官网上有linux版本的驱动下载

声卡:按官方手册自己决定

想用篮牙的话
Networking -->
    <M> Bluetooth subsystem support -->
        Bluetooth device drivers --->
        <M> HCI USB driver

Networking -->
    <M> Bluetooth subsystem support -->
    <M> L2CAP protocol support
    <M> RFCOMM protocol support
    [*] RFCOMM TTY support

安装蓝牙组件
emerge emerge gnome-bluetooth
/etc/init.d/bluetooth start
$bluetooth-applet

这样就可以了

要用iptables
[*] Networking support  --->
        Networking options  --->
            [*] Network packet filtering framework (Netfilter)  --->
             --- Network packet filtering framework (Netfilter)                             
             [ ]   Network packet filtering debugging                                         
             [*]   Advanced netfilter configuration                                            
             [*]     Bridged IP/ARP packets filtering                                         
                     Core Netfilter Configuration  --->                                       
             < >   IP set support  --->                                                        
             < >   IP virtual server support  --->                                             
                   IP: Netfilter Configuration  --->                                        
             < >   Ethernet Bridge tables (ebtables) support  --->

挂写ntfs分区,别用内核自带的,有问题.
虽然内核中有下面选项
    File systems  --->
    DOS/FAT/NT Filesystems  --->
    <*> NTFS file system support
    [ ]   NTFS debugging support
    [*]   NTFS write support
但使用后会发现挂载的 ntfs 分区没有写入权限。
所以推荐使用 ntfs-3g 来 mount 分区。
但是ntfs-3g需要FUSE模块的支持
去内核中把下面的选上
  File systems  --->
    <M> FUSE (Filesystem in Userspace) support

ntfs-3g现在似乎不被官方支持,用eix 安装ntfs
#emerge -v eix
#eix ntfs
#emerge sys-fs/ntfs3g

还要配置交换机,所以需要usb转串口的驱动
我的usb转串口 是ch340芯片
选择Devces drivers-->
    USB seupport-->
        <M>USB Serial Converter support -->
        [*]USB Generic Serial Driver
        [M]Winchiphead CH341 Single Port Serial Driver

ok,针对我的设备,我的需求,只有这些是特别记录的