Jump to content

Allen Chen

Members
  • Posts

    1
  • Joined

  • Last visited

  1. i have some problem use Banana-pi m64 OS:BPI-M64 new image:2017-08-14-ubuntu-16.04-mate-desktop-beta-aarch64-bpi-m64-sd-emmc how to set hostapd.service autorun at startup??? 1. initial status pi@bpi-iot-ros-ai:~$ sudo systemctl status hostapd.service [sudo] password for pi: ● hostapd.service - LSB: Advanced IEEE 802.11 management daemon Loaded: loaded (/etc/init.d/hostapd; bad; vendor preset: enabled) Active: inactive (dead) Docs: man:systemd-sysv-generator(8) 2. start hostapd.service , it's "Active:active (running)" , WIFI AP is connectable pi@bpi-iot-ros-ai:~$ sudo systemctl start hostapd.service pi@bpi-iot-ros-ai:~$ sudo systemctl status hostapd.service ● hostapd.service - LSB: Advanced IEEE 802.11 management daemon Loaded: loaded (/etc/init.d/hostapd; bad; vendor preset: enabled) Active: active (running) since Thu 2018-01-25 22:23:21 CST; 8s ago Docs: man:systemd-sysv-generator(8) Process: 984 ExecStart=/etc/init.d/hostapd start (code=exited, status=0/SUCCESS) CGroup: /system.slice/hostapd.service └─989 /usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd.conf Jan 25 22:23:21 bpi-iot-ros-ai systemd[1]: Starting LSB: Advanced IEEE 802.11 management daemon... Jan 25 22:23:21 bpi-iot-ros-ai hostapd[984]: * Starting advanced IEEE 802.11 management hostapd Jan 25 22:23:21 bpi-iot-ros-ai hostapd[984]: ...done. Jan 25 22:23:21 bpi-iot-ros-ai systemd[1]: Started LSB: Advanced IEEE 802.11 management daemon. 3. stop hostapd.service , use the command「sudo hostapd -B /etc/hostapd/hostapd.conf」, WIFI AP is connectable too pi@bpi-iot-ros-ai:~$ sudo systemctl stop hostapd.service pi@bpi-iot-ros-ai:~$ sudo hostapd -B /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE 4. set hostapd.serice to enable, and reboot pi@bpi-iot-ros-ai:~$ sudo systemctl enable hostapd.service hostapd.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install enable hostapd insserv: warning: current start runlevel(s) (empty) of script `hostapd' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `hostapd' overrides LSB defaults (0 1 6). pi@bpi-iot-ros-ai:~$ sudo reboot Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(bpi-iot-ros-ai.local) at 22:31:56. 5. After reboot...WIFI AP no signal , check hostapd.service status have fail pi@bpi-iot-ros-ai:~$ sudo systemctl status hostapd.service [sudo] password for pi: ● hostapd.service - LSB: Advanced IEEE 802.11 management daemon Loaded: loaded (/etc/init.d/hostapd; bad; vendor preset: enabled) Active: active (exited) since Thu 2018-01-25 22:32:18 CST; 1min 18s ago Docs: man:systemd-sysv-generator(8) Process: 633 ExecStart=/etc/init.d/hostapd start (code=exited, status=0/SUCCESS) Jan 25 22:32:17 bpi-iot-ros-ai systemd[1]: Starting LSB: Advanced IEEE 802.11 management daemon... Jan 25 22:32:17 bpi-iot-ros-ai hostapd[633]: * Starting advanced IEEE 802.11 management hostapd Jan 25 22:32:18 bpi-iot-ros-ai hostapd[633]: ...fail! Jan 25 22:32:18 bpi-iot-ros-ai systemd[1]: Started LSB: Advanced IEEE 802.11 management daemon. 6. then restart hostapd.service, wifi ap can be connect pi@bpi-iot-ros-ai:~$ sudo systemctl restart hostapd.service pi@bpi-iot-ros-ai:~$ sudo systemctl status hostapd.service ● hostapd.service - LSB: Advanced IEEE 802.11 management daemon Loaded: loaded (/etc/init.d/hostapd; bad; vendor preset: enabled) Active: active (running) since Thu 2018-01-25 22:33:49 CST; 2s ago Docs: man:systemd-sysv-generator(8) Process: 1004 ExecStop=/etc/init.d/hostapd stop (code=exited, status=0/SUCCESS) Process: 1011 ExecStart=/etc/init.d/hostapd start (code=exited, status=0/SUCCESS) CGroup: /system.slice/hostapd.service └─1016 /usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd.conf Jan 25 22:33:49 bpi-iot-ros-ai systemd[1]: Starting LSB: Advanced IEEE 802.11 management daemon... Jan 25 22:33:49 bpi-iot-ros-ai hostapd[1011]: * Starting advanced IEEE 802.11 management hostapd Jan 25 22:33:49 bpi-iot-ros-ai hostapd[1011]: ...done. Jan 25 22:33:49 bpi-iot-ros-ai systemd[1]: Started LSB: Advanced IEEE 802.11 management daemon. pi@bpi-iot-ros-ai:~$
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines