Common kernel configs

From thelinuxwiki
Revision as of 16:16, 30 April 2013 by Nighthawk (Talk | contribs)

Jump to: navigation, search


Contents

Android USB Tethering

modified from [Link:http://wiki.gentoo.org/wiki/Android_USB_Tethering]

Required menuconfig prompts/settings according to gentoo wiki and my own configs:

Device Drivers --->
  [*] Network device support --->
      USB Network Adapters --->
           <M> Multi-purpose USB Networking Framework
              -M-   CDC Ethernet support (smart devices such as cable modems)
              <M> CDC EEM support
              <M> Host for RNDIS and ActiveSync devices (EXPERIMENTAL)
              <M> Simple USB Network Links (CDC Ethernet subset)
                 [*] Embedded ARM Linux links

note ***

The prompts above frequently change from one kernel version to the next. The above settings were noted as of kernel version 3.8.3-gentoo-r1.

corresponding .config parameters spawned from above settings:

CONFIG_NETDEVICES=y
CONFIG_USB_USBNET=m
CONFIG_USB_NET_CDCETHER=m
CONFIG_USB_NET_CDC_EEM=m
CONFIG_USB_NET_RNDIS_HOST=m
CONFIG_USB_NET_CDC_SUBSET=m
CONFIG_USB_ARMLINUX=y

check config command

cat .config | grep -E "NETDEVICES|USB_USBNET|USB_NET_CDC_SUBSET|USB_NET_CDCETHER|USB_NET_CDC_EEM|NET_RNDIS_HOST|USB_ARMLINUX"

iptables

-*- Networking support  --->
      Networking options  --->
       [*] Network packet filtering framework (Netfilter)  --->
          Core Netfilter Configuration  --->
               [*] Netfilter connection tracking support
               -*- Netfilter Xtables support (required for ip_tables)
               [*]   "conntrack" connection tracking match support  
               [*]   "state" match support
          IP: Netfilter Configuration  --->
               [*] IPv4 connection tracking support (required for NAT)
               [*] IP tables support (required for filtering/masq/NAT)
               [*]   Packet filtering


input devices

uinput -> Device Drivers

 -> Input device support 
   -> Generic input layer 
      -> Miscellaneous devices
          <M> User level driver support


cameras and video 4 linux

Device Drivers >
 --- Multimedia support --->
          <*> Video For Linux
          [*]   Cameras/video grabbers support
          [*]   V4L platform devices  --->
          [*]   Media USB Adapters  --->


crypto / dev mapper stuff

Device Drivers —>

Multi-device support (RAID and LVM)  —>
[*] Multiple devices driver support (RAID and LVM)
< >   RAID support
<*>  Device mapper support
<*>  Crypt target support

File Systems —>

<*>  The Extended 4 (ext4) filesystem

Cryptographic API —>

<*>  SHA256 digest algorithm
<*>  AES cipher algorithms

.config

CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_AUTODETECT=y
CONFIG_BLK_DEV_DM=y
CONFIG_DM_CRYPT=y
CONFIG_DM_SNAPSHOT=y
CONFIG_BLK_DEV_CRYPTOLOOP=y
CONFIG_CRYPTO=y
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_AES_X86_64=m
CONFIG_CRYPTO_SHA256=m
CONFIG_CRYPTO_SHA512=y