USB Networking on the openmoko phone with Gentoo
Get the right module
Precompiled kernel
Grab the kernel and the modules from here http://build.shr-project.org/shr-unstable/images/om-gta02/, (Tested with modules-2.6.28-oe1+gitr119785+2bea5c68313577b214b872b0edc5968db0cf3b68-r3.2-om-gta02.tgz and uImage-2.6.28-oe1+gitr119785+2bea5c68313577b214b872b0edc5968db0cf3b68-r3.2-om-gta02.bin).
Get the files into place - replace with your right boot partition:
mv uImage-*.bin /mnt/gentoo/boot/uImage.bin mv modules*.tgz /mnt/gentoo/ tar -zxvf modules*.tgz
Now create modules.dep file:
chroot /mnt/gentoo ; depmod update-modules
Now tell the system to load g_ether:
echo g_ether >> /etc/modules.autoload.d/kernel-2.6
Local kernel
If you compiled your own kernel please fill this area
Configure the net file
ln -s /etc/init.d/net.lo /etc/init.d/net.usb0 echo "config_usb0=( \"192.168.0.202 netmask 255.255.255.0\" )" >> /etc/conf.d/net rc-update add net.usb0 default
Why not to put the default gateway as well? ~dememax
