Jump to content

Armbian Bleeding edge releases sans network-manager sur orangepi3b v2.1 SoC Rockchip RK3566


Go to solution Solved by Well,

Recommended Posts

Posted

I tried to set armbian without networkmanager or netplan, with just ifupdown, isc-dhcp-client and wpasupplicant, but the wlan0 interface doesn't work as expected. IP Link Set WLAN0 Up doesn't want to set the interface to UP. With Network-Manager, the interface works correctly from the start. Do you have a solution to do without Network Manager and Netplan? I would just like to configure /etc/networkinterfaces like on my laptop. Thank you in advance for your answers

Posted

I just reinstalled the native Debian Bookworm image  https://github.com/armbian/community/releases/download/24.8.0-trunk.399/Armbian_community_24.8.0-trunk.399_Orangepi3b_bookworm_edge_6.9.9_minimal.img.xz taken here: https://www.armbian.com/orangepi3b/ -->Bleeding edge releases with Armbian Linux v6.9 because this -->Server and IOT releases with Armbian Linux v6.1 does not boot on the orangepi3b v2.1
 

/etc/network/interfaces (as on my laptop)

auto lo

iface lo inet loopback

 

auto end0

allow-hotplug end0

iface end0 inet static

       address 192.168.100.103

       gateway 192.168.100.1

 

auto wlan0

allow-hotplug wlan0

iface wlan0 inet static
       address 192.168.100.102

       gateway 192.168.100.1

       wpa-conf   /etc/wpa_supplicant/wpa_supplicant.conf
 

 

The /etc/wpa_supplicant/wpa_supplicant.conf 

ctrl_interface=/var/run/wpa_supplicant

eapol_version=1

ap_scan=1

fast_reauth=1

update_config=1

 

network={

                  ssid="MyNetwork"

                  psk="MyPasswd"

}

 

 

Network-manager is not intalled

I installed ifupdown

i deleted netplan.io

 

/sbin/reboot

The network is working on end0 but the wlan0 interface is not working.

end0 is UP

wlan0 is DOWN

ifdown end0

ip -c a --> end0 DOWN, wlan0 DOWN but there is ip 192.168.100.102 displayed !

ip link set wlan0 up (or ip link set dev wlan0 up) --> does not work 

ifup wlan0 --> BROADCAST,MULTICAST,UP, LOWER_UP --> STATE UP

inet 192.168.100.102/24 brd 192.168.100.255 scope global wlan0

Ping 8.8.8.8 --> no ping

ping : unknow host

ifdown wlan0 --> ifdown: interface wlan0 not configured 

BUT ip -c a --> wlan0 --> state UP and IP is displayed !

 

To summarize, the network works normally with the end0 interface but not with WLAN0 without netplan.io For wlan0 with ip -c a --> the ip is always displayed whether the state is on UP or DOWN and the ping doesn't work! I tried to see if it was my card that didn't work by installing network-manager and everything works normally of course without /etc/network/interfaces!

 

systemctl restart networking.service --> does not restart!

systemctl status networking.service --> "failed to initialize control nterface /var/run/wpa_supplicant You may have another wpa_supplicant process already running or the file was left by an unclean termination of wpa_supplicant in which case you will need to manually remove this file before starting wpa_supplicant again."

 

apt remove --purge wpasupplicant

apt install wpasupplicant

/sbin/reboot

 

wlan0 is DOWN but ip 192.168.100.102 is displayed 

systemctl status networking.service 

networking.service - Raise network interfaces

Loaded: enable

Active: failed 

Process: ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)

 

 

 

 

 

 

 

Posted

In order to avoid duplicates and software overlays, I tried to go back to a native configuration with systemd-networkd and wpasupplicant so without ifupown and without /etc/network/interfaces. So I reinstalled an original bookworm 12 image whose link is mentioned in a previous message, rm /etc/netplan/*, deleted netplan.io and then configured two interfaces in /etc/systemd/network/10-static-end0.network and /etc/systemd/network/20-static-wlan0.network. In each file the following conf with the correct ip :

Match] Name=end0|wlan0

[Network] Address=192.168.100.103/24|192.168.100.102/24

Gateway=192.168.100.1

DNS=8.8.8.8

 

Recreated the conf of /etc/wpa_supplicant/wpa_supplicant.conf Then reboot the system. end0 works fine but again impossible to reactivate wlan0. Perhaps, I have forgotten a statement? A bit like wpa-conf... in /etc/network/interfaces Thank you in advance for your answers.

Posted
17 minutes ago, Well said:

reactivate wlan0

 

Just a tip.


Wireless chips (drivers) on those boards are often terrible quality ... Try same method on USB wireless to see if it behaves the same. It might be the driver.

Posted

I bought a tp-link usb key model TL-WN725N. It was a little too complicated to set up

https://static.tp-link.com/2018/201812/20181207/Installation Guide for Linux.pdf
So I dove back into the system. It works now. Here is the procedure:

 

Orangepi3b v2.1 Bleeding edge images with Armbian Linux v6.9 --> Debian 12 (Bookworm) Minimal / IOT at https://www.armbian.com/orangepi3b/ 

Basic installation (without network-manager and without ifupdown). Configuring interfaces with only systemd-network + wpasupplicant

 

Deletion of Netplan :

apt remove --purge netplan.io
rm -Rf /etc/netplan/*
rmdir /etc/netplan/
rm /run/systemd/network/10-netplan-all-eth0-interfaces.network
rm /etc/systemd/network/00-armbian-readme.network

------------------------------------------------

vim /etc/systemd/network/10-end0-static.network
[Match]
Name=end0
[Network]
Address=192.168.100.103/24
Gateway=192.168.100.1
DNS=8.8.8.8
vim /etc/systemd/network/15-end0-dhcp.network
[Match]
Name=end0
[Network]
DHCP=yes
Do the same with the wlan0 interface with another IP for the static part (of course)
vim /etc/systemd/network/20-wlan0-static.network
vim /etc/systemd/network/25-wlan0-dhcp.network

----------------------------------------------
vim /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant   GROUP=netdev
eapol_version=1
ap_scan=1
fast_reauth=1
update_config=1

network={
               ssid="ssid"
               psk="password"
               key_mgmt=WPA-PSK
}

--------------------------------------------------

The following conf is also important :
vim /etc/systemd/system/wpa_supplicant@wlan0.service
[Unit]
Description=WPA supplicant for %i
Wants=network.target
Before=network.target
After=sys-subsystem-net-devices-%i.device
[Service]
Type=simple
ExecStart=/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i %i
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target

--------------------------------------------------

systemctl daemon-reload

systemctl enable systemd-networkd

systemctl start systemd-networkd

systemctl enable wpa_supplicant@wlan0.service

systemctl start wpa_supplicant@wlan0.service

Check that everything works

systemctl status systemd-netword

systemctl status wpa_supplicant@wlan0.service

 

Normally it works!

ip -c a

ip link set end0|wlan0 up|down

 

I tried to modify the file /etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service to avoid recreating another service (the file /etc/systemd/system/wpa_supplicant@wlan0.service) but I didn't succeed.

It must be possible to make it even simpler. If you have any suggestions, I'm interested ;)


 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines