Because of using USB OTG mode, connecting beagleboard with keyboard and mouse. I cannot use usb0 as ethernet card. Therefore, I can use bluetooth dongle to simulate ethernet card.
1. modify the kernel configure, to allow usb bluetooth dongle works.
@@ -455,7 +455,7 @@ CONFIG_BT_HIDP=y
#
# Bluetooth device drivers
#
-# CONFIG_BT_HCIBTUSB is not set
+CONFIG_BT_HCIBTUSB=y
CONFIG_BT_HCIBTSDIO=y
# CONFIG_BT_HCIUART is not set
CONFIG_BT_HCIBCM203X=y
2. After boot, plug the dongle.
  determin if bluetooth device detected or not.
  > hcitool dev
  scan surrounding bluetooth devices
  > hcitool scan
If everything goes fine, we can try to connect bluetooth devices (e.g. mouse)
3. make your laptop a network access point (NAP)  a very good document you should check
 On your laptop with bluetooth RF on
   a. turn off /etc/init.d/bluetooth
      > /etc/init.d/bluetooth stop
   b. modprobe bnep
   c. pand -s -r NAP
 On beagleboard:
  a. finding the baddr of your laptop
   > hcitool scan
  b.connect to your laptop
   >pand -c XX:XX:XX:XX:XX:XX:XX
  c. Setup your beagleboard network
     > ifconfig bnep0 192.168.0.202
     > route add default gw 192.168.0.200
  d. On your laptop set, let your laptop becomes an NAT gateway:
     > ifconfig bnep0 192.168.0.200
     > echo 1 > /proc/sys/net/ipv4/ip_forward
     > iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
Enjoy the wireless network :-)
訂閱:
張貼留言 (Atom)
 
 
 
沒有留言:
張貼留言