日期:2014-05-16  浏览次数:20728 次

linux更新内核上不去网,谢家宝树帮帮忙?
我编译了3.0.47内核,进去后发现上不了网,所有与网络有关的命令输入后都无反应,但是到2.6.32 内核却能上网,而且它们lspci ,lsmod的结果都一样
这是lspci的结果

02:01.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
Kernel driver in use: pcnet32

lsmod 的结果

root@t:~# lsmod |grep pcnet32
pcnet32 22226 0 
mii 2714 1 pcnet32

modinfo的结果


filename: /lib/modules/3.0.47/kernel/drivers/net/pcnet32.ko
license: GPL
description: Driver for PCnet32 and PCnetPCI based ethercards
author: Thomas Bogendoerfer
alias: pci:v00001023d00002000sv*sd*bc02sc00i*
alias: pci:v00001022d00002000sv*sd*bc*sc*i*
alias: pci:v00001022d00002001sv*sd*bc*sc*i*
depends: mii
vermagic: 2.6.32-5-686 SMP mod_unload modversions 686 
parm: debug:pcnet32 debug level (int)
parm: max_interrupt_work:pcnet32 maximum events handled per interrupt (int)
parm: rx_copybreak:pcnet32 copy breakpoint for copy-only-tiny-frames (int)
parm: tx_start_pt:pcnet32 transmit start point (0-3) (int)
parm: pcnet32vlb:pcnet32 Vesa local bus (VLB) support (0/1) (int)
parm: options:pcnet32 initial option setting(s) (0-15) (array of int)
parm: full_duplex:pcnet32 full duplex setting(s) (1) (array of int)
parm: homepna:pcnet32 mode for 79C978 cards (1 for HomePNA, 0 for Ethernet, default Ethernet (array of int)

这是3.0.47的 dmesg ,估计是这的问题

[ 20.297059] loop: module loaded
[ 22.077997] BUG: unable to handle kernel NULL pointer dereference at 00000004
[ 22.078891] IP: [<c123e117>] fib_table_insert+0x521/0x78a
[ 22.080471] *pde = 00000000 
[ 22.081303] Oops: 0000 [#1] SMP 
[ 22.082761] Modules linked in: loop snd_ens1371 gameport snd_seq_midi snd_seq_midi_event snd_rawmidi parport_pc snd_ac97_codec ac97_bus snd_pcm parport snd_seq tpm_tis snd_timer snd_seq_device tpm psmouse pcspkr tpm_bios evdev serio_raw joydev snd soundcore processor thermal_sys snd_page_alloc button ac container i2c_piix4 i2c_core shpchp pci_hotplug ext3 jbd mbcache vmw_pvscsi vmxnet3 sd_mod crc_t10dif ide_cd_mod cdrom ata_generic ata_piix libata usbhid hid uhci_hcd pcnet32 mptspi mptscsih mptbase ehci_hcd floppy usbcore scsi_transport_spi scsi_mod piix ide_core mii [last unloaded: scsi_wait_scan]
[ 22.088066] 
[ 22.089440] Pid: 740, comm: ifconfig Not tainted 3.0.47 #1 VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform
[ 22.090088] EIP: 0060:[<c123e117>] EFLAGS: 00010246 CPU: 0
[ 22.090376] EIP is at fib_table_insert+0x521/0x78a
[ 22.090626] EAX: ef95b380 EBX: 00000000 ECX: 00000000 EDX: 00000000
[ 22.090864] ESI: efb116a0 EDI: 00000000 EBP: efb5fdc8 ESP: efb5fd78
[ 22.091367] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 22.091642] Process ifconfig (pid: 740, ti=efb5e000 task=efab2520 task.ti=efb5e000)
[ 22.092096] Stack:
[ 22.092346] 7f000001 00000000 00003d20 efb116b4 7f000001 efb11060 efa67600 00000020
[ 22.092905] 00000000 ef92bd00 ef95b380 00000000 ef95b394 c13c6480 00000002 efb5fe10
[ 22.093379] 00000001 c1239f48 0100007f 00000018 fe020020 00000002 000000ff 0100007f
[ 22.094028] Call Trace:
[ 22.094636] [<c1239f48>] ? fib_magic+0xa0/0xaf
[ 22.096735] [<c123a2ae>] ? fib_add_ifaddr+0x5f/0x108
[ 22.097079] [<c123a37a>] ? fib_inetaddr_event+0x23/0x70
[ 22.097303] [<c1292549>] ? notifier_call_chain+0x23/0x46
[ 22.097517] [<c10492ce>] ? __blocking_notifier_call_chain+0x39/0x4c
[ 22.097727] [<c10492ea>] ? blocking_notifier_call_chain+0x9/0xc