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.

AM3359: Custom board inspired of TMDXICE3359 evm with DP83848 (PHY) instead of TLK110

Part Number: AM3359
Other Parts Discussed in Thread: TPS65910, DP83848C

After boot (u-boot and kernel) i have no ethernet device available (eth0 and eth1).
On my custom board i have no eeprom with name of evm then i follow SDK documentation 06.03.00.106 (§ 6.4.1 U-boot Board Port) for modified the files (board.c, mux.c, board.h etc.).

I have log with U-BOOT :

U-Boot 2019.01-g49b59ab68a-dirty (Jan 12 2021 - 13:43:08 +0100)

CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM: 256 MiB
ETH0, PRU
ETH1, PRU
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from FAT... OK
Net: Could not get PHY for ethernet@4a100000: addr 0

Warning: ethernet@4a100000 MAC addresses don't match:
Address in ROM is 00:35:ff:78:db:cd
Address in environment is c4:f3:12:f8:ad:83
eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is c4:f3:12:f8:ad:85
, eth1: usb_ether
Hit any key to stop autoboot: 0
** Unable to read file uEnv.txt **
4215296 bytes read in 356 ms (11.3 MiB/s)
37518 bytes read in 5 ms (7.2 MiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8df2c000, end 8df3828d ... OK

When I use command : ifconfig -a i have :

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

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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

When I use command : ifconfig eth0 i have :


fconfig: eth0: error fetching interface information: Device not found

Do you have any idea ?

  • Hello Mehdi,

    Please take a look at the CPSW Ethernet Triage Checklist. Are your PHYs connected to CPSW ports or PRU Ethernet ports?

    Regards,

    Nick

  • Hello Nick,

    The PHYs are connected to PRU Ethernet ports. 

    Regards,

    Mehdi

  • Please attach your boot log as a text file. Please attach the applicable parts of your device tree.

  • U-Boot SPL 2019.01-g49b59ab68a-dirty (Jan 12 2021 - 13:43:08 +0100)
    Trying to boot from MMC1

    U-Boot 2019.01-g49b59ab68a-dirty (Jan 12 2021 - 13:43:08 +0100)
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM:  256 MiB
    ETH0, PRU
    ETH1, PRU
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0
    Loading Environment from FAT... OK
    Net:   Could not get PHY for ethernet@4a100000: addr 0
    Warning: ethernet@4a100000 MAC addresses don't match:
    Address in ROM is          00:35:ff:78:db:cd
    Address in environment is  c4:f3:12:f8:ad:83
    eth0: ethernet@4a100000
    Warning: usb_ether MAC addresses don't match:
    Address in ROM is          de:ad:be:ef:00:01
    Address in environment is  c4:f3:12:f8:ad:85
    , eth1: usb_ether
    Hit any key to stop autoboot:  0
    ** Unable to read file uEnv.txt **
    4215296 bytes read in 356 ms (11.3 MiB/s)
    37518 bytes read in 5 ms (7.2 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8df2c000, end 8df3828d ... OK
    Starting kernel ...
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.59-rt24-g4203cb8c96 (mboukili@MSFE-0089-L) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 PREEMPT RT Mon Jan 11 11:43:56 CET 2021
    [    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 AM3359 ICE-V2 - dual PRUETH
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x8a800000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] random: get_random_bytes called from start_kernel+0xa4/0x444 with crng_init=0
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO3,115200n8 root=PARTUUID=87648a88-02 rw rootfstype=ext4 rootwait
    [    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: 197300K/262144K available (8192K kernel code, 325K rwdata, 2688K rodata, 1024K init, 260K bss, 15692K 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 : 0x(ptrval) - 0x(ptrval)   (9184 kB)
    [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
    [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 326 kB)
    [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 261 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU priority boosting: priority 1 delay 500 ms.
    [    0.000000]  No expedited grace period (rcu_normal_after_boot).
    [    0.000000]  Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0x(ptrval) (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.000037] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000046] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000276] timer_probe: no matching timers found
    [    0.000516] Console: colour dummy device 80x30
    [    0.000712] WARNING: Your 'console=ttyO3' has been replaced by 'ttyS3'
    [    0.000716] This ensures that you still see kernel messages. Please
    [    0.000719] update your kernel commandline.
    [    0.000764] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.058703] pid_max: default: 32768 minimum: 301
    [    0.058981] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.058994] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.060184] CPU: Testing write buffer coherency: ok
    [    0.060258] CPU0: Spectre v2: using BPIALL workaround
    [    0.061591] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.061991] rcu: Hierarchical SRCU implementation.
    [    0.062979] EFI services will not be available.
    [    0.064942] devtmpfs: initialized
    [    0.079257] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.079850] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.079883] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.084350] pinctrl core: initialized pinctrl subsystem
    [    0.085427] DMI not present or invalid.
    [    0.086116] NET: Registered protocol family 16
    [    0.090308] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.115587] l4_wkup_cm:clk:0010:0: failed to disable
    [    0.171432] cpuidle: using governor menu
    [    0.179422] OMAP GPIO hardware version 0.1
    [    0.183436] GPIO line 100 (PR1_MII_CTRL) hogged as output/high
    [    0.183480] GPIO line 106 (MUX_MII_CTL1) hogged as output/low
    [    0.183514] GPIO line 116 (MEB_LINE) hogged as output/low
    [    0.193943] No ATAGs?
    [    0.193966] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.216877] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.222260] SCSI subsystem initialized
    [    0.222942] media: Linux media interface: v0.10
    [    0.223010] videodev: Linux video capture interface: v2.00
    [    0.223171] pps_core: LinuxPPS API ver. 1 registered
    [    0.223184] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.223218] PTP clock support registered
    [    0.223278] EDAC MC: Ver: 3.0.0
    [    0.224853] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.225722] Advanced Linux Sound Architecture Driver Initialized.
    [    0.227439] clocksource: Switched to clocksource timer1
    [    0.241108] NET: Registered protocol family 2
    [    0.242454] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 7168 bytes)
    [    0.242510] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.242568] TCP bind hash table entries: 2048 (order: 3, 49152 bytes)
    [    0.242703] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.242863] UDP hash table entries: 256 (order: 2, 16384 bytes)
    [    0.242922] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes)
    [    0.243189] NET: Registered protocol family 1
    [    0.244061] RPC: Registered named UNIX socket transport module.
    [    0.244083] RPC: Registered udp transport module.
    [    0.244094] RPC: Registered tcp transport module.
    [    0.244104] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.245347] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.247211] Initialise system trusted keyrings
    [    0.247850] workingset: timestamp_bits=14 max_order=16 bucket_order=2
    [    0.256387] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.257882] NFS: Registering the id_resolver key type
    [    0.257938] Key type id_resolver registered
    [    0.257952] Key type id_legacy registered
    [    0.258022] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.261503] Key type asymmetric registered
    [    0.261528] Asymmetric key parser 'x509' registered
    [    0.261627] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.261645] io scheduler noop registered
    [    0.261658] io scheduler deadline registered
    [    0.262020] io scheduler cfq registered (default)
    [    0.262037] io scheduler mq-deadline registered
    [    0.262049] io scheduler kyber registered
    [    0.264594] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [    0.347911] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.353478] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 30, base_baud = 3000000) is a 8250
    [    0.355063] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 31, base_baud = 3000000) is a 8250
    [    1.008472] console [ttyS3] enabled
    [    1.013648] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 32, base_baud = 3000000) is a 8250
    [    1.025501] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    1.037753] random: fast init done
    [    1.041521] random: crng init done
    [    1.059852] brd: module loaded
    [    1.073998] loop: module loaded
    [    1.082218] m25p80 spi0.0: found s25fl128s, expected w25q64
    [    1.088271] m25p80 spi0.0: non-uniform erase sector maps are not supported yet.
    [    1.095635] m25p80 spi0.0: s25fl128s (16384 Kbytes)
    [    1.100602] 4 fixed-partitions partitions found on MTD device spi0.0
    [    1.106989] Creating 4 MTD partitions on "spi0.0":
    [    1.111819] 0x000000000000-0x000000080000 : "u-boot-spl"
    [    1.118793] 0x000000080000-0x000000180000 : "u-boot"
    [    1.125112] 0x000000180000-0x0000001a0000 : "u-boot-env"
    [    1.131783] 0x0000001a0000-0x000000800000 : "misc"
    [    1.136611] mtd: partition "misc" doesn't start on an erase/write block boundary -- force read-only
    [    1.148457] libphy: Fixed MDIO Bus: probed
    [    1.156305] i2c /dev entries driver
    [    1.162749] sdhci: Secure Digital Host Controller Interface driver
    [    1.168976] sdhci: Copyright(c) Pierre Ossman
    [    1.175589] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.190227] NET: Registered protocol family 10
    [    1.196534] Segment Routing with IPv6
    [    1.200470] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.207669] NET: Registered protocol family 17
    [    1.212524] Key type dns_resolver registered
    [    1.217127] omap_voltage_late_init: Voltage driver support not added
    [    1.224755] Loading compiled-in X.509 certificates
    [    1.277744] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.286344] vrtc: supplied by vbat
    [    1.293743] vio: supplied by vbat
    [    1.298725] vdd1: supplied by vbat
    [    1.304163] vdd2: supplied by vbat
    [    1.311224] vdig1: supplied by vbat
    [    1.316250] vdig2: supplied by vbat
    [    1.321317] vpll: supplied by vbat
    [    1.326260] vdac: supplied by vbat
    [    1.331203] vaux1: supplied by vbat
    [    1.336260] vaux2: supplied by vbat
    [    1.341292] vaux33: supplied by vbat
    [    1.346421] vmmc: supplied by vbat
    [    1.351371] vbb: supplied by vbat
    [    1.356935] pca953x 0-0041: 0-0041 supply vcc not found, using dummy regulator
    [    1.364319] pca953x 0-0041: Linked as a consumer to regulator.0
    [    1.370345] pca953x 0-0041: failed reading register
    [    1.375360] pca953x 0-0041: Dropping the link to regulator.0
    [    1.381119] pca953x: probe of 0-0041 failed with error -121
    [    1.386930] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.394604] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.15
    [    1.428210] hctosys: unable to open rtc device (rtc0)
    [    1.434392] ALSA device list:
    [    1.437395]   No soundcards found.
    [    1.442517] Waiting for root device PARTUUID=87648a88-02...
    [    1.465823] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.476866] mmc0: new high speed SDHC card at address 0007
    [    1.483820] mmcblk0: mmc0:0007 MB33A 27.8 GiB
    [    1.491711]  mmcblk0: p1 p2
    [    1.624548] EXT4-fs (mmcblk0p2): recovery complete
    [    1.631638] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.639876] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    1.656661] devtmpfs: mounted
    [    1.661867] Freeing unused kernel memory: 1024K
    [    1.667085] Run /sbin/init as init process
    [    2.051657] systemd[1]: System time before build time, advancing clock.
    [    2.112756] systemd[1]: systemd 239 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    2.135127] systemd[1]: Detected architecture arm.
    Welcome to Arago 2019.07!
    [    2.195116] systemd[1]: Set hostname to <am335x-evm>.
    [    2.645092] systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
    [    2.662387] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
    [    2.775919] systemd[1]: /lib/systemd/system/gadget-init.service:15: Unknown lvalue 'ExecStopPre' in section 'Service'
    [    3.320935] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    3.414253] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    3.451841] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    3.489160] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [  OK  ] Reached target Slices.
    [  OK  ] Listening on Journal Socket.
             Mounting Kernel Debug File System...
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
             Mounting POSIX Message Queue File System...
             Starting Create list of required st…ce nodes for the current kernel...
             Starting Journal Service...
    [  OK  ] Reached target Swap.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Created slice system-getty.slice.
    [  OK  ] Listening on Process Core Dump Socket.
             Mounting Temporary Directory (/tmp)...
             Starting Load Kernel Modules...
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    4.172926] cryptodev: loading out-of-tree module taints kernel.
    [    4.181124] cryptodev: disagrees about version of symbol __wake_up
    [    4.187351] cryptodev: Unknown symbol __wake_up (err -22)
    [  OK  ] Reached target Paths.
    [    4.195992] cryptodev: disagrees about version of symbol __init_waitqueue_head
    [    4.206768] cryptodev: Unknown symbol __init_waitqueue_head (err -22)
             Starting Remount Root and Kernel File Systems...
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Listening on udev Kernel Socket.
    [    4.302937] usbcore: registered new interface driver usbfs
    [    4.323755] usbcore: registered new interface driver hub
             [    4.376184] usbcore: registered new device driver usb
    Starting udev Coldplug all Devices...
    [    4.397320] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [  OK  ] Started Journal Service.
    [    4.496840] usbcore: registered new interface driver ftdi_sio
    [  OK  ] Mounted Kernel Debug File System.
    [    4.517899] usbserial: USB Serial support registered for FTDI USB Serial Device
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Started Create list of required sta…vice nodes for the current kernel.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Mounting Kernel Configuration File System...
             Starting Apply Kernel Variables...
             Starting Create Static Device Nodes in /dev...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [    5.308979] systemd-journald[85]: Received request to flush runtime journal from PID 1
             Starting udev Kernel Device Manager...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
    [  OK  ] Reached target Containers.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Update UTMP about System Boot/Shutdown...
             Starting Network Service...
             Starting Network Time Synchronization...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Service.
             Starting Wait for Network to be Configured...
             Starting Network Name Resolution...
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Host and Network Name Lookups.
    [  OK  ] Reached target Network.
    [    9.026286] gpio-decoder gpio-decoder: unable to acquire input gpios
    [    9.190436] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    9.205195] gpio-decoder gpio-decoder: unable to acquire input gpios
    [    9.228387] omap_rtc 44e3e000.rtc: registered as rtc0
    [    9.328792] gpio-decoder gpio-decoder: unable to acquire input gpios
    [    9.458493] gpio-decoder gpio-decoder: unable to acquire input gpios
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Reached target System Initialization.
             Starting Reboot and dump vmcore via kexec...
    [    9.703106] gpio-decoder gpio-decoder: unable to acquire input gpios
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Listening on dropbear.socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [[   10.496587] gpio-decoder gpio-decoder: unable to acquire input gpios
      OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting uim-sysfs.service...
             Starting Permit User Sessions...
             Starting RPC Bind Service...
    [   11.157094] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   11.204568] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [   11.260757] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [   11.284442] omap-aes 53500000.aes: will run requests pump with realtime priority
    [   11.366789] gpio-decoder gpio-decoder: unable to acquire input gpios
             Starting Simple Network Management Protocol (SNMP) Daemon....
    [   11.656948] remoteproc remoteproc0: wkup_m3 is available
    [   11.704891] remoteproc remoteproc0: powering up wkup_m3
    [   11.711883] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   11.715520] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   11.735094] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   11.817157] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   11.834131] PM: Cannot get wkup_m3_ipc handle
    [   11.987675] davinci_mdio 4a332400.mdio: davinci mdio revision 1.6, bus freq 1000000
    [   11.987694] libphy: 4a332400.mdio: probed
    [   12.122704] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   12.122963] PM: Cannot get wkup_m3_ipc handle
    [   12.123033] mdio_bus 4a332400.mdio: MDIO device at address 3 is missing.
    [   12.123049] davinci_mdio 4a332400.mdio: phy[1]: device 4a332400.mdio:01, driver NS DP83848C 10/100 Mbps PHY
    [   12.124391] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   12.124612] PM: Cannot get wkup_m3_ipc handle
    [   12.148238] remoteproc remoteproc1: 4a334000.pru is available
    [   12.148367] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
    [   12.149164] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   12.149435] PM: Cannot get wkup_m3_ipc handle
    [   12.149955] remoteproc remoteproc2: 4a338000.pru is available
    [   12.150062] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
    [   12.152299] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   12.152557] PM: Cannot get wkup_m3_ipc handle
    [   12.458851] prueth pruss_eth: freeing port 0
    [  OK  ] Started Periodic Command Scheduler.
    [  OK  ] Started Redis In-Memory Data Store.
    [   13.952869] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 242896
    [   14.055309] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [   14.055376] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
             Starting Enable and configure wl18xx bluetooth stack...
             Starting Print notice about GPLv3 packages...
             Starting Lightning Fast Webserver With Light System Requirements...
             Starting Avahi mDNS/DNS-SD Stack...
    [  OK  ] Started D-Bus System Message Bus.
    [  OK  ] Started Job spooling tools.
             Starting Login Service...
    [  OK  ] Started Service de Module_COM_NG.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Reached target Timers.
    [  OK  ] Started Reboot and dump vmcore via kexec.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started RPC Bind Service.
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [  OK  ] Started Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
    [  OK  ] Found device /dev/ttyS3.
    [   20.758752] gpio-decoder gpio-decoder: unable to acquire input gpios
    [   20.819393] PM: bootloader does not support rtc-only!
    [   20.988674] prueth pruss_eth: freeing port 0
    [   21.027236] gpio-decoder gpio-decoder: unable to acquire input gpios
    [  OK  ] Started uim-sysfs.service.
    [  OK  ] Found device /dev/ttyS0.
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            autoconf
            bash-dev
            bash
            bc
            binutils
            cifs-utils
            cpio
            cpp-symlinks
            cpp
            dosfstools
            elfutils
            findutils
            g++-symlinks
            g++
            gawk
            gcc-symlinks
            gcc
            gdb
            gdbserver
            gettext
            glmark2
            gstreamer1.0-libav
            gzip
            hidapi
            libbfd
            libdw1
            libelf1
            libgdbm-compat4
            libgdbm-dev
            libgdbm6
            libgettextlib
            libgettextsrc
            libgmp10
            libidn2-0
            libmavconn
            libmpc3
            libmpfr6
            libreadline-dev
            libreadline7
            libunistring2
            m4-dev
            m4
            make
            mavlink
            mavros-extras
            mavros-msgs
            mavros
            nettle
            pdm-anomaly-detection
            socketcan-interface
            which
    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
    ***************************************************************
    ***************************************************************
    [  OK  ] Started Print notice about GPLv3 packages.
    [  OK  ] Found device /dev/mmcblk0p1.
             Starting Start USB gadget...
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Starting rc.pvr.service...
    [  OK  ] Created slice system-systemd\x2dfsck.slice.
             Starting File System Check on /dev/mmcblk0p1...
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
    [   40.490151] udc-core: couldn't find an available UDC - added [g_multi] to list of pending drivers
    [   40.523559] pvrsrvkm: disagrees about version of symbol finish_wait
    [   40.523580] pvrsrvkm: Unknown symbol finish_wait (err -22)
    [   40.523643] pvrsrvkm: disagrees about version of symbol prepare_to_wait
    [   40.523648] pvrsrvkm: Unknown symbol prepare_to_wait (err -22)
    [   40.523736] pvrsrvkm: disagrees about version of symbol __wake_up
    [   40.523741] pvrsrvkm: Unknown symbol __wake_up (err -22)
    [   40.524196] pvrsrvkm: disagrees about version of symbol __init_waitqueue_head
    [   40.524200] pvrsrvkm: Unknown symbol __init_waitqueue_head (err -22)
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Started Login Service.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started File System Check on /dev/mmcblk0p1.
             Mounting /run/media/mmcblk0p1...
    [FAILED] Failed to start Start USB gadget.
    See 'systemctl status gadget-init.service' for details.
    [  OK  ] Mounted /run/media/mmcblk0p1.
    [   43.934017] pvrsrvkm: disagrees about version of symbol finish_wait
    [   43.950322] pvrsrvkm: Unknown symbol finish_wait (err -22)
    [   43.955921] pvrsrvkm: disagrees about version of symbol prepare_to_wait
    [   43.972613] pvrsrvkm: Unknown symbol prepare_to_wait (err -22)
    [   43.988618] pvrsrvkm: disagrees about version of symbol __wake_up
    [   44.000843] pvrsrvkm: Unknown symbol __wake_up (err -22)
    [   44.006693] pvrsrvkm: disagrees about version of symbol __init_waitqueue_head
    [   44.025293] pvrsrvkm: Unknown symbol __init_waitqueue_head (err -22)
    [  OK  ] Started rc.pvr.service.
             Starting weston.service...
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    Arago Project http://arago-project.org am335x-evm ttyS3
    Arago 2019.07 am335x-evm ttyS3
    am335x-evm login: [  128.830530] NET: Registered protocol family 15
    [  129.289095] Initializing XFRM netlink socket
  • / {
     model = "TI AM3359 ICE-V2 - dual PRUETH";
     compatible = "ti,am3359-icev2", "ti,am33xx";
     aliases {
      ethernet0 = &pruss_emac0;
      ethernet1 = &pruss_emac1;
     };
     /* Dual mac ethernet application node on icss */
     pruss_eth: pruss_eth {
      compatible = "ti,am3359-prueth";
      prus = <&pru0>, <&pru1>;
      firmware-name = "ti-pruss/am335x-pru0-prueth-fw.elf",
        "ti-pruss/am335x-pru1-prueth-fw.elf";
      sram = <&ocmcram>;
      interrupt-parent = <&pruss_intc>;
      mii-rt = <&pruss_mii_rt>;
      pinctrl-0 = <&pruss_eth_default>;
      pinctrl-names = "default";
      interrupts = <20>, <21>;
      interrupt-names = "rx_red_hp", "rx_red_lp";
      pruss_emac0: ethernet-mii0 {
       phy-handle = <&pruss_eth0_phy>;
       phy-mode = "mii";
       interrupts = <20>, <22>, <23>, <26>;
       interrupt-names = "rx", "tx", "hsrprp_ptp_tx",
           "emac_ptp_tx";
       /* Filled in by bootloader */
       local-mac-address = [00 00 00 00 00 00];
      };
      pruss_emac1: ethernet-mii1 {
       phy-handle = <&pruss_eth1_phy>;
       phy-mode = "mii";
       interrupts = <21>, <23>, <24>, <27>;
       interrupt-names = "rx", "tx", "hsrprp_ptp_tx",
           "emac_ptp_tx";
       /* Filled in by bootloader */
       local-mac-address = [00 00 00 00 00 00];
      };
     };
    };
    &am33xx_pinmux {
     pruss_mdio_default: pruss_mdio_default {
      pinctrl-single,pins = <
       AM33XX_IOPAD(0x88c, (PIN_OUTPUT | MUX_MODE5))  /* gpmc_clk.pr1_mdio_mdclk */
       AM33XX_IOPAD(0x888, (PIN_INPUT  | MUX_MODE5))  /* gpmc_csn3.pr1_mdio_data */
       AM33XX_IOPAD(0x89c, (PIN_INPUT_PULLUP | MUX_MODE7)) /* gpmc_ben0_cle.gpio2_5 */
       /* disable CPSW MDIO */
       AM33XX_IOPAD(0x948, (PIN_INPUT_PULLUP | MUX_MODE7)) /* mdio_data.gpio0_0 */
       AM33XX_IOPAD(0x94c, (PIN_INPUT_PULLUP | MUX_MODE7)) /* mdio_clk.gpio0_1 */
      >;
     };
     pruss_eth_default: pruss_eth_default {
      pinctrl-single,pins = <
       AM33XX_IOPAD(0x8a0, (PIN_INPUT  | MUX_MODE2)) /* dss_data0.pr1_mii_mt0_clk */
       AM33XX_IOPAD(0x8b4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data5.pr1_mii0_txd0 */
       AM33XX_IOPAD(0x8b0, (PIN_OUTPUT | MUX_MODE2)) /* dss_data4.pr1_mii0_txd1 */
       AM33XX_IOPAD(0x8ac, (PIN_OUTPUT | MUX_MODE2)) /* dss_data3.pr1_mii0_txd2 */
       AM33XX_IOPAD(0x8a8, (PIN_OUTPUT | MUX_MODE2)) /* dss_data2.pr1_mii0_txd3 */
       AM33XX_IOPAD(0x8cc, (PIN_INPUT  | MUX_MODE5)) /* dss_data11.pr1_mii0_rxd0 */
       AM33XX_IOPAD(0x8c8, (PIN_INPUT  | MUX_MODE5)) /* dss_data10.pr1_mii0_rxd1 */
       AM33XX_IOPAD(0x8c4, (PIN_INPUT  | MUX_MODE5)) /* dss_data9.pr1_mii0_rxd2 */
       AM33XX_IOPAD(0x8c0, (PIN_INPUT  | MUX_MODE5)) /* dss_data8.pr1_mii0_rxd3 */
       AM33XX_IOPAD(0x8a4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data1.pr1_mii0_txen */
       AM33XX_IOPAD(0x8d8, (PIN_INPUT  | MUX_MODE5)) /* dss_data14.pr1_mii_mr0_clk */
       AM33XX_IOPAD(0x8dc, (PIN_INPUT  | MUX_MODE5)) /* dss_data15.pr1_mii0_rxdv */
       AM33XX_IOPAD(0x8d4, (PIN_INPUT  | MUX_MODE5)) /* dss_data13.pr1_mii0_rxer */
       AM33XX_IOPAD(0x8d0, (PIN_INPUT  | MUX_MODE5)) /* dss_data12.pr1_mii0_rxlink */
       AM33XX_IOPAD(0x8e8, (PIN_INPUT  | MUX_MODE2)) /* dss_pclk.pr1_mii0_crs */
       AM33XX_IOPAD(0x840, (PIN_INPUT  | MUX_MODE5)) /* gpmc_a0.pr1_mii_mt1_clk */
       AM33XX_IOPAD(0x850, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a4.pr1_mii1_txd0 */
       AM33XX_IOPAD(0x84c, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a3.pr1_mii1_txd1 */
       AM33XX_IOPAD(0x848, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a2.pr1_mii1_txd2 */
       AM33XX_IOPAD(0x844, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a1.pr1_mii1_txd3 */
       AM33XX_IOPAD(0x860, (PIN_INPUT  | MUX_MODE5)) /* gpmc_a8.pr1_mii1_rxd0 */
       AM33XX_IOPAD(0x85c, (PIN_INPUT  | MUX_MODE5)) /* gpmc_a7.pr1_mii1_rxd1 */
       AM33XX_IOPAD(0x858, (PIN_INPUT  | MUX_MODE5)) /* gpmc_a6.pr1_mii1_rxd2 */
       AM33XX_IOPAD(0x854, (PIN_INPUT  | MUX_MODE5)) /* gpmc_a5.pr1_mii1_rxd3 */
       AM33XX_IOPAD(0x874, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_wpn.pr1_mii1_txen */
       AM33XX_IOPAD(0x864, (PIN_INPUT  | MUX_MODE5)) /* gpmc_a9.pr1_mii_mr1_clk */
       AM33XX_IOPAD(0x868, (PIN_INPUT  | MUX_MODE5)) /* gpmc_a10.pr1_mii1_rxdv */
       AM33XX_IOPAD(0x86c, (PIN_INPUT  | MUX_MODE5)) /* gpmc_a11.pr1_mii1_rxer */
       AM33XX_IOPAD(0x878, (PIN_INPUT  | MUX_MODE5)) /* gpmc_ben1.pr1_mii1_rxlink */
       AM33XX_IOPAD(0x8ec, (PIN_INPUT  | MUX_MODE2)) /* lcd_ac_bias_en.pr1_mii1_crs */
       AM33XX_IOPAD(0x870, (PIN_INPUT  | MUX_MODE5)) /* gpmc_wait0.pr1_mii1_col */
      >;
     };
        uart4_pins_default: uart4_pins_default {
      pinctrl-single,pins = <
       AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE1) /* (E18) uart4_ctsn.uart4_rxd */
       AM33XX_IOPAD(0x96c, PIN_OUTPUT_PULLUP | MUX_MODE1) /* (E17) uart4_rtsn.uart4_txd */
      >;
     };
        uart1_pins_default: uart1_pins_default {
      pinctrl-single,pins = <
       AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* (D16) uart1_rxd.uart1_rxd */
       AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLUP | MUX_MODE0) /* (D15) uart1_txd.uart1_txd */
      >;
     };
    };
    &uart4 {
     pinctrl-names = "default";
     pinctrl-0 = <&uart4_pins_default>;
     status = "okay";
    };
    &uart1 {
     pinctrl-names = "default";
     pinctrl-0 = <&uart1_pins_default>;
     status = "okay";
    };
    &gpio3 {
     p4 {
      gpio-hog;
      gpios = <4 GPIO_ACTIVE_HIGH>;
      output-high;
      line-name = "PR1_MII_CTRL";
     };
     p10 {
      gpio-hog;
      gpios = <10 GPIO_ACTIVE_HIGH>;
      /* ETH1 mux: Low for MII-PRU, high for RMII-CPSW */
      output-low;
      line-name = "MUX_MII_CTL1";
     };
        p20 {
      gpio-hog;
      gpios = <20 GPIO_ACTIVE_HIGH>;
      /* Pin for debug and test MEB */
      output-low;
      line-name = "MEB_LINE";
     };
    };
    &pruss_mdio {
     pinctrl-0 = <&pruss_mdio_default>;
     pinctrl-names = "default";
     reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
     reset-delay-us = <2>; /* PHY datasheet states 1uS min */
     status = "okay";
     pruss_eth0_phy: ethernet-phy@1 {
       reg = <1>;
     };
     pruss_eth1_phy: ethernet-phy@3 {
       reg = <3>;
     };
    };
  • Hy Nick,

    I resolved my problem. 

    The adresse configuration of PHY component (DP83848) with resistors is not good (the adresse was 5 instead of 3).

    I have a resistor at bad place (on RXD1 instead of RXD0).

    Best regard. 

  • mehdi boukili said:

    Hy Nick,

    I resolved my problem. 

    The adresse configuration of PHY component (DP83848) with resistors is not good (the adresse was 5 instead of 3).

    I have a resistor at bad place (on RXD1 instead of RXD0).

    Best regard.