Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dhcpcd faiure on installed 1.4rc2 _ FIXED IT NOW
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Sun Feb 16, 2003 11:03 pm    Post subject: Dhcpcd faiure on installed 1.4rc2 _ FIXED IT NOW Reply with quote

Well you might of heard most of it if you read my other thread here

So no ground been made tried every trick I could find in the forums and it still doest work including what appears to be the last chance one - acpi=off or pci=noacpi even tried:-
Code:
boot gentoo properly PLEASE

No sodding luck!
Still can ifconfig the card and surf away (this post is proof)

What else have I tried -

Enabling ACPI in Bios
Enabling ACPI in kernel build
Enabling APIC in kernel build cos its int livecd stuff
Enabling all sorts of crap I cant rememer in kernel
Tried 2.4.20 kernel
Tried 2.4.20 kernel with all the above entries and compilations available(well nearly)

It Still Dont Work!

What observations have I made -

Well this from livecd dmesg
Quote:
Linux version 2.4.20-xfs_pre2
snip
ACPI: have wakeup address 0x80002000
snip
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 5 for device 00:0f.0
eth0: RealTek RTL8139 Fast Ethernet at 0x88859000, 00:40:95:30:5e:dc, IRQ 5
eth0: Identified 8139 chip type 'RTL-8139B'
eth0: Setting half-duplex based on auto-negotiated partner ability 0000.


This from installed dmesg
Quote:
Linux version 2.4.20
snip
8139too Fast Ethernet driver 0.9.26
PCI: Found IRQ 5 for device 00:0f.0
eth0: RealTek RTL8139 Fast Ethernet at 0xe800, 00:40:95:30:5e:dc, IRQ 5
eth0: Identified 8139 chip type 'RTL-8139B'


The obvious thing is the IO reported by the nic driver
0x88859000 for the live cd
0xe800 for the installed
and "ACPI: have wakeup address 0x80002000" reported by the livecd and not by the installed

This from livecd ifconfig eth0
Quote:
eth0 Link encap:Ethernet HWaddr 00:40:95:30:5E:DC
inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::240:95ff:fe30:5edc/10 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1390 (1.3 Kb) TX bytes:3236 (3.1 Kb)
Interrupt:5 Base address:0x9000


This from installed ifconfig eth0
Quote:
eth0 Link encap:Ethernet HWaddr 00:40:95:30:5E:DC
inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:501 errors:0 dropped:0 overruns:0 frame:0
TX packets:505 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:607275 (593.0 Kb) TX bytes:57103 (55.7 Kb)
Interrupt:5 Base address:0xe800


Here again the difference in IO addressing for the nic

Cat /pro/pci holds exactly the same info for both
Quote:
Bus 0, device 15, function 0:
Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 16).
IRQ 5.
Master Capable. Latency=64. Min Gnt=32.Max Lat=64.
I/O at 0xe800 [0xe8ff].
Non-prefetchable 32 bit memory at 0xe8000000 [0xe80000ff].


Another oddity
8139too Fast Ethernet driver 0.9.26
Same version for both but lsmod shows different sizes for them
15k for livecd
13k for installed

And possibly lastly
When Dhcpcd is run from livecd it runs for a few seconds and then correctly gets info fro Dhcp server.

When Dhcpcd is run from installed it finishes right away i.e. no delay before command prompt returns and obviously fails.

This is the error I found in /var/log/everything

Quote:
Feb 16 21:41:27 [dhcpcd] dhcpStop: ioctl SIOCSIFADDR: Bad file descriptor
Feb 16 21:41:27 [dhcpcd] dhcpStop: ioctl SIOCSIFFLAGS: Bad file descriptor
Feb 16 21:41:27 [dhcpcd] terminating on signal 4
Feb 16 21:41:27 [dhcpcd] dhcpStop: ioctl SIOCSIFADDR: Bad file descriptor
Feb 16 21:41:27 [dhcpcd] dhcpStop: ioctl SIOCSIFFLAGS: Bad file descriptor
Feb 16 21:41:27 [dhcpcd] terminating on signal 4
Feb 16 21:41:27 [dhcpcd] dhcpStop: ioctl SIOCSIFADDR: Bad file descriptor
Feb 16 21:41:27 [dhcpcd] dhcpStop: ioctl SIOCSIFFLAGS: Bad file descriptor
Feb 16 21:41:27 [dhcpcd] terminating on signal 4
Feb 16 21:41:27 [dhcpcd] dhcpStop: ioctl SIOCSIFADDR: Bad file descriptor
Feb 16 21:41:27 [dhcpcd] dhcpStop: ioctl SIOCSIFFLAGS: Bad file descriptor
Feb 16 21:41:27 [dhcpcd] terminating on signal 4


This carries on indefinately, as I found out the other night when it took 45mins to close down stopping loads of these Dhcpcd processes that had started as a result.

I assume from tis that the dhcpcd process is unable to access the nic possibly because of the differences in the nics IO addressing but this does not seem to prevent asigning inet stuff manually and then everything going OK I hope you can follow this cos I'm not sure I can anymore :x

Any more ideas , guesses, good jokes, free beer whatever?


Last edited by TwoTired on Mon Feb 17, 2003 12:06 am; edited 1 time in total
Back to top
View user's profile Send private message
vBelial
n00b
n00b


Joined: 05 Feb 2003
Posts: 18

PostPosted: Sun Feb 16, 2003 11:22 pm    Post subject: Reply with quote

I had the same problem and was beginning to think it was the distribution. So i triewd the newest Mandrake 9.0 which is basically linux for dummies... I figured if anything that it would work! To my dismay it also does the same exact thing. No matter how you set it up, eth0 fails cant even ping my router. So check this out, i installed the earlier version of Mandrake prior to the newest to try it for the heck of it and it works perfectly. So I've concluded that there is an instability issue with the newer version of dhcpcd.exe included in the rc2 kernels of linux. Hopefully a newer kernel will be released that addresses this problem so I can use gentoo! :( Anyway good luck, but the only answer I think we have is to wait to see what fixes the newest kernel may have. BTW this is also a big issue on the Mandrake forums.
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Sun Feb 16, 2003 11:26 pm    Post subject: Reply with quote

vBelial wrote:
I had the same problem and was beginning to think it was the distribution. So i triewd the newest Mandrake 9.0 which is basically linux for dummies... I figured if anything that it would work! To my dismay it also does the same exact thing. No matter how you set it up, eth0 fails cant even ping my router. So check this out, i installed the earlier version of Mandrake prior to the newest to try it for the heck of it and it works perfectly. So I've concluded that there is an instability issue with the newer version of dhcpcd.exe included in the rc2 kernels of linux. Hopefully a newer kernel will be released that addresses this problem so I can use gentoo! :( Anyway good luck, but the only answer I think we have is to wait to see what fixes the newest kernel may have. BTW this is also a big issue on the Mandrake forums.


dhcpcd.exe? :roll:
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Sun Feb 16, 2003 11:33 pm    Post subject: Reply with quote

dhcpcd.exe? :roll:[/quote]

Yes I read this in my travels its an executable called by the Dhcpc deamon
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Mon Feb 17, 2003 12:04 am    Post subject: Reply with quote

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-Well-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I knew there was something the other night I wanted to compare but It had gone from memory until I did the last post

I wanted to see if there was any difference between the dhcpcd.exe from the livecd to the installed version - so I have

Livecd dhcpcd.exe size=34k date 16-02-2003
Installed dhcpcd.exe size=34.7k date 10-02-2003

Ho Ho Ho yes you've guessed it I copied the dhcpcd from livecd install to my permanent install an F**K me PINK its working.
Hows about F**king that have to find something else to whine about.

O that reminds me........................................................
Back to top
View user's profile Send private message
vBelial
n00b
n00b


Joined: 05 Feb 2003
Posts: 18

PostPosted: Tue Feb 18, 2003 11:15 am    Post subject: Reply with quote

Well, looks like i guessed it but dont know how or where to do the copy paste from one directory to another! Well I do but need to know what directories they are in on the cd and in the OS itself and the procedure you used.If you could please show me this i'll be on my way to running a nice new installation of gentoo myself. Iwas glad to help you (even though it was a wild guess sorta :) ) Now please help me! Thanks!
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Tue Feb 18, 2003 8:43 pm    Post subject: Reply with quote

Hi vBelial

Yes that post was a timely reminder

Well to get the livecd version I had to boot to the livecd then at the prompt i did the following
Code:
# cd /


Code:
# mkdir hdd

Code:
# mount /dev/hda3 /hdd

This mounted my installed root filesystem

Code:
# cp /sbin/dhcpcd /hdd

Code:
# umount /dev/hda3

This copied the needed dhcpcd.exe from the livecd system to my installed root filesystem
Next I rebooted back to my installed system then using file manger I renamed /sbin/dhcpcd to /sbin/olddhcpcd and the I copied the dhcpcd from my root directory to /sbin and that was it
Back to top
View user's profile Send private message
vBelial
n00b
n00b


Joined: 05 Feb 2003
Posts: 18

PostPosted: Wed Feb 19, 2003 2:53 am    Post subject: Reply with quote

Thanks! Greatly appreciated!

I'll let you know how i do
:P
Back to top
View user's profile Send private message
vBelial
n00b
n00b


Joined: 05 Feb 2003
Posts: 18

PostPosted: Thu Feb 20, 2003 7:38 pm    Post subject: Reply with quote

:(

I have done the above mentioned procedure to no avail!

Im lost!

it didnt work for me
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Thu Feb 20, 2003 9:00 pm    Post subject: Reply with quote

Hi

Is the size/date of /sbin/dhcpcd now 34k 16-02-03
Back to top
View user's profile Send private message
vBelial
n00b
n00b


Joined: 05 Feb 2003
Posts: 18

PostPosted: Thu Feb 20, 2003 9:15 pm    Post subject: Reply with quote

how can i check it?
im using the console cause I cant get my network up to emerge the latest of X!
Back to top
View user's profile Send private message
vBelial
n00b
n00b


Joined: 05 Feb 2003
Posts: 18

PostPosted: Thu Feb 20, 2003 9:19 pm    Post subject: Reply with quote

BTW i cant even get static configuration working with any of my nics! I remove one add another recompile the kernel load the modules, and I get nothing! You seem to have this figured out now maybe you could help me more?Also i dont think its the 8139too driver because that driver was working with the older version of mandrake on the same card. Oh also maybe you can show me how you have your /etc/conf.d/net written out. We have the same card and i want to use DHCP.
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Thu Feb 20, 2003 10:26 pm    Post subject: Reply with quote

vBelial wrote:
how can i check it?
im using the console cause I cant get my network up to emerge the latest of X!


Code:
# ls -l /sbin/dhcpcd
-rwxr-xr-x    1 root     root        34816 Feb 16 23:49 /sbin/dhcpcd



Code:
# ls -l /sbin/dhcpcdold
-rwxr-xr-x    1 root     root        35488 Feb 10 07:15 /sbin/dhcpcdold

The file sizes reported this way are different to KFilemanager

This is my /et/conf.d/net file
Quote:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
#iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0=""

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/192.168.0.1"
Back to top
View user's profile Send private message
vBelial
n00b
n00b


Joined: 05 Feb 2003
Posts: 18

PostPosted: Thu Feb 20, 2003 10:42 pm    Post subject: Reply with quote

my results are still the same.

Im gonna see if i can download a different vs. of the dhcpcd daemon and try to install it. I'll post again with my results.
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Thu Feb 20, 2003 11:29 pm    Post subject: Reply with quote

You said you cant even get static to work has it ever.
Did you remeber to mount /boot when cp new kernel
If you cant get static to work maybe you should concentrate on this first
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Thu Feb 20, 2003 11:37 pm    Post subject: Reply with quote

One other thing here is the part of .config for kernel make regarding the 8139
Quote:
CONFIG_8139TOO=m
CONFIG_8139TOO_PIO=y
# CONFIG_8139TOO_TUNE_TWISTER is not set
# CONFIG_8139TOO_8129 is not set
# CONFIG_8139_OLD_RX_RESET is not set


I think I set this before I could get my static eth0 config to work
Back to top
View user's profile Send private message
vBelial
n00b
n00b


Joined: 05 Feb 2003
Posts: 18

PostPosted: Thu Feb 20, 2003 11:57 pm    Post subject: Reply with quote

Your right. Static has never worked. Let me try what you gave me firts and I'll inform you later. Thanks!

PS How do i edit that kernel config i use the menuconfig?Also does that need to be done before compiling the kernel?
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Fri Feb 21, 2003 12:41 am    Post subject: Reply with quote

Yes just do the usual

Code:
# cd /usr/src/linux
# source /etc/profile
# make menuconfig
# make dep && make clean bzImage modules modules_install
# mount /boot
# mv /boot/bzImage /boot/bzImage.old
# cp /usr/src/linux/arch/i386/boot/bzImage /boot


And when you try the make menuconfig set the options for the 8139too module
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Fri Feb 21, 2003 11:32 am    Post subject: 8139too fails for me in kernel >2.4.19 Reply with quote

I have tried (I think) every gentoo patched 2.4.20 kernel source, and 8139too driver won't work for me with any of them. Same goes for devel kernel (last tried 2.5.61). I haven't tried 2.4.20 vanilla, I use XFS... so it looks like I'm not the only one who's had problems. I've also never gotten my onboard LAN (VIA 8235, supposedly supported by VIA-Rhine) drivers to work with any kernel, with the driver from the kernel src or with the VIA's driver, but that's another issue entirely... I'd like to not be stuck at 2.4.19 forever ;-)
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Fri Feb 21, 2003 8:45 pm    Post subject: Re: 8139too fails for me in kernel >2.4.19 Reply with quote

CheshireCat wrote:
I have tried (I think) every gentoo patched 2.4.20 kernel source, and 8139too driver won't work for me with any of them. Same goes for devel kernel (last tried 2.5.61). I haven't tried 2.4.20 vanilla, I use XFS... so it looks like I'm not the only one who's had problems. I've also never gotten my onboard LAN (VIA 8235, supposedly supported by VIA-Rhine) drivers to work with any kernel, with the driver from the kernel src or with the VIA's driver, but that's another issue entirely... I'd like to not be stuck at 2.4.19 forever ;-)


Are you talking about getting it to work with livecd or with an installed system after makeing kernel etc and rebooting
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sat Feb 22, 2003 12:03 am    Post subject: Reply with quote

An installed system. The 2.4.19 kernel I'm using is one I built myself, as are all the others I've tried that don't work :-/
Back to top
View user's profile Send private message
TwoTired
n00b
n00b


Joined: 08 Feb 2003
Posts: 42

PostPosted: Sat Feb 22, 2003 8:15 pm    Post subject: Reply with quote

CheshireCat wrote:
An installed system. The 2.4.19 kernel I'm using is one I built myself, as are all the others I've tried that don't work :-/


I take it that obviously 8139too worked for the livecd did you modprobe it ?
What level of success/not did you have with the installed kernel
what results with lsmod, ifconfig-a, dhcpcd eth0 etc, have you tried any of the many suggestions from the many posts on this subject.

Hows about running through it with us ?
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sun Feb 23, 2003 1:18 am    Post subject: Reply with quote

Hrm, perhaps my problem is not quite the same - the livecd with a 2.4.20 kernel also does not work for me. I noticed that everything after 2.4.19 has a different 8139too driver version, but threads I'm finding show that a lot of people don't have problems. I have tried changing the driver's experimental options, to no avail, but have not tried messing with boot parameters, kernel memory options, or building the driver into the kernel. When I try to DHCP with any of the kernels that have the newer 8139too driver, dhcpcd times out and I get this in dmesg:
Code:
NETDEV WATCHDOG: eth0: transmit timed out

I can try some of these other option, I guess I'll start with the boot stuff because it doesn't involve recompiling :-)
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Sun Feb 23, 2003 1:52 am    Post subject: boot-time stuff doesn't work Reply with quote

Tried acpi=no, pci=noacpi, and noapic, with no change. The thread I found where those helped dealt w/ somebody not detecting it, though. I'm going to try rebuilding with the 1GB user address space, as another thread suggested. Couldn't find the option in 2.5 kernel, trying with 2.4.20-gentoo-r1
Back to top
View user's profile Send private message
bloup
n00b
n00b


Joined: 24 Oct 2002
Posts: 11

PostPosted: Sun Feb 23, 2003 8:51 am    Post subject: irq problem Reply with quote

hi,
I have the same problem with netdev watchdog,
but I noticed that my bios sets IRQ 9 to my network device and if I do
Code:
cat /proc/interrupts
it tells that it has IRQ 22.
I also tried boot options noapic, pci=.. with no results, and changing in the kernel General Setup--> PCI access mode to BIOS has no effect : it still assigns IRQ 22 to my network card.
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
Goto page 1, 2  Next
Page 1 of 2

 
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