Hirdetés

Új hozzászólás Aktív témák

  • tvamos

    nagyúr

    Sziasztok!

    Remelem, jo forumba irok, es bocs a hosszu bejegyzesert!

    Azzal kuzdok, hogy egy BeagleBone Black-re wifi-t csiholjak.
    Ezt a leirast kovetem: [link]

    A baj, hogy ujrainditas utan nem mukodik, nincs IP.
    Ezt a hibat kapom:
    ~$ systemctl status wpa_supplicant.service
    × wpa_supplicant.service - WPA supplicant
    Loaded: loaded (/etc/systemd/system/wpa_supplicant.service; enabled; preset: enabled)
    Active: failed (Result: exit-code) since Tue 2023-12-12 22:48:34 UTC; 1min 10s ago
    Duration: 315ms
    Process: 809 ExecStart=/sbin/wpa_supplicant -u -s -c /etc/wpa_supplicant.conf -i wlan0 (code=exited, status=255/EXCEPTI>
    Main PID: 809 (code=exited, status=255/EXCEPTION)
    CPU: 68ms

    Dec 12 22:48:34 BeagleBone systemd[1]: wpa_supplicant.service: Scheduled restart job, restart counter is at 5.
    Dec 12 22:48:34 BeagleBone systemd[1]: Stopped wpa_supplicant.service - WPA supplicant.
    Dec 12 22:48:34 BeagleBone systemd[1]: wpa_supplicant.service: Start request repeated too quickly.
    Dec 12 22:48:34 BeagleBone systemd[1]: wpa_supplicant.service: Failed with result 'exit-code'.
    Dec 12 22:48:34 BeagleBone systemd[1]: Failed to start wpa_supplicant.service - WPA supplicant.
    ...skipping...

    Ha manualisan inditom a wpa_supplicant-ot, akkor minden jo lesz:
    sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0
    Es ez utan kapok IP-t, minden megy rendesen.
    Ugy ertem, egyaltalan semmi mast nem csinalok, csak ezt.
    (Ugy gondolom, mindent beallitottam, amit kellett.)

    Az /etc/systemd/system/wpa_supplicant.service:
    [Unit]
    Description=WPA supplicant
    Before=network.target
    After=dbus.service
    Wants=network.target
    IgnoreOnIsolate=true

    [Service]
    Type=dbus
    BusName=fi.w1.wpa_supplicant1
    #ExecStart=/sbin/wpa_supplicant -u -s -O "DIR=/run/wpa_supplicant GROUP=netdev"
    ExecStart=/sbin/wpa_supplicant -u -s -c /etc/wpa_supplicant.conf -i wlan0
    Restart=always
    ExecReload=/bin/kill -HUP $MAINPID
    Group=netdev
    RuntimeDirectory=wpa_supplicant
    RuntimeDirectoryMode=0750

    [Install]
    WantedBy=multi-user.target
    #Alias=dbus-fi.w1.wpa_supplicant1.service

    A rendszer:
    Distributor ID: Debian
    Description: Debian GNU/Linux 12 (bookworm)
    Release: 12
    Codename: bookworm

    Szerk: A masik gondom, hogy neha ugy gondolja, az USB dongle ne wlan0, hanem wlan1 legyen.

Új hozzászólás Aktív témák