Difference between revisions of "Common kernel configs"
From thelinuxwiki
				
								
				
				
																
				
				
								
				 (→Android USB Tethering)  | 
			|||
| Line 96: | Line 96: | ||
  CONFIG_CRYPTO_SHA512=y  |   CONFIG_CRYPTO_SHA512=y  | ||
| + | |||
| + | == USB to Serial==  | ||
| + | |||
| + | |||
| + | 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])                                                                                     │    | ||
| + |   │ (1)     -> USB Serial Converter support (USB_SERIAL [=y])  | ||
| + | |||
| + | |||
| + | |||
| + | |||
[[category:kernel]]  | [[category:kernel]]  | ||
Revision as of 16:42, 14 August 2013
Contents | 
Android USB Tethering
below info modified from [1]
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 run against your kernel config file to verify settings
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
USB to Serial
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]) │ │ (1) -> USB Serial Converter support (USB_SERIAL [=y])