Gentoo Linux - Android USB Tether
Guide to enable android wifi or 3g USB tethering in gentoo linux
Configure Kernel
- cd /usr/src/linux
- make menuconfig
Needed kernel options:
- CONFIG_USB_NET_RNDIS_HOST=y
- CONFIG_USB_USBNET=y
- CONFIG_USB_NET_CDCETHER=y
Press '/' to search for 'rndis_host', 'usbnet', 'cdcether' to find the appropriate modules above.
Compile Kernel
- make
- make modules_install
- cp arch/[x86/x64]/boot/bzImage /boot/linux
Reboot machine if you compiled directly into the kernel.
Activate Tethering on Android
- Connect android device via USB
- Settings -> Wireless & networks -> Tethering -> USB tethering
Start USB Interface in linux
Get the Interface name. Usually usb0:
Start the interface and assign an IP address:
- ifconfig [Interface] up
- dhcpcd [Interface]
- ping www.bbc.co.uk