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.

AM3354: Ethernet configuration issue

Part Number: AM3354


Hi,

In one of our custom designed board of AM3354, I am unable to setup the eth0 connection! Below are my ifconfig outputs.

Our SDK version - processor-sdk-03.01

And Kernel version - 4.4.41

ifconfig output ---------->

root@am335x-evm:~# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1%132976/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:275 errors:0 dropped:0 overruns:0 frame:0
          TX packets:275 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:220143 (214.9 KiB)  TX bytes:220143 (214.9 KiB)

usb0      Link encap:Ethernet  HWaddr B2:B0:7F:AF:08:88  
          inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
          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)

ifconfig -a output ---->

root@am335x-evm:~# ifconfig -a
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1%132976/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:275 errors:0 dropped:0 overruns:0 frame:0
          TX packets:275 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:220143 (214.9 KiB)  TX bytes:220143 (214.9 KiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  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:1
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

usb0      Link encap:Ethernet  HWaddr B2:B0:7F:AF:08:88  
          inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
          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)

Also, if I try manually to bring eth0 up below if the result,2677.Ethernet.pdf

U-Boot 2016.05-00319-ga0faac0-dirty (Aug 31 2017 - 15:21:37 +0530)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x EVM
       Watchdog enabled
DRAM:  512 MiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in SROM is         de:ad:be:ef:00:01
Address in environment is  68:9e:19:81:96:6a
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
Booting from nand ...

NAND read: device 0 offset 0x80000, size 0x40000
 262144 bytes read: OK

NAND read: device 0 offset 0x200000, size 0x800000
 8388608 bytes read: OK
Bad Linux ARM zImage magic!
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
3474936 bytes read in 301 ms (11 MiB/s)
44391 bytes read in 36 ms (1.2 MiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x3505f8 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8fff2000, end 8ffffd66 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.41-gf9f6f0db2d (root@BLRMIESPC-1137) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #78 PRE7
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI AM335x EVM
[    0.000000] cma: Reserved 48 MiB at 0x9d000000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=a3cbd0b3-02 rw rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 459976K/524288K available (6603K kernel code, 317K rwdata, 2344K rodata, 264K init, 265K bss, 15160K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc08c5004   (8949 kB)
[    0.000000]       .init : 0xc08c6000 - 0xc0908000   ( 264 kB)
[    0.000000]       .data : 0xc0908000 - 0xc09574b0   ( 318 kB)
[    0.000000]        .bss : 0xc09574b0 - 0xc0999bd8   ( 266 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000047] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000060] OMAP clocksource: timer1 at 24000000 Hz
[    0.000295] clocksource_probe: no matching clocksources found
[    0.000508] Console: colour dummy device 80x30
[    0.000538] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000547] This ensures that you still see kernel messages. Please
[    0.000554] update your kernel commandline.
[    0.000576] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.058680] pid_max: default: 32768 minimum: 301
[    0.058854] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.058870] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.059710] Initializing cgroup subsys io
[    0.059745] Initializing cgroup subsys memory
[    0.059788] Initializing cgroup subsys devices
[    0.059806] Initializing cgroup subsys freezer
[    0.059823] Initializing cgroup subsys perf_event
[    0.059839] Initializing cgroup subsys pids
[    0.059874] CPU: Testing write buffer coherency: ok
[    0.060320] Setting up static identity map for 0x80008200 - 0x80008260
[    0.063058] devtmpfs: initialized
[    0.081039] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.096162] omap_hwmod: cpgmac0: Missing dt reg0 for /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/ethernet@4a100000
[    0.096190] ------------[ cut here ]------------
[    0.096224] WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2523 _init.constprop.22+0x1fc/0x424()
[    0.096234] omap_hwmod: cpgmac0: doesn't have mpu register target base
[    0.096243] Modules linked in:
[    0.096266] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.41-gf9f6f0db2d #78
[    0.096275] Hardware name: Generic AM33XX (Flattened Device Tree)
[    0.096283] Backtrace: 
[    0.096321] [<c0013508>] (dump_backtrace) from [<c0013704>] (show_stack+0x18/0x1c)
[    0.096331]  r7:c08d17c4 r6:000009db r5:00000009 r4:00000000
[    0.096364] [<c00136ec>] (show_stack) from [<c02a8aa8>] (dump_stack+0x24/0x28)
[    0.096388] [<c02a8a84>] (dump_stack) from [<c0031d64>] (warn_slowpath_common+0x88/0xb4)
[    0.096406] [<c0031cdc>] (warn_slowpath_common) from [<c0031dc8>] (warn_slowpath_fmt+0x38/0x40)
[    0.096415]  r8:000000a8 r7:dc0e12c0 r6:00000000 r5:dcb4b67c r4:c0802410
[    0.096448] [<c0031d94>] (warn_slowpath_fmt) from [<c08d17c4>] (_init.constprop.22+0x1fc/0x424)
[    0.096457]  r3:c080392c r2:c0802410
[    0.096469]  r4:c091259c
[    0.096488] [<c08d15c8>] (_init.constprop.22) from [<c08d1b1c>] (__omap_hwmod_setup_all+0x48/0x98)
[    0.096497]  r10:00000000 r9:c08c6600 r8:000000a8 r7:dc0e12c0 r6:c090cd20 r5:c090efd8
[    0.096521]  r4:c091259c
[    0.096540] [<c08d1ad4>] (__omap_hwmod_setup_all) from [<c00096bc>] (do_one_initcall+0x98/0x1e4)
[    0.096549]  r5:c08d1ad4 r4:c090cd20
[    0.096578] [<c0009624>] (do_one_initcall) from [<c08c6e80>] (kernel_init_freeable+0x138/0x1cc)
[    0.096588]  r10:00000002 r9:c08c6600 r8:000000a8 r7:c08fa81c r6:c0906a0c r5:c09574c0
[    0.096611]  r4:c09574c0
[    0.096633] [<c08c6d48>] (kernel_init_freeable) from [<c0674e0c>] (kernel_init+0x18/0xf4)
[    0.096642]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0674df4
[    0.096664]  r4:c09574c0
[    0.096682] [<c0674df4>] (kernel_init) from [<c000fab8>] (ret_from_fork+0x14/0x3c)
[    0.096690]  r5:c0674df4 r4:00000000
[    0.096744] ---[ end trace c2f0eb59d6bfb901 ]---
[    0.101345] omap_hwmod: debugss: _wait_target_disable failed
[    0.130531] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.135164] pinctrl core: initialized pinctrl subsystem
[    0.136778] NET: Registered protocol family 16
[    0.139667] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.168742] cpuidle: using governor ladder
[    0.198731] cpuidle: using governor menu
[    0.204590] OMAP GPIO hardware version 0.1
[    0.215357] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_se
[    0.219300] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.259743] edma 49000000.edma: TI EDMA DMA engine driver
[    0.265530] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, e
[    0.265601] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, e
[    0.265774] media: Linux media interface: v0.10
[    0.265853] Linux video capture interface: v2.00
[    0.265925] pps_core: LinuxPPS API ver. 1 registered
[    0.265935] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.265972] PTP clock support registered
[    0.266045] EDAC MC: Ver: 3.0.0
[    0.267529] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.267998] Advanced Linux Sound Architecture Driver Initialized.
[    0.269575] clocksource: Switched to clocksource timer1
[    0.283797] NET: Registered protocol family 2
[    0.284747] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.284818] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.284879] TCP: Hash tables configured (established 4096 bind 4096)
[    0.284970] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.284996] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.285182] NET: Registered protocol family 1
[    0.285651] RPC: Registered named UNIX socket transport module.
[    0.285669] RPC: Registered udp transport module.
[    0.285678] RPC: Registered tcp transport module.
[    0.285686] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.286806] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    0.289379] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.300170] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.301239] NFS: Registering the id_resolver key type
[    0.301338] Key type id_resolver registered
[    0.301348] Key type id_legacy registered
[    0.301439] ntfs: driver 2.1.32 [Flags: R/O].
[    0.305849] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.305884] io scheduler noop registered
[    0.305901] io scheduler deadline registered
[    0.306112] io scheduler cfq registered (default)
[    0.307975] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.312202] backlight supply power not found, using dummy regulator
[    0.393603] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    0.398609] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[    1.219968] console [ttyS0] enabled
[    1.224945] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
[    1.235269] [drm] Initialized drm 1.1.0 20060810
[    1.243188] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.249993] [drm] No driver support for vblank timestamp query.
[    1.288923] Console: switching to colour frame buffer device 100x30
[    1.303427] tilcdc 4830e000.lcdc: fb0:  frame buffer device
[    1.329809] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[    1.344414] loop: module loaded
[    1.351173] libphy: Fixed MDIO Bus: probed
[    1.358011] mousedev: PS/2 mouse device common for all mice
[    1.364468] i2c /dev entries driver
[    1.369463] cpuidle: enable-method property 'ti,am3352' found operations
[    1.399879] pinctrl-single 44e10800.pinmux: pin 44e109ac.0 already requested by 44e10800.pinmux; cannot claim for 47810000.mmc
[    1.411465] pinctrl-single 44e10800.pinmux: pin-107 (47810000.mmc) status -22
[    1.418673] pinctrl-single 44e10800.pinmux: could not request pin 107 (44e109ac.0) from group pinmux_wlan_pins  on device pinctrle
[    1.431039] omap_hsmmc 47810000.mmc: Error applying setting, reverse things back
[    1.556357] ledtrig-cpu: registered to indicate activity on CPUs
[    1.581616] NET: Registered protocol family 10
[    1.587578] sit: IPv6 over IPv4 tunneling driver
[    1.600629] NET: Registered protocol family 17
[    1.605492] Key type dns_resolver registered
[    1.619895] omap_voltage_late_init: Voltage driver support not added
[    1.643707] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    1.648899] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    1.671209] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xda
[    1.677692] nand: Toshiba NAND 256MiB 3,3V 8-bit
[    1.689592] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
[    1.709620] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[    1.715119] 10 ofpart partitions found on MTD device 8000000.nand
[    1.727150] Creating 10 MTD partitions on "8000000.nand":
[    1.739593] 0x000000000000-0x000000020000 : "NAND.SPL"
[    1.751246] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[    1.770738] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[    1.779462] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[    1.797295] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[    1.811078] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[    1.830600] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[    1.837879] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[    1.861096] 0x000000200000-0x000000a00000 : "NAND.kernel"
[    1.880676] 0x000000a00000-0x000010000000 : "NAND.file-system"
[    2.099805] tps65910 0-002d: No interrupt support, no core IRQ
[    2.142279] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    2.158181] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
[    2.170921] vmmc: supplied by vbat
[    2.219936] vdd_mpu: supplied by vbat
[    2.226104] input: volume_keys@0 as /devices/platform/volume_keys@0/input/input0
[    2.243167] hctosys: unable to open rtc device (rtc0)
[    2.262848] lis3_reg: disabling
[    2.269856] ALSA device list:
[    2.272848]   No soundcards found.
[    2.290482] Waiting for root device PARTUUID=a3cbd0b3-02...
[    2.937575] mmc1: host does not support reading read-only switch, assuming write-enable
[    2.947457] mmc1: new high speed SDHC card at address 0002
[    2.953925] mmcblk0: mmc1:0002 00000 3.83 GiB 
[    2.960027]  mmcblk0: p1 p2
[    3.078194] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.086597] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.097674] devtmpfs: mounted
[    3.101179] Freeing unused kernel memory: 264K (c08c6000 - c0908000)
[    3.107839] This architecture does not have kernel memory protection.
[    3.429263] systemd[1]: System time before build time, advancing clock.
[    3.520904] random: systemd: uninitialized urandom read (16 bytes read, 34 bits of entropy available)
[    3.539347] random: systemd: uninitialized urandom read (16 bytes read, 34 bits of entropy available)
[    3.578985] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPT)
[    3.598976] systemd[1]: Detected architecture arm.

root@am335x-evm:~# ifup eth0
ifconfig: SIOCGIFFLAGS: No such device

I have attached boot and kernel logs file, my board schematic and my .dts file

Please help.