edison-fw / meta-intel-edison

Here is the meta-intel-edison that builds, tries to stay up to date. Master is based on Yocto Poky Gatesgarth LTS 5.10.yy vanilla kernels. It builds a 32bit kernel (Gatesgarth branch 64bit) with ACPI enabled and corresponding rootfs. Telegram group: https://t.me/IntelEdison Web-site:
https://edison-fw.github.io/meta-intel-edison/
MIT License
60 stars 37 forks source link

ap-mode-toggle error message in dmesg #33

Closed alext-mkrs closed 5 years ago

alext-mkrs commented 6 years ago

There's a suspicious message in the dmesg noticed by @htot. Needs to be investigated and probably fixed.

ap-mode-toggle[2438]: Usage: /usr/bin/ap-mode-toggle start|stop|toggle
ap-mode-toggle[2438]:   start  - Start AP mode
ap-mode-toggle[2438]:   stop   - AP mode is stopped and we return to station mode
ap-mode-toggle[2438]:   toggle - Start or stop AP mode depending on previous mode.
ap-mode-toggle[2438]: This script is only usable in Edison where the Broadcom
ap-mode-toggle[2438]: wifi driver firmware needs to be told which mode to operate.
htot commented 6 years ago

Yes, I see. The script loads a kernel module with a param. And it uses connman to tether. So this is either not necessary anymore or needs to be done different (hostapd, networkd). We need to find the users of this script, maybe we can drop it entirely.

htot commented 6 years ago

Looking at ap-mode-toggle, to allow tethering it needs brctl (from bridge-utils). And bridge-utils needs ethernet bridge support from the kernel.

sjpeng commented 5 years ago

@htot is possible using ap mode in Edison? I got "Failed to initialize interface" message when I using the "hostapd -c /etc/hostapd/hostapd.conf" command.

htot commented 5 years ago

@sjpeng I have an updated ap-mode-toggle in my branch (https://github.com/htot/meta-intel-edison/commits/sumo64), and plan to push thud based branch tonight. If you want this sumo64, you need to be quick as I will be deleting this branch when I push thud.

The fixed version relies on connman tethering working and removing hostapd completely. If you are impatient, you can already turn on tethering from the console using connman tether wifi ...

htot commented 5 years ago

@alext-mkrs For me this one can be closed. The script has been fixed, and connman provides AP mode nicely.

alext-mkrs commented 5 years ago

+1 from me for closing