Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No Internet Access
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
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Thu Jan 10, 2008 10:12 pm    Post subject: No Internet Access Reply with quote

Network access and xorg-x11

The xfce4-4.4.2 package (the underlying xorg-x11 version is 7.2) was successfully emerged on a PowerBase (upgraded with a G3 processor). The graphics card is a stock ATI Mach64 GT card with 2 MB memory.

If the following command "ping -c 3 10.0.0.2" was executed in an xfce4 terminal (as su) the entire screen was filled into 3 vertical blank strips. (10.0.0.2 is the IP address of an ADSL modem cum router.) The computer crashed. :(

Further investigations showed that the PCI network card (based on a Realtek 8139 chip) has different settings under a virtual console & an xfce4-terminal.

Under a virtual console, mii-tool returned

eth0: negotiated 100baseTx-FD, link ok
registers for MII PHY 32:
1100 782d 0000 0000 01e1 45e1 0001 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
product info: vendor 00:00:00, model 0 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

Under an xfce terminal window, mii-tool returned

eth0: 10 Mbit, full duplex, link ok
registers for MII PHY 32:
01e1 ffff 0000 0000 01e1 0000 0001 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
product info: vendor 00:00:00, model 0 rev 0
basic mode: collision test, 10 Mbit, full duplex
basic status: autonegotiation complete, remote fault, link ok
capabilities: 100baseT4 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD

mii-tool can't change status of the NIC. I could access the Internet using a virtual console but not under xfce4.

I had researched the Internet regarding this issue; so far there were several reports involving PowerMacs with ATI Mach 64 cards operating under Debian Etch. Unfortunately, matters had not been resolved.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426433
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=415543

Any ideas to solve this problem?
Back to top
View user's profile Send private message
jrtayloriv
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2004
Posts: 149
Location: N. Idaho

PostPosted: Fri Jan 11, 2008 4:38 pm    Post subject: Reply with quote

Can you post the output from ifconfig -al and route?
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Fri Jan 11, 2008 9:28 pm    Post subject: Reply with quote

Under the virtual console & xfce4 terminal, the output of config -a are the same

eth0 Link encap:Ethernet HWaddr 00:11:95:29:D8:42
inet addr:10.0.0.10 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2480 (2.4 Kb) TX bytes:1368 (1.3 Kb)
Interrupt:28 Base address:0x400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


The output of route under the virtual console:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         10.0.0.2        0.0.0.0         UG    0      0        0 eth0

No results for route using xfce terminal; the screen went blank. There was a loss of video signal since the monitor's indicator light started blinking. Attempting to get a virtual console was not possible so it was time for a reboot.


Last edited by markpmlim on Tue Jan 15, 2008 1:04 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: Mon Jan 14, 2008 10:35 pm    Post subject: Reply with quote

If you use the framebuffer driver instead of the mach64 specific drivers, does it work then?
Does the kernel dmesg print anything interesting when this happens?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Tue Jan 15, 2008 12:54 pm    Post subject: Reply with quote

Sorry, I can't seemed to get xorg to use the framebuffer driver.

Should I paste the contents of the Xorg.0.log and /etc/X11/xorg.conf files here or provide links to them?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jan 16, 2008 2:20 am    Post subject: Reply with quote

Try the open firmware framebuffer and the fbdev driver. And sure, paste in the xorg.conf
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Wed Jan 16, 2008 12:11 pm    Post subject: Reply with quote

Open Firmware frame buffer device support was enabled for linux-2.6.22-gentoo-r5.

The xorg.conf file was generated with an X -configure command and edited so that xorg can run on the PowerBase. I had removed most of the unwanted lines. Given below are the relevant sections:


Code:
Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Monitor Vendor"
   ModelName    "Monitor Model"
        Option          "DPMS"
        HorizSync       30-71
        VertRefresh     50-160
EndSection

Section "Device"
   Identifier  "Card0"
   Driver      "ati"
#   Driver      "fbdev"
   BusID       "PCI:0:17:0"
   Option      "UseFBDev"      "true"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   DefaultDepth    16
   SubSection "Display"
      Viewport   0 0
      Depth     16
                Modes     "800x600" "640x480"
   EndSubSection
EndSection


To use the Open Frame Buffer driver, I comment out the ati driver line and remove the # from the beginning of the fbdev driver line. Xorg crashed when a startx was issued.
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Mon Feb 18, 2008 12:34 pm    Post subject: Further Observations Reply with quote

Ubuntu Edgy Eft (6.10) was also installed on the PowerBase on a separate partition. Both distributions (Ubuntu & Gentoo) shared the same swap partition.

I have no problem with internet access when running in the Ubuntu environment. Somehow, the packages were configured properly during installation.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 19, 2008 4:00 am    Post subject: Reply with quote

Well, you're probably not using the same kernel version, how about if you compile a Gentoo kernel of the same revision as the Ubuntu one?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Tue Feb 19, 2008 10:31 pm    Post subject: Reply with quote

The installed kernel on Ubuntu Edgy Eft was vmlinux-2.6.17-10-powerpc. There is no gentoo source with this revision according to the portage repository on the PowerBase.

linux-2.6.17.10.tar.bz2 was downloaded (directly from kernel.org) and compiled under Gentoo's environment. Executing mii-tool in a terminal window produced the same output as noted in the first post dated Jan 11, 2008. Still no internet access in xorg.

In fact, I had installed Gentoo 2006.1 on the PowerBase prior to the current revision which was late 2007. No internet access with the 2006.1 distribution in xorg.
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Sun Feb 24, 2008 2:49 am    Post subject: More tests Reply with quote

The pre-built binary linux-image-2.6.17-12-powerpc was downloaded from a ubuntu mirror and installed. The computer was re-booted using the new kernel and ramdisk with BootX as the bootloader. There were no problems with access to the Internet.

For further investigations, the source code of 2.6.17-12 was downloaded and installed. The .config file was modified heavily (with the aim of reducing the compilation time), compiled and finally installed. The PowerBase was then re-booted with this custom kernel.

When a ping -c 3 10.0.0.2 was issued within a terminal window, there was a loss in video signal. At least, the computer didn't hang and it was possible to get into a virtual console by typing Alt+control-F2.

From the above, I suspect it is possible to build a customised kernel that will not conflict with xorg-x11 in the Ubuntu and Gentoo environments.


Last edited by markpmlim on Sun Feb 24, 2008 7:40 am; edited 1 time in total
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Sun Feb 24, 2008 7:39 am    Post subject: Customised Kernel Reply with quote

OK, I managed to build a customised kernel for the ubuntu environment that allowed Internet access under xorg-x11.

The next step is to build a customised kernel for Gentoo that allows network access.
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Sun Feb 24, 2008 1:07 pm    Post subject: Internet Access now available Reply with quote

Finally, I could access the Internet from within a Gentoo environment running xorg-x11 . :D

The .config file from the ubuntu source code (2.6.17.12) was copied to the top level directory of the unpacked generic source code (2.6.17.10). A make oldconfig was issued; some minor editing of the .config file was necessary. The generic kernel was then compiled and installed; the PowerBase was re-booted with this new kernel.

Now, the question is to identify which kernel module(s) is disabling/preventing network access. Hopefuly this may help resolve the matter raised in this topic. Any suggestions?
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Mon Feb 25, 2008 10:05 pm    Post subject: Re: More tests Reply with quote

markpmlim wrote:
When a ping -c 3 10.0.0.2 was issued within a terminal window, there was a loss in video signal.

Two PCI register windows (or DMA ring buffers, but the earlier problems with mii-tool seem to indicate registers) overlapping, so that when one driver writes to the registers of its device, it instead writes to the other device's ?
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Tue Feb 26, 2008 7:17 pm    Post subject: Reply with quote

The PowerBase has a video riser card at right angle to the motherboard. There are 3 PCI slots on the video riser card. So the video card and the other PCI cards share the same bus.

In the quest of building a slimmed-down kernel, one or more of the options under networking is likely to have been disabled while editing the .config file. I suspect the option(s) is/are under filtering:

Code:
Networking --->
  Networking options --->
    [*]  Networking packet filtering framework --->


Which of these might be the culprit(s)?


Last edited by markpmlim on Mon Apr 07, 2008 6:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
markpmlim
n00b
n00b


Joined: 10 Jan 2008
Posts: 13

PostPosted: Mon Apr 07, 2008 6:48 pm    Post subject: Further Tests Reply with quote

After a number of compilations and re-boots, the options under filtering are not likely to be the cause of the conflict problem between the video card & nic.

To summarise: different .config files applied to the same kernel source code can lead to very different /var/log/dmesg's generated, even when the kernel options selected are the identical.

The stock kernel shipped with Debian 4r3 won't work properly with my PowerBase. A custom kernel must be built to avoid the conflict problem stated above.
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