User avatar
DougieLawson
Posts: 38774
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Wed Mar 28, 2018 8:06 pm

STrRedWolf wrote:
Sat Mar 24, 2018 6:17 pm
So what does happen if you do it per the Pi guide? Well, you get this lovely kernel panic, a copy of it is in your /var/log/kern.log file:

Code: Select all

Mar 24 11:50:26 redwolfden kernel: [    4.688803] random: crng init done
Mar 24 11:50:26 redwolfden kernel: [    4.712418] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Mar 24 11:50:26 redwolfden kernel: [    4.778354] Unable to handle kernel NULL pointer dereference at virtual address 000001f0
Mar 24 11:50:26 redwolfden kernel: [    4.783736] pgd = b7188000
Mar 24 11:50:26 redwolfden kernel: [    4.788513] [000001f0] *pgd=37234835, *pte=00000000, *ppte=00000000
Mar 24 11:50:26 redwolfden kernel: [    4.793774] Internal error: Oops: 17 [#1] SMP ARM
Mar 24 11:50:26 redwolfden kernel: [    4.798912] Modules linked in: bridge stp llc evdev joydev hid_logitech_hidpp spidev brcmfmac brcmutil hid_logitech_dj cfg80211 snd_bcm2835 snd_pcm rfkill snd_timer snd i2c_bcm2835 spi_bcm2835 bcm2835_gpiomem fixed uio_pdrv_genirq uio i2c_dev ip_tables x_tables ipv6
Mar 24 11:50:26 redwolfden kernel: [    4.810539] CPU: 2 PID: 339 Comm: brctl Not tainted 4.9.80-v7+ #1098
Mar 24 11:50:26 redwolfden kernel: [    4.816129] Hardware name: BCM2835
Mar 24 11:50:26 redwolfden kernel: [    4.821882] task: b91cc9c0 task.stack: b66cc000
Mar 24 11:50:26 redwolfden kernel: [    4.827720] PC is at phy_ethtool_gset+0x14/0x88
Mar 24 11:50:26 redwolfden kernel: [    4.827744] LR is at lan78xx_get_settings+0x3c/0xcc
Mar 24 11:50:26 redwolfden kernel: [    4.827771] pc : [<8054a3c8>]    lr : [<80550df8>]    psr: 60000013
Mar 24 11:50:26 redwolfden kernel: [    4.827771] sp : b66cdd18  ip : b66cdd28  fp : b66cdd24
Mar 24 11:50:26 redwolfden kernel: [    4.827779] r10: 00000080  r9 : b7071500  r8 : b66cdd54
Mar 24 11:50:26 redwolfden kernel: [    4.827785] r7 : 00000001  r6 : b9fb4000  r5 : b66cdd98  r4 : 00000000
Mar 24 11:50:26 redwolfden kernel: [    4.827795] r3 : 80550dbc  r2 : 00000001  r1 : b66cdd54  r0 : 00000000
Mar 24 11:50:26 redwolfden kernel: [    4.827809] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Mar 24 11:50:26 redwolfden kernel: [    4.827820] Control: 10c5383d  Table: 3718806a  DAC: 00000055
Mar 24 11:50:26 redwolfden kernel: [    4.827828] Process brctl (pid: 339, stack limit = 0xb66cc210)
Mar 24 11:50:26 redwolfden kernel: [    4.827834] Stack: (0xb66cdd18 to 0xb66ce000)
[snip]
That wasn't quite the same as my oops, but the effect was the same. My RPi3B+ would not boot with the bridge defined.

Code: Select all

Mar 28 18:17:05 hitchhiker kernel: [    7.026399] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Mar 28 18:17:05 hitchhiker kernel: [    7.047946] Unable to handle kernel NULL pointer dereference at virtual address 00000208
Mar 28 18:17:05 hitchhiker kernel: [    7.056558] pgd = b3fbc000
Mar 28 18:17:05 hitchhiker kernel: [    7.059427] [00000208] *pgd=33268835, *pte=00000000, *ppte=00000000
Mar 28 18:17:05 hitchhiker kernel: [    7.066148] Internal error: Oops: 17 [#1] SMP ARM
Mar 28 18:17:05 hitchhiker kernel: [    7.071116] Modules linked in: bridge stp llc spidev sg brcmfmac brcmutil cfg80211 rfkill snd_soc_googlevoicehat_codec snd_soc_googlevoicehat_soundcard snd_soc_bcm2835_i2s snd_soc_core snd_compress snd_pcm_dmaengine snd_pcm i2c_bcm2835 spi_bcm2835 snd_timer snd uio_pdrv_genirq fixed uio i2c_dev ip_tables x_tables ipv6
Mar 28 18:17:05 hitchhiker kernel: [    7.100730] CPU: 1 PID: 263 Comm: brctl Not tainted 4.14.30-v7+ #1102
Mar 28 18:17:05 hitchhiker kernel: [    7.107478] Hardware name: BCM2835
Mar 28 18:17:05 hitchhiker kernel: [    7.111061] task: b3114b00 task.stack: b3ee6000
Mar 28 18:17:05 hitchhiker kernel: [    7.115820] PC is at phy_ethtool_ksettings_get+0x1c/0x94
Mar 28 18:17:05 hitchhiker kernel: [    7.121404] LR is at lan78xx_get_link_ksettings+0x3c/0x4c
Mar 28 18:17:05 hitchhiker kernel: [    7.127065] pc : [<8057fe88>]    lr : [<8058784c>]    psr: 60000013
Mar 28 18:17:05 hitchhiker kernel: [    7.133604] sp : b3ee7d28  ip : b3ee7d40  fp : b3ee7d3c
Mar 28 18:17:05 hitchhiker kernel: [    7.139063] r10: 00000080  r9 : 00000001  r8 : 80d0a040
Mar 28 18:17:05 hitchhiker kernel: [    7.144510] r7 : 00000000  r6 : b3ee7da8  r5 : 00000000  r4 : b3ee7da8
Mar 28 18:17:05 hitchhiker kernel: [    7.151311] r3 : 80587810  r2 : 00000001  r1 : b3ee7da8  r0 : 00000000
Mar 28 18:17:05 hitchhiker kernel: [    7.158115] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Mar 28 18:17:05 hitchhiker kernel: [    7.165577] Control: 10c5383d  Table: 33fbc06a  DAC: 00000055
Mar 28 18:17:05 hitchhiker kernel: [    7.171592] Process brctl (pid: 263, stack limit = 0xb3ee6210)
Mar 28 18:17:05 hitchhiker kernel: [    7.177687] Stack: (0xb3ee7d28 to 0xb3ee8000)
Mar 28 18:17:05 hitchhiker kernel: [    7.182257] 7d20:                   b6250000 00000000 b3ee7d5c b3ee7d40 8058784c 8057fe78
Mar 28 18:17:05 hitchhiker kernel: [    7.190809] 7d40: b6250000 b3ee7da8 b6250000 b3cd9180 b3ee7da4 b3ee7d60 80680644 8058781c
Mar 28 18:17:05 hitchhiker kernel: [    7.199356] 7d60: b3ee7d8c b3ee7d70 802a3120 802a2348 b5076028 b5228908 b69f6e80 b67bbcd8
Mar 28 18:17:05 hitchhiker kernel: [    7.207917] 7d80: b3ee7dac b3ee7d90 802fc3bc 802a3048 b6250000 b3db7500 b3ee7e04 b3ee7da8
Mar 28 18:17:05 hitchhiker kernel: [    7.216469] 7da0: 7f5e673c 806805f4 00000000 00000000 00000000 00000000 00000000 00000000
Mar 28 18:17:05 hitchhiker kernel: [    7.225029] 7dc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Mar 28 18:17:05 hitchhiker kernel: [    7.233592] 7de0: 00000000 00000000 00000000 00000000 00000001 b5e5a400 b3ee7e2c b3ee7e08
Mar 28 18:17:05 hitchhiker kernel: [    7.242160] 7e00: 7f5e6f44 7f5e6724 80c74640 b3db7500 00000002 00000001 00000000 b3ee6000
Mar 28 18:17:05 hitchhiker kernel: [    7.250715] 7e20: b3ee7e4c b3ee7e30 7f5e7d98 7f5e6ddc b3ee7ea0 b3db7000 b3ee7ea0 7f5f50ac
Mar 28 18:17:05 hitchhiker kernel: [    7.259239] 7e40: b3ee7e64 b3ee7e50 7f5e875c 7f5e7d44 000089a2 b3db7000 b3ee7e94 b3ee7e68
Mar 28 18:17:05 hitchhiker kernel: [    7.267766] 7e60: 8069ab04 7f5e8700 80786a68 80784ac8 00400100 000089a2 000089a2 80c74640
Mar 28 18:17:05 hitchhiker kernel: [    7.276304] 7e80: b3ee7ea0 00000000 b3ee7eec b3ee7e98 8069af84 8069a818 00000002 b3ee7ea0
Mar 28 18:17:05 hitchhiker kernel: [    7.284853] 7ea0: 625f6868 67646972 00000065 00000000 00000002 00000000 000260bc 00000000
Mar 28 18:17:05 hitchhiker kernel: [    7.293386] 7ec0: 801cc04c 000089a2 fffffdfd 7eeeec14 80c74640 00000003 b3ee6000 00000080
Mar 28 18:17:05 hitchhiker kernel: [    7.301909] 7ee0: b3ee7f0c b3ee7ef0 80656afc 8069abcc 7eeeec14 b67f81e0 b3040600 000089a2
Mar 28 18:17:05 hitchhiker kernel: [    7.310434] 7f00: b3ee7f7c b3ee7f10 8029db68 806568ec 8028bae8 802ad5c0 00000020 00000000
Mar 28 18:17:05 hitchhiker kernel: [    7.318947] 7f20: 8028bbdc b3115044 b3115028 b3114b00 b3115044 80c91e04 00000000 00000080
Mar 28 18:17:05 hitchhiker kernel: [    7.336192] 7f40: b3ee7f64 00000000 b3115028 b3114b00 b3115044 b3040600 7eeeec14 b3040600
Mar 28 18:17:05 hitchhiker kernel: [    7.353193] 7f60: 000089a2 00000003 b3ee6000 00000080 b3ee7fa4 b3ee7f80 8029e2c4 8029dac8
Mar 28 18:17:05 hitchhiker kernel: [    7.370179] 7f80: 00000065 00025f08 00000002 7eeeeed8 00000036 80108224 00000000 b3ee7fa8
Mar 28 18:17:05 hitchhiker kernel: [    7.387171] 7fa0: 80108200 8029e28c 00025f08 00000002 00000003 000089a2 7eeeec14 00000065
Mar 28 18:17:05 hitchhiker kernel: [    7.404177] 7fc0: 00025f08 00000002 7eeeeed8 00000036 00000000 00000000 76f42000 00000000
Mar 28 18:17:05 hitchhiker kernel: [    7.421230] 7fe0: 76e70800 7eeeebfc 00013ae0 76e7080c 60000010 00000003 377fa861 377fac61
Mar 28 18:17:05 hitchhiker kernel: [    7.438351] [<8057fe88>] (phy_ethtool_ksettings_get) from [<8058784c>] (lan78xx_get_link_ksettings+0x3c/0x4c)
Mar 28 18:17:05 hitchhiker kernel: [    7.457410] [<8058784c>] (lan78xx_get_link_ksettings) from [<80680644>] (__ethtool_get_link_ksettings+0x5c/0xe0)
Mar 28 18:17:05 hitchhiker kernel: [    7.476940] [<80680644>] (__ethtool_get_link_ksettings) from [<7f5e673c>] (port_cost+0x24/0x80 [bridge])
Mar 28 18:17:05 hitchhiker kernel: [    7.495936] [<7f5e673c>] (port_cost [bridge]) from [<7f5e6f44>] (br_add_if+0x174/0x4c4 [bridge])
Mar 28 18:17:05 hitchhiker kernel: [    7.514332] [<7f5e6f44>] (br_add_if [bridge]) from [<7f5e7d98>] (add_del_if+0x60/0x7c [bridge])
Mar 28 18:17:05 hitchhiker kernel: [    7.532667] [<7f5e7d98>] (add_del_if [bridge]) from [<7f5e875c>] (br_dev_ioctl+0x68/0x6c [bridge])
Mar 28 18:17:05 hitchhiker kernel: [    7.551282] [<7f5e875c>] (br_dev_ioctl [bridge]) from [<8069ab04>] (dev_ifsioc+0x2f8/0x338)
Mar 28 18:17:05 hitchhiker kernel: [    7.569250] [<8069ab04>] (dev_ifsioc) from [<8069af84>] (dev_ioctl+0x3c4/0x8e8)
Mar 28 18:17:05 hitchhiker kernel: [    7.586196] [<8069af84>] (dev_ioctl) from [<80656afc>] (sock_ioctl+0x21c/0x2d8)
Mar 28 18:17:05 hitchhiker kernel: [    7.603120] [<80656afc>] (sock_ioctl) from [<8029db68>] (do_vfs_ioctl+0xac/0x7c4)
Mar 28 18:17:05 hitchhiker kernel: [    7.620322] [<8029db68>] (do_vfs_ioctl) from [<8029e2c4>] (SyS_ioctl+0x44/0x6c)
Mar 28 18:17:05 hitchhiker kernel: [    7.637411] [<8029e2c4>] (SyS_ioctl) from [<80108200>] (__sys_trace_return+0x0/0x10)
Mar 28 18:17:05 hitchhiker kernel: [    7.654973] Code: e52de004 e8bd4000 e1a04001 e1a05000 (e5901208)
Mar 28 18:17:05 hitchhiker kernel: [    7.671020] ---[ end trace d6609c53f13de0fe ]---
The offsets are different because I'm on the 4.14.30-v7+ #1102 kernel.

It's still a null pointer reference in the kernel driver module.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

johnnyJE
Posts: 21
Joined: Sat Sep 10, 2016 5:09 pm
Location: NYC

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Mar 29, 2018 2:28 am

Just to add to the chorus, I am also having trouble running a project installation that uses hostapd moving from a pi3b to pi3b+.

When I run hostapd manually after the pi3b+ is started up, it starts and runs without issue. This makes me think that my hostapd configuration is OK.

I just can't seem to get hostapd to work form boot. I see 'hostapd failed' in my journal after boot.

I think I have larger wifi problems, because wlan1 isn't connecting to anything. Wifi just doesn't seem to work from startup.

Is anyone having issue with wifi on startup?

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Mar 29, 2018 5:48 am

johnnyJE wrote:
Thu Mar 29, 2018 2:28 am
Is anyone having issue with wifi on startup?
I have WAP working at boot time with 3B+ & stretch. I was having problems originally, hence this post. From swapping from udhcpd to dnsmasq and all's fine. Read from the start of the post for details.

For me, the problem was introduced a year a go changing how the network software was booted. WAP stopped working on the apt-upgrade in March 2017 with 3B+jessie.

Hope this helps
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

robertcj01
Posts: 5
Joined: Wed Apr 04, 2018 9:44 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Wed Apr 04, 2018 10:57 pm

I am having issues with hostapd. Everything else appears to work. I can ping the 3B+ from itself, I can ping the router on my network, and also can ping the 3B+ from a computer. Also I can ping 8.8.8.8. But I can not see the 3B+ as a network available. This is the response when I run the command: sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf

Configuration file: /etc/hostapd/hostapd.conf
rfkill:WLAN soft blocked
Failed to create interface mon.wlan0: -95 (operation not supported)
wlan0: Could not connect to kernal driver
Using interface wlan0 with hwddr xx:xx:xx:xx:xx:xx and ssid"Mynetwork"
Failed to set beacon parameters
wlan0: Could not connect to kernal driver
Interface initialization failed
wlan0: interface state UNITIALIZED->DISABLED
wlan0: AP-DISABLED
wlan0: Unable to setup interface
wlan0: Interface state DISABLED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data:Interface wlan0 wasn't started
n180211:deinit ifname=wlan0 disabled_11b_rates=0

This is my hostapd.conf

interface=wlan0
#driver=nl80211
bridge=br0
ssid=Mynetwork
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=mypassword
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

Any help would be appreciated.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 05, 2018 10:57 am

Maybe you have problems with your RPi configuration. This may be your problem:
rfkill:WLAN soft blocked

Did you set the wifi country in your configuration?
Did you do an update/upgrade?

robertcj01
Posts: 5
Joined: Wed Apr 04, 2018 9:44 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 05, 2018 3:52 pm

<t>I have the wifi country set to the US. And I did update and upgrade several times until I stopped get upgrades. I rebooted between each upgrade. I don't know if this has anything to do with hostapd running or not but dhcpcd will also not run. When I check the status of it tells me the dhcpcd.service: Control process exited, code= exited status=6. Failed to start on all interfaces. I don't really need dhcpcd I think. I would really like for my router to set the ip address of the devices connecting to the AP but I am fine with the AP doing it. I don't know if this is what is stopping the dhcpcd but I did as STrRedWolf suggested and ran the command: sudo systemctl disable dhcpcd dhcpcd5.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 05, 2018 4:48 pm

Did you add anything to the /etc/network/interfaces file? As I recall, with the RPi3B+, you may need to. That will cause dhcpcd to fail.

Edit: Read the posts at the bottom of page 1 of this thread. STrRedWolf has the solution that works with a minor edit by me.

robertcj01
Posts: 5
Joined: Wed Apr 04, 2018 9:44 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 05, 2018 7:03 pm

Yes I made those changes to the /etc/network/interfaces file that you and STrRedWolf suggested.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 05, 2018 7:53 pm

Did you edit /etc/sysctl.conf and uncomment this?

Code: Select all

net.ipv4.ip_forward=1
Did you add a masquerade?

Code: Select all

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Edit: Which type of AP are you setting up? NAT or bridge?

robertcj01
Posts: 5
Joined: Wed Apr 04, 2018 9:44 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 05, 2018 9:17 pm

Ok this is where I am at now. I started over from scratch. I can now connect to the Pi but have no internet access. I did use the bridge setup since my pi will be connected to my network by ethernet cable. I can not ping anything. I followed the configuration link https://www.raspberrypi.org/documentati ... s-point.md from start to finish. Stopping at where it wants to make changes to the /etc/network/interfaces. I put in the changes that STrRedWolf said to make. During the setup I set the static address for wlan0 at 10.0.1.75/24. But that address will not ping. If I run the command ip a I see: 1: lo with inet 127.0.0.1/8. This address will ping but I don't have a clue where that came from. 2: eht0 with no address. 3: wlan0 with no address. and 4:br0 with no address.

Did you edit /etc/sysctl.conf and uncomment this? net.ipv4.ip_forward=1 Yes I did. And I also added the masquerade. So now I am at a lost. The only thing that I am not sure about is the changes to the interfaces file, I am not sure exactly what address should be I have used for the address. I used the same address as I used when setting up the static IP and for the gateway I used the address of my router on the LAN.

If I scroll over to where the up and down arrows are it says connection to dhcpcd lost. And if I select that area it tells me to Set wifi country on localisation tab of Raspberry Pi to enable wifi which I did before starting the configuration.

robertcj01
Posts: 5
Joined: Wed Apr 04, 2018 9:44 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Fri Apr 06, 2018 3:09 pm

This morning I have been doing some checking on my setup. I now have my laptop connected to the pi and can see everything on my network. And now I can get on the internet. I haven't changed anything from last night but it appears to be working. Thanks SurferTim and STrRedWolf for making this work on the 3B+.

One last question. Will the Pi have an ethernet address associated with it now?

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Fri Apr 06, 2018 8:17 pm

If your setup is correct, the network settings should be assigned to the bridge.

rcastley
Posts: 6
Joined: Tue May 31, 2016 9:13 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 12, 2018 1:43 pm

I too was seeing my B+ freeze once the bridge was enabled.

Found this thread - https://github.com/raspberrypi/linux/issues/2442

So, re-flashed SSD and then did the following:-

1) sudo apt-get update
2) sudo apt-get upgrade
3) sudo rpi-update

Rebooted!

Configured the Access Point as per https://github.com/raspberrypi/document ... s-point.md (section Using the Raspberry Pi as an access point to share an internet connection (bridge))

In hostapd.conf I made two changes:

hw_mode=a (not g)
channel=40

Speedtest on iPhone shows 3Mbps increase in download performance

Hope this helps?

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 12, 2018 1:48 pm

The only thing I did not try is the rpi-update. Is that what you claim made the difference?

That github doc has been incorporated into the RPi website online docs.

rcastley
Posts: 6
Joined: Tue May 31, 2016 9:13 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 12, 2018 2:14 pm

Prior to this I had just flashed the stock image from RPi downloads page. Each attempt at creating a bridge resulted in the Pi 3 B+ hanging/crashing at boot.

Whether the apt-get upgrade fixed it or whether the apt-get upgrade + rpi-update fixed it, I don't know. But it is working!! If I get a chance I will try the apt-get upgrade on its own and report back here.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 12, 2018 7:10 pm

It is rpi-update that fixed it. I just tried a new install, and the boot locks up without the rpi-update.

rcastley
Posts: 6
Joined: Tue May 31, 2016 9:13 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Thu Apr 12, 2018 10:58 pm

That's great! Thanks for confirming :-) Saved me the job! The other point to note is you can only run either in 2.4 or 5Ghz mode and not provide dual band. This is defined in hostapd.conf.

rcastley
Posts: 6
Joined: Tue May 31, 2016 9:13 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Fri Apr 20, 2018 4:50 pm

New image available that fixes the above issue

ChangeLog:

2018-04-18:
* Fixed race between wifi-country.service and raspberrypi-net-mods.service
* Linux kernel 4.14.34+
* Raspberry Pi firmware 5db8e4e1c63178e200d6fbea23ed4a9bf4656658

rcastley
Posts: 6
Joined: Tue May 31, 2016 9:13 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Fri Apr 27, 2018 6:59 pm

I can confirm that the latest release works perfectly!

crosland
Posts: 37
Joined: Mon Feb 09, 2015 6:13 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Sun Apr 29, 2018 7:37 pm

I have successfully setup many APs on 3 Bs running Jessie.

Now I am using a 3 B+ with Stretch (first time Ihave used Stretch) following the official AP setup guide, stopping before adding routing and masquerade.

The problem is that the AP is only available after about 1 in 2 reboots. When it works it seems rock solid so I am sure I have followed the setup correctly. This is a basic stand alone AP with no internet connection (not required), no bridging, etc.

When it fails, it doesn't show as an available network in any device. When that happens I can connect to the Pi desktop with VNC over the wired interface and, using the desktop icons, turn off WiFi then turn it on again. Then the AP appears and I can connect to it.

I suspect there is a race hazard somewhere during boot that leaves the AP in some bad state.

Can anyone help?

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Sun Apr 29, 2018 7:44 pm

I noticed on occasion my AP doesn't start. Try stopping the service for a few seconds, then restart.

Code: Select all

sudo service hostapd stop
Wait 5 seconds, then

Code: Select all

sudo service hostapd start
Does it show up after that?

crosland
Posts: 37
Joined: Mon Feb 09, 2015 6:13 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Mon Apr 30, 2018 6:54 pm

Yes! That works.

Then something clicked and I found your earlier reply about adding these into /etc/rc.local. I will try that too.

Thank you.

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Mon Apr 30, 2018 8:15 pm

Open /etc/rc.local with a text editor and add this before the "exit 0"

Code: Select all

service hostapd stop
sleep 5
service hostapd start

why_mutate_dup
Posts: 2
Joined: Fri May 25, 2018 10:46 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Wed May 30, 2018 11:48 pm

I had a RasPi3 B running Stretch working as a host ap bridging to a USB WiFi stick without any issues. I swapped the card in to a 3B+ and it worked without modification but I did take advantage of the new internal WiFi ac mode in my hostapd.conf:

Code: Select all

hw_mode=a
channel=48
ieee80211ac=1
Of course, this only comes up with a 20Mhz channel. To enable Very High Throughput mode, I tried a series of options but never got any useful debug info as to why things wouldn't start up.

Code: Select all

require_ht=1
require_vht=1
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42
I made some tweaks that weren't in any of the other online guides. To ensure the USB's MAC was always assigned wlan1 (sometimes on soft reboots, the kernel would try to assign the devices in opposite order) I added:
/etc/udev/rules.d/70-persistent-net.rules

Code: Select all

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="ab:cd:ef:12:23:34", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"
Change the address pairs to your MAC address, of course.

I also added a :
/etc/systemd/system/networking.service.d/reduce-timeout.conf

Code: Select all

[Service]
TimeoutStartSec=1
To make sure the AP came up quickly, even if the other network interface wasn't connected to anything else or waiting on a dhcp server. I also added a /etc/network/if-up.d/script.sh to change the green light blinking on the mmc0 interface to just come on solid for 30 seconds once the uplink was connected just to sanity check my headless access point boot (I use this as an access point in my RV so it goes up and down a lot). This reduce-timeout is super helpful when you just want an access point to come up quickly, even if there is no internet for it to connect you to.

Gold-member
Posts: 3
Joined: Sat Aug 19, 2017 1:50 pm

Re: SOLVED: Anyone done 3 B+ Stretch Wireless Access Point (WAP) successfully?

Wed Sep 26, 2018 8:34 pm

Is it possible to have network access with WLAN set up as well as the AP? It appears having wlan set up in

Code: Select all

/etc/wpa_supplicant/wpa_supplicant.conf
disables the AP.

With my dev setup I'm unable to connect network access via ethernet. I really hope this is possible on Stretch.
Maybe setting up WIFI with another method then then in

Code: Select all

/etc/wpa_supplicant/wpa_supplicant.conf
?
Or is there a way to delay the AP from boot in the

Code: Select all

/etc/rc.local
?

Return to “Networking and servers”