Cant get 3com 920b or nforce to work
I am bummed!! I spent a week trying to get my hard drive DMA and other settings to work right in Slack. I was getting 3mb/s disk reads. Tons of playing with hdparm to no avail, I thought I would compile 2.4.22 since I had no drive troubles in Mandrake 9.1 with 2.4.22 as the default. BANG! No drive troubles. Getting 50mb/s reads now. BUT, now I can't get a connection to the net.
I did a fresh install of slack before compiling the new kernel for other reasons. I loaded the config from the Slack installation and basically just changed my CPU and audio settings to match, added the 3com modules, and compiled NTFS support right in. For audio, I only did the i810 support (which has worked for me in the past). Then, I did the same as I always do for internet with Slack. First I installed the nvidia drivers for nvnet and nvaudio. Then, adsl-setup (the usual crap), modprobe nvnet (loaded as usual with the tainted warning) and typed adsl-start. Timed out every time. I tried both the 3com and the nvidia ports multiple times and got no results. How do I go about solving this? I also have no audio anymore if anyone happens to know the solution to that problem, but the main thing is the internet. I can search out the audio thing once I'm back online! |
<bump>Still stuck :D </bump>
|
Here's what cat /proc/pci shows:
root@darkstar:/home/scruff# cat /proc/pci PCI devices found: Bus 0, device 0, function 0: Host bridge: PCI device 10de:01e0 (nVidia Corporation) (rev 193). Prefetchable 32 bit memory at 0xd0000000 [0xd7ffffff]. Bus 0, device 0, function 1: RAM memory: PCI device 10de:01eb (nVidia Corporation) (rev 193). Bus 0, device 0, function 2: RAM memory: PCI device 10de:01ee (nVidia Corporation) (rev 193). Bus 0, device 0, function 3: RAM memory: PCI device 10de:01ed (nVidia Corporation) (rev 193). Bus 0, device 0, function 4: RAM memory: PCI device 10de:01ec (nVidia Corporation) (rev 193). Bus 0, device 0, function 5: RAM memory: PCI device 10de:01ef (nVidia Corporation) (rev 193). Bus 0, device 1, function 0: ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev 164). Bus 0, device 1, function 1: SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev 162). IRQ 10. Master Capable. No bursts. Min Gnt=3.Max Lat=1. I/O at 0xdc00 [0xdc1f]. Bus 0, device 2, function 0: USB Controller: nVidia Corporation nForce2 USB Controller (rev 164). IRQ 10. Master Capable. No bursts. Min Gnt=3.Max Lat=1. Non-prefetchable 32 bit memory at 0xee087000 [0xee087fff]. Bus 0, device 2, function 1: USB Controller: nVidia Corporation nForce2 USB Controller (#2) (rev 164). IRQ 10. Master Capable. No bursts. Min Gnt=3.Max Lat=1. Non-prefetchable 32 bit memory at 0xee082000 [0xee082fff]. Bus 0, device 2, function 2: USB Controller: nVidia Corporation nForce2 USB Controller (rev 164). IRQ 11. Master Capable. No bursts. Min Gnt=3.Max Lat=1. Non-prefetchable 32 bit memory at 0xee083000 [0xee0830ff]. Bus 0, device 4, function 0: Ethernet controller: nVidia Corporation nForce2 Ethernet Controller (rev 161). IRQ 5. Master Capable. No bursts. Min Gnt=1.Max Lat=20. Non-prefetchable 32 bit memory at 0xee086000 [0xee086fff]. I/O at 0xe000 [0xe007]. Bus 0, device 5, function 0: Multimedia audio controller: nVidia Corporation nForce MultiMedia audio [Via VT82C686B] (rev 162). IRQ 10. Master Capable. No bursts. Min Gnt=1.Max Lat=12. Non-prefetchable 32 bit memory at 0xee000000 [0xee07ffff]. Bus 0, device 6, function 0: Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev 161). IRQ 11. Master Capable. No bursts. Min Gnt=2.Max Lat=5. I/O at 0xe400 [0xe4ff]. I/O at 0xd000 [0xd07f]. Non-prefetchable 32 bit memory at 0xee080000 [0xee080fff]. Bus 0, device 8, function 0: PCI bridge: PCI device 10de:006c (nVidia Corporation) (rev 163). Master Capable. No bursts. Min Gnt=2.Max Lat=2. Bus 0, device 9, function 0: IDE interface: nVidia Corporation nForce2 IDE (rev 162). Master Capable. No bursts. Min Gnt=3.Max Lat=1. I/O at 0xf000 [0xf00f]. Bus 0, device 12, function 0: PCI bridge: PCI device 10de:006d (nVidia Corporation) (rev 163). Master Capable. No bursts. Min Gnt=2. Bus 0, device 13, function 0: FireWire (IEEE 1394): nVidia Corporation nForce2 FireWire (IEEE 1394) Controller (rev 163). IRQ 10. Master Capable. No bursts. Min Gnt=3.Max Lat=1. Non-prefetchable 32 bit memory at 0xee084000 [0xee0847ff]. Non-prefetchable 32 bit memory at 0xee085000 [0xee08503f]. Bus 0, device 30, function 0: PCI bridge: nVidia Corporation nForce2 AGP (rev 193). Master Capable. Latency=32. Min Gnt=10. Bus 1, device 11, function 0: RAID bus controller: CMD Technology Inc Silicon Image SiI 3112 SATARaid Controller (rev 2). IRQ 5. Master Capable. Latency=32. I/O at 0x9000 [0x9007]. I/O at 0x9400 [0x9403]. I/O at 0x9800 [0x9807]. I/O at 0x9c00 [0x9c03]. I/O at 0xa000 [0xa00f]. Non-prefetchable 32 bit memory at 0xed000000 [0xed0001ff]. Bus 2, device 1, function 0: Ethernet controller: 3Com Corporation 3C920B-EMB Integrated Fast Ethernet Controller (rev 64). IRQ 11. Master Capable. Latency=32. Min Gnt=10.Max Lat=10. I/O at 0xb000 [0xb07f]. Non-prefetchable 32 bit memory at 0xe9000000 [0xe900007f]. Bus 3, device 0, function 0: VGA compatible controller: ATI Technologies Inc Radeon R250 If [Radeon 9000] (rev 1). IRQ 10. Master Capable. Latency=32. Min Gnt=8. Prefetchable 32 bit memory at 0xd8000000 [0xdfffffff]. I/O at 0xc000 [0xc0ff]. Non-prefetchable 32 bit memory at 0xeb000000 [0xeb00ffff]. Bus 3, device 0, function 1: Display controller: ATI Technologies Inc Radeon R250 [Radeon 9000] (Secondary) (rev 1). Master Capable. Latency=32. Min Gnt=8. Prefetchable 32 bit memory at 0xe0000000 [0xe7ffffff]. Non-prefetchable 32 bit memory at 0xeb010000 [0xeb01ffff]. As you can see, the 3com is recognized and lsmod shows the 3c59x module loaded. What the hell? |
Anyone? Anyone?
Let's make this simple. I installed Slack again an hour ago. Then I compiled 2.4.22. All is good so far. lsmod shows the 3c59x as loaded. cat /proc/pci shows the card recognized: 3Com Corp 3C920b IRQ 12 bus 3 I tried adding: alias eth0 3c59x into the modules.conf file. After adsl-setup (using eth0) I still cant get it to work. How do I make sure it will use the 3com? Please... Make this my last (40th?) boot to windows today ;) |
Still working on it... Here's more info:
root@darkstar:/home/scruff# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:26:54:0B:F7:22 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:43 errors:0 dropped:0 overruns:0 frame:0 TX packets:117 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:5637 (5.5 Kb) TX bytes:7293 (7.1 Kb) Interrupt:12 Base address:0xb000 root@darkstar:/home/scruff# ifconfig dhcpcd dhcpcd: error fetching interface information: Device not found root@darkstar:/home/scruff# ifconfig up up: error fetching interface information: Device not found root@darkstar:/home/scruff# ifconfig down down: error fetching interface information: Device not found root@darkstar:/home/scruff# cat /proc/pci Bus 2, device 1, function 0: Ethernet controller: 3Com Corporation 3C920B-EMB Integrated Fast Ethernet Controller (rev 64). IRQ 12. Master Capable. Latency=32. Min Gnt=10.Max Lat=10. I/O at 0xb000 [0xb07f]. Non-prefetchable 32 bit memory at 0xe9000000 [0xe900007f]. root@darkstar:/home/scruff# dmesg Linux version 2.4.22 (root@darkstar) (gcc version 3.2.2) #3 Sun Sep 21 23:26:21 EDT 2003 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 00000000000a0000 (usable) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000020000000 (usable) BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved) BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved) 512MB LOWMEM available. ACPI: have wakeup address 0xc0001000 On node 0 totalpages: 131072 zone(0): 4096 pages. zone(1): 126976 pages. zone(2): 0 pages. ACPI: Unable to locate RSDP Kernel command line: BOOT_IMAGE=Slackware ro root=306 Found and enabled local APIC! Initializing CPU#0 Detected 2090.164 MHz processor. Console: colour dummy device 80x25 Calibrating delay loop... 4168.08 BogoMIPS Memory: 515636k/524288k available (1620k kernel code, 8268k reserved, 575k data, 144k init, 0k highmem) Dentry cache hash table entries: 65536 (order: 7, 524288 bytes) Inode cache hash table entries: 32768 (order: 6, 262144 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 32768 (order: 5, 131072 bytes) Page-cache hash table entries: 131072 (order: 7, 524288 bytes) CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 512K (64 bytes/line) Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU: After generic, caps: 0383fbff c1c3fbff 00000000 00000000 CPU: Common caps: 0383fbff c1c3fbff 00000000 00000000 CPU: AMD Athlon(tm) XP 3200+ stepping 00 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX enabled ExtINT on CPU#0 ESR value before enabling vector: 00000000 ESR value after enabling vector: 00000000 Using local APIC timer interrupts. calibrating APIC timer ... ..... CPU clock speed is 2090.2237 MHz. ..... host bus clock speed is 380.0406 MHz. cpu: 0, clocks: 3800406, slice: 1900203 CPU0<T0:3800400,T1:1900192,D:5,S:1900203,C:3800406> mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au) mtrr: detected mtrr type: Intel ACPI: Subsystem revision 20030813 PCI: PCI BIOS revision 2.10 entry at 0xfb490, last bus=3 PCI: Using configuration type 1 ACPI: System description tables not found ACPI-0084: *** Error: acpi_load_tables: Could not get RSDP, AE_NOT_FOUND ACPI-0134: *** Error: acpi_load_tables: Could not load tables: AE_NOT_FOUND ACPI: Unable to load the System Description Tables PCI: Probing PCI hardware PCI: ACPI tables contain no PCI IRQ routing entries PCI: Probing PCI hardware (bus 00) PCI: Using IRQ router default [10de/01e0] at 00:00.0 isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16) Starting kswapd VFS: Disk quotas vdquot_6.5.1 devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x0 radeonfb: ref_clk=2700, ref_div=12, xclk=27500 from BIOS Console: switching to colour frame buffer device 80x30 radeonfb: ATI Radeon 9000 If DDR SGRAM 128 MB radeonfb: DVI port no monitor connected radeonfb: CRT port CRT monitor connected vesafb: abort, cannot reserve video memory at 0xd8000000 vesafb: framebuffer at 0xd8000000, mapped to 0xe8806000, size 3072k vesafb: mode is 1024x768x16, linelength=2048, pages=84 vesafb: protected mode interface info at c000:566e vesafb: scrolling: redraw vesafb: directcolor: size=0:5:5:5, shift=0:10:5:0 fb1: VESA VGA frame buffer device Detected PS/2 Mouse Port. pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A ttyS01 at 0x02f8 (irq = 3) is a 16550A RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx NFORCE2: IDE controller at PCI slot 00:09.0 NFORCE2: chipset revision 162 NFORCE2: not 100% native mode: will probe irqs later AMD_IDE: Bios didn't set cable bits corectly. Enabling workaround. ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx AMD_IDE: nVidia Corporation nForce2 IDE (rev a2) UDMA100 controller on pci00:09.0 ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA SiI3112 Serial ATA: IDE controller at PCI slot 01:0b.0 SiI3112 Serial ATA: chipset revision 2 SiI3112 Serial ATA: not 100% native mode: will probe irqs later ide2: MMIO-DMA , BIOS settings: hde:pio, hdf:pio ide3: MMIO-DMA , BIOS settings: hdg:pio, hdh:pio hda: MAXTOR 6L040J2, ATA DISK drive blk: queue c0379ac0, I/O limit 4095Mb (mask 0xffffffff) hdc: Memorex 52MAXX 2452AJ, ATAPI CD/DVD-ROM drive hdd: CD-Writer+ 9100c, ATAPI CD/DVD-ROM drive hde: no response (status = 0xfe) hdg: no response (status = 0xfe) ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hda: attached ide-disk driver. hda: host protected area => 1 hda: 78177792 sectors (40027 MB) w/1819KiB Cache, CHS=4866/255/63, UDMA(100) Partition check: /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 > ide: late registration of driver. NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 4096 buckets, 32Kbytes TCP: Hash tables configured (established 131072 bind 65536) Linux IP multicast router 0.06 plus PIM-SM NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. reiserfs: found format "3.6" with standard journal reiserfs: checking transaction log (device ide0(3,6)) ... for (ide0(3,6)) ide0(3,6):Using r5 hash to sort names VFS: Mounted root (reiserfs filesystem) readonly. Freeing unused kernel memory: 144k freed Adding Swap: 522072k swap-space (priority -1) reiserfs: found format "3.6" with standard journal reiserfs: checking transaction log (device ide0(3,7)) ... for (ide0(3,7)) ide0(3,7):Using r5 hash to sort names Real Time Clock Driver v1.10e 3c59x: Donald Becker and others. www.scyld.com/network/vortex.html See Documentation/networking/vortex.txt 02:01.0: 3Com PCI 3c905C Tornado 2 at 0xb000. Vers LK1.1.18-ac 00:26:54:0b:f7:22, IRQ 12 product code ffff rev 00.0 date 15-31-127 Internal config register is 1600000, transceivers 0x40. 8K byte-wide RAM 5:3 Rx:Tx split, autoselect/MII interface. MII transceiver found at address 2, status 786d. Enabling bus-master transmits and whole-frame receives. 02:01.0: scatter/gather enabled. h/w checksums enabled Intel 810 + AC97 Audio, version 0.24, 23:34:21 Sep 21 2003 PCI: Setting latency timer of device 00:06.0 to 64 i810: NVIDIA nForce Audio found at IO 0xd000 and 0xe400, MEM 0x0000 and 0x0000, IRQ 11 i810_audio: Audio Controller supports 6 channels. i810_audio: Defaulting to base 2 channel mode. i810_audio: Resetting connection 0 ac97_codec: AC97 Audio codec, id: ALG32 (ALC650) i810_audio: AC'97 codec 0, new EID value = 0x05c7 i810_audio: AC'97 codec 0, DAC map configured, total channels = 6 usb.c: registered new driver usbdevfs usb.c: registered new driver hub PCI: Setting latency timer of device 00:02.2 to 64 ehci_hcd 00:02.2: nVidia Corporation nForce2 USB Controller ehci_hcd 00:02.2: irq 9, pci mem e8cf1000 usb.c: new USB bus registered, assigned bus number 1 PCI: 00:02.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW. PCI: 00:02.2 PCI cache line size corrected to 64. ehci_hcd 00:02.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-19/2.4 hub.c: USB hub found hub.c: 6 ports detected PCI: Setting latency timer of device 00:02.0 to 64 usb-ohci.c: USB OHCI at membase 0xe8cf9000, IRQ 12 usb-ohci.c: usb-00:02.0, nVidia Corporation nForce2 USB Controller usb.c: new USB bus registered, assigned bus number 2 hub.c: USB hub found hub.c: 3 ports detected PCI: Setting latency timer of device 00:02.1 to 64 usb-ohci.c: USB OHCI at membase 0xe8cfb000, IRQ 11 usb-ohci.c: usb-00:02.1, nVidia Corporation nForce2 USB Controller (#2) usb.c: new USB bus registered, assigned bus number 3 hub.c: USB hub found hub.c: 3 ports detected usb-uhci.c: $Revision: 1.275 $ time 23:35:29 Sep 21 2003 usb-uhci.c: High bandwidth mode enabled usb-uhci.c: v1.275:USB Universal Host Controller Interface driver uhci.c: USB Universal Host Controller Interface driver v1.1 hub.c: new USB device 00:02.1-2, assigned address 2 usb.c: USB device 2 (vend/prod 0x46d/0xc025) is not claimed by any active driver. usb.c: registered new driver usbmouse input0: B16_b_02 USB-PS/2 Optical Mouse on usb3:2.0 usbmouse.c: v1.6:USB HID Boot Protocol mouse driver usb.c: registered new driver hiddev usb.c: registered new driver hid hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz> hid-core.c: USB HID support drivers mice: PS/2 mouse device common for all mice\ Also, I usually load the original Slack config when I compile 2.4.22. I just change CPU, some IDE and filesystem settings, and add the nforce stuff. The old config worked fine when I just re-compiled 2.4.20, but IDE didn't improve so on to .22. I compiled it 5 times today. I even installed Mandrake 9.1, copied the config file from it (since I had no troubles back with Mandrake 2.4.21) and compiled 2.4.22 in Slack again with the bulky ass Mandrake config. NO LUCK!!!! damnit... I've tried with the nforce drivers, w/out the nforce drivers... I can't even remember what all I tried anymore:confused: I couldnt care less about the nvidia eth and their BS drivers if I could get the 3com to work. |
Wow, this is horrible. You aren't getting an IP because the device isn't getting setup. The device isn't getting setup because module, well no, the module is loading, so then what? Ok... Let's break this down a bit:
How do you obtain an IP and from what source ( a router, your ISP?)? From the looks of it, you obtain one via DHCP. Good, it's easier that way (sometimes), now let's look at: /etc/rc.d/rc.inet1 Make sure that everything is commented with the exception of: use dhcp = YES And then after verifying the module is loaded for your primary device, and that modules.conf is showing the correct alias: alias eth0 3c59x type (as root): /etc/rc.d/rc.inet1 And see what it spits out. Be sure the module loaded correctly before doing this. Which version of slackware is this anyway, 9 is the one in your profile, my instructions are from Slack 8.1, but it should work nonetheless as this really isn't slackware specific beyond the rc bit ;) Cool |
Thanks MasterC. I am late as hell for work already (thats what I get for staying up too late) ;) but will give this a shot as soon as I get home.
I do get my IP through my ISP dchp style. No router, just a dsl modem. Oh yeah, it is Slack 9. I preordered 9.1 last week or so, can't wait to check it out!! My newer hardware will prob play nicer with the new release. |
I have had this issue before with a SiS5513 based mobo with a built-in rtl8139 NIC. The kernel module loads, ifconfig initially seems fine, but you get a bunch of syslog messages about the device timing out when you actually do network stuff. In my case I disabled acpi in /etc/lilo.conf because I suspected it was causing problems with the irq lines. (Try append="pci=noacpi" first, then append="acpi=off" if that doesn't work, you could also combine this with append="noapic").
As fas as the nforce drivers go, the agp patch is not necessary with 2.4.22 and the i810 audio driver supplied by the >2.4.20 kernel seems to work O.K. You basically only need the nforce drivers for the NIC. I have gotten this going on an MSI nforce2 mobo. |
Ok, here we go. I did what you said for /etc/rc.d/rc.inet1. It was commented out.
Module is loaded. Checked modules.conf: root@dabasement:/home/scruff# gedit /etc/modules.conf Looks good. root@dabasement:/home/scruff# /etc/rc.d/rc.inet1 SIOCADDRT: File exists Attempting to configure eth0 by contacting a DHCP server... dhcpcd: MAC address = 00:26:54:0b:f7:22 BEFORE acpi off root@dabasement:/home/scruff# adsl-start ................TIMED OUT AFTER acpi off root@dabasement:/home/scruff# adsl-start ................TIMED OUT /usr/sbin/adsl-start: line 194: 977 Terminated $CONNECT "$@" >/dev/null 2>&1 #! /bin/sh I have no idea.:confused: I am going to recompile 2.4.22 again with the old slack config cause MDK's has way too much crap in it. Hopefully this makes sense to one of you ;) |
Can you post up the contents of the adsl-start script (I don't have it on Slack 8.1).
Cool |
Wow. That was quick!
Sure I can. Where is it located? |
Duh.. nevermind. Forgot I learned a few commands for finding stuff :rolleyes:
|
Here it is:
#!/bin/sh # Generated automatically from adsl-start.in by configure. #*********************************************************************** # # adsl-start # # Shell script to bring up an ADSL connection # # Copyright (C) 2000 Roaring Penguin Software Inc. # # $Id: adsl-start.in,v 1.8 2002/04/09 17:28:39 dfs Exp $ # # This file may be distributed under the terms of the GNU General # Public License. # # LIC: GPL # # Usage: adsl-start [config_file] # adsl-start interface user [config_file] # Second form overrides USER and ETH from config file. # If config_file is omitted, defaults to /etc/ppp/pppoe.conf # #*********************************************************************** # From AUTOCONF prefix=/usr exec_prefix=${prefix} # Paths to programs CONNECT=${exec_prefix}/sbin/adsl-connect ECHO=/usr/bin/echo IFCONFIG=/sbin/ifconfig # Set to "C" locale so we can parse messages from commands LANG=C export LANG # Defaults CONFIG=/etc/ppp/pppoe.conf USER="" ETH="" ME=`basename $0` # Must be root if [ "`/usr/bin/id -u`" != 0 ] ; then $ECHO "$ME: You must be root to run this script" >& 2 exit 1 fi # Debugging if [ "$DEBUG" = "1" ] ; then $ECHO "*** Running in debug mode... please be patient..." DEBUG=/tmp/pppoe-debug-$$ export DEBUG mkdir $DEBUG if [ "$?" != 0 ] ; then $ECHO "Could not create directory $DEBUG... exiting" exit 1 fi DEBUG=$DEBUG/pppoe-debug.txt # Initial debug output $ECHO "---------------------------------------------" > $DEBUG $ECHO "* The following section contains information about your system" >> $DEBUG date >> $DEBUG $ECHO "Output of uname -a" >> $DEBUG uname -a >> $DEBUG $ECHO "---------------------------------------------" >> $DEBUG $ECHO "* The following section contains information about your network" >> $DEBUG $ECHO "* interfaces. The one you chose for PPPoE should contain the words:" >> $DEBUG $ECHO "* 'UP' and 'RUNNING'. If it does not, you probably have an Ethernet" >> $DEBUG $ECHO "* driver problem." >> $DEBUG $ECHO "Output of ifconfig -a" >> $DEBUG $IFCONFIG -a >> $DEBUG $ECHO "---------------------------------------------" >> $DEBUG if [ "`uname -s`" = "Linux" ] ; then $ECHO "* The following section contains information about kernel modules" >> $DEBUG $ECHO "* If the module for your Ethernet card is 'tulip', you might" >> $DEBUG $ECHO "* want to look for an updated version at http://www.scyld.com" >> $DEBUG $ECHO "Output of lsmod" >> $DEBUG lsmod >> $DEBUG $ECHO "---------------------------------------------" >> $DEBUG fi $ECHO "* The following section lists your routing table." >> $DEBUG $ECHO "* If you have an entry which starts with '0.0.0.0', you probably" >> $DEBUG $ECHO "* have defined a default route and gateway, and pppd will" >> $DEBUG $ECHO "* not create a default route using your ISP. Try getting" >> $DEBUG $ECHO "* rid of this route." >> $DEBUG $ECHO "Output of netstat -n -r" >> $DEBUG netstat -n -r >> $DEBUG $ECHO "---------------------------------------------" >> $DEBUG $ECHO "Contents of /etc/resolv.conf" >> $DEBUG $ECHO "* The following section lists DNS setup." >> $DEBUG $ECHO "* If you can browse by IP address, but not name, suspect" >> $DEBUG $ECHO "* a DNS problem." >> $DEBUG cat /etc/resolv.conf >> $DEBUG $ECHO "---------------------------------------------" >> $DEBUG $ECHO "* The following section lists /etc/ppp/options." >> $DEBUG $ECHO "* You should have NOTHING in that file." >> $DEBUG $ECHO "Contents of /etc/ppp/options" >> $DEBUG cat /etc/ppp/options >> $DEBUG 2>/dev/null $ECHO "---------------------------------------------" >> $DEBUG else DEBUG="" fi # Sort out command-line arguments case "$#" in 1) CONFIG="$1" ;; 3) CONFIG="$3" ;; esac if [ ! -f "$CONFIG" -o ! -r "$CONFIG" ] ; then $ECHO "$ME: Cannot read configuration file '$CONFIG'" >& 2 exit 1 fi . $CONFIG # Check for command-line overriding of ETH and USER case "$#" in 2|3) ETH="$1" USER="$2" ;; esac # Check for pidfile if [ -r "$PIDFILE" ] ; then PID=`cat "$PIDFILE"` # Check if still running kill -0 $PID > /dev/null 2>&1 if [ $? = 0 ] ; then $ECHO "$ME: There already seems to be an ADSL connection up (PID $PID)" >& 2 exit 1 fi # Delete bogus PIDFILE rm -f "$PIDFILE" "$PIDFILE.pppd" "$PIDFILE.pppoe" "$PIDFILE.start" fi echo $$ > $PIDFILE.start # Start the connection in the background unless we're debugging if [ "$DEBUG" != "" ] ; then $CONNECT "$@" exit 0 fi $CONNECT "$@" > /dev/null 2>&1 & CONNECT_PID=$! if [ "$CONNECT_TIMEOUT" = "" -o "$CONNECT_TIMEOUT" = 0 ] ; then exit 0 fi # Don't monitor connection if dial-on-demand if [ "$DEMAND" != "" -a "$DEMAND" != "no" ] ; then exit 0 fi # Monitor connection TIME=0 while [ true ] ; do ${exec_prefix}/sbin/adsl-status $CONFIG > /dev/null 2>&1 # Looks like the interface came up if [ $? = 0 ] ; then # Print newline if standard input is a TTY tty -s && $ECHO " Connected!" exit 0 fi if test -n "$FORCEPING" ; then $ECHO -n "$FORCEPING" else tty -s && $ECHO -n "$PING" fi sleep $CONNECT_POLL TIME=`expr $TIME + $CONNECT_POLL` if [ $TIME -gt $CONNECT_TIMEOUT ] ; then break fi done $ECHO "TIMED OUT" >& 2 # Timed out! Kill the adsl-connect process and quit kill $CONNECT_PID > /dev/null 2>&1 # Clean up PIDFILE(s) rm -f "$PIDFILE" "$PIDFILE.pppd" "$PIDFILE.pppoe" "$PIDFILE.start" exit 1 |
So do you actually have a pppOe connection? How do you connect normally to your ISP (say with other OS's or even other versions of Linux)?
If you DON'T have an PPP connection, then there is no need to run the adsl-start script above, simply dhcpcd should suffice (or /etc/rc.d/rc.inet1) to bring up the info. At each step post the results: Boot up, login as root, and type: ifconfig Run: ifconfig eth0 down killall dhcpcd And then post up: ifconfig THEN type: /etc/rc.d/rc.inet1 And post up the results of: ifconfig eth0 Be sure that initially (after you first login as root) that your module is loaded for your ethernet device (either one at this point). Cool |
Verizon told me I would have to use pppOe. I used their install cd for windows. In Mandrake 9.1, I let it configure my internet account during install. It basically just asked me for my username, password, and IP which I left blank for dhcp and it worked. To get it to work in Slack before the new kernel, I simply installed the nvidia nvnet driver, and went through adsl-setup/adsl-connect process. The nvidia driver, while it compiles and loads just fine in 2.4.22, the usual adsl-setup/adsl-start doesn't do anything but timeout after that. I gave up on nvidia's stuff, since the 3com is supported natively in 2.4.22 (I compile the module though). If I were to install Slack right now with the old kernel, I could connect to the net after installing the nvidia drivers, but 2.4.20 was horribly slow with my setup even after recompiling and using other system tweaks. The newer kernel is blazing fast right now with almost no extra work. Can't wait to see it after I play with it a few weeks.
I'll see if I can post that stuff before work in the morn, I'm not at my comp right now. Thanks :) |
All times are GMT -5. The time now is 08:34 PM. |