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.

Linux/PROCESSOR-SDK-AM335X: Ethernet cannot get IP in kernel

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: DP83848C, AM3352, TPS65910

Tool/software: Linux

I need somebody's Help.

My board can pick up the IP by DHCP under U-BOOT. But it can't get IP under the Linux.

1. My board is derived from AM335X EVMSK.
1.1 There is only one PHY.
1.2 phy-mode = "rmii";

2. My SDK is am437x-evm-linux-sdk-src-04.00.00.04

3. U-Boot
3.1 My PHY address in the file /board/ti/am335x/board.c

static struct cpsw_slave_data cpsw_slaves[] = {
{
.slave_reg_ofs = 0x208,
.sliver_reg_ofs = 0xd80,
.phy_addr = 1,
},
{
.slave_reg_ofs = 0x308,
.sliver_reg_ofs = 0xdc0,
.phy_addr = 0,

},
};

3.2 My ethnet(eth0) works well under U-BOOT.

04.02 SD!>mii info
PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00, 100baseT, FDX
04.02 SD!>mii dump 1 1
1. (786d) -- PHY status register --
(8000:0000) 1.15 = 0 100BASE-T4 able
(4000:4000) 1.14 = 1 100BASE-X full duplex able
(2000:2000) 1.13 = 1 100BASE-X half duplex able
(1000:1000) 1.12 = 1 10 Mbps full duplex able
(0800:0800) 1.11 = 1 10 Mbps half duplex able
(0400:0000) 1.10 = 0 100BASE-T2 full duplex able
(0200:0000) 1. 9 = 0 100BASE-T2 half duplex able
(0100:0000) 1. 8 = 0 extended status
(0080:0000) 1. 7 = 0 (reserved)
(0040:0040) 1. 6 = 1 MF preamble suppression
(0020:0020) 1. 5 = 1 A/N complete
(0010:0000) 1. 4 = 0 remote fault
(0008:0008) 1. 3 = 1 A/N able
(0004:0004) 1. 2 = 1 link status
(0002:0000) 1. 1 = 0 jabber detect
(0001:0001) 1. 0 = 1 extended capabilities


3.3 Device tree for PHY

cpsw_default: cpsw_default {
pinctrl-single,pins = <
AM33XX_IOPAD(0x90C, PIN_INPUT_PULLDOWN | MUX_MODE1) /* GMII1_CRS.RMII1_CRS_DV ok */
AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE1) /* GMII1_RXERR/RMII1_RXERR ok */
AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txen.rgmii1_tctl ok */
AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd1.rgmii1_td1 ok*/
AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_txd0.rgmii1_td0 ok*/
AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd1.rgmii1_rd1 ok */
AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd0.rgmii1_rd0 ok */
AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE0) /* RMII1_REFCLK ok */
>;
};

&mac {
slaves = <1>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_sleep>;
status = "okay";
};

&davinci_mdio {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&davinci_mdio_default>;
pinctrl-1 = <&davinci_mdio_sleep>;
status = "okay";
};

&cpsw_emac0 {
phy_id = <&davinci_mdio>, <1>;
phy-mode = "rmii";
};

4. Under Linux
4.1 The Device tree

cpsw_default: cpsw_default {
pinctrl-single,pins = <
/* Slave 1 */
AM33XX_IOPAD(0x90C, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* GMII1_CRS.RMII1_CRS_DV ok */
AM33XX_IOPAD(0x910, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* GMII1_RXERR/RMII1_RXERR ok */
AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rd1 */
AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rd0 */
AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE0) /* RMII1_REFCLK ok */
>;
};

&mac {
slaves = <1>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_sleep>;
status = "okay";
};

&davinci_mdio {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&davinci_mdio_default>;
pinctrl-1 = <&davinci_mdio_sleep>;
status = "okay";
};

&cpsw_emac0 {
phy_id = <&davinci_mdio>, <1>;
phy-mode = "rmii";
};


&phy_sel {
rmii-clock-ext;
};

5. Linux Log

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.59-ga75d8e9305 (hpgw@ubuntu) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #33 PREEMPT Thu Mar 15 16:00:30 CST 2018
[ 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] OF: fdt:Machine model: TI AM335x EVM-SK
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x8a800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (neon)
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=000828c2-02 rw rootfstype=ext4 rootwait
[ 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: 198324K/262144K available (7168K kernel code, 274K rwdata, 2324K rodata, 1024K init, 274K bss, 14668K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff800000 ( 752 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0800000 (8160 kB)
[ 0.000000] .init : 0xc0b00000 - 0xc0c00000 (1024 kB)
[ 0.000000] .data : 0xc0c00000 - 0xc0c44810 ( 275 kB)
[ 0.000000] .bss : 0xc0c44810 - 0xc0c89044 ( 275 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.000031] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000078] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000102] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000550] clocksource_probe: no matching clocksources found
[ 0.000894] Console: colour dummy device 80x30
[ 0.000947] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000964] This ensures that you still see kernel messages. Please
[ 0.000977] update your kernel commandline.
[ 0.001021] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
[ 0.067594] pid_max: default: 32768 minimum: 301
[ 0.067897] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.067926] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.069638] CPU: Testing write buffer coherency: ok
[ 0.070313] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.072265] EFI services will not be available.
[ 0.075620] devtmpfs: initialized
[ 0.110276] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.111040] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.111092] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.118394] pinctrl core: initialized pinctrl subsystem
[ 0.121050] NET: Registered protocol family 16
[ 0.125666] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.161403] omap_hwmod: debugss: _wait_target_disable failed
[ 0.247677] cpuidle: using governor ladder
[ 0.277661] cpuidle: using governor menu
[ 0.293697] OMAP GPIO hardware version 0.1
[ 0.326817] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe
[ 0.334501] No ATAGs?
[ 0.334542] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.399221] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.408770] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.409130] media: Linux media interface: v0.10
[ 0.409282] Linux video capture interface: v2.00
[ 0.409405] pps_core: LinuxPPS API ver. 1 registered
[ 0.409426] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.409487] PTP clock support registered
[ 0.409587] EDAC MC: Ver: 3.0.0
[ 0.412113] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.412907] Advanced Linux Sound Architecture Driver Initialized.
[ 0.415534] clocksource: Switched to clocksource timer1
[ 0.442582] NET: Registered protocol family 2
[ 0.444264] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.444352] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.444429] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.444579] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.444628] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.444924] NET: Registered protocol family 1
[ 0.445947] RPC: Registered named UNIX socket transport module.
[ 0.445977] RPC: Registered udp transport module.
[ 0.445994] RPC: Registered tcp transport module.
[ 0.446011] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.447849] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.453287] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.474316] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.476897] NFS: Registering the id_resolver key type
[ 0.476974] Key type id_resolver registered
[ 0.476995] Key type id_legacy registered
[ 0.477103] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.481542] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.481584] io scheduler noop registered
[ 0.481604] io scheduler deadline registered
[ 0.482019] io scheduler cfq registered (default)
[ 0.485429] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.651953] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.661227] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[ 1.256174] console [ttyS0] enabled
[ 1.263537] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.270602] [drm] Initialized
[ 1.278084] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.284761] [drm] No driver support for vblank timestamp query.
[ 1.330466] Console: switching to colour frame buffer device 60x34
[ 1.342126] tilcdc 4830e000.lcdc: fb0: frame buffer device
[ 1.409876] brd: module loaded
[ 1.429212] loop: module loaded
[ 1.438834] libphy: Fixed MDIO Bus: probed
[ 1.515607] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.521841] davinci_mdio 4a101000.mdio: detected phy mask fffffffd
[ 1.529373] libphy: 4a101000.mdio: probed
[ 1.533448] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver NS DP83848C 10/100 Mbps PHY
[ 1.544940] cpsw 4a100000.ethernet: Detected MACID = 88:33:14:fc:ca:18
[ 1.551953] cpsw 4a100000.ethernet: device node lookup for pps timer failed
[ 1.559310] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.570558] mousedev: PS/2 mouse device common for all mice
[ 1.577228] i2c /dev entries driver
[ 1.584821] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.594108] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.603536] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.615169] NET: Registered protocol family 17
[ 1.620417] Key type dns_resolver registered
[ 1.625217] omap_voltage_late_init: Voltage driver support not added
[ 1.644394] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.649862] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.659391] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xdc
[ 1.666101] nand: ESMT NAND 512MiB 3,3V 8-bit
[ 1.670506] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.678227] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[ 1.683893] 13 ofpart partitions found on MTD device omap2-nand.0
[ 1.690088] Creating 13 MTD partitions on "omap2-nand.0":
[ 1.695577] 0x000000000000-0x000000080000 : "NAND.SPL"
[ 1.704323] 0x000000080000-0x000000100000 : "NAND.SPL.backup1"
[ 1.713694] 0x000000100000-0x000000180000 : "NAND.SPL.backup2"
[ 1.722867] 0x000000180000-0x000000200000 : "NAND.SPL.backup3"
[ 1.731803] 0x000000200000-0x000000280000 : "NAND.u-boot-spl-os"
[ 1.740977] 0x000000280000-0x000000380000 : "NAND.u-boot"
[ 1.749855] 0x000000380000-0x000000400000 : "NAND.u-boot-env"
[ 1.758855] 0x000000400000-0x000000480000 : "NAND.u-boot-env.backup1"
[ 1.768612] 0x000000480000-0x000000a80000 : "NAND.kernel"
[ 1.779649] 0x000000a80000-0x000000b00000 : "NAND.climax.config"
[ 1.788997] 0x000000b00000-0x000000c00000 : "NAND.climax.tmp"
[ 1.798013] 0x000000c00000-0x000000f00000 : "NAND.climax.preserved"
[ 1.808525] 0x000000f00000-0x000020000000 : "NAND.rootfs"
[ 2.055931] tps65910 0-002d: No interrupt support, no core IRQ
[ 2.065364] random: fast init done
[ 2.069333] vrtc: supplied by vbat
[ 2.077449] vio: supplied by vbat
[ 2.083096] vdd1: supplied by vbat
[ 2.089456] vdd2: supplied by vbat
[ 2.097915] vdig1: supplied by vbat
[ 2.103671] vdig2: supplied by vbat
[ 2.109577] vpll: supplied by vbat
[ 2.115237] vdac: supplied by vbat
[ 2.120876] vaux1: supplied by vbat
[ 2.126857] vaux2: supplied by vbat
[ 2.132602] vaux33: supplied by vbat
[ 2.138518] vmmc: supplied by vbat
[ 2.144286] vbb: supplied by vbat
[ 2.150518] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 2.157931] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 600000 KHz
[ 2.165355] cpu cpu0: dev_pm_opp_set_rate: failed to find current OPP for freq 600000000 (-34)
[ 2.175020] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 300000 KHz
[ 2.187052] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 2.252734] input: gpio_buttons0 as /devices/platform/gpio_buttons0/input/input0
[ 2.266157] hctosys: unable to open rtc device (rtc0)
[ 2.273800] ALSA device list:
[ 2.277102] No soundcards found.
[ 2.286387] Waiting for root device PARTUUID=000828c2-02...
[ 2.386243] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.398656] mmc0: new high speed SDHC card at address aaaa
[ 2.407991] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
[ 2.417131] mmcblk0: p1 p2
[ 2.557359] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.566076] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.584766] devtmpfs: mounted
[ 2.595992] Freeing unused kernel memory: 1024K
[ 3.044022] systemd[1]: System time before build time, advancing clock.
[ 3.237228] systemd[1]: systemd 230 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
[ 3.258242] systemd[1]: Detected architecture arm.

Welcome to Arago 2017.10!

[ 3.308773] systemd[1]: Set hostname to <am335x-evm>.
[ 4.141637] systemd[1]: [/lib/systemd/system/gadget-init.service:15] Unknown lvalue 'ExecStopPre' in section 'Service'
[ 5.079697] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 5.116930] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 5.157424] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 5.197476] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 5.238002] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ 5.277379] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Created slice User and Session Slice.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Reached target Paths.
[ OK ] Reached target Swap.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on Process Core Dump Socket.
[ OK ] Created slice System Slice.
[ OK ] Reached target Slices.
Starting alignment.service...
Starting Journal Service...
Starting Load Kernel Modules...
[ OK ] Created slice system-getty.slice.
Starting Remount Root and Kernel File Systems...
Starting Create Static Device Nodes in /dev...
[ 6.143807] cryptodev: loading out-of-tree module taints kernel.
[ 6.187193] cryptodev: disagrees about version of symbol crypto_alloc_ahash
[ 6.194304] cryptodev: Unknown symbol crypto_alloc_ahash (err -22)
Mounting Debug File System...
[ 6.284298] cryptodev: disagrees about version of symbol crypto_ahash_setkey
[ 6.386199] cryptodev: Unknown symbol crypto_ahash_setkey (err -22)
[ 6.441654] cryptodev: disagrees about version of symbol crypto_alloc_aead
[ 6.441700] cryptodev: Unknown symbol crypto_alloc_aead (err -22)
[ 6.441744] cryptodev: disagrees about version of symbol crypto_aead_setauthsize
[ 6.441765] cryptodev: Unknown symbol crypto_aead_setauthsize (err -22)
[ 6.441899] cryptodev: disagrees about version of symbol crypto_destroy_tfm
[ 6.441919] cryptodev: Unknown symbol crypto_destroy_tfm (err -22)
[ 6.442044] cryptodev: disagrees about version of symbol crypto_aead_setkey
[ 6.442063] cryptodev: Unknown symbol crypto_aead_setkey (err -22)
[ 6.442347] cryptodev: disagrees about version of symbol crypto_ahash_final
[ 6.442366] cryptodev: Unknown symbol crypto_ahash_final (err -22)
[ 6.442757] cryptodev: disagrees about version of symbol crypto_alloc_skcipher
[ 6.442777] cryptodev: Unknown symbol crypto_alloc_skcipher (err -22)
[ 6.512141] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 6.637934] uio_module_drv: disagrees about version of symbol _dev_info
[ 6.637977] uio_module_drv: Unknown symbol _dev_info (err -22)
[ 6.638117] uio_module_drv: disagrees about version of symbol dev_err
[ 6.638137] uio_module_drv: Unknown symbol dev_err (err -22)
[ 6.646558] uio_module_drv: disagrees about version of symbol kobject_uevent
[ 6.646595] uio_module_drv: Unknown symbol kobject_uevent (err -22)
Starting Setup Virtual Console...
Mounting POSIX Message Queue File System...
Mounting Temporary Directory...
[ OK ] Listening on udev Kernel Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Debug File System.
[ OK ] Mounted Temporary Directory.
[ OK ] Started alignment.service.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Started Setup Virtual Console.
[ OK ] Started Journal Service.
Starting udev Kernel Device Manager...
Starting udev Coldplug all Devices...
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
Mounting /media/ram...
Starting Flush Journal to Persistent Storage...
Mounting Configuration File System...
Starting Apply Kernel Variables...
[ OK ] Mounted Configuration File System.
[ OK ] Mounted /var/volatile.
[ OK ] Mounted /media/ram.
[ OK ] Started Apply Kernel Variables.
[ 9.634276] systemd-journald[96]: Received request to flush runtime journal from PID 1
Starting Load/Save Random Seed...
[ OK ] Reached target Local File Systems.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Load/Save Random Seed.
Starting Create Volatile Files and Directories...
[ OK ] Started Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Network Time Synchronization.
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Time Synchronized.
[ OK ] Found device /dev/ttyS0.
[ 17.870709] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 18.572490] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[ OK ] Started udev Coldplug all Devices.
[ OK ] Reached target System Initialization.
[ OK ] Listening on dropbear.socket.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started D-Bus System Message Bus.
[ 22.364179] omap_hwmod: pruss: _wait_target_ready failed: -16
[ 22.502388] pruss-soc-bus 4a326000.pruss-soc-bus: use pm_runtime_put_sync_suspend() in driver?
[ 22.594629] pruss-soc-bus 4a326000.pruss-soc-bus: couldn't enable module
[ 22.685037] pruss-soc-bus: probe of 4a326000.pruss-soc-bus failed with error -16
[ 22.777393] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 22.901400] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 22.996055] omap-aes 53500000.aes: will run requests pump with realtime priority
[ 23.537584] pvrsrvkm: disagrees about version of symbol dev_err
[ 23.599366] pvrsrvkm: Unknown symbol dev_err (err -22)
[ 23.711254] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 23.900167] PM: Cannot get wkup_m3_ipc handle
[ 24.279637] pvrsrvkm: disagrees about version of symbol dev_err
[ 24.371321] pvrsrvkm: Unknown symbol dev_err (err -22)
Starting Avahi mDNS/DNS-SD Stack...
[ OK ] Started System Logging Service.
[ OK ] Started Kernel Logging Service.
Starting Network Service...
Starting uim-sysfs.service...
Starting Login Service...
Starting Print notice about GPLv3 packages...
Starting Telephony service...
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Started Network Service.
[ 29.970823] net eth0: initializing cpsw version 1.12 (0)
[ 30.116151] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 30.122640] cpsw 4a100000.ethernet: ALE Table size 1024
[ 30.417043] NS DP83848C 10/100 Mbps PHY 4a101000.mdio:01: attached PHY driver [NS DP83848C 10/100 Mbps PHY] (mii_bus:phy_addr=4a101000.mdio:01, irq=-1)
[ 30.656366] Bluetooth: Core ver 2.22
[ 30.731269] NET: Registered protocol family 31
[ 30.771100] cpts ptp bc clkid 0
[ 30.829236] Bluetooth: HCI device and connection manager initialized
[ 30.988229] Bluetooth: HCI socket layer initialized
[ 30.993268] Bluetooth: L2CAP socket layer initialized
[ 31.206455] Bluetooth: SCO socket layer initialized
[ 31.289746] remoteproc remoteproc0: wkup_m3 is available
[ 31.309408] PM: Cannot get wkup_m3_ipc handle
[ 31.309656] remoteproc remoteproc0: powering up wkup_m3
[ 31.456701] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 224268
[ 31.457383] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[ 31.458639] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Started Telephony service.
[ OK ] Started Login Service.
[ 32.726749] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ OK ] Reached target Network.
Starting Simple Network Management Protocol (SNMP) Daemon....
Starting Lightning Fast Webserver With Light System Requirements...
[ OK ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
Starting Permit User Sessions...
Starting Enable and configure wl18xx bluetooth stack...
Starting Network Name Resolution...
[ OK ] Started Lightning Fast Webserver With Light System Requirements.
[ OK ] Started Permit User Sessions.
[ 37.785928] random: crng init done
[ OK ] Started Network Name Resolution.
[ 39.188820] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ OK ] Found device /dev/ttyS3.
[ 42.822217] NET: Registered protocol family 15
[ OK ] Started Enable and configure wl18xx bluetooth stack.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttyS3.
[ 50.209275] Initializing XFRM netlink socket
[ OK ] Found device /dev/mmcblk0p1.

_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|

Arago Project http://arago-project.org am335x-evm ttyS0

Arago 2017.10 am335x-evm ttyS0

am335x-evm login: [ 56.132136] udc-core: couldn't find an available UDC - added [g_multi] to list of pending drivers
[ 62.484404] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
[ 62.589222] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input1
[ 62.729003] PM: bootloader does not support rtc-only!
[ 63.813828] 47401300.usb-phy supply vcc not found, using dummy regulator
[ 63.918298] 47401b00.usb-phy supply vcc not found, using dummy regulator
[ 64.357728] usbcore: registered new interface driver usbfs
[ 64.363711] usbcore: registered new interface driver hub
[ 64.547889] usbcore: registered new device driver usb
[ 65.268817] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 65.339317] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 65.455488] hub 1-0:1.0: USB hub found
[ 65.526286] hub 1-0:1.0: 1 port detected
[ 65.945162] using random self ethernet address
[ 65.981243] using random host ethernet address
[ 66.030043] using host ethernet address: 88:33:14:FC:CA:1A[ 66.103763] using random self ethernet address
[ 66.153245] using random host ethernet address
[ 66.215896] using host ethernet address: 88:33:14:FC:CA:1A[ 66.315993] usb0: HOST MAC 88:33:14:fc:ca:1a
[ 66.379246] usb0: MAC 16:06:4c:1c:e5:21
[ 66.753252] Mass Storage Function, version: 2009/09/11
[ 66.797376] LUN: removable file: (no medium)
[ 66.862339] LUN: removable read only file: /dev/mmcblk0p1
[ 66.926010] Number of LUNs=1
[ 66.948992] g_multi gadget: Multifunction Composite Gadget
[ 66.954629] g_multi gadget: g_multi ready
[ 67.431382] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 67.496013] usb 1-1: new full-speed USB device number 2 using musb-hdrc
[ 67.628378] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[ 67.768995] hub 2-0:1.0: USB hub found
[ 67.812214] hub 2-0:1.0: 1 port detected
***************************************************************
***************************************************************
NOTICE: This file system contains the following GPLv3 packages:
autoconf
binutils
cifs-utils
cpp-symlinks
cpp
dosfstools
g++-symlinks
g++
gawk-dev
gawk
gcc-symlinks
gcc
gdb
gdbserver
glmark2
gstreamer1.0-libav
hidapi
libcairo-perf-utils
libgmp10
libidn11
libmpc3
libmpfr4
libreadline-dev
libreadline6
m4-dev
m4
make
nettle
swig-dev
swig

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
***************************************************************
***************************************************************
[ 89.901029] pvrsrvkm: disagrees about version of symbol dev_err
[ 89.907619] pvrsrvkm: Unknown symbol dev_err (err -22)

_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|

Arago Project http://arago-project.org am335x-evm ttyS0

Arago 2017.10 am335x-evm ttyS0

am335x-evm login: root
[ 96.003116] pvrsrvkm: disagrees about version of symbol dev_err
[ 96.066003] pvrsrvkm: Unknown symbol dev_err (err -22)
root@am335x-evm:~#
root@am335x-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 88:33:14:FC:CA:18
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2338 (2.2 KiB)
Interrupt:171

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:480 errors:0 dropped:0 overruns:0 frame:0
TX packets:480 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:36480 (35.6 KiB) TX bytes:36480 (35.6 KiB)

usb0 Link encap:Ethernet HWaddr 16:06:4C:1C:E5:21
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)

root@am335x-evm:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 88:33:14:FC:CA:18
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2338 (2.2 KiB)
Interrupt:171

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:640 errors:0 dropped:0 overruns:0 frame:0
TX packets:640 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:48640 (47.5 KiB) TX bytes:48640 (47.5 KiB)

usb0 Link encap:Ethernet HWaddr 16:06:4C:1C:E5:21
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)

root@am335x-evm:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)

Link detected: yes
root@am335x-evm:~# ethtool -S eth0
NIC statistics:
Good Rx Frames: 0
Broadcast Rx Frames: 0
Multicast Rx Frames: 0
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 0
Good Tx Frames: 8
Broadcast Tx Frames: 8
Multicast Tx Frames: 0
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 2704
Rx + Tx 64 Octet Frames: 0
Rx + Tx 65-127 Octet Frames: 0
Rx + Tx 128-255 Octet Frames: 0
Rx + Tx 256-511 Octet Frames: 8
Rx + Tx 512-1023 Octet Frames: 0
Rx + Tx 1024-Up Octet Frames: 0
Net Octets: 2704
Rx Start of Frame Overruns: 0
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 0
Rx DMA chan 0: head_enqueue: 1
Rx DMA chan 0: tail_enqueue: 127
Rx DMA chan 0: pad_enqueue: 0
Rx DMA chan 0: misqueued: 0
Rx DMA chan 0: desc_alloc_fail: 0
Rx DMA chan 0: pad_alloc_fail: 0
Rx DMA chan 0: runt_receive_buf: 0
Rx DMA chan 0: runt_transmit_bu: 0
Rx DMA chan 0: empty_dequeue: 0
Rx DMA chan 0: busy_dequeue: 0
Rx DMA chan 0: good_dequeue: 0
Rx DMA chan 0: requeue: 0
Rx DMA chan 0: teardown_dequeue: 0
Tx DMA chan 0: head_enqueue: 8
Tx DMA chan 0: tail_enqueue: 0
Tx DMA chan 0: pad_enqueue: 0
Tx DMA chan 0: misqueued: 0
Tx DMA chan 0: desc_alloc_fail: 0
Tx DMA chan 0: pad_alloc_fail: 0
Tx DMA chan 0: runt_receive_buf: 0
Tx DMA chan 0: runt_transmit_bu: 0
Tx DMA chan 0: empty_dequeue: 8
Tx DMA chan 0: busy_dequeue: 0
Tx DMA chan 0: good_dequeue: 8
Tx DMA chan 0: requeue: 0
Tx DMA chan 0: teardown_dequeue: 0
root@am335x-evm:~#

  • Dear All,

    This problem has been solved.

    The problem can be solved by modifying the device tree.

    The modification is as following:

    1.  cpsw

    cpsw_default: cpsw_default {
    pinctrl-single,pins = <
    AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_crs.rmii1_crs_dv */
    AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxerr.rmii1_rxerr */
    AM33XX_IOPAD(0x914, PIN_OUTPUT | MUX_MODE1) /* mii1_txen.rmii1_txen */
    AM33XX_IOPAD(0x924, PIN_OUTPUT | MUX_MODE1) /* mii1_txd1.rmii1_txd1 */
    AM33XX_IOPAD(0x928, PIN_OUTPUT | MUX_MODE1) /* mii1_txd0.rmii1_txd0 */
    AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd1.rmii1_rxd1 */
    AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd0.rmii1_rxd0 */
    AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii1_refclk.rmii1_refclk */
    >;
    };

    2. The other parts of the device tree

    &mac {
    slaves = <1>;
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&cpsw_default>;
    pinctrl-1 = <&cpsw_sleep>;
    status = "okay";
    };

    &davinci_mdio {
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&davinci_mdio_default>;
    pinctrl-1 = <&davinci_mdio_sleep>;
    status = "okay";
    };

    &cpsw_emac0 {
    phy_id = <&davinci_mdio>,<1>;
    phy-mode = "rmii";
    dual_emac_res_vlan = <1>;
    };

  • Thanks for updating the thread.