Hi,
I am debugging my board and meeting a problem.
There is a GSM module on my board. When power on ,the ethernet wired is normal,
but if I reboot the linux system or warm start (press reset key) the wired ethernet is
wrong. I can't ping other device through wired ethernet.
When I remove the module from my board ,and repeat the steps above,everything is normal.
My system logs when wired ehernet error as follows,Please help me to analyze.
Thank you very much.
U-Boot SPL 2013.10 (Apr 19 2014 - 17:33:14)
reading args
spl: error reading image args, err - -1
reading u-boot.img
reading u-boot.img
U-Boot 2013.10 (Apr 19 2014 - 17:33:14)
I2C: ready
DRAM: 256 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Error - No Valid Environment Area found
*** Warning - bad CRC, using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
** Unable to read file uEnv.txt **
reading uImage
2881752 bytes read in 179 ms (15.4 MiB/s)
Booting from mmc ...
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2881688 Bytes = 2.7 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (root@zhlx-2012) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #45 Sun Apr 20 10:42:50 CST 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 ES2.1 (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=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait 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: 253912k/253912k available, 8232k 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 - 0xc0508000 (5120 kB)
[ 0.000000] .init : 0xc0508000 - 0xc0542000 ( 232 kB)
[ 0.000000] .data : 0xc0542000 - 0xc05a10e8 ( 381 kB)
[ 0.000000] .bss : 0xc05a110c - 0xc05cd554 ( 178 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.000091] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[ 0.039093] pid_max: default: 32768 minimum: 301
[ 0.039184] Security Framework initialized
[ 0.039276] Mount-cache hash table entries: 512
[ 0.039642] CPU: Testing write buffer coherency: ok
[ 0.059478] omap_hwmod: pruss: failed to hardreset
[ 0.060546] print_constraints: dummy:
[ 0.060882] NET: Registered protocol family 16
[ 0.062835] OMAP GPIO hardware version 0.1
[ 0.065185] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.066955] omap_i2c.1: alias fck already exists
[ 0.067779] omap2_mcspi.1: alias fck already exists
[ 0.067993] omap2_mcspi.2: alias fck already exists
[ 0.068847] edma.0: alias fck already exists
[ 0.068878] edma.0: alias fck already exists
[ 0.068908] edma.0: alias fck already exists
[ 0.086914] bio: create slab <bio-0> at 0
[ 0.088897] SCSI subsystem initialized
[ 0.090454] usbcore: registered new interface driver usbfs
[ 0.090728] usbcore: registered new interface driver hub
[ 0.090942] usbcore: registered new device driver usb
[ 0.091217] registerd cppi-dma Intr @ IRQ 17
[ 0.091217] Cppi41 Init Done Qmgr-base(d087a000) dma-base(d0878000)
[ 0.091217] Cppi41 Init Done
[ 0.091247] musb-ti81xx musb-ti81xx: musb0, board_mode=0x11, plat_mode=0x1
[ 0.091522] musb-ti81xx musb-ti81xx: musb1, board_mode=0x11, plat_mode=0x1
[ 0.092529] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.094268] tps65910 1-002d: JTAGREVNUM 0x0
[ 0.096618] print_constraints: VRTC:
[ 0.098022] print_constraints: VIO: at 1500 mV
[ 0.100311] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
[ 0.102569] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
[ 0.103546] print_constraints: VDD3: 5000 mV
[ 0.104919] print_constraints: VDIG1: at 1800 mV
[ 0.106323] print_constraints: VDIG2: at 1800 mV
[ 0.107696] print_constraints: VPLL: at 1800 mV
[ 0.109100] print_constraints: VDAC: at 1800 mV
[ 0.110504] print_constraints: VAUX1: at 1800 mV
[ 0.111877] print_constraints: VAUX2: at 3300 mV
[ 0.113281] print_constraints: VAUX33: at 3300 mV
[ 0.114654] print_constraints: VMMC: at 3300 mV
[ 0.115112] tps65910 1-002d: No interrupt support, no core IRQ
[ 0.117095] Switching to clocksource gp timer
[ 0.131164] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.131347] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.131622] MUSB0 controller's USBSS revision = 4ea20800
[ 0.131652] musb0: Enabled SW babble control
[ 0.132110] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 0.132202] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 0.132324] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.132354] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.132354] usb usb1: Product: MUSB HDRC host driver
[ 0.132354] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.132385] usb usb1: SerialNumber: musb-hdrc.0
[ 0.133087] hub 1-0:1.0: USB hub found
[ 0.133117] hub 1-0:1.0: 1 port detected
[ 0.133605] musb-hdrc musb-hdrc.0: USB Host mode controller at d083c000 using DMA, IRQ 18
[ 0.133789] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.134063] MUSB1 controller's USBSS revision = 4ea20800
[ 0.134094] musb1: Enabled SW babble control
[ 0.134490] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.134552] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[ 0.134643] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.134643] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.134674] usb usb2: Product: MUSB HDRC host driver
[ 0.134674] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.134674] usb usb2: SerialNumber: musb-hdrc.1
[ 0.135345] hub 2-0:1.0: USB hub found
[ 0.135375] hub 2-0:1.0: 1 port detected
[ 0.135864] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using DMA, IRQ 19
[ 0.136260] NET: Registered protocol family 2
[ 0.136444] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.136718] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.136840] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.136932] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.136962] TCP reno registered
[ 0.136962] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.136993] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.137237] NET: Registered protocol family 1
[ 0.137481] RPC: Registered named UNIX socket transport module.
[ 0.137481] RPC: Registered udp transport module.
[ 0.137481] RPC: Registered tcp transport module.
[ 0.137512] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.137725] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.148651] VFS: Disk quotas dquot_6.5.2
[ 0.148712] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.149169] msgmni has been set to 495
[ 0.152099] alg: No test for stdrng (krng)
[ 0.152770] io scheduler noop registered
[ 0.152770] io scheduler deadline registered
[ 0.152832] io scheduler cfq registered (default)
[ 0.153930] Could not set LED4 to fully on
[ 0.188171] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.884582] console [ttyO0] enabled
[ 0.888824] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.896606] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.904388] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.912170] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.919921] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.928161] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 0.943542] brd: module loaded
[ 0.951141] loop: module loaded
[ 0.954498] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 1.037689] No daughter card found
[ 1.041290] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 1.056518] Board name: A335X_SK
[ 1.059906] Board version: 1.2B
[ 1.063171] The board is a AM335x Starter Kit.
[ 1.068634] omap_hsmmc.0: alias fck already exists
[ 1.074066] omap_hsmmc.1: alias fck already exists
[ 1.080047] da8xx_lcdc.0: alias fck already exists
[ 1.085510] da8xx_lcdc da8xx_lcdc.0: GLCD: Found NHD-4.3-ATXI#-T-1 panel
[ 1.101257] Console: switching to colour frame buffer device 60x34
[ 1.112701] usb 1-1: new full-speed USB device number 2 using musb-hdrc
[ 1.123535] registered am33xx_sr device
[ 1.129760] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.136901] omap2-nand driver initializing
[ 1.141387] OneNAND driver initializing
[ 1.187713] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.194183] davinci_mdio davinci_mdio.0: detected phy mask fffffffc
[ 1.202453] davinci_mdio.0: probed
[ 1.205993] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[ 1.213409] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 1.220916] PPP generic driver version 2.4.2
[ 1.225738] PPP BSD Compression module registered
[ 1.230682] PPP Deflate Compression module registered
[ 1.236175] usbcore: registered new interface driver cdc_ether
[ 1.242614] usbcore: registered new interface driver cdc_eem
[ 1.248596] cdc_ncm: 04-Aug-2011
[ 1.252166] usbcore: registered new interface driver cdc_ncm
[ 1.258087] Initializing USB Mass Storage driver...
[ 1.263488] usbcore: registered new interface driver usb-storage
[ 1.269805] USB Mass Storage support registered.
[ 1.275146] usbcore: registered new interface driver usbserial
[ 1.281463] USB Serial support registered for generic
[ 1.290954] usb 1-1: New USB device found, idVendor=1fa4, idProduct=6001
[ 1.298004] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1.305450] usb 1-1: Product: FT245R USB FIFO
[ 1.310028] usb 1-1: Manufacturer: FTDI
[ 1.314025] usb 1-1: SerialNumber: eRC1239
[ 1.437744] usb 2-1: new high-speed USB device number 2 using musb-hdrc
[ 1.621704] usb 2-1: New USB device found, idVendor=12d1, idProduct=1573
[ 1.628723] usb 2-1: New USB device strings: Mfr=5, Product=4, SerialNumber=0
[ 1.636199] usb 2-1: Product: HUAWEI Mobile
[ 1.640563] usb 2-1: Manufacturer: Huawei Technologies
[ 1.699432] cdc_ether 2-1:2.0: eth0: register 'cdc_ether' at usb-musb-hdrc.1-1, CDC Ethernet Device, 00:a0:c6:42:46:80
[ 1.713867] usbcore: registered new interface driver usbserial_generic
[ 1.720733] usbserial: USB Serial Driver core
[ 1.725433] USB Serial support registered for GSM modem (1-port)
[ 1.732025] option 2-1:2.2: GSM modem (1-port) converter detected
[ 1.739105] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 1.746276] option 2-1:2.3: GSM modem (1-port) converter detected
[ 1.753143] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 1.760314] option 2-1:2.4: GSM modem (1-port) converter detected
[ 1.767120] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 1.774291] option 2-1:2.5: GSM modem (1-port) converter detected
[ 1.781097] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 1.788269] option 2-1:2.6: GSM modem (1-port) converter detected
[ 1.795104] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB4
[ 1.802368] usbcore: registered new interface driver option
[ 1.808227] option: v0.7.2:USB Driver for GSM modems
[ 1.813812] mousedev: PS/2 mouse device common for all mice
[ 1.820190] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
[ 1.833831] rtc-ds3232 1-0068: rtc core: registered ds3232 as rtc0
[ 1.840515] i2c /dev entries driver
[ 1.918579] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.927032] cpuidle: using governor ladder
[ 1.931793] cpuidle: using governor menu
[ 1.940338] omap4_aes_mod_init: loading AM33X AES driver
[ 1.946014] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 1.952545] omap4_aes_probe: probe() done
[ 1.956970] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 1.963134] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 1.974456] omap4_sham_probe: probe() done
[ 1.981018] usbcore: registered new interface driver usbhid
[ 1.986846] usbhid: USB HID core driver
[ 1.991516] tiadc tiadc: attached adc driver
[ 1.996185] oprofile: hardware counters not available
[ 2.001525] oprofile: using timer interrupt.
[ 2.006011] nf_conntrack version 0.5.0 (3967 buckets, 15868 max)
[ 2.012786] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.018493] TCP cubic registered
[ 2.021850] NET: Registered protocol family 17
[ 2.026550] Registering the dns_resolver key type
[ 2.031555] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 2.039581] ThumbEE CPU extension supported.
[ 2.044128] mux: Failed to setup hwmod io irq -22
[ 2.049682] Power Management for AM33XX family
[ 2.054565] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 2.061248] Copied the M3 firmware to UMEM
[ 2.065612] Cortex M3 Firmware Version = 0x181
[ 2.074615] create_regulator: VDD1: Failed to create debugfs directory
[ 2.083038] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
[ 2.100616] clock: disabling unused clocks to save power
[ 2.118408] Detected MACID=88:33:14:f6:97:ae
[ 2.123565] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 2.132568] cpsw: Detected MACID = 88:33:14:f6:97:b0
[ 2.138336] mmc0: new high speed SDHC card at address 1234
[ 2.144989] mmcblk0: mmc0:1234 SA08G 7.28 GiB
[ 2.150665] rtc-ds3232 1-0068: setting system clock to 2014-04-22 16:47:08 UTC (1398185228)
[ 2.160003] mmcblk0: p1 p2 p3
[ 2.172058] kjournald starting. Commit interval 5 seconds
[ 2.181213] EXT3-fs (mmcblk0p2): using internal journal
[ 2.186706] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 2.193969] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 2.200653] Freeing init memory: 232K
INIT: version 2.88 booting
Starting udev
[ 5.523803] kjournald starting. Commit interval 5 seconds
[ 6.425231] EXT3-fs (mmcblk0p3): using internal journal
[ 6.430755] EXT3-fs (mmcblk0p3): mounted filesystem with ordered data mode
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
Starting Lighttpd Web Server: 2014-04-22 16:47:19: (log.c.166) server started
lighttpd.
***************************************************************
***************************************************************
NOTICE: This file system contains the followin GPLv3 packages:
binutils-symlinks
binutils
gdbserver
If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution. This can be done using
the opkg remove command. i.e.:
opkg remove <package>
Where <package> is the name printed in the list above
NOTE: If the package is a dependency of another package you
will be notified of the dependent packages. You should
use the --force-removal-of-dependent-packages option to
also remove the dependent packages as well
***************************************************************
***************************************************************
Stopping Bootlog daemon: bootlogd.
umount: can't umount /mnt/.psplash: Device or resource busy
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org am335x-evm ttyO0
Arago 2013.05 am335x-evm ttyO0
am335x-evm login: root
root@am335x-evm:~# ifconfig eth0 192.168.0.9
root@am335x-evm:~# ping 192.168.0.3
PING 192.168.0.3 (192.168.0.3): 56 data bytes
^C
--- 192.168.0.3 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
root@am335x-evm:~# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM 1237 @/org/kernel/udev/udevd
unix 4 [ ] DGRAM 2492 /dev/log
unix 2 [ ] DGRAM 2512
unix 2 [ ] DGRAM 2500
unix 3 [ ] STREAM CONNECTED 2459
unix 3 [ ] STREAM CONNECTED 2458
unix 3 [ ] DGRAM 1242
unix 3 [ ] DGRAM 1241
root@am335x-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:A0:C6:42:46:80
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:126 (126.0 B)
root@am335x-evm:~#
Thank you .