Hello there,
I am using the
PocketBeagle platform with
this USB dongle.
What I am trying to do is to create a wifi access point with DHCP. To do that, I am following
this tutorial.
The problem is I am not able to see the wifi network. I dont know why doesnt it work. Here I place my files configs:
DMESG:
Code:
debian@beaglebone:~$ dmesg | grep usb
...
[ 2.277022] usbcore: registered new interface driver usbhid
[ 2.277068] usbhid: USB HID core driver
[ 2.596779] usb 2-1: new high-speed USB device number 2 using musb-hdrc
[ 2.726203] usb 2-1: New USB device found, idVendor=0bda, idProduct=8178
[ 2.726228] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.726239] usb 2-1: Product: 802.11n WLAN Adapter
[ 2.726249] usb 2-1: Manufacturer: Realtek
[ 2.726258] usb 2-1: SerialNumber: 00e04c000001
[ 26.511403] usb0: HOST MAC 60:64:05:f4:5a:9a
[ 26.513979] usb0: MAC 60:64:05:f4:5a:9b
[ 26.523749] usb1: HOST MAC 60:64:05:f4:5a:9d
[ 26.532973] usb1: MAC 60:64:05:f4:5a:9e
[ 27.411053] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
[ 44.526194] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 44.594130] usbcore: registered new interface driver rtl8192cu
/etc/hostapd/hostapd.conf:
Code:
interface=wlan0
#driver=rtl8192cu
driver=rtl871xdrv
ssid=PocketBeagle
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=mamatataija
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ieee80211n=1 # 802.11n support
wmm_enabled=1 # QoS support
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
/etc/network/interfaces:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
##connman: ethX static config
#connmanctl services
#Using the appropriate ethernet service, tell connman to setup a static IP address for that service:
#sudo connmanctl config <service> --ipv4 manual <ip_addr> <netmask> <gateway> --nameservers <dns_server>
##connman: WiFi
#
#connmanctl
#connmanctl> tether wifi off
#connmanctl> enable wifi
#connmanctl> scan wifi
#connmanctl> services
#connmanctl> agent on
#connmanctl> connect wifi_*_managed_psk
#connmanctl> quit
# Ethernet/RNDIS gadget (g_ether)
# Used by: /opt/scripts/boot/autoconfigure_usb0.sh
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.252
network 192.168.7.0
gateway 192.168.7.1
iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0
up iptables-restore < /etc/iptables.ipv4.nat
/etc/udhcpd.conf:
Code:
# Sample udhcpd configuration file (/etc/udhcpd.conf)
# The start and end of the IP lease block
start 192.168.42.2 #default: 192.168.0.20
end 192.168.42.20 #default: 192.168.0.254
# The interface that udhcpd will use
interface wlan0 #default: eth0
# The maximim number of leases (includes addressesd reserved
# by OFFER's, DECLINE's, and ARP conficts
#max_leases 254 #default: 254
# If remaining is true (default), udhcpd will store the time
# remaining for each lease in the udhcpd leases file. This is
# for embedded systems that cannot keep time between reboots.
# If you set remaining to no, the absolute time that the lease
# expires at will be stored in the dhcpd.leases file.
remaining yes #default: yes
# The time period at which udhcpd will write out a dhcpd.leases
# file. If this is 0, udhcpd will never automatically write a
# lease file. (specified in seconds)
#auto_time 7200 #default: 7200 (2 hours)
# The amount of time that an IP will be reserved (leased) for if a
# DHCP decline message is received (seconds).
#decline_time 3600 #default: 3600 (1 hour)
# The amount of time that an IP will be reserved (leased) for if an
# ARP conflct occurs. (seconds
#conflict_time 3600 #default: 3600 (1 hour)
# How long an offered address is reserved (leased) in seconds
#offer_time 60 #default: 60 (1 minute)
# If a lease to be given is below this value, the full lease time is
# instead used (seconds).
#min_lease 60 #defult: 60
# The location of the leases file
#lease_file /var/lib/misc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases
# The location of the pid file
#pidfile /var/run/udhcpd.pid #default: /var/run/udhcpd.pid
# Everytime udhcpd writes a leases file, the below script will be called.
# Useful for writing the lease file to flash every few hours.
#notify_file #default: (no script)
#notify_file dumpleases # <--- useful for debugging
# The following are bootp specific options, setable by udhcpd.
#siaddr 192.168.0.22 #default: 0.0.0.0
#sname zorak #default: (none)
#boot_file /var/nfs_root #default: (none)
# The remainer of options are DHCP options and can be specifed with the
# keyword 'opt' or 'option'. If an option can take multiple items, such
# as the dns option, they can be listed on the same line, or multiple
# lines. The only option with a default is 'lease'.
#Examles
opt dns 8.8.8.8 4.2.2.2
opt subnet 255.255.255.0
opt router 192.168.42.1
#opt wins 192.168.10.10
#option dns 129.219.13.81 # appened to above DNS servers for a total of 3
#option domain local
opt lease 864000 # 10 days of seconds
# Currently supported options, for more info, see options.c
#opt subnet
#opt timezone
#opt router
#opt timesrv
#opt namesrv
#opt dns
#opt logsrv
#opt cookiesrv
#opt lprsrv
#opt bootsize
#opt domain
#opt swapsrv
#opt rootpath
#opt ipttl
#opt mtu
#opt broadcast
#opt wins
#opt lease
#opt ntpsrv
#opt tftp
#opt bootfile
#opt wpad
# Static leases map
#static_lease 00:60:08:11:CE:4E 192.168.0.54
#static_lease 00:60:08:11:CE:3E 192.168.0.44
/etc/default/udhcpd:
Code:
# Comment the following line to enable
#DHCPD_ENABLED="no"
# Options to pass to busybox' udhcpd.
#
# -S Log to syslog
# -f run in foreground
DHCPD_OPTS="-S"
ifconfig:
Code:
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 322 bytes 24098 (23.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 322 bytes 24098 (23.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.7.2 netmask 255.255.255.252 broadcast 192.168.7.3
inet6 fe80::6264:5ff:fef4:5a9b prefixlen 64 scopeid 0x20<link>
ether 60:64:05:f4:5a:9b txqueuelen 1000 (Ethernet)
RX packets 2014 bytes 220538 (215.3 KiB)
RX errors 0 dropped 5 overruns 0 frame 0
TX packets 1185 bytes 271803 (265.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
usb1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.6.2 netmask 255.255.255.252 broadcast 192.168.6.3
ether 60:64:05:f4:5a:9e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.1.82 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::e2b9:4dff:fe19:3e07 prefixlen 64 scopeid 0x20<link>
ether e0:b9:4d:19:3e:07 txqueuelen 1000 (Ethernet)
RX packets 8031 bytes 803363 (784.5 KiB)
RX errors 0 dropped 252 overruns 0 frame 0
TX packets 3458 bytes 367340 (358.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I would really appreciate all help regarding this.