Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant get the network config to work :(
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Sat Sep 09, 2006 1:39 pm    Post subject: Reply with quote

emerge pciutils to get lspci.
Back to top
View user's profile Send private message
kraay
n00b
n00b


Joined: 08 Sep 2006
Posts: 24

PostPosted: Sat Sep 09, 2006 2:18 pm    Post subject: Reply with quote

I build the driver for my card in the kernel.

using this command during setup :

Quote:
echo r8029 >> /etc/modules.autoload.d/kernel-2.6


Where do i find the kernel config file ? (cant find it whit )
Quote:
whereis kernel , kernel.cfg or kernel.config

& how do i read its output ....
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Sat Sep 09, 2006 2:25 pm    Post subject: Reply with quote

to output the kernel config, type:

cat /usr/src/linux/.config
Back to top
View user's profile Send private message
kocoorek
n00b
n00b


Joined: 05 Sep 2006
Posts: 49
Location: Brzeg, Poland

PostPosted: Sat Sep 09, 2006 2:30 pm    Post subject: Reply with quote

The right driver for your card is 8139too, so try to load it (as a root)
Code:
modprobe 8139too

then start net
Code:
/etc/init.d/net.eth0 start

and check if network is working.

Your kernel config file could be find in /boot/ or /usr/src/linux/ directories ( .config or config-xxx file).
Back to top
View user's profile Send private message
kraay
n00b
n00b


Joined: 08 Sep 2006
Posts: 24

PostPosted: Sat Sep 09, 2006 3:34 pm    Post subject: Reply with quote

Quote:
modprobe 8139too ( gives the output : FATAL : Module r8139 not found. )


I cant give my kernel output because its simply to big .. i cant cp it... i must write every output over to here.

(sonicbhoc)

I cant emerge lspci because i dont have a connection so i burnt it on a cd

And did
Quote:
cp pciutils-2.2.0.tar.gz to /usr/portage/distfiles/


When i emerged it says... emerge : there are no ebuilds to satisfy "pciutils-2.2.0.tar.gz"
I cant find that ebuild file on http://sources.gentoo.org/viewcvs.py/gentoo-x86/ if thats even the place where i must search it.
I did find dhcpcd-2.0.0.ebuild there & cp that to /usr/portage/distfiles/ and that workt ( see post: Sat Sep 09, 2006 11:27 am)


Last edited by kraay on Sat Sep 09, 2006 4:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
kocoorek
n00b
n00b


Joined: 05 Sep 2006
Posts: 49
Location: Brzeg, Poland

PostPosted: Sat Sep 09, 2006 4:00 pm    Post subject: Reply with quote

If you can not copy all your kernel config check only support for your card
Code:
cat /usr/src/linux/.config | grep -i 8139


Btw did you compile any kernel earlier or it was yours first time?
Back to top
View user's profile Send private message
kraay
n00b
n00b


Joined: 08 Sep 2006
Posts: 24

PostPosted: Sat Sep 09, 2006 4:12 pm    Post subject: Reply with quote

Doing
Quote:
cat /usr/src/linux/.config | grep -i 8139


Gives the output :

CONFIG_8139CP=y
CONFIG_8139TOO=y
# CONFIG_8139TOO_PIO is not set
# CONFIG_8139T00_TUNE_TWISTER is not set
# CONFIG_8139TOO_8129 is not set
# CONFIG_8139_OLD_RX_RESET is not set

Its the first time i compiled a kernel ....
Back to top
View user's profile Send private message
kocoorek
n00b
n00b


Joined: 05 Sep 2006
Posts: 49
Location: Brzeg, Poland

PostPosted: Sat Sep 09, 2006 5:21 pm    Post subject: Reply with quote

Maybe this is a problem
Quote:
# CONFIG_8139TOO_8129 is not set

Try to set it up and build new kernel. Then boot with new one. I assume that you have set up network support and etc.
There is a guide from gentoo handbook http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7. You can try use genkernel if you don't fell comfortable setting up everything by yourself.

Btw you don't need this for sure
Quote:
CONFIG_8139CP=y
Back to top
View user's profile Send private message
kraay
n00b
n00b


Joined: 08 Sep 2006
Posts: 24

PostPosted: Sat Sep 09, 2006 7:21 pm    Post subject: Reply with quote

Am building the new kernel.

I have started all over whit the guide ... the best thing to do i suppose.

for network i have done:

livecd etc # cd conf.d
livecd conf.d # echo 'config_eth0=( "192.168.123.123/22" )' >> net
livecd conf.d # echo 'routes_eth0=( "default via 192.168.123.254" )' >> net
livecd conf.d # rc-update add net.eth0 default
livecd conf.d # rc-update add sshd default

Am now at the point where i can emerge packages.
Are there any packages i should emerge besides pciutils before rebooting ?


Last edited by kraay on Sat Sep 09, 2006 8:29 pm; edited 3 times in total
Back to top
View user's profile Send private message
kocoorek
n00b
n00b


Joined: 05 Sep 2006
Posts: 49
Location: Brzeg, Poland

PostPosted: Sat Sep 09, 2006 8:17 pm    Post subject: Reply with quote

If you build your driver into a kernel you don't have to do this
Quote:
livecd conf.d # echo r8139 >> /etc/modules.autoload.d/kernel-2.6)

This is necessary only if you build your driver like a module and want to load it at boot (beside the right name of the module is 8139too not r8139).

When you run menuconfig of your kernel remember to set
Quote:
Device Drivers ---> Network device support --->
[*] Network device support
Ethernet (10 or 100Mbit) --->
[*] Ethernet (10 or 100Mbit)
<*> Generic Media Independent Interface device support
[*] EISA, VLB, PCI and on board controllers
<*> RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support
[ ] Use PIO instead of MMIO │ │
[ ] Support for uncommon RTL-8139 rev. K (automatic channel equalization) │ │
[*] Support for older RTL-8129/8130 boards │ │
[ ] Use older RX-reset method


Are you using genkernel ?
Back to top
View user's profile Send private message
kraay
n00b
n00b


Joined: 08 Sep 2006
Posts: 24

PostPosted: Sat Sep 09, 2006 8:29 pm    Post subject: Reply with quote

livecd conf.d # echo r8139 >> /etc/modules.autoload.d/kernel-2.6)
( I had already removed the line before pressing enter )

btw

lspci >> out.txt output:
RTL-8029(AS)

If genkernel is what appears with make menuconfig ...yes am using genkernel.

Done this:

Quote:
Device Drivers ---> Network device support --->
[*] Network device support
Ethernet (10 or 100Mbit) --->
[*] Ethernet (10 or 100Mbit)
<*> Generic Media Independent Interface device support <--- CAN NOT SELECT THIS ONE
[*] EISA, VLB, PCI and on board controllers
<*> RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support
[ ] Use PIO instead of MMIO │ │
[ ] Support for uncommon RTL-8139 rev. K (automatic channel equalization) │ │
[*] Support for older RTL-8129/8130 boards │ │
[ ] Use older RX-reset method


And i finished the install ... after the reboot still no connection.
Back to top
View user's profile Send private message
kocoorek
n00b
n00b


Joined: 05 Sep 2006
Posts: 49
Location: Brzeg, Poland

PostPosted: Sun Sep 10, 2006 7:47 am    Post subject: Reply with quote

Wirte in your /etc/conf.d/net
Quote:
config_eth0=( "dhcp" )
fallback_eth0=( "192.168.123.123 netmask 255.255.255.0" )
fallback_routes_eth0=( "default gw 192.168.123.254" )


Do
Code:
/etc/init.d/net.eth0 start


Post output of
Code:
dmesg | grep -i eth0

and
Code:
dmesg | grep -i rtl
Back to top
View user's profile Send private message
kraay
n00b
n00b


Joined: 08 Sep 2006
Posts: 24

PostPosted: Sun Sep 10, 2006 10:28 am    Post subject: Reply with quote

Quote:
dmesg | grep -i eth0
output:

eth0: forcedeth.c: subsystem: 01462:7250 bound to 0000:00:08.0
eth0: no link during initialization.
ADDCONF(NETDEV_UP) :eth0: link is not ready

Quote:
dmesg | grep -i rtl
no output
Back to top
View user's profile Send private message
kocoorek
n00b
n00b


Joined: 05 Sep 2006
Posts: 49
Location: Brzeg, Poland

PostPosted: Sun Sep 10, 2006 10:59 am    Post subject: Reply with quote

It seems like we don't have the right driver for rtl-8029 card.
The best way to check the right one is to boot with livecd and see output of
Code:
lsmod

and
Code:
dmesg | grep -i eth0

can you do that ?
Back to top
View user's profile Send private message
kocoorek
n00b
n00b


Joined: 05 Sep 2006
Posts: 49
Location: Brzeg, Poland

PostPosted: Sun Sep 10, 2006 11:14 am    Post subject: Reply with quote

I found on the web that the driver for the rtl 8029 card is ne2k-pci not 8139too what I thought earlier (sorry by that). So you need in your kernel
Quote:
Device Drivers ---> Network device support --->
[*] Network device support
Ethernet (10 or 100Mbit) --->
[*] Ethernet (10 or 100Mbit)
<*> Generic Media Independent Interface device support
[*] EISA, VLB, PCI and on board controllers
<*> PCI NE2000 and clones support (see help)


And you need to rebuild your kernel ones again =|
Back to top
View user's profile Send private message
kraay
n00b
n00b


Joined: 08 Sep 2006
Posts: 24

PostPosted: Sun Sep 10, 2006 11:44 am    Post subject: Reply with quote

Oke than i will do that ... thnx for finding that out for me.

lsmod output :

Module Size Used by
ipv6 187744 8
parport_pc 26948 0
parport 21544 1 parport_pc
pcspkr 1156 0
rtc 8948 0
forcedeth 16356 0
ne2k_pci 7040 0
8390 6752 1 ne2k_pci
eth1394 14536 0
dm_mirror 14672 0
dm_mod 37048 1 dm_mirror
pdc_adma 6212 0
sata_mv 12516 0
ata_piix 6532 0
ahci 9124 0
sata_qstor 6468 0
sata_vsc 5316 0
sata_uli 4644 0
sata_sis 5220 0
sata_sx4 10052 0
sata_nv 5924 0
sata_via 5668 0
sata_svw 4932 0
sata_sil24 7684 0
sata_sil 6244 0
sata_promise 7716 0
libata 35912 15
pdc_adma,sata_mv,ata_piix,ahci,sata_qstor,sata_
vsc,sata_uli,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil24,sata_sil,sat
a_promise
sbp2 16484 0
ohci1394 25140 0
ieee1394 57272 3 eth1394,sbp2,ohci1394
sl811_hcd 9344 0
ohci_hcd 14916 0
uhci_hcd 24144 0
usb_storage 49920 0
usbhid 28992 0
ehci_hcd 22856 0
usbcore 80068 7
sl811_hcd,ohci_hcd,uhci_hcd,usb_storage,usbhid,e hci_hcd

dmesg | grep -i eth0 output :

eth1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
Back to top
View user's profile Send private message
kraay
n00b
n00b


Joined: 08 Sep 2006
Posts: 24

PostPosted: Sun Sep 10, 2006 4:21 pm    Post subject: Reply with quote

CONNECTION ESTABLISHED !!!

The PCI NE2000 and clones support ...did the trick.

Kocoorek ..thnx man...for helping me getting my connection back :D ..thnx alot !!
Back to top
View user's profile Send private message
kocoorek
n00b
n00b


Joined: 05 Sep 2006
Posts: 49
Location: Brzeg, Poland

PostPosted: Sun Sep 10, 2006 5:12 pm    Post subject: Reply with quote

No problem man 8)
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 Previous  1, 2
Page 2 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