Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting iwd to work with Gentoo.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
daguq
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2019
Posts: 80

PostPosted: Sun Mar 06, 2022 2:08 pm    Post subject: Getting iwd to work with Gentoo. Reply with quote

Hello, I am trying to get iwd to work gentoo and use it as a one-stop networking solution. I have emerged iwd from the repos with the useflags:,
Code:
+client
-cpu_flags_x86_aes
-cpu_flags_x86_ssse3
+crda
+monitor
-ofono
+standalone
-systemd
-wired


and also made changes to my Kernel configuration. However, when I am trying to start iwd, it's crashing. What might be the reason for this?
Output of
Code:
rc-status

Code:
Runlevel: default
 dbus                                                              [  started  ]
 net.eth0                                                          [  started  ]
 netmount                                                          [  stopped  ]
 nfsclient                                                         [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 rpc.pipefs                                                        [  started  ]
 rpcbind                                                           [  started  ]
 rpc.idmapd                                                        [  started  ]
 rpc.statd                                                         [  started  ]
Dynamic Runlevel: manual
 iwd                                                               [  crashed  ]
.
I don't want to start iwd via netirfc. I want to start iwd only when I need to connect to a WiFi network. Hence, I am trying to start it manually. I am running kernel version
Code:
5.16.12.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sun Mar 06, 2022 5:27 pm    Post subject: Reply with quote

Plz post
Code:

cat /etc/iwd/main.conf

and any relevant log info pertaining to iwd.
Why does it crash?
In my setup it starts normally.
Try rebuilding it with USE="-standalone"
_________________
:)
Back to top
View user's profile Send private message
daguq
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2019
Posts: 80

PostPosted: Sun Mar 06, 2022 5:44 pm    Post subject: Reply with quote

Here's
Code:
/etc/iwd/main.conf


Code:
[General]
EnableNetworkConfiguration=true
UseDefaultInterface=true
[Network]
NameResolvingService=resolvconf


I can't get any form of error messages showing why iwd has crashed. If I start iwctl, it says waiting for iwd to start, however when I try to restart iwd, this is what I get
Code:
netmount             | * Unmounting network filesystems ...                         [ ok ]
iwd                  | * Stopping iwd ...
iwd                  | * start-stop-daemon: no matching processes found             [ ok ]
iwd                  | * Starting iwd ...                                           [ ok ]
netmount             | * Mounting network filesystems ...          [ ok ]


And rc logfile shows no errors.

Code:
rpc.pipefs           | * Setting up RPC pipefs ...
iwd                  | * Starting iwd ...
 [ ok ]
 [ ok ]
net.eth0             | * Bringing up interface eth0
net.eth0             | *   Caching network module dependencies
net.eth0             | *   dhcp ...
net.eth0             | *     Running dhcpcd ...
net.eth0             |sending commands to dhcpcd process
 [ ok ]
net.eth0             | *     received address
 [ ok ]
netmount             | * Mounting network filesystems ...
rpcbind              | * Starting rpcbind ...
 [ ok ]
 [ ok ]
rpc.idmapd           | * Starting idmapd ...
rpc.statd            | * Starting NFS statd ...
 [ ok ]
 [ ok ]
nfsclient            | * Starting NFS sm-notify ...
 [ ok ]
local                | * Starting local ...


Edit:- Building with USE="-standalone" doesn't seem to help.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sun Mar 06, 2022 5:50 pm    Post subject: Reply with quote

Plz pastebin
Code:

/usr/libexec/iwd -d

Also set
EnableNetworkConfiguration
to false
_________________
:)
Back to top
View user's profile Send private message
daguq
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2019
Posts: 80

PostPosted: Sun Mar 06, 2022 6:09 pm    Post subject: Reply with quote

Here you go https://pastebin.com/raw/1Vurhchd. And setting EnableNetworkConfiguration to false doesn't seem to help either.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sun Mar 06, 2022 6:15 pm    Post subject: Reply with quote

Try with gentoo-kernel-bin
and if it works you need to work on your kernel config.
Also plz make sure any instance of wpa_supplicant is not running.
ALSO plz comment out all lines in main.conf
_________________
:)
Back to top
View user's profile Send private message
daguq
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2019
Posts: 80

PostPosted: Sun Mar 06, 2022 6:30 pm    Post subject: Reply with quote

I booted up a bin-kernel install and it didn't work, and commenting out the lines in main.conf doesn't work either. I set every option in the kernel as laid out in the Gentoo Wiki, but it still doesn't work for some weird reason. Should I open a bug ?

And also, no instance of wpa_supplicant is running.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sun Mar 06, 2022 7:04 pm    Post subject: Reply with quote

Anything in dmesg?
Does your wlan show in
ip a
?
_________________
:)


Last edited by alamahant on Sun Mar 06, 2022 7:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
daguq
Tux's lil' helper
Tux's lil' helper


Joined: 27 Oct 2019
Posts: 80

PostPosted: Sun Mar 06, 2022 7:46 pm    Post subject: Reply with quote

Nothing in dmesg, and yes, it does show up in ifconfig -a
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum