Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd problem [SOLVED] ... mitigated
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
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Tue Aug 29, 2006 5:33 pm    Post subject: dhcpcd problem [SOLVED] ... mitigated Reply with quote

When my net.eth0 script runs, it appears successful except that there is no ip address listed where it says it received one thru dhcp -- as there normally is. Sure enough a check w/ ifconfig shows that the interface is up but with no ip. Checking the logs in everything/current shows it is getting the correct info served to it -- furthermore it shows that the dhcpcd deamon is running over and over in an infinite loop.

I've been tweaking my kernel quite a bit trying to get things to work on my Windtunnel G4 with the 2.6.17.7 kernel. I thought I just about had things the way I wanted them when this happened. The last things I did was turn SMP on along with some of the Mac specific drivers. I don't see how this would bork dhcpcd. If I go back to an old kernel the network comes up just fine.

btw, what profile should I be using for this machine. I see its currently set at 2005.1 G4.


Last edited by rsala on Sun Sep 03, 2006 2:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Aug 29, 2006 6:40 pm    Post subject: Reply with quote

What are your CFLAGs? Which version of dhcpcd? You're the second person to report this, but for most people it's working fine. If you're building dhcpcd with -O3, please try with -O1 and see if that helps. Also, if you could try the latest version (unstable) that would be helpful too.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Tue Aug 29, 2006 7:55 pm    Post subject: Reply with quote

It works fine for me too, if I use one of my old kernels. When I went back and rebuilt the new one without smp, I was able to succesfully get an ip address, but dhcpcd still kept sending out requests. That means a lot of people could be having this problems and not even be aware of it.

Below is my entire make.conf.

Code:

CFLAGS="-O3 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="-kde -qt gtk gtk2 nptl nptlonly threads java php apache2 postgres mysql
pam-mysql imap libwww maildir sasl ssl gnome gtkhtml nsplugin"
VIDEO_CARDS="radeon fbdev"
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Aug 30, 2006 2:04 am    Post subject: Reply with quote

Can you try building with -O1 please?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Wed Aug 30, 2006 11:44 am    Post subject: Reply with quote

O1 didn't help. Even if it did, I'd be very curious as to why it behaves so differenly with the different kernels. In answer to your earlier question, I'm running dhcpcd-2.0.5-r1.
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Wed Aug 30, 2006 2:06 pm    Post subject: Reply with quote

For a reliable work-around (i.e., not using dhcpcd at all), see: https://forums.gentoo.org/viewtopic.php?t=480639#3457443.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Wed Aug 30, 2006 2:52 pm    Post subject: Reply with quote

Thank you. I may try it. Right now I'm more concerned as to the root of the problem, since in my case it seems to follow the kernel rather than the dhcpcd app.

I would also suggest that people try ...
Code:

tail /var/log/everything/current

As I said above, my dhcpcd seems to work ok for me with the 2.6.17.7 kernel w/out smp, but the log shows that the machine is continually broadcasting out dhcp requests.
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Wed Aug 30, 2006 3:22 pm    Post subject: Reply with quote

rsala wrote:
Thank you. I may try it.


Trying a dhcp client other than dhcpcd, such as dhclient, will at least let you diagnose whether the issue is really the kernel (which I consider very unlikely), or rather a client that misbehaves for different kernel versions and/or happens to send its syslog entries as kernel messages.

So:
Code:

#### from /etc/conf.d/net
modules=( "dhclient" )
config_eth0=( "dhcp" )
dhclient_eth0=("-q -cf /etc/dhcp/dhclient.conf")

with baselayout version =1.11.15-r3 or >=1.12.4-r4. (Most of the earlier 1.12* releases are broken with respect to various dhcp clients.)

Code:

# killall -9 dhcpcd
# killall -9 dhclient
# echo >> /etc/dhcp/dhclient.conf
# /etc/init.d/net.eth0 restart


If, after performing this, you find that the kernel is indeed sending out continuous DHCP requests, then look in your kernel configuration (make menuconfig) for automatic-at-boot-up kernel management of network interfaces. There are kernel settings for attempting to acquire a DHCP address at boot prior to even running INIT for the purpose of mounting an NFS root filesystem. Disable those.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Aug 30, 2006 7:44 pm    Post subject: Reply with quote

It's still most likely an issue with dhcpcd. The code is pretty nasty. When we upgraded to GCC-4.1, a number of stack related bugs were exposed causing lots of issues. This could be another one of those. Compiling with a lower optimization level hides some of the problems which is why I suggested it. Using the latest version also helps because Uberlord has been fixing the issues as we find them. If you're going to stick with dhcpcd, give the latest a try and see if that makes a difference.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Thu Aug 31, 2006 5:15 pm    Post subject: Reply with quote

I rebuild the latest version (dhcpcd-2.0.8-r3) with -O1 and the problem still remained. I am now using dhclient which seems to be working fine.

Thanks for the help!
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Fri Sep 01, 2006 8:14 pm    Post subject: Reply with quote

@rsala : Please edit the title of your first post and put [SOLVED] if you feel your issue is adequately resolved.
_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
sceptiq
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2004
Posts: 103

PostPosted: Wed Sep 06, 2006 8:18 am    Post subject: Reply with quote

i got problems with dhcpcd too, if i use it for my networkinterface my ibook starts with an la about 0.88(!!!!) and never comes under 0.44 and i can start 1 or 2 prozess (top or something) but then no other applikation will start and im not able to reboot the ibook safety!

EDIT: but i see if i kill dhcpcd the time i can execute apps only gets longe after 1 minute im in the same state...
Back to top
View user's profile Send private message
th0th696
Apprentice
Apprentice


Joined: 08 Dec 2004
Posts: 185

PostPosted: Mon Sep 11, 2006 3:13 pm    Post subject: Issue on the new 2006.1 CD as well? Reply with quote

Can't be sure, but I think the same thing is happening on the install 2006.1 CD. I have a post here:

https://forums.gentoo.org/viewtopic-t-496333.html

on the subject. From the above the solution seems to be using dhclient, I searched but no ebuild directly named dhclient, is it in another package?

EDIT: after reading this post. I was looking at top on my amd64 box. And dhcpcd was taking up a steady three percent of CPU. definitely time to change clients. Anyone know where I can find dhclient?
Back to top
View user's profile Send private message
timotheus25
Apprentice
Apprentice


Joined: 27 Dec 2005
Posts: 162
Location: *upstate* New York, USA

PostPosted: Mon Sep 11, 2006 5:28 pm    Post subject: Re: Issue on the new 2006.1 CD as well? Reply with quote

th0th696 wrote:
Anyone know where I can find dhclient?


Code:

emerge net-misc/dhcp

_________________
http://tstotts.net/linux/gentoopb.html
http://tstotts.net/linux/gentooinsp640m.html
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Wed Sep 13, 2006 6:41 am    Post subject: Reply with quote

Huh... interesting thread! It sounds very much related to the problem that I had a few weeks ago (and never followed up on): https://forums.gentoo.org/viewtopic-p-3535223.html.

I'll try out the other dhcp client then...
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Wed Sep 13, 2006 2:54 pm    Post subject: Reply with quote

Excellent, dhcp works again for my wireless! No more dhcpcd for me.... :-)

Thanks guys,
Jens
_________________
Jens Troeger
http://savage.light-speed.de/
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