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
[ 22.100279] [<c1233a23>] ? __inet_insert_ifa+0x15e/0x167
[ 22.100485] [<c12348ab>] ? devinet_ioctl+0x3c0/0x4f2
[ 22.100712] [<c11e325c>] ? sock_ioctl+0x1bb/0x1dd
[ 22.100904] [<c11e30a1>] ? kernel_sendmsg+0x35/0x35
[ 22.101114] [<c10c7469>] ? do_vfs_ioctl+0x478/0x4c3
[ 22.101311] [<c129250a>] ? do_page_fault+0x348/0x364
[ 22.101516] [<c12924f7>] ? do_page_fault+0x335/0x364
[ 22.101874] [<c104a0e4>] ? prepare_creds+0x12/0x82
[ 22.102070] [<c10c74f8>] ? sys_ioctl+0x44/0x64
[ 22.102259] [<c1294b9f>] ? sysenter_do_call+0x12/0x28
[ 22.102661] Code: 09 0f b6 49 08 83 f9 1f 77 12 8b 54 24 0c 0f b6 c0 d3 e2 b9 20 00 00 00 29 c1 d3 ea 6a ff 8b 4c 24 14 e9 67 01 00 00 ff 74 24 0c <ff> 73 04 68 61 9d 34 c1 e8 19 fb 04 00 83 c4 0c 83 3c 24 00 c7
[ 22.105115] EIP: [<c123e117>] fib_table_insert+0x521/0x78a SS:ESP 0068:efb5fd78
[ 22.105651] CR2: 0000000000000004
[ 22.106491] ---[ end trace 1b562bb079c0a1ca ]---
[ 35.716031] lp0: using parport0 (interrupt-driven).
[ 35.780480] ppdev: user-space parallel port driver
[解决办法]
ifconfig 有ip么
ping 127.0.0.1可以么
如果都不可以,就是驱动需要升级了
用其他机器下个网卡驱动,再装