rpi2 as wireless router

Herminio Hernandez, Jr. herminio.hernandezjr at gmail.com
Wed Jul 20 21:17:02 UTC 2016


Here you go!

On Wed, Jul 20, 2016 at 1:56 PM, Adrian Chadd <adrian.chadd at gmail.com>
wrote:

> Hi,
>
> Please supply 'dmesg' and 'ifconfig -a' and maybe /etc/hostapd.conf
> (minus the encryption key, of course)
>
> Thanks!
>
>
> -a
>
>
> On 20 July 2016 at 11:05, Herminio Hernandez, Jr.
> <herminio.hernandezjr at gmail.com> wrote:
> > I ran tcpdump on both freebsd and my laptop running Debian. Freebsd sees
> > the DHCP Discover and then sends the DHCP Offer, but never receives the
> > DHCP Request. Debian sends the DHCP Discover, but never sees the DHCP
> > Offer, therefore never sends the DHCP Request.
> >
> > On Tue, Jul 19, 2016 at 11:30 PM, Peter Jeremy <peter at rulingia.com>
> wrote:
> >
> >> On 2016-Jul-19 13:26:19 -0700, "Herminio Hernandez, Jr." <
> >> herminio.hernandezjr at gmail.com> wrote:
> >> >I am trying to set freebsd as a wifi router on my rpi2. My Iphone can
> see
> >> >the ssid but it is failing to conect. FreeBSD can see the phone:
> >> >
> >> >
> >> >root at rpi2:~ # ifconfig wlan0 list sta
> >> >ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG
> >> >iphone-macaddress    1    6   1M 20.0    0     11  44944 EPS  AQEPHTR
> RSN
> >> >HTCAP WME
> >> >
> >> >I am running tcp dump and I see the dhcp requests and replies, but
> there
> >> is
> >> >no connection establishing. Is there anything I am missing.
> >>
> >> That means the iPhone is associated and you are seeing traffic from it
> >> but it seems it isn't seeing traffic from your AP.  What is the output
> >> from "ifconfig -a"?  How far through the DHCP negotiation does the
> >> iPhone get and what IP address are you sending in the DHCP response?
> >>
> >> Do you have a Unix-like host that you can run as a client so you can
> >> run tcpdump on it?
> >>
> >> --
> >> Peter Jeremy
> >>
> > _______________________________________________
> > freebsd-arm at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>
-------------- next part --------------
root at rpi2:/home/rican-linux # cat /etc/hostapd.conf 
interface=wlan0
debug=4
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=freebsd
wpa=1
wpa_passphrase=*********
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP

-------------- next part --------------
root at rpi2:/home/rican-linux # ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
	inet 127.0.0.1 netmask 0xff000000 
	groups: lo 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=80009<RXCSUM,VLAN_MTU,LINKSTATE>
	ether b8:27:eb:59:a3:ad
	inet 192.168.255.87 netmask 0xffffff00 broadcast 192.168.255.255 
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:0f:13:97:03:c5
	inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 
	groups: wlan 
	ssid freebsd channel 6 (2437 MHz 11g ht/20) bssid 00:0f:13:97:03:c5
	regdomain FCC country US authmode WPA privacy MIXED deftxkey 2
	TKIP 2:128-bit txpower 30 scanvalid 60 protmode CTS ht20
	-ampdutx ampdurx ampdulimit 64k ampdudensity 16 -stbc wme dtimperiod 1
	-dfs
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap>
	status: running
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33184
	groups: pflog 
root at rpi2:/home/rican-linux # 

-------------- next part --------------
root at rpi2:/home/rican-linux # dmesg 
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-ALPHA6 #0 r302303: Fri Jul  1 17:53:56 UTC 2016
    root at releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI2 arm
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
VT: init without driver.
sema_sysinit
CPU: Cortex A7 rev 5 (Cortex-A core)
 Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
 WB enabled LABT branch prediction disabled
LoUU:2 LoC:3 LoUIS:2 
Cache level 1: 
 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc
 32KB/32B 2-way instruction cache Read-Alloc
Cache level 2: 
 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 989851648 (943 MB)
avail memory = 957444096 (913 MB)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> mem 0x3f000000-0x3fffffff on ofwbus0
local_intc0: <BCM2836 Interrupt Controller> mem 0x40000000-0x400000ff on simplebus0
generic_timer0: <ARMv7 Generic Timer> on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 1000
intc0: <BCM2835 Interrupt Controller> mem 0xb200-0xb3ff on simplebus0
bcmwd0: <BCM2708/2835 Watchdog> mem 0x10001c-0x100027 on simplebus0
gpio0: <BCM2708/2835 GPIO controller> mem 0x200000-0x2000af on simplebus0
gpio0: read-only pins: 46,48-53.
gpio0: reserved pins: 48-53.
gpiobus0: <OFW GPIO bus> on gpio0
gpioled0: <GPIO led> at pin 35 on gpiobus0
gpioled1: <GPIO led> at pin 47 on gpiobus0
gpioc0: <GPIO controller> on gpio0
iichb0: <BCM2708/2835 BSC controller> mem 0x205000-0x20501f on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
iichb1: <BCM2708/2835 BSC controller> mem 0x804000-0x80401f on simplebus0
iicbus1: <OFW I2C bus> on iichb1
iic1: <I2C generic I/O> on iicbus1
spi0: <BCM2708/2835 SPI controller> mem 0x204000-0x20401f on simplebus0
spibus0: <OFW SPI bus> on spi0
bcm_dma0: <BCM2835 DMA Controller> mem 0x7000-0x7fff,0xe05000-0xe05fff on simplebus0
mbox0: <BCM2835 VideoCore Mailbox> mem 0xb880-0xb8bf on simplebus0
sdhci_bcm0: <Broadcom 2708 SDHCI controller> mem 0x300000-0x3000ff on simplebus0
mmc0: <MMC/SD bus> on sdhci_bcm0
uart0: <PrimeCell UART (PL011)> mem 0x201000-0x201fff on simplebus0
uart0: console (115200,n,8,1)
vchiq0: <BCM2835 VCHIQ> mem 0xb800-0xb84f on simplebus0
vchiq: local ver 8 (min 3), remote ver 8.
pcm0: <VCHIQ audio> on vchiq0
bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> mem 0x980000-0x99ffff on simplebus0
usbus0 on bcm283x_dwcotg0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
bcm2835_cpufreq0: <CPU Frequency Control> on cpu0
cpu1: <Open Firmware CPU> on cpulist0
cpu2: <Open Firmware CPU> on cpulist0
cpu3: <Open Firmware CPU> on cpulist0
fb0: <BCM2835 VT framebuffer driver> on ofwbus0
fbd0 on fb0
VT: initialize with new VT driver "fb".
fb0: 656x416(656x416 at 0,0) 24bpp
fb0: fbswap: 1, pitch 1968, base 0x3daac000, screen_size 818688
cryptosoft0: <software crypto>
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0
ugen0.1: <DWCOTG> at usbus0
uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
mmcsd0: 8GB <SDHC SA08G 2.3 SN 4532ACF9 MFG 02/2016 by 2 TM> at mmc0 41.6MHz/4bit/65535-block
bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF
Release APs
Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
WARNING: / was not properly dismounted
warning: no time-of-day clock registered, system time will not be set accurately
uhub0: 1 port with 1 removable, self powered
ugen0.2: <vendor 0x0424> at usbus0
uhub1: <vendor 0x0424 product 0x9514, class 9/0, rev 2.00/2.00, addr 2> on usbus0
uhub1: MTT enabled
uhub1: 5 ports with 4 removable, self powered
ugen0.3: <vendor 0x0424> at usbus0
smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0
smsc0: chip 0xec00, rev. 0002
miibus0: <MII bus> on smsc0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ue0: <USB Ethernet> on smsc0
ue0: Ethernet address: b8:27:eb:59:a3:ad
ugen0.4: <vendor 0x0bda> at usbus0
random: unblocking device.
smsc0: chip 0xec00, rev. 0002
ue0: link state changed to DOWN
ue0: link state changed to UP
urtwn0: <vendor 0x0bda product 0x8176, class 0/0, rev 2.00/2.00, addr 4> on usbus0
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
urtwn0: enabling 11n
wlan0: Ethernet address: 00:0f:13:97:03:c5
pflog0: promiscuous mode enabled
wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost



More information about the freebsd-arm mailing list