This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x 以太网



板子芯片是am335x,两路100M以太网。驱动修改后,两路以太网可以正常使用,但多次断电重启后,偶尔会出现找不到网口错误,以太网接口无法使用,打印信息如下:

U-Boot 2011.09 (Apr 17 2014 - 05:04:56)

I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: HW ECC Hamming Code selected
128 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Net: cpsw
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
Booting from nand ...
HW ECC BCH8 Selected

NAND read: device 0 offset 0x280000, size 0x500000
5242880 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2693304 Bytes = 2.6 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (mxz@ubuntu) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #7 Mon May 12 04:53:17 PDT 2014
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd rootfstype=ubifs rootwait=1 ip=none
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 254244k/254244k available, 7900k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04be000 (4824 kB)
[ 0.000000] .init : 0xc04be000 - 0xc04f9000 ( 236 kB)
[ 0.000000] .data : 0xc04fa000 - 0xc054ef28 ( 340 kB)
[ 0.000000] .bss : 0xc054ef4c - 0xc057aae4 ( 175 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000122] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[ 0.058929] pid_max: default: 32768 minimum: 301
[ 0.059051] Security Framework initialized
[ 0.059143] Mount-cache hash table entries: 512
[ 0.059509] CPU: Testing write buffer coherency: ok
[ 0.079437] omap_hwmod: pruss: failed to hardreset
[ 0.080505] print_constraints: dummy:
[ 0.080871] NET: Registered protocol family 16
[ 0.082977] OMAP GPIO hardware version 0.1
[ 0.085327] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.087402] omap_hsmmc.0: alias fck already exists
[ 0.088592] am33xx_cpsw_init,mac:20:cd:39:d9:87:4b
[ 0.090057] edma.0: alias fck already exists
[ 0.090087] edma.0: alias fck already exists
[ 0.090118] edma.0: alias fck already exists
[ 0.108428] bio: create slab <bio-0> at 0
[ 0.110656] SCSI subsystem initialized
[ 0.113098] Switching to clocksource gp timer
[ 0.128570] NET: Registered protocol family 2
[ 0.128784] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.129089] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.129241] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.129333] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.129364] TCP reno registered
[ 0.129364] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.129394] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.129577] NET: Registered protocol family 1
[ 0.129821] RPC: Registered named UNIX socket transport module.
[ 0.129852] RPC: Registered udp transport module.
[ 0.129852] RPC: Registered tcp transport module.
[ 0.129882] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.130096] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.130340] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.130340] Registering NAND on CS0
[ 0.141998] VFS: Disk quotas dquot_6.5.2
[ 0.142059] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.142608] msgmni has been set to 496
[ 0.145782] alg: No test for stdrng (krng)
[ 0.146453] io scheduler noop registered
[ 0.146484] io scheduler deadline registered
[ 0.146545] io scheduler cfq registered (default)
[ 0.148315] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.553863] console [ttyO0] enabled
[ 0.558074] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.565917] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.573699] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.581481] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.589233] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.606323] brd: module loaded
[ 0.614349] loop: module loaded
[ 0.617797] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.624267] i2c-core: driver [tsl2550] using legacy resume method
[ 0.632171] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 0.639312] omap2-nand driver initializing
[ 0.643951] ONFI flash detected
[ 0.647338] ONFI param page 0 valid
[ 0.650970] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
[ 0.658660] Creating 8 MTD partitions on "omap2-nand.0":
[ 0.664215] 0x000000000000-0x000000020000 : "SPL"
[ 0.670532] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 0.677490] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 0.684448] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 0.691375] 0x000000080000-0x000000260000 : "U-Boot"
[ 0.698516] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 0.705291] 0x000000280000-0x000000780000 : "Kernel"
[ 0.713714] 0x000000780000-0x000008000000 : "File System"
[ 0.770507] OneNAND driver initializing
[ 0.775238] UBI: attaching mtd7 to ubi0
[ 0.779235] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 0.785797] UBI: logical eraseblock size: 126976 bytes
[ 0.791412] UBI: smallest flash I/O unit: 2048
[ 0.796325] UBI: sub-page size: 512
[ 0.801116] UBI: VID header offset: 2048 (aligned 2048)
[ 0.807403] UBI: data offset: 4096
[ 1.832916] UBI: max. sequence number: 53
[ 1.851440] UBI: attached mtd7 to ubi0
[ 1.855407] UBI: MTD device name: "File System"
[ 1.861114] UBI: MTD device size: 120 MiB
[ 1.866302] UBI: number of good PEBs: 964
[ 1.871093] UBI: number of bad PEBs: 0
[ 1.875732] UBI: number of corrupted PEBs: 0
[ 1.880371] UBI: max. allowed volumes: 128
[ 1.885192] UBI: wear-leveling threshold: 4096
[ 1.890075] UBI: number of internal volumes: 1
[ 1.894714] UBI: number of user volumes: 1
[ 1.899353] UBI: available PEBs: 0
[ 1.903991] UBI: total number of reserved PEBs: 964
[ 1.909057] UBI: number of PEBs reserved for bad PEB handling: 9
[ 1.915313] UBI: max/mean erase counter: 2/0
[ 1.919769] UBI: image sequence number: 1794978710
[ 1.924957] UBI: background thread "ubi_bgt0d" started, PID 456
[ 1.931732] CAN device driver interface
[ 1.935760] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.983764] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.990203] davinci_mdio davinci_mdio.0: detected phy mask fffffff6
[ 1.997924] davinci_mdio.0: probed
[ 2.001495] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[ 2.008850] davinci_mdio davinci_mdio.0: phy[3]: device 0:03, driver unknown
[ 2.016784] mousedev: PS/2 mouse device common for all mice
[ 2.023590] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 2.030273] omap_rtc: already running
[ 2.034240] i2c /dev entries driver
[ 2.038879] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 2.045410] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[ 2.054138] cpuidle: using governor ladder
[ 2.058868] cpuidle: using governor menu
[ 2.064910] omap4_aes_mod_init: loading AM33X AES driver
[ 2.070587] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 2.077117] omap4_aes_probe: probe() done
[ 2.081481] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 2.087646] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 2.099121] omap4_sham_probe: probe() done
[ 2.103820] oprofile: hardware counters not available
[ 2.109069] oprofile: using timer interrupt.
[ 2.113555] nf_conntrack version 0.5.0 (3972 buckets, 15888 max)
[ 2.120300] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.125976] TCP cubic registered
[ 2.129333] NET: Registered protocol family 17
[ 2.134002] can: controller area network core (rev 20090105 abi 8)
[ 2.140533] NET: Registered protocol family 29
[ 2.145172] can: raw protocol (rev 20090105)
[ 2.149627] can: broadcast manager protocol (rev 20090105 t)
[ 2.155548] Registering the dns_resolver key type
[ 2.160522] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 2.168518] ThumbEE CPU extension supported.
[ 2.173034] mux: Failed to setup hwmod io irq -22
[ 2.178527] Power Management for AM33XX family
[ 2.183349] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 2.190032] Copied the M3 firmware to UMEM
[ 2.194915] sr_init: platform driver register failed
[ 2.203399] clock: disabling unused clocks to save power
[ 2.221466] Detected MACID=20:cd:39:d9:87:4b
[ 2.226959] cpsw: Detected MACID = 20:cd:39:d9:87:4d
[ 2.233215] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:14 UTC (946684814)
[ 2.307281] UBIFS: recovery needed
[ 2.437652] UBIFS: recovery completed
[ 2.441497] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.447784] UBIFS: file system size: 119357440 bytes (116560 KiB, 113 MiB, 940 LEBs)
[ 2.456054] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[ 2.463684] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 2.469787] UBIFS: default compressor: lzo
[ 2.474060] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 2.482086] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 2.488739] Freeing init memory: 236K
INIT: version 2.86 booting
Please wait: booting...
Starting udev
Error opening /dev/fb0: No such device
[ 4.212829] alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.
Root filesystem already rw, not remounting
Caching udev devnodes
logger: mount: mount point /proc/bus/usb does not exist
ALSA: Restoring mixer settings...
Configuring network interfaces... /usr/sbin/alsactl: load_state:1625: No soundcards found...
[ 4.907257] PHY 0:01 not found
udhcpc (v1.13.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
done.
Setting up IP spoofing protection: rp_filter.
Fri Jul 27 10:30:00 UTC 2012
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.

请问 怎么解决