gentoo内核配置¶
必选选项¶
对于默认的内核配置,只需要开启以下选项,便可正常使用。
对于32bit系统,取消默认的”64-bit kernel”选项
CONFIG_64BIT: Symbol: 64BIT [=n] Type : boolean Prompt: 64-bit kernel Defined at arch/x86/Kconfig:2 Depends on: ARCH [=x86]=x86
devtmpfs
Symbol: DEVTMPFS [=y] Type : boolean Prompt: Maintain a devtmpfs filesystem to mount at /dev Defined at drivers/base/Kconfig:24 Depends on: HOTPLUG [=y] Location: -> Device Drivers -> Generic Driver OptionsSymbol: DEVTMPFS_MOUNT [=y] Type : boolean Prompt: Automount devtmpfs at /dev, after the kernel mounted the rootfs Defined at drivers/base/Kconfig:44 Depends on: DEVTMPFS [=y] Location: -> Device Drivers -> Generic Driver Options -> Maintain a devtmpfs filesystem to mount at /dev (DEVTMPFS [=y])无线网卡
Symbol: HOSTAP [=y] Type : tristate Prompt: IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP) Defined at drivers/net/wireless/hostap/Kconfig:1 Depends on: NETDEVICES [=y] && WLAN [=y] Location: -> Device Drivers -> Network device support (NETDEVICES [=y]) -> Wireless LAN (WLAN [=y]) Selects: WIRELESS_EXT [=n] && WEXT_SPY [=n] && WEXT_PRIV [=n] && CRYPTO [=y] && CRYPTO_ARC4 [=y] && CRYPTO_ECB [=n] && CRYPTO_AES [=y] && \ CRYPTO_MICHAEL_MIC [=n] && CRYPTO_ECB [=n] && CRC32 [=y] && LIB80211 [=y] && LIB80211_CRYPT_WEP [=y] && LIB80211_CRYPT_TKIP [=y] && LIB80211_CRYPT_CCMP [=y]Symbol: IWLWIFI [=m] Type : tristate Prompt: Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi) Defined at drivers/net/wireless/iwlwifi/Kconfig:1 Depends on: NETDEVICES [=y] && WLAN [=y] && PCI [=y] && MAC80211 [=y] && HAS_IOMEM [=y] Location: -> Device Drivers -> Network device support (NETDEVICES [=y]) -> Wireless LAN (WLAN [=y])CONFIG_CFG80211_WEXT: Enable this option if you need old userspace for wireless extensions with cfg80211-based drivers. Symbol: CFG80211_WEXT [=y] Type : boolean Prompt: cfg80211 wireless extensions compatibility Defined at net/wireless/Kconfig:134 Depends on: NET [=y] && WIRELESS [=y] && CFG80211 [=y] Location: -> Networking support (NET [=y]) -> Wireless (WIRELESS [=y]) -> cfg80211 - wireless configuration API (CFG80211 [=y]) Selects: WEXT_CORE [=y]显卡
Symbol: FB_UVESA [=y] Type : tristate Prompt: Userspace VESA VGA graphics support Defined at drivers/video/Kconfig:737 Depends on: HAS_IOMEM [=y] && FB [=y] && CONNECTOR [=y] Location: -> Device Drivers -> Graphics support -> Support for frame buffer devices (FB [=y])文件系统
Symbol: FUSE_FS [=y] Type : tristate Prompt: FUSE (Filesystem in Userspace) support Defined at fs/fuse/Kconfig:1 Location: -> File systemsSymbol: EXT2_FS [=y] Type : tristate Prompt: Second extended fs support Defined at fs/ext2/Kconfig:1 Depends on: BLOCK [=y] Location: -> File systemsSymbol: NTFS_FS [=y] Type : tristate Prompt: NTFS file system support Defined at fs/ntfs/Kconfig:1 Depends on: BLOCK [=y] Location: -> File systems -> DOS/FAT/NT FilesystemsSymbol: NTFS_RW [=y] Type : boolean Prompt: NTFS write support Defined at fs/ntfs/Kconfig:51 Depends on: BLOCK [=y] && NTFS_FS [=y] Location: -> File systems -> DOS/FAT/NT Filesystems -> NTFS file system support (NTFS_FS [=y])
可选选项¶
大内存支持
如果当前系统为32位,并且有大于4G的内存,而又不想重新装成64位的系统,开启以下选项即可
CONFIG_HIGHMEM64G: Symbol: HIGHMEM64G [=y] Type : boolean Prompt: 64GB Defined at arch/x86/Kconfig:1092 Depends on: <choice> && !M386 [=n] && !M486 [=n] Location: -> Processor type and features -> High Memory Support (<choice> [=y]) Selects: X86_PAE [=y]VPN支持
需要开启PPP及其下面所有的选项,作为模块载入
Symbol: PPP [=m] Type : tristate Prompt: PPP (point-to-point protocol) support Location: -> Device Drivers -> Network device support (NETDEVICES [=y]) Defined at drivers/net/ppp/Kconfig:5 Depends on: NETDEVICES [=y] Selects: SLHC [=m] Selected by: IPWIRELESS [=n] && PCMCIA [=y] && NETDEVICES [=y] && TTY [=y]启用systemd
CONFIG_GENTOO_LINUX_INIT_SYSTEMD: Symbol: GENTOO_LINUX_INIT_SYSTEMD [=y] Type : boolean Prompt: systemd Location: -> Gentoo Linux -> Support for init systems, system and service managers Defined at distro/Kconfig:68 Depends on: GENTOO_LINUX [=y] && GENTOO_LINUX_UDEV [=y] Selects: AUTOFS4_FS [=y] && BLK_DEV_BSG [=y] && CGROUPS [=y] && EPOLL [=y] && FANOTIFY [=y] && FHANDLE [=y] && INOTIFY_USER [=y] && \ NET [=y] && NET_NS [=y] && PROC_FS [=y] && SIGNALFD [=y] && SYSFS [=y] && TIMERFD [=y] && ANON_INODES [=y] && BLOCK [=y] && EVENTFD [=y] && \ FSNOTIFY [=y] && INET [=y] && NLATTR [=y]嵌入式开发环境
串口转USB的驱动
Symbol: USB_SERIAL_PL2303 [=m] Type : tristate Prompt: USB Prolific 2303 Single Port Serial Driver Defined at drivers/usb/serial/Kconfig:480 Depends on: USB_SUPPORT [=y] && USB_SERIAL [=y] Location: -> Device Drivers -> USB support (USB_SUPPORT [=y]) -> USB Serial Converter support (USB_SERIAL [=y])