[问题]网卡模块怎么安装?

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
gym216
帖子: 10
注册时间: 2008-06-08 8:54

[问题]网卡模块怎么安装?

#1

帖子 gym216 » 2008-06-08 10:12

我的网卡用的atl2的模块,8.04的版本默认不能上网。
gym@gym:~$ lsmod | grep atl2
atl2 33176 0
这个命令是不是察看模块的?到底是有没有这个模块,我在/lib/module/linuxxxx/kernel/drivers/net/ 下面却 没有atl2的模块
gym@gym:~$ dmesg |grep eth
[ 42.436128] Driver 'sr' needs updating - please use bus_type methods
[ 42.454399] Driver 'sd' needs updating - please use bus_type methods
[ 77.606055] ADDRCONF(NETDEV_UP): eth0: link is not ready
gym@gym:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1b:fc:1e:1f:f3
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:dffc0000-e0000000

gym@gym:~$
我用驱动源代码编译提示错误:
gym@gym:~/atl2-1.4.0.20/src$ sudo make
make -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/home/gym/atl2-1.4.0.20/src modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
scripts/Makefile.build:46: *** CFLAGS was changed in "/home/gym/atl2-1.4.0.20/src/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/home/gym/atl2-1.4.0.20/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [default] Error 2
gym@gym:~/atl2-1.4.0.20/src$
然后去ubuntu源里搜索atl2,里面有4个文件:atl2_2.0.3-3.diff.gz atl2_2.0.3-3.dsc.txt atl2_2.0.3.orig.tar.tar atl2-source_2.0.3-3_all.deb 怎么使用这四个文件?我的还上不了网,不能apt-get install。
头像
qiang_liu8183
论坛版主
帖子: 10699
注册时间: 2006-09-10 22:36
系统: Arch Debian
来自: 北京

#2

帖子 qiang_liu8183 » 2008-06-08 15:31

什么网卡这么恐龙?
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
flyinflash
帖子: 2376
注册时间: 2006-09-21 14:28

#3

帖子 flyinflash » 2008-06-08 16:11

你应该把 lspci 结果也贴上来
gym216
帖子: 10
注册时间: 2008-06-08 8:54

#4

帖子 gym216 » 2008-06-09 13:13

lspci也贴上来,华硕的主板,集成的廉价网卡,别人根本不用。唉,主板还卖那么贵,贱啊!
gym@gym:~$ lspci
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Attansic Technology Corp. L2 100 Mbit Ethernet Adapter (rev a0)
gym@gym:~$
就是这网卡: Attansic Technology Corp. L2 100 Mbit Ethernet Adapter ,linux驱动叫atl2。
哪位大虾知道atl2怎么编进内核也行啊,大不了重编下内核!别人说linux内核已经支持这个网卡了,叫我make menuconfig 按\搜索,我还是搜不到。但我见fedora 9的.config文件里有 atl2=m的东西,究竟怎么才能make menuconfig 找到atl2。好郁闷
flyinflash
帖子: 2376
注册时间: 2006-09-21 14:28

#5

帖子 flyinflash » 2008-06-09 15:35

1、您的 lspci 结果显示认出网上型号,也就是说,您的内核可能已经有它的驱动了,它不能工作,可能因为您设置有问题。

代码: 全选

lsmod  | grep atl2

代码: 全选

lsmod
把两个结果贴上来。

2、编译内核
Ubuntu 中文维基 《如何自定义编译内核》
http://wiki.ubuntu.org.cn/%E5%A6%82%E4% ... 5%E6%A0%B8

Ubuntu 中文维基 《UbuntuManual:Ubuntu下的 Linux 内核》
http://wiki.ubuntu.org.cn/UbuntuManual: ... 5%E6%A0%B8

《Gentoo 官方手册 配置内核》
http://www.gentoo.org/doc/zh_cn/handboo ... t=1&chap=7
可参考部分信息

我以前有段时间玩过 Gentoo,也在它下面编译成功过,但具体信息回忆不起来了 :D :D

make xconfig 比 make menuconf 方便,想 xconfig 必须安装额外软件,上面文章有具体说明
flyinflash
帖子: 2376
注册时间: 2006-09-21 14:28

#6

帖子 flyinflash » 2008-06-09 15:38

另外,我实在不推荐您自行编译内核,那实在是慢性自杀 :D :D
gym216
帖子: 10
注册时间: 2008-06-08 8:54

#7

帖子 gym216 » 2008-06-09 20:18

this is the resault:
gym@gym:~$ lsmod
Module Size Used by
i915 32512 2
drm 82580 3 i915
rfcomm 41744 2
l2cap 25728 13 rfcomm
bluetooth 61156 4 rfcomm,l2cap
ppdev 10372 0
cpufreq_stats 7104 0
cpufreq_powersave 2688 0
cpufreq_ondemand 9740 0
freq_table 5536 2 cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 8712 0
cpufreq_userspace 5284 0
sbs 15112 0
sbshc 7680 1 sbs
video 19856 0
output 4736 1 video
container 5632 0
dock 11280 0
battery 14212 0
iptable_filter 3840 0
ip_tables 14820 1 iptable_filter
x_tables 16132 1 ip_tables
ac 6916 0
lp 12324 0
ipv6 267780 8
parport_pc 36260 1
parport 37832 3 ppdev,lp,parport_pc
evdev 13056 4
psmouse 40336 0
serio_raw 7940 0
pcspkr 4224 0
atl2 33176 0
snd_hda_intel 344728 3
snd_pcm_oss 42144 0
snd_mixer_oss 17920 1 snd_pcm_oss
snd_pcm 78596 2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10500 1 snd_hda_intel
iTCO_wdt 13092 0
iTCO_vendor_support 4868 1 iTCO_wdt
snd_seq_dummy 4868 0
snd_seq_oss 35584 0
snd_seq_midi 9376 0
snd_rawmidi 25760 1 snd_seq_midi
snd_seq_midi_event 8320 2 snd_seq_oss,snd_seq_midi
snd_seq 54224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 24836 2 snd_pcm,snd_seq
snd_seq_device 9612 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
button 9232 0
shpchp 34452 0
pci_hotplug 30880 1 shpchp
snd 56996 17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
intel_agp 25492 1
agpgart 34760 3 drm,intel_agp
soundcore 8800 1 snd
ext3 136712 1
jbd 48404 1 ext3
mbcache 9600 1 ext3
usbhid 31872 0
hid 38784 1 usbhid
sg 36880 0
sd_mod 30720 3
sr_mod 17956 0
cdrom 37408 1 sr_mod
ata_piix 19588 2
pata_acpi 8320 0
ata_generic 8324 0
libata 159344 3 ata_piix,pata_acpi,ata_generic
scsi_mod 151436 4 sg,sd_mod,sr_mod,libata
ehci_hcd 37900 0
uhci_hcd 27024 0
usbcore 146028 4 usbhid,ehci_hcd,uhci_hcd
thermal 16796 0
processor 36872 1 thermal
fan 5636 0
fbcon 42912 0
tileblit 3456 1 fbcon
font 9472 1 fbcon
bitblit 6784 1 fbcon
softcursor 3072 1 bitblit
fuse 50580 3
gym@gym:~$ lsmod | grep atl2
atl2 33176 0
gym@gym:~$ dmesg | grep eth
[ 67.632370] Driver 'sr' needs updating - please use bus_type methods
[ 67.645309] Driver 'sd' needs updating - please use bus_type methods
[ 79.709333] ADDRCONF(NETDEV_UP): eth0: link is not ready
gym@gym:~$
gym216
帖子: 10
注册时间: 2008-06-08 8:54

#8

帖子 gym216 » 2008-06-09 20:36

我在debian的官方搜到atl2的deb包,然后下载安装,要依赖几个软件,也都下了,装上后多出个内核kernel 2.6.24-1-486,然后用这个内核启动就能上网了。上面是在ubuntu下回的,没有拼音输入法。又换xp下回复。这是kernel 2.6.24-1-486下的结果:
gym@gym:~$ lsmod
Module Size Used by
i915 21888 2
drm 72980 3 i915
rfcomm 35092 2
l2cap 21380 13 rfcomm
bluetooth 50820 4 rfcomm,l2cap
ppdev 8708 0
cpufreq_stats 4228 0
cpufreq_powersave 1792 0
cpufreq_ondemand 7828 0
freq_table 4356 2 cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 6944 0
cpufreq_userspace 3992 0
sbs 14344 0
sbshc 6784 1 sbs
video 18576 0
output 3712 1 video
container 4864 0
dock 10124 0
battery 13572 0
iptable_filter 2944 0
ip_tables 12360 1 iptable_filter
x_tables 13700 1 ip_tables
ac 6148 0
lp 10948 0
ipv6 229220 8
psmouse 36112 0
serio_raw 6532 0
parport_pc 33316 1
parport 33224 3 ppdev,lp,parport_pc
rtc 12700 0
atl2 27544 0
snd_hda_intel 274976 3
snd_pcm_oss 37792 0
snd_mixer_oss 15104 1 snd_pcm_oss
snd_pcm 69640 2 snd_hda_intel,snd_pcm_oss
button 8336 0
snd_seq_dummy 3716 0
pcspkr 2944 0
iTCO_wdt 10912 0
snd_seq_oss 29056 0
snd_seq_midi 8096 0
snd_rawmidi 22560 1 snd_seq_midi
snd_seq_midi_event 7040 2 snd_seq_oss,snd_seq_midi
snd_seq 45264 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 20740 2 snd_pcm,snd_seq
snd_seq_device 7820 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
intel_agp 23316 1
agpgart 31152 3 drm,intel_agp
shpchp 30868 0
pci_hotplug 27424 1 shpchp
evdev 10880 4
snd 47332 15 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 7136 1 snd
snd_page_alloc 9992 2 snd_hda_intel,snd_pcm
ext3 120328 1
jbd 39444 1 ext3
sg 33440 0
sd_mod 27024 3
ide_cd 36128 0
cdrom 32544 1 ide_cd
ata_piix 17284 2
ata_generic 7428 0
libata 145136 2 ata_piix,ata_generic
scsi_mod 141452 3 sg,sd_mod,libata
usbhid 27904 0
hid 32896 1 usbhid
generic 4356 0 [permanent]
piix 7428 0 [permanent]
ide_core 106840 3 ide_cd,generic,piix
ehci_hcd 32268 0
uhci_hcd 22928 0
usbcore 131436 4 usbhid,ehci_hcd,uhci_hcd
thermal 15900 0
processor 28464 1 thermal
fan 4740 0
fuse 43796 3
gym@gym:~$ lsmod | grep atl2
atl2 27544 0
gym@gym:~$ dmesg | grep eth
Driver 'sd' needs updating - please use bus_type methods
ADDRCONF(NETDEV_UP): eth0: link is not ready
atl2: eth0 NIC Link is Up<100 Mbps Full Duplex>
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
gym@gym:~$ ping www.google.cn
PING cn.l.google.com (203.208.37.104) 56(84) bytes of data.
64 bytes from 203.208.37.104: icmp_seq=1 ttl=240 time=40.2 ms
64 bytes from 203.208.37.104: icmp_seq=2 ttl=240 time=40.9 ms
64 bytes from 203.208.37.104: icmp_seq=3 ttl=240 time=40.1 ms

[1]+ Stopped ping www.google.cn
gym@gym:~$
clown_commando
帖子: 171
注册时间: 2006-09-25 9:36
来自: 福建
联系:

#9

帖子 clown_commando » 2008-07-24 19:30

这种主板实在是很妖怪,看来不止是我遇到这种问题。
这几天刚刚好也更新成这种主板。也遇到同样的问题了。
占个位置看事情的进展。
clown_commando
帖子: 171
注册时间: 2006-09-25 9:36
来自: 福建
联系:

#10

帖子 clown_commando » 2008-07-24 21:55

系统升级到 8.10 Alpha2以后网卡可以正常启动,但是进不了gnome了。吼吼。
使用ISO文件进行升级。
clown_commando
帖子: 171
注册时间: 2006-09-25 9:36
来自: 福建
联系:

#11

帖子 clown_commando » 2008-07-25 22:19

升级到 8.10alpha2以后,刚刚进gnome界面的时候,硬盘发出可怕的声音,很怀疑是否硬透要报消了?
回复