schollz / raspberry-pi-turnkey

How to make a Raspberry Pi image that can be deployed anywhere and assigned to a WiFi network without SSH :ok_hand:
MIT License
832 stars 90 forks source link

No AP #16

Open Ernisius opened 6 years ago

Ernisius commented 6 years ago

I don't see the ConnecttoConnect AP. Is there anything I can do to test it is running

schollz commented 5 years ago

Can you plug in a monitor and see what happens?

asiudoisjdfo commented 5 years ago

Same thing here. Doesnt show up. Boots up fine, startup.py is running as well as wpa_supplicant, dhcpd and dnsmasq. No hostapd. Am trying to troubleshoot :)

gulliverrr commented 5 years ago

Are you on Jessie or Stretch Raspbian? I believe raspberry-pi-turnkey is not supported in Jessie (unfortunately). @schollz is there any plan to backport it for Jessie? If not could you add some basic guidelines to look into backporting it ourselves? I promise to document and report back if I make it. My problem is that Stretch seems too heavy for Pi Zero (Desktop needed too) and I'm thinking into going back to Jessie. Any guidance would be appreciated!

schollz commented 5 years ago

@gulliverrr No plans to backport, unfortunately. I will happily take a PR though

gulliverrr commented 5 years ago

There wasn't really much of a backport as installation is identical (didn't need the optional steps so I skipped those). There must be something different for wpa_supplicant in Jessie as behaviour around line 109:

    result = subprocess.check_output(['wpa_supplicant',
                                      "-Dnl80211",
                                      "-iwlan0",
                                      "-c/" + testconf,
                                      "-f", wpalog,
                                      "-B",
                                      "-P", wpapid])

is different. So by sucrifising the unnecessary reboot if the credentials are wrong, I managed to have it running with these modifications from line 117 downwards:

    checkwpa = True
    valid_psk = True
    checkwpa = False

#    while checkwpa:
#        with open(wpalog, 'r') as f:
#            content = f.read()
#            if success in content:
#                valid_psk = True
#                checkwpa = False
#            elif fail in content:
#                valid_psk = False
#                checkwpa = False
#            else:
#                continue

This is not PR-worthy. Just a dirty hack I leave here for anyone on Jessie. My Pi Zero seems to struggle (with Desktop) on Stretch so I revert back to good old Jessie.

Grandpa-G commented 4 years ago

I am having similar problem (I think). Everything boots fine, all services running. status.json says hostapd status but my wifi on pc can't find ap. BTW: I am on buster on rpi4. The wlan0 ip is 192.168.4.1 as it should be.

What should I look for?