Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to use networkmanager on a powerbook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
aleray
n00b
n00b


Joined: 24 Oct 2007
Posts: 24

PostPosted: Sat Apr 26, 2008 5:00 pm    Post subject: unable to use networkmanager on a powerbook Reply with quote

Hey,

Having started with my network administrator's default configuration on my powerbook G4 1.5 GHZ, I decided to install by myself several softwares including gnome-light, hal etc. and especially a WIFI support. I followed the different tutorials, especially that one https://forums.gentoo.org/viewtopic-t-409194-postdays-0-postorder-asc-start-0.html and I succesfully installed the drivers and recompiled the kernel (2.6.22).
As I'm a bit lazy (and a newbie as well) and didn't want to use the manual config of wpa_supplicant so I emerged networkmanager (and disabled init scripts for net.eth). Now I can see the access points but it refuses to connect when I enter the password (but It worked with an open acces point).

Any Idea?

thanks you!
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Sat Apr 26, 2008 5:51 pm    Post subject: Reply with quote

When it prompts you for the password to the access point, you need to select the right type of encryption. The only thing I can think of (if you are seeing the access point, it doesn't seem like a driver or NetworkManager issue at first glance) is that you are choosing the wrong encryption type. Can you confirm you have chosen the right encryption? Also, are you sure you have enabled the necessary encryption options in your kernel?
_________________
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Back to top
View user's profile Send private message
aleray
n00b
n00b


Joined: 24 Oct 2007
Posts: 24

PostPosted: Sat Apr 26, 2008 6:43 pm    Post subject: Reply with quote

Hey,

thank you for your reply. I'm pretty sure I chose the right encryption (I tried several access point: wpa wep and open) but I'm not sure at all about my kernel config. What are the options to enable?

cheers

[EDIT] My kernel config is similar to the one of the tutotial https://forums.gentoo.org/viewtopic-t-409194.html
It must be something else !
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Apr 27, 2008 2:15 pm    Post subject: Reply with quote

aleray:
Please use a newer kernel. The instructions you linked are old. Here's some newer ones:
https://forums.gentoo.org/viewtopic-t-547687.html
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Sun Apr 27, 2008 3:07 pm    Post subject: Reply with quote

Well...


Check:

Code:
Networking --> Wireless


Under that, I have the following things enabled (not sure if they are all needed):

Code:
Generic IEEE 802.11 Networking Stack
IEEE 802.11 WEP encryption (802.1x)
IEEE 802.11i CCMP support
IEEE 802.11i TKIP support
Software MAC add-on to the IEEE 802.11 networking stack

_________________
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Back to top
View user's profile Send private message
aleray
n00b
n00b


Joined: 24 Oct 2007
Posts: 24

PostPosted: Sun Apr 27, 2008 5:12 pm    Post subject: Reply with quote

RazielFMX wrote:
Well...


Check:

Code:
Networking --> Wireless


Under that, I have the following things enabled (not sure if they are all needed):

Code:
Generic IEEE 802.11 Networking Stack
IEEE 802.11 WEP encryption (802.1x)
IEEE 802.11i CCMP support
IEEE 802.11i TKIP support
Software MAC add-on to the IEEE 802.11 networking stack


I enabled all those features.

I'm a complete newbie and I was wondering if there was a way to "import" my previous kernel config into the new one (linux-2.6.22-gentoo-r5 to linux-2.6.24-gentoo-r3) I don't feel able to make a complete kernel config from scratch by myself.
Back to top
View user's profile Send private message
aleray
n00b
n00b


Joined: 24 Oct 2007
Posts: 24

PostPosted: Sun Apr 27, 2008 5:44 pm    Post subject: Reply with quote

Finally it works!

Please don't blame me but I didn't configure correctly the things.
WIFI was mapped on eth3 (instead of eth1 on my conf). I created the symbolic link and changed /etc/conf.d/net.
The next step is to reinstall Networkmanager as I decided to go back to try the wifi manually. I hope it'll work and solve my initial problem with secure acces points.

I'll let you know. Thanks guys.
Back to top
View user's profile Send private message
aleray
n00b
n00b


Joined: 24 Oct 2007
Posts: 24

PostPosted: Sun Apr 27, 2008 7:01 pm    Post subject: Reply with quote

I was too optimistic... I reinstalled Network Manager, following instructions from : http://gentoo-wiki.com/NetworkManager and I still can't connect to protected networks. It is definitively somthing with NM. Any idea?

Thxs
Back to top
View user's profile Send private message
aleray
n00b
n00b


Joined: 24 Oct 2007
Posts: 24

PostPosted: Mon Apr 28, 2008 12:26 am    Post subject: Reply with quote

Here is the debug log :

Code:

[root@pbook: ~]#  NetworkManager --no-daemon                                                                                                                                                         [80]
NetworkManager: <info>  starting...
NetworkManager: <debug> [1209342107.079943] GentooReadConfig(): Enabling DHCP for device eth3.
NetworkManager: <debug> [1209342107.080467] GentooReadConfig(): Found hostname.
NetworkManager: nm_ip4_config_set_hostname: assertion `config != NULL' failed
NetworkManager: <info>  eth3: Device is fully-supported using driver 'bcm43xx'.
NetworkManager: <info>  nm_device_init(): waiting for device's worker thread to start
NetworkManager: <info>  nm_device_init(): device's worker thread started, continuing.
NetworkManager: <info>  Now managing wireless (802.11) device 'eth3'.
NetworkManager: <info>  Deactivating device eth3.
NetworkManager: <debug> [1209342107.389678] GentooReadConfig(): Enabling DHCP for device eth2.
NetworkManager: <debug> [1209342107.390122] GentooReadConfig(): Found hostname.
NetworkManager: nm_ip4_config_set_hostname: assertion `config != NULL' failed
NetworkManager: <info>  eth2: Device is fully-supported using driver 'gem'.
NetworkManager: <info>  nm_device_init(): waiting for device's worker thread to start
NetworkManager: <info>  nm_device_init(): device's worker thread started, continuing.
NetworkManager: <info>  Now managing wired Ethernet (802.3) device 'eth2'.
NetworkManager: <info>  Deactivating device eth2.
NetworkManager: <info>  Updating allowed wireless network lists.
NetworkManager: <info>  SWITCH: no current connection, found better connection 'eth3'.
NetworkManager: <info>  Will activate connection 'eth3/hello_world'.
NetworkManager: <info>  Device eth3 activation scheduled...
NetworkManager: <info>  Activation (eth3) started...
NetworkManager: <info>  Activation (eth3) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <info>  Activation (eth3) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <info>  Activation (eth3) Stage 2 of 5 (Device Configure) scheduled...
NetworkManager: <info>  Activation (eth3) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <info>  Activation (eth3) Stage 2 of 5 (Device Configure) starting...
NetworkManager: <info>  Activation (eth3/wireless): access point 'hello_world' is encrypted, but NO valid key exists.  New key needed.
NetworkManager: <info>  Activation (eth3) New wireless user key requested for network 'hello_world'.
NetworkManager: <info>  Activation (eth3) Stage 2 of 5 (Device Configure) complete.
NetworkManager: <info>  Activation (eth3) New wireless user key for network 'hello_world' received.
NetworkManager: <info>  Activation (eth3) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <info>  Activation (eth3) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <info>  Activation (eth3) Stage 2 of 5 (Device Configure) scheduled...
NetworkManager: <info>  Activation (eth3) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <info>  Activation (eth3) Stage 2 of 5 (Device Configure) starting...
NetworkManager: <info>  Activation (eth3/wireless): access point 'hello_world' is encrypted, and a key exists.  No new key needed.
NetworkManager: <info>  SUP: sending command 'INTERFACE_ADD eth3                wext    /var/run/wpa_supplicant '
NetworkManager: <info>  SUP: response was 'OK'
NetworkManager: <info>  SUP: sending command 'AP_SCAN 1'
NetworkManager: <info>  SUP: response was 'OK'
NetworkManager: <info>  SUP: sending command 'ADD_NETWORK'
NetworkManager: <info>  SUP: response was '0'
NetworkManager: <info>  SUP: sending command 'SET_NETWORK 0 ssid 68656c6c6f5f776f726c64'
NetworkManager: <info>  SUP: response was 'OK'
NetworkManager: <info>  SUP: sending command 'SET_NETWORK 0 proto WPA'
NetworkManager: <info>  SUP: response was 'OK'
NetworkManager: <info>  SUP: sending command 'SET_NETWORK 0 key_mgmt WPA-PSK'
NetworkManager: <info>  SUP: response was 'OK'
NetworkManager: <info>  SUP: sending command 'SET_NETWORK 0 psk <key>'
NetworkManager: <info>  SUP: response was 'OK'
NetworkManager: <info>  SUP: sending command 'ENABLE_NETWORK 0'
NetworkManager: <info>  SUP: response was 'OK'
NetworkManager: <info>  Activation (eth3) Stage 2 of 5 (Device Configure) complete.
Trying to associate with 00:19:5b:b2:15:15 (SSID='hello_world' freq=2437 MHz)
Associated with 00:19:5b:b2:15:15
NetworkManager: <info>  Old device 'eth3' activating, won't change.
Authentication with 00:19:5b:b2:15:15 timed out.
ioctl[SIOCSIWMLME]: Operation not supported
Trying to associate with 00:19:5b:b2:15:15 (SSID='hello_world' freq=2437 MHz)
NetworkManager: <info>  Old device 'eth3' activating, won't change.
NetworkManager: <info>  Activation (eth3/wireless): association took too long (>20s), failing activation.
NetworkManager: <info>  Activation (eth3) failure scheduled...
NetworkManager: <info>  Activation (eth3) failed for access point (hello_world)
NetworkManager: <info>  Activation (eth3) failed.
NetworkManager: <info>  Deactivating device eth3.
CTRL-EVENT-TERMINATING - signal 15 received
sendmsg(CTRL_IFACE monitor): No such file or directory
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
sendmsg(CTRL_IFACE monitor): No such file or directory


I don't get it !
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Mon Apr 28, 2008 3:54 am    Post subject: Reply with quote

aleray wrote:
RazielFMX wrote:
Well...


Check:

Code:
Networking --> Wireless


Under that, I have the following things enabled (not sure if they are all needed):

Code:
Generic IEEE 802.11 Networking Stack
IEEE 802.11 WEP encryption (802.1x)
IEEE 802.11i CCMP support
IEEE 802.11i TKIP support
Software MAC add-on to the IEEE 802.11 networking stack


I enabled all those features.

I'm a complete newbie and I was wondering if there was a way to "import" my previous kernel config into the new one (linux-2.6.22-gentoo-r5 to linux-2.6.24-gentoo-r3) I don't feel able to make a complete kernel config from scratch by myself.


There are two ways. Both start with copying /usr/src/linux-${oldKernel}/.config to /usr/src/linux-${newKernel}

The first way is to run "make oldconfig", but it makes some choices for you. Personally, I then run a "make menuconfig" and look through everything real quick, especially those items that have a (NEW) next to them.

Don't forget to repoint your /usr/src/linux symlink (or set the symlink use flag in your /etc/portage/package.use for gentoo-sources, which is what I do,, which automatically does this when you emerge new sources).
_________________
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Back to top
View user's profile Send private message
aleray
n00b
n00b


Joined: 24 Oct 2007
Posts: 24

PostPosted: Mon Apr 28, 2008 9:43 pm    Post subject: Reply with quote

Thank you, I didn't find this trick on gentoo docpages, could be usefull to add it on the Gentoo kernel upgrade guide http://www.gentoo.org/doc/en/kernel-upgrade.xml
I'll try the kernel update after a little backup next week, and see if it resolves my NetworkManager problem.

;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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