Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help w/ networking on ppc b&w and misc. error messages
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
madducks
n00b
n00b


Joined: 11 Jun 2006
Posts: 7

PostPosted: Mon Jun 12, 2006 12:12 am    Post subject: help w/ networking on ppc b&w and misc. error messages Reply with quote

Hello,

I have been struggling with a friendly compile of the 2.6.16-r7 kernel on a new installalation for some time. I have previously configured this computer for yellowdog (which I hate) and debian (not quite as fun as gentoo). Gentoo is my ideal choice but has posed some interesting problems.

For the record, I was able to get ethernet working without a hitch on the installer cd using the bmac driver and dhcp, but after I have compiled my kernel and installed it and booted into my system without the cd, though it says it is succesful at using dhcp to setup my network I find that I cannot ping anything. My resolv.conf file has been changed to reflect the correct gateway by dhcpcd, but ifconfig shows me the following for eth0 (lo looks normal)

eth0 Link encap:Ethernet HWaddr 00:50:E4:30:EC:25
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 METRIC:1
RX packets:10862 errors:2589 dropped:2586 overruns:0 frame:2589
TX packets:28448 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3581968 (3.4 Mb) TX bytes:4481214 (4.2 Mb)
Interrupt:42 Base address:0xe000

Furthermore, dmesg is filled with messages to the extent of:

phy registers:
1000 782d 7810 0001 01e1 41e1 0001 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 4000 0000 38c8 0010 0000 0002
0001 0000 0000 0000 0000 0000 0000 0000

I used pmac32_defconfig for default configuration and tweaked from there for correct hardware, but obviously I've made a mistake somewhere. The same happens with an untweaked pmac32_defconfig configuration file.

Also, the menuconfig for the kernel when I'm booted into my system appears 'off'. It's hard to explain, but the layout isn't clean like on the cd, and any forms where you enter data appear wrap around the screen more than once.

Can someone give me some hints as to what I'm doing wrong here?
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Mon Jun 12, 2006 1:28 am    Post subject: same problem with iBook g$ Reply with quote

I am having the same problem on an iBook G4 with the Sun Gem driver for my ethernet. It correctly obtains an IP address from DHCP on the installer CD, but when I try to use DHCP with the freshly installed system, it says it is successful, but it shows no address, and I cannot ping anyone. I have used the same configuration for quite a while and it has never given me problems before. I am able manually set everything, but would really like to use the DHCP that is provided, since I also use DHCP for several other places.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jun 12, 2006 2:55 am    Post subject: Reply with quote

tommoyer324:

Did you emerge a dhcp client?

madducks:

Sounds like there's a debugging option left on. Can you try a vanilla-2.6.17_rc kernel or go back to a 2.6.15 kernel instead? (I'd recommend 2.6.17_rc if you don't mind using vanilla kernels). The layout issues with menuconfig are related to unicode support. Upgrading to ncurses-5.5-r2 should fix that problem.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Mon Jun 12, 2006 9:47 am    Post subject: Reply with quote

I do have dhpcd emerged, at boot time, it shows it running, but where it should say something to the effect of eth0 recieved address <IP address>, it only shows "eth0 recieved address" with no address listed. I am going to try upgrading my kernel as I saw that 2.6.16-gento-r9 is marked stable and I am running 2.6.16-gentoo-r7 at the moment.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jun 12, 2006 1:11 pm    Post subject: Reply with quote

I doubt that will change anything but you're welcome to try. What is the result of requesting an IP address by hand? Can you check your system clock to ensure that the date is right?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Mon Jun 12, 2006 4:18 pm    Post subject: Reply with quote

When I set the IP manually eveything works fine. I booted my system this morning and everything is working fine so I have no clue what was wrong.
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Mon Jun 12, 2006 7:02 pm    Post subject: Reply with quote

I have examined the logs for my routers DHCP service, and it shows 20 pages of the same message about my iBook being assigned an IP address. However the iBook doesn't show that address when I type `ifconfig` it does however show that eth0 is up. All the information about eth0 looks normal (i.e. correct MAC address adn such)
The update to gentoo-sources-2.6.16-gentoo-r9 did nothing to fix the problem. For what it is worth, the version of dhcpcd is 2.0.6
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Thu Jun 15, 2006 9:13 pm    Post subject: dhcpcd and kernel config Reply with quote

Is there anything special that must be activated in the kernel config for dhcpcd to work correctly? I think my problem might lie in that there is something in my kernel config that needs turned on. I tried looking around but couldn't find anything.
Back to top
View user's profile Send private message
madducks
n00b
n00b


Joined: 11 Jun 2006
Posts: 7

PostPosted: Fri Jun 16, 2006 2:46 am    Post subject: Reply with quote

Thanks for the advice, but the problem still remains exactly as described after upgrading to vanilla sources for 2.6.17_rc. Same phy registers showing up in dmesg, and ethernet still showing errors and drops for RX packets on my ethernet device. I have tried compiling bmac as a module to make sure there were no problems inserting it, and indeed, I have no errors there, like the other poster I feel I must be selecting a wrong option or perhaps missing something in the kernel configuration, but I have no idea what.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jun 16, 2006 3:41 am    Post subject: Reply with quote

madducks:
I took a look at the source. It looks like that's debugging code that's not marked as such. I'll prepare a patch and send it upstream, but either way, it's not your problem.

Both of you:
I am not aware of anything that needs to be enabled to use DHCP, but to be sure, you can use "make pmac32_defconfig" to ensure that you have a sane default configuration (just "make defconfig" if you're using a 2.6.15 kernel).

For what it's worth, dhcpcd-2.0.6 is working fine here. Do you have any of the use flags set?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Fri Jun 16, 2006 1:23 pm    Post subject: Reply with quote

I tried both dhcpcd 2.0.5 and 2.0.6 with the same results. I went through and checked my kernel, and the networking options are identical to the pmac32_defconfig options. I have no clue what is causing this.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jun 21, 2006 7:00 pm    Post subject: Reply with quote

tommoyer324:
Can you please paste the result of emerge dhcpcd -pv? If you compiled with USE="debug" it won't set the address.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
tommoyer324
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 104
Location: USA

PostPosted: Thu Jun 22, 2006 10:42 pm    Post subject: Reply with quote

I am not using the debug use flag. I checked that already. It seems that there might be a problem with dhcpcd-2.0.5 and greater on ppc. I am currently talking to the developer to see if the issue can be resolved.
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