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-AM437X: pruss_eth problem

Part Number: PROCESSOR-SDK-AM437X
Other Parts Discussed in Thread: TLK105L, AM4377, AM4372

Tool/software: Linux

Hello:

     The board designed by our company has two network ports, one is Gigabit ethernet. The network card chip KSZ9031 is connected to the rgmii1 interface of ARM4377. The mdio_clk and mdio_data are connected to B17 and A17 respectively and driven by CPSW. The network ports can work normally.

      Another way is that the network of PRU uses network card chip TLK105L to connect to pru1_mii1 interface of ARM am4377. Di_clk and mdio_data are connected to A12 and B12 respectively and driven by prueth. After the system starts, the network card can not be recognized. The serial terminal reports the following red part of the error:

[   10.809449]  remoteproc1: Note: remoteproc is still under development and considered experimental.
[   10.809452]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[   10.861224]  remoteproc1: registered virtio0 (type 7)
[   10.861314] pru-rproc 54434000.pru0: PRU rproc node /ocp/pruss@54400000/pru0@54434000 probed successfully
[   10.876510]  remoteproc2: 54438000.pru1 is available
[   10.876515]  remoteproc2: Note: remoteproc is still under development and considered experimental.
[   10.876518]  remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[   10.914194]  remoteproc2: registered virtio1 (type 7)
[   10.914264] pru-rproc 54438000.pru1: PRU rproc node /ocp/pruss@54400000/pru1@54438000 probed successfully
[   11.038885] prueth pruss1_eth: couldn't connect to phy /ocp/pruss@54400000/mdio@54432400/ethernet-phy@0
[   11.038903] prueth pruss1_eth: netdev init ethernet-mii0 failed: -19
[   11.038910] prueth pruss1_eth: no ethernet-mii1 node
[   11.091686]  remoteproc1: powering up 54434000.pru0
[   11.092129]  remoteproc1: Booting fw image am437x-pru1_0-fw, size 86264
[   11.092219] ti-pruss 54400000.pruss: configured system_events = 0x1000000000000000 intr_channels = 0x00000001 host_intr = 0x00000001
[   11.092225]  remoteproc1: remote processor 54434000.pru0 is now up
[   11.092606] virtio_rpmsg_bus virtio0: creating channel rpmsg-pru addr 0x1e
[   11.099879] virtio_rpmsg_bus virtio0: rpmsg host is online
[   11.100377]  remoteproc2: powering up 54438000.pru1
[   11.100831]  remoteproc2: Booting fw image am437x-pru1_1-fw, size 86264
[   11.100923] ti-pruss 54400000.pruss: configured system_events = 0x0800000000000000 intr_channels = 0x00000002 host_intr = 0x00000002
[   11.100928]  remoteproc2: remote processor 54438000.pru1 is now up
[   11.101287] virtio_rpmsg_bus virtio1: creating channel rpmsg-pru addr 0x1f
[   11.107582] virtio_rpmsg_bus virtio1: rpmsg host is online
[   11.183979] rpmsg_pru rpmsg0: new rpmsg_pru device: /dev/rpmsg_pru30
[   11.184488] rpmsg_pru rpmsg1: new rpmsg_pru device: /dev/rpmsg_pru31
[   11.578532] dwc3 48390000.usb: otg: primary host xhci-hcd.0.auto registered
[   11.578540] dwc3 48390000.usb: otg: shared host xhci-hcd.0.auto registered

     Referring to TI's AM437X-IDK development board in the device tree, Pru network configuration is added. The Linux kernel uses the 4.4.12 RTLinux kernel. lsmod can see that Pru network related drivers have been loaded. The complete start-up log information and device tree configuration file for terminal printing can be found in the annex. Please help to analyze what may be the problem. Thank you very much.

The following ifconfig has only one network card:

root@am437x-evm:~# ifconfig
eth0      Link encap:Ethernet  HWaddr A0:F6:FD:1B:77:68  
           inet addr: 192.168.200.121 Bcast:0.0.0.0  Mask:255.255.255.0
           inet6 addr:fe80::a2f6:fdff:fe1b:7768/64 Scope Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:777 errors:0 dropped:54 overruns:0 frame:0
           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:48430 (47.2 KiB)  TX bytes:1552 (1.5 kiB)
           Interrupt:239

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:10 errors:0 dropped:0 overruns:0 frame:0
           TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

Pru network configuration in am437x-gp-evm.dts device tree:
 pruss1_eth {
   compatible = "ti,am4372-prueth";
   pruss = <&pruss1>;
   sram = <&ocmcram_nocache>;
   interrupt-parent = <&pruss1_intc>;
   pinctrl-0 = <&pruss1_eth_default>;
   pinctrl-names = "default";
   pruss1_emac0: ethernet-mii0 {
    phy-handle = <&pruss1_eth0_phy>;
    phy-mode = "mii";
    interrupts = <20>, <22>;
    interrupt-names = "rx", "tx";
    /* Filled in by bootloader */
    local-mac-address = [00 00 00 00 00 00];
   };
};

pruss1_eth_default: pruss1_eth_default {
   pinctrl-single,pins = <
   0x58 ( PIN_INPUT | MUX_MODE5 ) /* (E8) gpmc_a6.pr1_mii_mt1_clk */
   0x54 ( PIN_OUTPUT | MUX_MODE5 ) /* (E7) gpmc_a5.pr1_mii1_txd0 */
   0x50 ( PIN_OUTPUT | MUX_MODE5 ) /* (D7) gpmc_a4.pr1_mii1_txd1 */
   0x4c ( PIN_OUTPUT | MUX_MODE5 ) /* (A4) gpmc_a3.pr1_mii1_txd2 */
   0x48 ( PIN_OUTPUT | MUX_MODE5 ) /* (C6) gpmc_a2.pr1_mii1_txd3 */
   0x6c ( PIN_INPUT | MUX_MODE5 ) /* (D8) gpmc_a11.pr1_mii1_rxd0 */
   0x68 ( PIN_INPUT | MUX_MODE5 ) /* (G8) gpmc_a10.pr1_mii1_rxd1 */
   0x64 ( PIN_INPUT | MUX_MODE5 ) /* (B4) gpmc_a9.pr1_mii1_rxd2 */
   0x60 ( PIN_INPUT | MUX_MODE5 ) /* (F7) gpmc_a8.pr1_mii1_rxd3 */
   0x40 ( PIN_OUTPUT | MUX_MODE5 ) /* (C3) gpmc_a0.pr1_mii1_txen */
   0x5c ( PIN_INPUT | MUX_MODE5 ) /* (F6) gpmc_a7.pr1_mii_mr1_clk */
   0x44 ( PIN_INPUT | MUX_MODE5 ) /* (C5) gpmc_a1.pr1_mii1_rxdv */
   0x74 ( PIN_INPUT | MUX_MODE5 ) /* (B3) gpmc_wpn.pr1_mii1_rxer */
   0x24c (PIN_INPUT | MUX_MODE5 ) /* (E24) gpio5_13.pr1_mii1_rxlink */
   0x244 (PIN_INPUT | MUX_MODE5 ) /* (F23) gpio5_11.pr1_mii1_crs */
   >;
};
pruss1_mdio_default: pruss1_mdio_default {
   pinctrl-single,pins = <
   0x8c ( PIN_OUTPUT | MUX_MODE5 ) /* (A12) gpmc_clk.pr1_mdio_mdclk */
    0x88 ( PIN_INPUT | MUX_MODE5 ) /* (B12) gpmc_csn3.pr1_mdio_data */
   0x248( PIN_INPUT_PULLUP | MUX_MODE7)     /* gpio5_12 */
   >;
};

& pruss1_mdio {
pinctrl-0 = <&pruss1_mdio_default>;
pinctrl-names = "default";
status = "okay";
reset-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
reset-delay-us = <2>; /* PHY datasheet states 1uS min */
pruss1_eth0_phy: ethernet-phy@0 {
   reg = <0>;
};
};

Pru network configuration in am4372.dtsi device tree:
pruss1: pruss@54400000 {
   compatible = "ti,am4372-pruss";
   ti,hwmods = "pruss";
   reg = <0x54400000 0x2000>,
         <0x54402000 0x2000>,
         <0x54410000 0x8000>,
         <0x54420000 0x2000>,
         <0x54426000 0x2000>,
         <0x5442e000 0x31c>,
         <0x54432000 0x58>;
   reg-names = "dram0", "dram1", "shrdram2", "intc", "cfg",
        "iep", "mii_rt";
   #address-cells = <1>;
   #size-cells = <1>;
   ranges;
   pruss1_intc: intc@54420000 {
    compatible = "ti,am4372-pruss-intc";
    interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH
           GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH
           GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH
           GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH
           GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH
           GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH
           GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "host2", "host3", "host4",
        "host5", "host6", "host8",
        "host9";
    interrupt-controller;
    #interrupt-cells = <1>;
   };
   pru1_0: pru0@54434000 {
    compatible = "ti,am4372-pru";
    reg = <0x54434000 0x3000>,
          <0x54422000 0x400>,
          <0x54422400 0x100>;
    reg-names = "iram", "control", "debug";
    mboxes = <&mailbox &mbox_pru1_0>;
   };
   pru1_1: pru1@54438000 {
    compatible = "ti,am4372-pru";
    reg = <0x54438000 0x3000>,
          <0x54424000 0x400>,
          <0x54424400 0x100>;
    reg-names = "iram", "control", "debug";
    mboxes = <&mailbox &mbox_pru1_1>;
   };
   pruss1_mdio: mdio@54432400 {
    compatible = "ti,davinci_mdio";
    reg = <0x54432400 0x90>;
    clocks = <&dpll_core_m4_ck>;
    clock-names = "fck";
    bus_freq = <1000000>;
    #address-cells = <1>;
    #size-cells = <0>;
    status = "disabled";
   };
  };


root@am437x-evm:~# lsmod
Module                  Size  Used by
atemsys                12408  0
pvrsrvkm              406858  0
dwc3                   62533  0
udc_core               12079  1 dwc3
pm33xx                  3658  0
ti_am335x_adc           5643  0
ti_am335x_tsc           5965  0
snd_soc_simple_card     7736  0
prueth                 14377  0
ti_emif_sram            6064  1 pm33xx
wkup_m3_ipc             7616  1 pm33xx
snd_soc_tlv320aic3x    48260  1
pru_rproc               9865  1 prueth
omap_rng                4353  0
am437x_vpfe            23581  0
edt_ft5x06             10689  0
omap_aes_driver        18260  0
rng_core                7698  1 omap_rng
ov2659                  9618  0
pruss                  11281  2 pru_rproc,prueth
dwc3_omap               4553  0
omap_des               11214  0
extcon                 13929  2 dwc3,dwc3_omap
wkup_m3_rproc           3669  1
remoteproc             26956  5 pruss,wkup_m3_rproc,pru_rproc,prueth,wkup_m3_ipc
virtio                  6677  1 remoteproc
virtio_ring            12035  1 remoteproc
omap_sham              20318  0
c_can_platform          6638  0
c_can                   9450  1 c_can_platform
can_dev                12254  1 c_can
cryptodev              38437  0
ti_am335x_tscadc        6106  2 ti_am335x_adc,ti_am335x_tsc
omap_wdt                4655  0

3515.am437x-gp-evm.zip

  • Hello Nanfeng,

    Due to the US holidays, on this particular E2E thread, our response may get delayed until the week of Jan 2, 2019.

    Warmest Wishes for Happy Holidays and a Happy New Year!

    best regards,
    David Zhou
  • Hello David Zhou,

     OK, I know,thank you very much!

     Warmest Wishes for Happy Holidays and a Happy New Year!

  • Hello Nanfeng,

    The SDK you are using is no longer supported, so we will be limited in the support we can give you.

    Are you getting to a command prompt? Or does your system always crash?

    Regards,
    Nick
  • Hello Nick,

         The system does not always crash,the 4.4.12 RT Linux network of PRU  has been verified before?

  • It should have been verified on the AM437x IDK that it was working at the time. If you have an AM437x IDK, you could use that as your template for testing.

    The errors you are seeing are coming from the prueth_probe function in the prueth driver located at drivers/net/ethernet/ti/prueth.c. I expect that you have some problems with your device tree entry. For example, it looks like the driver is looking for a ethernet-mii1 subnode in the device tree, but cannot find it.

    Regards,
    Nick
  • Hello Nick,
            Hardware Engineer have been looking for problems a few days ago, and then re-welded the TLK105L phy chip. Now the start-up can be swept to the TLK PHY chip, as follows, see the attachment for the detailed log:

    [ 10.876261] davinci_mdio 54432400.mdio: davinci mdio revision 1.6

    [ 10.882401] libphy: 54432400.mdio: probed
    [ 10.906664] davinci_mdio 54432400.mdio: phy[0]: device 54432400.mdio:00, driver TI TLK10X 10/100 Mbps PHY
    [ 10.926512] vpfe 48328000.vpfe: Invalid bus width.
    [ 10.931339] vpfe 48328000.vpfe: No platform data
    [ 10.936003] vpfe: probe of 48328000.vpfe failed with error -22
    [ 10.941218] PM: no-rtc available, rtc-only mode disabled.
    [ 10.948168] remoteproc1: 54434000.pru0 is available
    [ 10.948172] remoteproc1: Note: remoteproc is still under development and considered experimental.
    [ 10.948176] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 10.949689] pru-rproc 54434000.pru0: PRU rproc node /ocp/pruss@54400000/pru0@54434000 probed successfully
    [ 10.959079] remoteproc2: 54438000.pru1 is available
    [ 10.959084] remoteproc2: Note: remoteproc is still under development and considered experimental.
    [ 10.959088] remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 10.960120] pru-rproc 54438000.pru1: PRU rproc node /ocp/pruss@54400000/pru1@54438000 probed successfully
    [ 11.106569] prueth pruss1_eth: no ethernet-mii1 node
    [ 11.111576] prueth pruss1_eth: freeing port 1

    But the following ifconfig can only see one network card. What may be the reason?

    root@am437x-evm:~# ifconfig
    eth0 Link encap:Ethernet HWaddr 10:CE:A9:8D:BA:8C
    inet addr:192.168.200.99 Bcast:192.168.200.255 Mask:255.255.255.0
    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)
    Interrupt:239

    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:10 errors:0 dropped:0 overruns:0 frame:0
    TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1
    RX bytes:700 (700.0 B) TX bytes:700 (700.0 B)

    6683.log.log
    root@am437x-evm:~# reboot
    
    The system is going down for reboot NOW!console) (Tue Oct  6 06:34:09 2015):
    INIT: Sending processes the TERM signal
    Terminated
    root@am437x-evm:~# UIM SYSFS Node Not Found
    Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 698)
    dropbear.
    Stopping telnet daemon.
    Stopping system message bus: dbus.
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    mount: mounting tmpfs on /mnt/.psplash failed: No such file or directory
    Stopping syslogd/klogd: stopped syslogd (pid 725)
    stopped klogd (pid 728)
    done
    Stopping thttpd.
    stopping statd: done
    ALSA: Storing mixer settings...
    /usr/sbin/alsactl: state_lock:121: file /var/lib/alsa/asound.state lock error: No such file or directory
    /usr/sbin/alsactl: state_lock:121: file /var/lib/alsa/asound.state unlock error: No such file or directory
    Stopping PVR
    rmmod: ERROR: Module bufferclass_ti is not currently loaded
    Stopping rpcbind daemon...
    done.
    Stopping Lighttpd Web Server: stopped /usr/sbin/lighttpd (pid 790)
    lighttpd.
    Deconfiguring network interfaces... done.
    Stopping Matrix GUI applicationstart-stop-daemon: warning: killing process 805: No such process
    refresh_screen: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
    .
    Disabling thermal zones...
    /etc/rc6.d/K98thermal-zone-init: line 13: /sys/class/thermal/thermal_zone*/mode: No such file or directory
    grep: /var/lib/opkg/info/*.control: No such file or directory
    Sending all processes the TERM signal...
    Sending all processes the KILL signal...
    urandom stop: failed.
    Unmounting remote filesystems...
    Deactivating swap...
    Unmounting local filesystems...
    [  568.880419] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
    Rebooting... [  571.335593] reboot: Restarting system
    
    U-Boot SPL 2014.07 (Jun 28 2018 - 15:22:39)
    Could not probe the EEPROM at 0x50
    Could not get board ID.
    
    
    U-Boot 2014.07 (Jun 28 2018 - 15:22:39)
    
    I2C:   ready
    DRAM:  1 GiB
    NAND:  512 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Card did not respond to voltage select!
    ** Bad device mmc 0 **
    Using default environment
    
    Could not probe the EEPROM at 0x50
    Could not get board ID.
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  0 
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Booting from nand ...
    
    NAND read: device 0 offset 0x100000, size 0x80000
     524288 bytes read: OK
    
    NAND read: device 0 offset 0x300000, size 0x700000
     7340032 bytes read: OK
    Kernel image @ 0x82000000 [ 0x000000 - 0x378940 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ffef000, end 8ffffc4d ... 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.12-rt17 (root@ubuntu) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #9 PREEMPT RT Wed Jun 27 02:21:50 PDT 2018
    [    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: TI AM437x Industrial Development Kit
    [    0.000000] cma: Reserved 24 MiB at 0xbe800000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM437x ES1.2 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260416
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1003408K/1048576K available (6843K kernel code, 304K rwdata, 2436K rodata, 300K init, 341K bss, 20592K reserved, 24576K cma-reserved, 237568K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0918034   (9281 kB)
    [    0.000000]       .init : 0xc0919000 - 0xc0964000   ( 300 kB)
    [    0.000000]       .data : 0xc0964000 - 0xc09b0140   ( 305 kB)
    [    0.000000]        .bss : 0xc09b3000 - 0xc0a087d4   ( 342 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] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000
    [    0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000
    [    0.000000] L2C-310 erratum 769419 enabled
    [    0.000000] L2C-310 enabling early BRESP for Cortex-A9
    [    0.000000] OMAP L2C310: ROM does not support power control setting
    [    0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled
    [    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
    [    0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e430000
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
    [    0.000010] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000021] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000025] OMAP clocksource: timer1 at 25000000 Hz
    [    0.000146] sched_clock: 64 bits at 500MHz, resolution 2ns, wraps every 4398046511103ns
    [    0.000154] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xe6a171a037, max_idle_ns: 881590485102 ns
    [    0.000647] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000650] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.001135] Console: colour dummy device 80x30
    [    0.001272] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.001273] This ensures that you still see kernel messages. Please
    [    0.001275] update your kernel commandline.
    [    0.060223] Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896)
    [    0.060227] pid_max: default: 32768 minimum: 301
    [    0.060331] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.060336] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.061014] Initializing cgroup subsys io
    [    0.061029] Initializing cgroup subsys memory
    [    0.061062] Initializing cgroup subsys devices
    [    0.061073] Initializing cgroup subsys freezer
    [    0.061082] Initializing cgroup subsys perf_event
    [    0.061089] Initializing cgroup subsys pids
    [    0.061153] CPU: Testing write buffer coherency: ok
    [    0.061479] Setting up static identity map for 0x80008200 - 0x80008258
    [    0.063102] devtmpfs: initialized
    [    0.074677] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    [    0.093785] omap_hwmod: rtc: no dt node
    [    0.093806] ------------[ cut here ]------------
    [    0.093828] WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2533 _init.constprop.23+0x1fc/0x424()
    [    0.093834] omap_hwmod: rtc: doesn't have mpu register target base
    [    0.093839] Modules linked in:
    [    0.093853] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.12-rt17 #9
    [    0.093859] Hardware name: Generic AM43 (Flattened Device Tree)
    [    0.093864] Backtrace: 
    [    0.093893] [<c00134d8>] (dump_backtrace) from [<c00136d4>] (show_stack+0x18/0x1c)
    [    0.093899]  r7:c0924fe4 r6:000009e5 r5:00000009 r4:00000000
    [    0.093920] [<c00136bc>] (show_stack) from [<c0288450>] (dump_stack+0x24/0x28)
    [    0.093932] [<c028842c>] (dump_stack) from [<c003462c>] (warn_slowpath_common+0x88/0xb4)
    [    0.093941] [<c00345a4>] (warn_slowpath_common) from [<c0034690>] (warn_slowpath_fmt+0x38/0x40)
    [    0.093945]  r8:000000d7 r7:ee8ebb40 r6:00000000 r5:00000000 r4:c0849fc8
    [    0.093960] [<c003465c>] (warn_slowpath_fmt) from [<c0924fe4>] (_init.constprop.23+0x1fc/0x424)
    [    0.093964]  r3:c087f624 r2:c0849fc8
    [    0.093970]  r4:c096fd0c
    [    0.093979] [<c0924de8>] (_init.constprop.23) from [<c092533c>] (__omap_hwmod_setup_all+0x48/0x98)
    [    0.093983]  r10:00000000 r9:c0919600 r8:000000d7 r7:ee8ebb40 r6:c09690a0 r5:c096b488
    [    0.093995]  r4:c096fd0c
    [    0.094005] [<c09252f4>] (__omap_hwmod_setup_all) from [<c000974c>] (do_one_initcall+0x98/0x1e4)
    [    0.094009]  r5:c09252f4 r4:c09690a0
    [    0.094022] [<c00096b4>] (do_one_initcall) from [<c0919e88>] (kernel_init_freeable+0x138/0x1cc)
    [    0.094026]  r10:00000002 r9:c0919600 r8:000000d7 r7:c095381c r6:c09618bc r5:c09b3000
    [    0.094037]  r4:c09b3000
    [    0.094054] [<c0919d50>] (kernel_init_freeable) from [<c06b0d18>] (kernel_init+0x18/0xe8)
    [    0.094058]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c06b0d00
    [    0.094069]  r4:c09b3000
    [    0.094079] [<c06b0d00>] (kernel_init) from [<c000fac0>] (ret_from_fork+0x14/0x34)
    [    0.094083]  r5:c06b0d00 r4:00000000
    [    0.094090] ---[ end trace 0000000000000001 ]---
    [    0.156727] omap_hwmod: usb_otg_ss0: _wait_target_disable failed
    [    0.157182] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.159388] pinctrl core: initialized pinctrl subsystem
    [    0.160689] NET: Registered protocol family 16
    [    0.162951] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.170530] OMAP GPIO hardware version 0.1
    [    0.176745] platform 4834c000.mcradc: Cannot lookup hwmod 'adc_mcr'
    [    0.178231] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nand_flash_x8_default, deferring probe
    [    0.182748] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
    [    0.182764] hw-breakpoint: maximum watchpoint size is 4 bytes.
    [    0.217493] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.221693] vgaarb: loaded
    [    0.222199] SCSI subsystem initialized
    [    0.222491] usbcore: registered new interface driver usbfs
    [    0.222546] usbcore: registered new interface driver hub
    [    0.222658] usbcore: registered new device driver usb
    [    0.223270] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c0_pins, deferring probe
    [    0.223318] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins_default, deferring probe
    [    0.223440] media: Linux media interface: v0.10
    [    0.223487] Linux video capture interface: v2.00
    [    0.223532] pps_core: LinuxPPS API ver. 1 registered
    [    0.223539] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.223571] PTP clock support registered
    [    0.223786] EDAC MC: Ver: 3.0.0
    [    0.224706] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.225063] Advanced Linux Sound Architecture Driver Initialized.
    [    0.226062] clocksource: Switched to clocksource arm_global_timer
    [    0.234988] NET: Registered protocol family 2
    [    0.235678] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.235763] TCP bind hash table entries: 8192 (order: 5, 196608 bytes)
    [    0.236420] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.236603] UDP hash table entries: 512 (order: 3, 32768 bytes)
    [    0.236716] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
    [    0.237125] NET: Registered protocol family 1
    [    0.237576] RPC: Registered named UNIX socket transport module.
    [    0.237589] RPC: Registered udp transport module.
    [    0.237594] RPC: Registered tcp transport module.
    [    0.237599] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.239800] futex hash table entries: 256 (order: 1, 8192 bytes)
    [    0.246209] NFS: Registering the id_resolver key type
    [    0.246264] Key type id_resolver registered
    [    0.246271] Key type id_legacy registered
    [    0.246345] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.247889] bounce: pool size: 64 pages
    [    0.248118] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [    0.248137] io scheduler noop registered
    [    0.248147] io scheduler deadline registered
    [    0.248369] io scheduler cfq registered (default)
    [    0.251554] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size 796
    [    0.254351] backlight supply power not found, using dummy regulator
    [    0.301666] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.303824] omap8250 44e09000.serial: No clock speed specified: using default: 48000000
    [    0.304494] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
    [    1.218035] console [ttyS0] enabled
    [    1.221939] omap8250 481a6000.serial: No clock speed specified: using default: 48000000
    [    1.230585] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 31, base_baud = 3000000) is a 8250
    [    1.239669] omap8250 481a8000.serial: No clock speed specified: using default: 48000000
    [    1.248269] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 32, base_baud = 3000000) is a 8250
    [    1.258025] [drm] Initialized drm 1.1.0 20060810
    [    1.263845] 4832a000.dss supply vdda_video not found, using dummy regulator
    [    1.270980] OMAP DSS rev 2.0
    [    1.274013] omapdss_dss 4832a000.dss: bound 4832a400.dispc (ops dispc_component_ops)
    [    1.290526] loop: module loaded
    [    1.296029] spi spi1.0: not using DMA for McSPI (-19)
    [    1.301414] m25p80 spi1.0: unrecognized JEDEC id bytes: 00,  0,  0
    [    1.307679] spi spi1.2: not using DMA for McSPI (-19)
    [    1.313532] /ocp/spi@481a2000: could not get #dma-cells for /ocp/l4_wkup@44c00000/prcm@1f0000/clocks/dpll_per_m2_ck
    [    1.324033] spi spi2.0: not using DMA for McSPI (-19)
    [    1.330473] libphy: Fixed MDIO Bus: probed
    [    1.396078] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.402212] davinci_mdio 4a101000.mdio: detected phy mask ffffffef
    [    1.409216] libphy: 4a101000.mdio: probed
    [    1.413258] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver Micrel KSZ9031 Gigabit PHY
    [    1.423621] cpsw 4a100000.ethernet: Detected MACID = 10:ce:a9:8d:ba:8c
    [    1.431285] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
    [    1.438813] usbcore: registered new interface driver pegasus
    [    1.444563] usbcore: registered new interface driver asix
    [    1.450055] usbcore: registered new interface driver ax88179_178a
    [    1.456230] usbcore: registered new interface driver cdc_ether
    [    1.462145] usbcore: registered new interface driver smsc75xx
    [    1.467976] usbcore: registered new interface driver smsc95xx
    [    1.473790] usbcore: registered new interface driver net1080
    [    1.479521] usbcore: registered new interface driver cdc_subset
    [    1.485506] usbcore: registered new interface driver zaurus
    [    1.491196] usbcore: registered new interface driver cdc_ncm
    [    1.497680] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.504246] ehci-pci: EHCI PCI platform driver
    [    1.508767] ehci-platform: EHCI generic platform driver
    [    1.514214] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.519589] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    1.525827] ohci-pci: OHCI PCI platform driver
    [    1.530350] ohci-platform: OHCI generic platform driver
    [    1.536149] usbcore: registered new interface driver usb-storage
    [    1.542576] mousedev: PS/2 mouse device common for all mice
    [    1.549102] i2c /dev entries driver
    [    1.554008] sdhci: Secure Digital Host Controller Interface driver
    [    1.560220] sdhci: Copyright(c) Pierre Ossman
    [    1.565261] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.606493] Synopsys Designware Multimedia Card Interface Driver
    [    1.613021] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.622573] usbcore: registered new interface driver usbhid
    [    1.629062] usbhid: USB HID core driver
    [    1.635507] NET: Registered protocol family 10
    [    1.641293] sit: IPv6 over IPv4 tunneling driver
    [    1.646726] NET: Registered protocol family 17
    [    1.651514] Key type dns_resolver registered
    [    1.655993] omap_voltage_late_init: Voltage driver support not added
    [    1.662886] ThumbEE CPU extension supported.
    [    1.667200] Registering SWP/SWPB emulation handler
    [    1.674559] omapdrm omapdrm.0: DMM not available, disable DMM support
    [    1.682511] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.689166] [drm] No driver support for vblank timestamp query.
    [    1.740828] Console: switching to colour frame buffer device 100x30
    [    1.763979] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [    1.796101] [drm] Initialized omapdrm 1.0.0 20110917 on minor 0
    [    1.802654] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.807828] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.815693] /ocp/gpmc@50000000/nand@0,0: could not get #gpio-cells for /ocp/gpmc@50000000
    [    1.824286] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xdc
    [    1.830670] nand: AMD/Spansion S34ML04G2
    [    1.834610] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
    [    1.842334] using OMAP_ECC_BCH16_CODE_HW ECC scheme
    [    1.847310] 10 ofpart partitions found on MTD device 8000000.nand
    [    1.853429] Creating 10 MTD partitions on "8000000.nand":
    [    1.858855] 0x000000000000-0x000000040000 : "NAND.SPL"
    [    1.865376] 0x000000040000-0x000000080000 : "NAND.SPL.backup1"
    [    1.872452] 0x000000080000-0x0000000c0000 : "NAND.SPL.backup2"
    [    1.879442] 0x0000000c0000-0x000000100000 : "NAND.SPL.backup3"
    [    1.886454] 0x000000100000-0x000000180000 : "NAND.u-boot-spl-os"
    [    1.893749] 0x000000180000-0x000000280000 : "NAND.u-boot"
    [    1.900897] 0x000000280000-0x0000002c0000 : "NAND.u-boot-env"
    [    1.907800] 0x0000002c0000-0x000000300000 : "NAND.u-boot-env.backup1"
    [    1.915346] 0x000000300000-0x000000a00000 : "NAND.kernel"
    [    1.927414] 0x000000a00000-0x000020000000 : "NAND.file-system"
    [    2.371238] at24 0-0054: 512 byte 24c04 EEPROM, writable, 16 bytes/write
    [    2.378294] tmp102 0-0049: error reading config register
    [    2.383646] tmp102: probe of 0-0049 failed with error -121
    [    2.389330] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz
    [    2.396154] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz
    [    2.402166] ubi0: default fastmap pool size: 200
    [    2.406811] ubi0: default fastmap WL pool size: 100
    [    2.411707] ubi0: attaching mtd9
    [    4.024887] ubi0: scanning is finished
    [    4.038544] ubi0: attached mtd9 (name "NAND.file-system", size 502 MiB)
    [    4.045209] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    4.052185] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    4.058919] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    4.065910] ubi0: good PEBs: 4016, bad PEBs: 0, corrupted PEBs: 0
    [    4.072027] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    4.079281] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 971489807
    [    4.088365] ubi0: available PEBs: 0, total reserved PEBs: 4016, PEBs reserved for bad PEB handling: 80
    [    4.097716] ubi0: background thread "ubi_bgt0d" started, PID 81
    [    4.105882] input: user_keys@0 as /devices/platform/user_keys@0/input/input0
    [    4.113374] hctosys: unable to open rtc device (rtc0)
    [    4.123395] evm_v3_3d: disabling
    [    4.126668] vmmcwl_fixed: disabling
    [    4.130175] ads7846-reg: disabling
    [    4.133745] ALSA device list:
    [    4.136724]   No soundcards found.
    [    4.146182] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 86
    [    4.182968] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    4.190415] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    4.200378] UBIFS (ubi0:0): FS size: 497618944 bytes (474 MiB, 3919 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [    4.211119] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [    4.216981] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 0B5E06A5-8ABC-45D4-8BC8-87AB8C8363FA, small LPT model
    [    4.228958] VFS: Mounted root (ubifs filesystem) on device 0:15.
    [    4.236023] devtmpfs: mounted
    [    4.239537] Freeing unused kernel memory: 300K (c0919000 - c0964000)
    INIT: version 2.88 booting
    mount: mounting tmpfs on /mnt/.psplash failed: No such file or directory
    Starting udev
    [    4.857141] udevd[121]: starting version 182
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/50-firmware.rules:3
    
    udevd[121]: invalid rule '/lib/udev/rules.d/50-firmware.rules:3'
    
    udevd[121]: IMPORT{builtin}: 'hwdb --subsystem=usb' unknown /lib/udev/rules.d/50-udev-default.rules:13
    
    udevd[121]: IMPORT{builtin}: 'hwdb --subsystem=$env{SUBSYSTEM}' unknown /lib/udev/rules.d/50-udev-default.rules:15
    
    udevd[121]: IMPORT{builtin}: 'hwdb --subsystem=input --lookup-prefix=evdev:' unknown /lib/udev/rules.d/60-evdev.rules:8
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/60-evdev.rules:8
    
    udevd[121]: invalid rule '/lib/udev/rules.d/60-evdev.rules:8'
    
    udevd[121]: IMPORT{builtin}: 'hwdb 'evdev:atkbd:$attr{[dmi/id]modalias}'' unknown /lib/udev/rules.d/60-evdev.rules:13
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/60-evdev.rules:13
    
    udevd[121]: invalid rule '/lib/udev/rules.d/60-evdev.rules:13'
    
    udevd[121]: IMPORT{builtin}: 'hwdb 'evdev:name:$attr{name}:$attr{[dmi/id]modalias}'' unknown /lib/udev/rules.d/60-evdev.rules:17
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/60-evdev.rules:17
    
    udevd[121]: invalid rule '/lib/udev/rules.d/60-evdev.rules:17'
    
    udevd[121]: IMPORT{builtin}: 'hwdb --subsystem=pci' unknown /lib/udev/rules.d/60-serial.rules:7
    
    udevd[121]: IMPORT{builtin}: 'hwdb --subsystem=usb' unknown /lib/udev/rules.d/60-serial.rules:8
    
    udevd[121]: IMPORT{builtin}: 'btrfs ready $devnode' unknown /lib/udev/rules.d/64-btrfs.rules:8
    
    udevd[121]: IMPORT{builtin}: 'hwdb 'mouse:$env{ID_BUS}:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'' unknown /lib/udev/rules.d/70-mouse.rules:10
    
    udevd[121]: IMPORT{builtin}: 'hwdb 'mouse:$env{ID_BUS}:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'' unknown /lib/udev/rules.d/70-mouse.rules:13
    
    udevd[121]: IMPORT{builtin}: 'hwdb 'mouse:ps2::name:$attr{device/name}:'' unknown /lib/udev/rules.d/70-mouse.rules:16
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/73-seat-late.rules:15
    
    udevd[121]: invalid rule '/lib/udev/rules.d/73-seat-late.rules:15'
    
    udevd[121]: IMPORT{builtin}: 'net_id' unknown /lib/udev/rules.d/75-net-description.rules:6
    
    udevd[121]: IMPORT{builtin}: 'hwdb --subsystem=usb' unknown /lib/udev/rules.d/75-net-description.rules:8
    
    udevd[121]: IMPORT{builtin}: 'hwdb --subsystem=pci' unknown /lib/udev/rules.d/75-net-description.rules:12
    
    udevd[121]: IMPORT{builtin}: 'hwdb' unknown /lib/udev/rules.d/78-sound-card.rules:40
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:5
    
    udevd[121]: invalid rule '/lib/udev/rules.d/80-drivers.rules:5'
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:6
    
    udevd[121]: invalid rule '/lib/udev/rules.d/80-drivers.rules:6'
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:7
    
    udevd[121]: invalid rule '/lib/udev/rules.d/80-drivers.rules:7'
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:8
    
    udevd[121]: invalid rule '/lib/udev/rules.d/80-drivers.rules:8'
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:9
    
    udevd[121]: invalid rule '/lib/udev/rules.d/80-drivers.rules:9'
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:10
    
    udevd[121]: invalid rule '/lib/udev/rules.d/80-drivers.rules:10'
    
    udevd[121]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:11
    
    udevd[121]: invalid rule '/lib/udev/rules.d/80-drivers.rules:11'
    
    udevd[121]: IMPORT{builtin}: 'net_setup_link' unknown /lib/udev/rules.d/80-net-setup-link.rules:9
    
    [    5.627912] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    5.639131] cryptodev: driver 1.8 loaded.
    [    5.664402] ti_am3359-tscadc 4834c000.mcradc: _od_fail_runtime_resume: FIXME: missing hwmod/omap_dev info
    [    5.674155] ------------[ cut here ]------------
    [    5.678826] WARNING: CPU: 0 PID: 18 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x368()
    [    5.688262] 44000000.ocp:L3 Custom Error: MASTER M2 (64-bit) TARGET L4_PER_0 (Idle): Data Access in Supervisor mode during Functional access
    [    5.700919] Modules linked in: omap_wdt(+) ti_am335x_tscadc(+) cryptodev(O)
    [    5.707931] CPU: 0 PID: 18 Comm: irq/21-l3-app-i Tainted: G        W  O    4.4.12-rt17 #9
    [    5.716142] Hardware name: Generic AM43 (Flattened Device Tree)
    [    5.722083] Backtrace: 
    [    5.724564] [<c00134d8>] (dump_backtrace) from [<c00136d4>] (show_stack+0x18/0x1c)
    [    5.732163]  r7:c02b29d4 r6:00000093 r5:00000009 r4:00000000
    [    5.737882] [<c00136bc>] (show_stack) from [<c0288450>] (dump_stack+0x24/0x28)
    [    5.745140] [<c028842c>] (dump_stack) from [<c003462c>] (warn_slowpath_common+0x88/0xb4)
    [    5.753267] [<c00345a4>] (warn_slowpath_common) from [<c0034690>] (warn_slowpath_fmt+0x38/0x40)
    [    5.761999]  r8:00000015 r7:c0872254 r6:00000000 r5:c08720a8 r4:c087214c
    [    5.768770] [<c003465c>] (warn_slowpath_fmt) from [<c02b29d4>] (l3_interrupt_handler+0x25c/0x368)
    [    5.777677]  r3:ee90f440 r2:c087214c
    [    5.781274]  r4:80080003
    [    5.783827] [<c02b2778>] (l3_interrupt_handler) from [<c0067e80>] (irq_forced_thread_fn+0x28/0x7c)
    [    5.792821]  r10:00000000 r9:c09aff4e r8:c0067e58 r7:ee8f3540 r6:00000001 r5:ee8f3540
    [    5.800716]  r4:ee90f9c0
    [    5.803265] [<c0067e58>] (irq_forced_thread_fn) from [<c0068154>] (irq_thread+0x100/0x1d8)
    [    5.811561]  r7:ee8f3540 r6:00000001 r5:ee92c000 r4:ee90f9c0
    [    5.817277] [<c0068054>] (irq_thread) from [<c004f0b8>] (kthread+0xdc/0xf4)
    [    5.824263]  r9:00000000 r8:00000000 r7:c0068054 r6:ee90f9c0 r5:ee90fa00 r4:00000000
    [    5.832079] [<c004efdc>] (kthread) from [<c000fac0>] (ret_from_fork+0x14/0x34)
    [    5.839328]  r7:00000000 r6:00000000 r5:c004efdc r4:ee90fa00
    [    5.845035] ---[ end trace 0000000000000003 ]---
    [    5.986292] ------------[ cut here ]------------
    [    5.990980] WARNING: CPU: 0 PID: 18 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x368()
    [    6.000417] 44000000.ocp:L3 Custom Error: MASTER M2 (64-bit) TARGET L4_PER_0 (Idle): Data Access in Supervisor mode during Functional access
    [    6.013076] Modules linked in: omap_wdt ti_am335x_tscadc(+) cryptodev(O)
    [    6.019826] CPU: 0 PID: 18 Comm: irq/21-l3-app-i Tainted: G        W  O    4.4.12-rt17 #9
    [    6.028037] Hardware name: Generic AM43 (Flattened Device Tree)
    [    6.033979] Backtrace: 
    [    6.036463] [<c00134d8>] (dump_backtrace) from [<c00136d4>] (show_stack+0x18/0x1c)
    [    6.044061]  r7:c02b29d4 r6:00000093 r5:00000009 r4:00000000
    [    6.049778] [<c00136bc>] (show_stack) from [<c0288450>] (dump_stack+0x24/0x28)
    [    6.057037] [<c028842c>] (dump_stack) from [<c003462c>] (warn_slowpath_common+0x88/0xb4)
    [    6.065164] [<c00345a4>] (warn_slowpath_common) from [<c0034690>] (warn_slowpath_fmt+0x38/0x40)
    [    6.073896]  r8:00000015 r7:c0872254 r6:00000000 r5:c08720a8 r4:c087214c
    [    6.080661] [<c003465c>] (warn_slowpath_fmt) from [<c02b29d4>] (l3_interrupt_handler+0x25c/0x368)
    [    6.089567]  r3:ee90f440 r2:c087214c
    [    6.093164]  r4:80080003
    [    6.095717] [<c02b2778>] (l3_interrupt_handler) from [<c0067e80>] (irq_forced_thread_fn+0x28/0x7c)
    [    6.104710]  r10:00000000 r9:c09aff4e r8:c0067e58 r7:ee8f3540 r6:00000001 r5:ee8f3540
    [    6.112602]  r4:ee90f9c0
    [    6.115150] [<c0067e58>] (irq_forced_thread_fn) from [<c0068154>] (irq_thread+0x100/0x1d8)
    [    6.123447]  r7:ee8f3540 r6:00000001 r5:ee92c000 r4:ee90f9c0
    [    6.129160] [<c0068054>] (irq_thread) from [<c004f0b8>] (kthread+0xdc/0xf4)
    [    6.136148]  r9:00000000 r8:00000000 r7:c0068054 r6:ee90f9c0 r5:ee90fa00 r4:00000000
    [    6.143958] [<c004efdc>] (kthread) from [<c000fac0>] (ret_from_fork+0x14/0x34)
    [    6.151208]  r7:00000000 r6:00000000 r5:c004efdc r4:ee90fa00
    [    6.156912] ---[ end trace 0000000000000004 ]---
    [    6.161628] ------------[ cut here ]------------
    [    6.166276] WARNING: CPU: 0 PID: 18 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x368()
    [    6.175709] 44000000.ocp:L3 Custom Error: MASTER M2 (64-bit) TARGET L4_PER_0 (Idle): Data Access in Supervisor mode during Functional access
    [    6.188366] Modules linked in: omap_wdt ti_am335x_tscadc(+) cryptodev(O)
    [    6.195104] CPU: 0 PID: 18 Comm: irq/21-l3-app-i Tainted: G        W  O    4.4.12-rt17 #9
    [    6.203313] Hardware name: Generic AM43 (Flattened Device Tree)
    [    6.209253] Backtrace: 
    [    6.211719] [<c00134d8>] (dump_backtrace) from [<c00136d4>] (show_stack+0x18/0x1c)
    [    6.219317]  r7:c02b29d4 r6:00000093 r5:00000009 r4:00000000
    [    6.225027] [<c00136bc>] (show_stack) from [<c0288450>] (dump_stack+0x24/0x28)
    [    6.232282] [<c028842c>] (dump_stack) from [<c003462c>] (warn_slowpath_common+0x88/0xb4)
    [    6.240408] [<c00345a4>] (warn_slowpath_common) from [<c0034690>] (warn_slowpath_fmt+0x38/0x40)
    [    6.249139]  r8:00000015 r7:c0872254 r6:00000000 r5:c08720a8 r4:c087214c
    [    6.255900] [<c003465c>] (warn_slowpath_fmt) from [<c02b29d4>] (l3_interrupt_handler+0x25c/0x368)
    [    6.264807]  r3:ee90f440 r2:c087214c
    [    6.268405]  r4:80080003
    [    6.270956] [<c02b2778>] (l3_interrupt_handler) from [<c0067e80>] (irq_forced_thread_fn+0x28/0x7c)
    [    6.279950]  r10:00000000 r9:c09aff4e r8:c0067e58 r7:ee8f3540 r6:00000001 r5:ee8f3540
    [    6.287842]  r4:ee90f9c0
    [    6.290390] [<c0067e58>] (irq_forced_thread_fn) from [<c0068154>] (irq_thread+0x100/0x1d8)
    [    6.298686]  r7:ee8f3540 r6:00000001 r5:ee92c000 r4:ee90f9c0
    [    6.304393] [<c0068054>] (irq_thread) from [<c004f0b8>] (kthread+0xdc/0xf4)
    [    6.311381]  r9:00000000 r8:00000000 r7:c0068054 r6:ee90f9c0 r5:ee90fa00 r4:00000000
    [    6.319191] [<c004efdc>] (kthread) from [<c000fac0>] (ret_from_fork+0x14/0x34)
    [    6.326440]  r7:00000000 r6:00000000 r5:c004efdc r4:ee90fa00
    [    6.332142] ---[ end trace 0000000000000005 ]---
    [    6.336929] ------------[ cut here ]------------
    [    6.341587] WARNING: CPU: 0 PID: 161 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x6c/0x7c()
    [    6.409487] sysfs: cannot create duplicate filename '/bus/platform/devices/TI-am335x-adc'
    [    6.562050] CAN device driver interface
    [    6.574337] Modules linked in: dwc3_omap(+) extcon c_can_platform(+) c_can omap_rng(+) rng_core can_dev am437x_vpfe(+) omap_wdt ti_am335x_tscadc(+) cryptodev(O)
    [    6.732087] CPU: 0 PID: 161 Comm: modprobe Tainted: G        W  O    4.4.12-rt17 #9
    [    6.824207] Hardware name: Generic AM43 (Flattened Device Tree)
    [    6.884471] Backtrace: 
    [    6.996860] [<c00134d8>] (dump_backtrace) from [<c00136d4>] (show_stack+0x18/0x1c)
    [    7.004464]  r7:c0160820[    7.076574]  remoteproc0: wkup_m3 is available
    [    7.076579]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    7.076582]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    Starting Bootlog daemon: 
    [    7.338820]  r6:0000001f r5:00000009 r4:00000000
    [    7.368448] [<c00136bc>] (show_stack) from [<c0288450>] (dump_stack+0x24/0x28)
    [    7.375713] [<c028842c>] (dump_stack) from [<c003462c>] (warn_slowpath_common+0x88/0xb4)
    [    7.557858] [<c00345a4>] (warn_slowpath_common) from [<c0034690>] (warn_slowpath_fmt+0x38/0x40)
    [    7.606682]  r8:eef8b300 r7:ee81d7d0 r6:ee81d7d0 r5:eef8b300 r4:c0858448
    [    7.613489] [<c003465c>] (warn_slowpath_fmt) from [<c0160820>] (sysfs_warn_dup+0x6c/0x7c)
    [    7.829616]  r3:ed8e6fea r2:c0858448
    [    7.833231]  r4:ed8e6000
    [    7.835805] [<c01607b4>] (sysfs_warn_dup) from [<c0160bb8>] (sysfs_do_create_link_sd+0xbc/0xc4)
    bootlogd.
    [    7.879919]  remoteproc0: powering up wkup_m3
    [    7.905277] ov2659 0-0030: link-frequencies property not found or too many
    [    7.905283] ov2659 0-0030: platform data not specified
    [    7.905302] ov2659: probe of 0-0030 failed with error -22
    [    7.905369] ov2659 1-0030: link-frequencies property not found or too many
    [    7.905373] ov2659 1-0030: platform data not specified
    
    
    udevadm settle - timeout of 3 seconds reached, the event queue contains:
      /sys/devices/platform/44000000.ocp/44e0d000.tscadc [    7.905381] ov2659: probe of 1-0030 failed with error -22
    (1531)
      /sys/devices/platform/44000000.ocp/481cc000.can (1562)
      /sys/devices/platform/44000000.ocp/481d0000.can (1563)
      /sys/devices/platform/44000000.ocp/48310000.rng (1567)
      /sys/devices/platform/44000000.ocp/48326000.vpfe (1572)
      /sys/devices/platform/44000000.ocp/48328000.vpfe (1573)
      /sys/devices/platform/44000000.ocp/4834c000.mcradc (1577)
      /sys/devices/platform/44000000.ocp/48380000.omap_dwc3 (1578)
      /sys/devices/platform/44000000.ocp/483c0000.omap_dwc3 (1579)
      /sys/devices/platform/44000000.ocp/4a100000.ethernet/net/eth0 (1653)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd0/mtdblock0 (1659)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd1/mtdblock1 (1662)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd2/mtdblock2 (1665)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd3/mtdblock3 (1668)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd4/mtdblock4 (1671)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd5/mtdblock5 (1674)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd6/mtdblock6 (1677)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd7/mtdblock7 (1680)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd8/mtdblock8 (1683)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd9/[    7.910183]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 216260
    mtdblock9 (1686)
      /sys/devices/platform/44000000.ocp/53100000[    7.910977]  remoteproc0: remote processor wkup_m3 is now up
    .sham (1689)
      /sys/devices/platform/44000000.ocp/53501000.aes (1690)
      /sys/devices/platform/44000000.ocp/53701000.des (1691)
    [    7.911114] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    
      /sys/devices/platform/pm33xx.0 (1719)
      /sys/devices/platf[    7.926211] edt_ft5x06 0-0038: touchscreen probe failed
    orm/pruss1_eth (1720)
      /sys/devices/platform/soc/soc:mpu (1726)
      /sys/devices/platform/sound@0 (1727)
      /sys/devices/platform/user_keys@0/input/input0 (1730)
      /sys/devices/platform/user_keys@0/input/input0/event0 (1731)
      /sys/devices/virtual/[    7.926276] edt_ft5x06: probe of 0-0038 failed with error -121
    block/loop0 (1760)
      /sys/devices/virtual/block/loop1 (1761)
      /sys/devices/virtual/block/loop2 (1762)
      /sys/devices/virt[    7.981589] random: systemd-sysctl urandom read with 5 bits of entropy available
    ual/block/loop3 (1763)
    [    8.607238] asoc-simple-card sound@0: tlv320aic3x-hifi <-> 48038000.mcasp mapping ok
    [    8.819494] ubi0 error: ubi_open_volume: cannot open device 0, volume 0, error -16
    [    9.870574]  r6:ffffffef r5:00000000 r4:eda1d910
    [    9.875272] [<c0160afc>] (sysfs_do_create_link_sd) from [<c0160bf0>] (sysfs_create_link+0x30/0x3c)
    [    9.917151]  r9:00000000 r8:c09f3720 r7:00000000 r6:eefb3810 r5:c098fe20 r4:eefb3818
    [    9.925012] [<c0160bc0>] (sysfs_create_link) from [<c03bea5c>] (bus_add_device+0xfc/0x194)
    [    9.966251] [<c03be960>] (bus_add_device) from [<c03bcc34>] (device_add+0x318/0x56c)
    [    9.974035]  r9:00000000 r8:c09f3720 r7:00000000 r6:ee940410 r5:eefb3810 r4:eefb3818
    [   10.004668] [<c03bc91c>] (device_add) from [<c03c0d8c>] (platform_device_add+0x120/0x228)
    [   10.014303]  r10:eef8b240 r9:00000010 r8:eefb3810 r7:00000000 r6:eefb3800 r5:eefb3800
    [   10.032358]  r4:00000000
    [   10.034944] [<c03c0c6c>] (platform_device_add) from [<c03dc92c>] (mfd_add_device+0x330/0x374)
    [   10.057793]  r9:00000010 r8:00000000 r7:00000000 r6:eefb3800 r5:ee940410 r4:ed960330
    [   10.065644] [<c03dc5fc>] (mfd_add_device) from [<c03dca40>] (mfd_add_devices+0x98/0xfc)
    [   10.083745]  r10:00000000 r9:ffffffff r8:ee940410 r7:00000001 r6:ed960330 r5:00000000
    [   10.105075]  r4:eef8b244
    [   10.108927] [<c03dc9a8>] (mfd_add_devices) from [<bf00f69c>] (ti_tscadc_probe+0x380/0x4b8 [ti_am335x_tscadc])
    [   10.128948]  r10:00000000 r9:00215555 r8:55695840 r7:ee940410 r6:ee940400 r5:00000007
    [   10.145966]  r4:00000000
    [   10.148646] [<bf00f31c>] (ti_tscadc_probe [ti_am335x_tscadc]) from [<c03c1064>] (platform_drv_probe+0x54/0xb8)
    [   10.168615]  r9:00000011 r8:bf00fdb4 r7:fffffdfb r6:bf00fdb4 r5:ee940410 r4:ee940410
    [   10.186567] [<c03c1010>] (platform_drv_probe) from [<c03bf904>] (driver_probe_device+0x204/0x300)
    [   10.195487]  r7:00000000 r6:c09f3774 r5:c09f3764 r4:ee940410
    [   10.216661] [<c03bf700>] (driver_probe_device) from [<c03bfa94>] (__driver_attach+0x94/0x98)
    [   10.225137]  r9:125caddc r8:eda35248 r7:00000000 r6:ee940444 r5:bf00fdb4 r4:ee940410
    [   10.243051] [<c03bfa00>] (__driver_attach) from [<c03bdb74>] (bus_for_each_dev+0x70/0xa4)
    [   10.264272]  r7:00000000 r6:c03bfa00 r5:bf00fdb4 r4:00000000
    [   10.271330] [<c03bdb04>] (bus_for_each_dev) from [<c03bf1f4>] (driver_attach+0x24/0x28)
    [   10.289493]  r6:c098fe20 r5:ed9f3680 r4:bf00fdb4
    [   10.294187] [<c03bf1d0>] (driver_attach) from [<c03bee3c>] (bus_add_driver+0x1a8/0x220)
    [   10.316251] [<c03bec94>] (bus_add_driver) from [<c03bffb4>] (driver_register+0x80/0x100)
    [   10.324383]  r7:eda35340 r6:c09690a0 r5:bf012000 r4:bf00fdb4
    [   10.342258] [<c03bff34>] (driver_register) from [<c03c0f8c>] (__platform_driver_register+0x48/0x50)
    [   10.360360]  r5:bf012000 r4:c098fe20
    [   10.364025] [<c03c0f44>] (__platform_driver_register) from [<bf012020>] (ti_tscadc_driver_init+0x20/0x24 [ti_am335x_tscadc])
    [   10.384285]  r5:bf012000 r4:c09690a0
    [   10.397993] [<bf012000>] (ti_tscadc_driver_init [ti_am335x_tscadc]) from [<c000974c>] (do_one_initcall+0x98/0x1e4)
    [   10.423391] [<c00096b4>] (do_one_initcall) from [<c00ad700>] (do_init_module+0x68/0x388)
    [   10.431531]  r10:bf00fe00 r9:125caddc r8:eda35248 r7:00000001 r6:eda35300 r5:00000001
    [   10.449615]  r4:bf00fe00
    [   10.452191] [<c00ad698>] (do_init_module) from [<c0090810>] (load_module+0x1d3c/0x1f90)
    [   10.472910]  r6:eda35240 r5:00000001 r4:eefd9f44
    [   10.480098] [<c008ead4>] (load_module) from [<c0090c50>] (SyS_finit_module+0x88/0x98)
    [   10.497997]  r10:00000000 r9:eefd8000 r8:c000fbc4 r7:0000017b r6:0002435c r5:00000003
    [   10.505905]  r4:00000000
    [   10.518605] [<c0090bc8>] (SyS_finit_module) from [<c000fa00>] (ret_fast_syscall+0x0/0x44)
    [   10.534369]  r6:00025c68 r5:00026138 r4:00025844
    [   10.543368] ---[ end trace 0000000000000006 ]---
    [   10.556391] ti_am3359-tscadc: probe of 4834c000.mcradc failed with error -17
    [   10.563774] vpfe 48326000.vpfe: Invalid bus width.
    [   10.568594] vpfe 48326000.vpfe: No platform data
    [   10.573261] vpfe: probe of 48326000.vpfe failed with error -22
    [   10.596967] input: ti-tsc as /devices/platform/44000000.ocp/44e0d000.tscadc/TI-am335x-tsc/input/input2
    ALSA: Restoring mixer settings...
    [   10.666386] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [   10.687291] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=252)
    [   10.712610] omap-aes 53501000.aes: OMAP AES hw accel rev: 0.1
    [   10.748527] omap-sham 53100000.sham: hw accel on OMAP rev 0.0
    [   10.787952] omap-des 53701000.des: OMAP DES hw accel rev: 0.33
    [   10.807570] ti-pruss 54400000.pruss: creating PRU cores and other child platform devices
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Tue Oct  6 06:34:00 UTC 2015
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    INIT: Entering runlevel: 5
    [   10.876261] davinci_mdio 54432400.mdio: davinci mdio revision 1.6
    [   10.882401] libphy: 54432400.mdio: probed
    [   10.906664] davinci_mdio 54432400.mdio: phy[0]: device 54432400.mdio:00, driver TI TLK10X 10/100 Mbps PHY
    [   10.926512] vpfe 48328000.vpfe: Invalid bus width.
    [   10.931339] vpfe 48328000.vpfe: No platform data
    [   10.936003] vpfe: probe of 48328000.vpfe failed with error -22
    [   10.941218] PM: no-rtc available, rtc-only mode disabled.
    [   10.948168]  remoteproc1: 54434000.pru0 is available
    [   10.948172]  remoteproc1: Note: remoteproc is still under development and considered experimental.
    [   10.948176]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [   10.949689] pru-rproc 54434000.pru0: PRU rproc node /ocp/pruss@54400000/pru0@54434000 probed successfully
    [   10.959079]  remoteproc2: 54438000.pru1 is available
    [   10.959084]  remoteproc2: Note: remoteproc is still under development and considered experimental.
    [   10.959088]  remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [   10.960120] pru-rproc 54438000.pru1: PRU rproc node /ocp/pruss@54400000/pru1@54438000 probed successfully
    [   11.106569] prueth pruss1_eth: no ethernet-mii1 node
    [   11.111576] prueth pruss1_eth: freeing port 1
    [   11.121545] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=253)
    Configuring network interfaces... [   11.567534] net eth0: initializing cpsw version 1.15 (0)
    [   11.572888] net eth0: initialized cpsw ale version 1.4
    [   11.657241] dwc3 48390000.usb: otg: primary host xhci-hcd.0.auto registered
    [   11.664250] dwc3 48390000.usb: otg: shared host xhci-hcd.0.auto registered
    [   11.667943] net eth0: phy found : id is : 0x221622
    [   11.668029] libphy: PHY  not found
    [   11.668036] net eth0: phy "" not found on slave 1, err -19
    [   11.674378] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   11.714432] dwc3 48390000.usb: otg: can't start till gadget registers
    udhcpc (v1.22.1) started
    Sending discover...
    [   11.996389] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   12.001942] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
    [   12.010290] xhci-hcd xhci-hcd.1.auto: hcc params 0x0238f06d hci version 0x100 quirks 0x00010010
    [   12.019213] xhci-hcd xhci-hcd.1.auto: irq 301, io mem 0x483d0000
    [   12.026803] hub 1-0:1.0: USB hub found
    [   12.030631] hub 1-0:1.0: 1 port detected
    [   12.034986] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   12.040530] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
    [   12.048307] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   12.057641] hub 2-0:1.0: USB hub found
    [   12.061477] hub 2-0:1.0: 1 port detected
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Starting system message bus: dbus.
    UIM SYSFS Node Not Found
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Starting rpcbind daemon...done.
    creating NFS state directory: done
    starting statd: done
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Starting syslogd/klogd: done
    Starting thttpdchdir: No such file or directory
    .
    ioctl FBIOPUT_VSCREENINFO: Invalid argument
    Starting PVR
    modprobe: FATAL: Module omaplfb not found.
    modprobe: FATAL: Module bufferclass_ti not found.
    BusyBox v1.22.1 (2015-09-09 11:48:34 HKT) multi-call binary.
    
    Usage: mknod [-m MODE] NAME TYPE MAJOR MINOR
    
    chmod: /dev/pvrsrvkm: No such file or directory
    [   23.130794] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6fe6014
    [   23.130798] pgd = ed81c000
    [   23.130806] [b6fe6014] *pgd=adee9831, *pte=56000303, *ppte=56000a33
    [   23.130869] ------------[ cut here ]------------
    [   23.152238] WARNING: CPU: 0 PID: 18 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x368()
    [   23.161673] 44000000.ocp:L3 Standard Error: MASTER M2 (64-bit) TARGET SGX530 (Read Link): At Address: 0x00000014 : Data Access in User mode during Functional access
    [   23.176424] Modules linked in: pvrsrvkm(O) dwc3 udc_core pruss_intc prueth pru_rproc pm33xx ti_am335x_adc ti_am335x_tsc snd_soc_simple_card ti_emif_sram edt_ft5x06 ov2659 snd_soc_tlv320aic3x wkup_m3_ipc pruss wkup_m3_rproc remoteproc omap_des omap_sham virtio virtio_ring omap_aes_driver dwc3_omap extcon c_can_platform c_can omap_rng rng_core can_dev am437x_vpfe omap_wdt ti_am335x_tscadc cryptodev(O)
    [   23.211997] CPU: 0 PID: 18 Comm: irq/21-l3-app-i Tainted: G        W  O    4.4.12-rt17 #9
    [   23.220207] Hardware name: Generic AM43 (Flattened Device Tree)
    [   23.226149] Backtrace: 
    [   23.228633] [<c00134d8>] (dump_backtrace) from [<c00136d4>] (show_stack+0x18/0x1c)
    [   23.236233]  r7:c02b29d4 r6:00000093 r5:00000009 r4:00000000
    [   23.241951] [<c00136bc>] (show_stack) from [<c0288450>] (dump_stack+0x24/0x28)
    [   23.249210] [<c028842c>] (dump_stack) from [<c003462c>] (warn_slowpath_common+0x88/0xb4)
    [   23.257337] [<c00345a4>] (warn_slowpath_common) from [<c0034690>] (warn_slowpath_fmt+0x38/0x40)
    [   23.266071]  r8:00000015 r7:c0872254 r6:00000004 r5:c087209c r4:c087214c
    [   23.272840] [<c003465c>] (warn_slowpath_fmt) from [<c02b29d4>] (l3_interrupt_handler+0x25c/0x368)
    [   23.281747]  r3:ee90f440 r2:c087214c
    [   23.285346]  r4:80080001
    [   23.287901] [<c02b2778>] (l3_interrupt_handler) from [<c0067e80>] (irq_forced_thread_fn+0x28/0x7c)
    [   23.296895]  r10:00000000 r9:c09aff4e r8:c0067e58 r7:ee8f3540 r6:00000001 r5:ee8f3540
    [   23.304792]  r4:ee90f9c0
    [   23.307341] [<c0067e58>] (irq_forced_thread_fn) from [<c0068154>] (irq_thread+0x100/0x1d8)
    [   23.315636]  r7:ee8f3540 r6:00000001 r5:ee92c000 r4:ee90f9c0
    [   23.321353] [<c0068054>] (irq_thread) from [<c004f0b8>] (kthread+0xdc/0xf4)
    [   23.328342]  r9:00000000 r8:00000000 r7:c0068054 r6:ee90f9c0 r5:ee90fa00 r4:00000000
    [   23.336159] [<c004efdc>] (kthread) from [<c000fac0>] (ret_from_fork+0x14/0x34)
    [   23.343407]  r7:00000000 r6:00000000 r5:c004efdc r4:ee90fa00
    [   23.349115] ---[ end trace 0000000000000007 ]---
    /etc/rc5.d/S30pvr-init: line 91: /usr/bin/pvrsrvctl: No such file or directory
    Starting Lighttpd Web Server: lighttpd.
    2015-10-06 06:34:12: (/home/teddy/tl437x/openembedded/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa9t2hf-vfp-neon-linux-gnueabi/lighttpd/1.4.33-r1/lighttpd-1.4.33/src/log.c.166) server started 
    Calibrating touchscreen (first time only)/etc/rc5.d/S96ts-calibrate: line 30: ts_calibrate: command not found
    .
    /
    Starting Matrix GUI application.
    Enabling thermal zones...
    /etc/rc5.d/S98thermal-zone-init: line 7: /sys/class/thermal/thermal_zone*/mode: No such file or directory
    grep: /var/lib/opkg/info/*.control: No such file or directory
    Stopping Bootlog daemon: bootlogd.
    umount: can't forcibly umount /mnt/.psplash: No such file or directory
    -ash: can't access tty; job control turned off
    root@am437x-evm:~# [   23.926600] atemsys: atemsys v1.3.11 loaded
    
    ==============
    main 
    ==============
    map_addr ok
    
    root@am437x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 10:CE:A9:8D:BA:8C  
              inet addr:192.168.200.99  Bcast:192.168.200.255  Mask:255.255.255.0
              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)
              Interrupt:239 
    
    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:10 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1 
              RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)
    
    

  •  Hello Nick,

             pru network has been able to run normally, as follows log, but the network on the computer Ping Pru network eth1 IP and on board Ping computer IP Ping is not working.Please help to see what may be the problem. Thank you very much.

    [    6.805471] davinci_mdio 54432400.mdio: phy[1]: device 54432400.mdio:01, driver TI TLK10X 10/100 Mbps PHY
    [    6.897199] edt_ft5x06 1-0038: touchscreen probe failed
    [    6.897264] edt_ft5x06: probe of 1-0038 failed with error -121
    [    6.969303]  remoteproc0: powering up wkup_m3
    [    6.975651]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 216260
    urandom start: failed.

    udevadm settle - timeout of 3 seconds reached, the event queue contains:
    [    6.976425]  remoteproc0: remote processor wkup_m3 is now up
      /sys/devices/platform/44000000.ocp/481cc000.can (1528)
      /sys/devices/platform/44000000.ocp/481d0000.can (1529)
      /sys/devices/platform/44000000.ocp/48326000.vpfe (1538)
      /sys/devices/platform/44000000.ocp/48328000.vpfe (1539)
      /sys/devices/platform/44000000.ocp/48380000.omap_dwc3 (1540)
      /sys/devices/platform/44000000.ocp/483c0000.omap_dwc3 (1541)
      /sys/devices/platform/44000000.ocp/4a100000.ethernet/net/eth0 (1615)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd0/mtdblock0 (1621)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd1/mtdblock1 (1624)
      /sys/[    6.976555] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd2/mtdblock2 (1627)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd3/mtdblock3 (1630)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd4/mtdblock4 (1633)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd5/mtdblock5 (1636)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd6/mtdblock6 (1639)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd7/mtdblock7 (1642)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd8/mtdblock8 (1645)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd9/mtdblock9 (1648)
      /sys/devices/platform/44000000.ocp/54400000.pruss (1654)
      /sys/devices/platform/44000000.ocp/56000000.sgx (1655)
      /sys/devices/platform/pm33xx.0 (1678)
      /sys/devices/platform/pruss1_eth (1679)
      /sys/devices/platform/soc/soc:mpu (1685)
      /sys/devices/platform/sound@0 (1686)
      /[    7.093154] random: systemd-sysctl urandom read with 5 bits of entropy available
    sys/devices/virtual/block/loop0 (1716)
      /sys/devices/virtual/[    7.305273] asoc-simple-card sound@0: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
    block/loop1 (1717)
      /sys/devices/virtual/block/loop2 (1718)
      /sys/devices/virtual/block/loop3 (1719)
      /sys/devices/virt[    7.413408] ubi0 error: ubi_open_volume: cannot open device 0, volume 0, error -16
    ual/block/loop4 (1720)
      /sys/devices/virtual/block/loop5 (1721)
      /sys/devices/virtual/block/loop6 (1722)
      /sys/devices/virtual/block/loop7 (1723)
      /sys/devices/virtual/mtd/mtd10/mtdblock10 (1726)
      /sys/devices/virtual/mtd/mtd10ro (1727)
      /sys/devices/virtual/net/lo (1728)
      /sys/devices/virtual/net/sit0 (1729)
      /sys/devices/virtual/sound/timer (1730)
    [    8.415238]  remoteproc1: 54434000.pru0 is available
    [    8.420350]  remoteproc1: Note: remoteproc is still under development and considered experimental.
    [    8.479644]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    8.496972] omap_hwmod: gfx: failed to hardreset
    [    8.496997] pvrsrvkm 56000000.sgx: Unable to reset SGX!
    [    8.523697] omap_hwmod: gfx: _wait_target_ready failed: -16
    [    8.523715] PVR_K:(Error): EnableSGXClocks: pm_runtime_get_sync failed (16)
    [    8.523724] PVR_K:(Error): SysInitialise: Failed to Enable system clocks (175)
    [    8.549108] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=218)
    [    8.574754] PM: no-rtc available, rtc-only mode disabled.
    [    8.866041]  remoteproc1: registered virtio0 (type 7)
    [    8.871216] pru-rproc 54434000.pru0: PRU rproc node /ocp/pruss@54400000/pru0@54434000 probed successfully
    [    8.907147]  remoteproc2: 54438000.pru1 is available
    [    8.912151]  remoteproc2: Note: remoteproc is still under development and considered experimental.
    [    8.953652]  remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    8.991433]  remoteproc2: registered virtio1 (type 7)
    [    9.007851] pru-rproc 54438000.pru1: PRU rproc node /ocp/pruss@54400000/pru1@54438000 probed successfully
    [    9.133174] prueth pruss1_eth: port 1: using random MAC addr: 2a:7e:fc:85:08:02
    [    9.159662]  remoteproc1: powering up 54434000.pru0
    [    9.165068]  remoteproc1: Booting fw image am437x-pru1_0-fw, size 86264
    [    9.189371] ti-pruss 54400000.pruss: configured system_events = 0x1000000000000000 intr_channels = 0x00000001 host_intr = 0x00000001
    [    9.216161] prueth pruss1_eth: port 2: using random MAC addr: 66:66:76:f0:1d:4f
    [    9.216194] prueth pruss1_eth: couldn't connect to phy /ocp/pruss@54400000/mdio@54432400/ethernet-phy@1
    [    9.216210] prueth pruss1_eth: netdev init ethernet-mii1 failed: -19
    [    9.217675] prueth pruss1_eth: TI PRU ethernet driver initialized
    [    9.335005]  remoteproc1: remote processor 54434000.pru0 is now up
    [    9.379793] virtio_rpmsg_bus virtio0: creating channel rpmsg-pru addr 0x1e
    [    9.385689] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    9.385944]  remoteproc2: powering up 54438000.pru1
    [    9.386394]  remoteproc2: Booting fw image am437x-pru1_1-fw, size 86264
    [    9.386482] ti-pruss 54400000.pruss: configured system_events = 0x0800000000000000 intr_channels = 0x00000002 host_intr = 0x00000002
    [    9.386488]  remoteproc2: remote processor 54438000.pru1 is now up
    [    9.386893] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    9.534075] virtio_rpmsg_bus virtio1: creating channel rpmsg-pru addr 0x1f
    [    9.576542] dwc3 48390000.usb: otg: primary host xhci-hcd.0.auto registered
    [    9.583555] dwc3 48390000.usb: otg: shared host xhci-hcd.0.auto registered
    [    9.587414] rpmsg_pru rpmsg0: new rpmsg_pru device: /dev/rpmsg_pru30
    [    9.587911] rpmsg_pru rpmsg1: new rpmsg_pru device: /dev/rpmsg_pru31
    [    9.631597] dwc3 48390000.usb: otg: can't start till gadget registers

    root@am437x-evm:~# ifconfig eth1 192.168.200.220
    [   38.158071] net eth1: started
    [   38.161181] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    root@am437x-evm:~# [   39.216169] eth1: Link is Up - 100Mbps/Full - flow control rx/tx
    [   39.222229] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

    root@am437x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr A0:F6:FD:1B:77:68 
              inet addr:192.168.200.99  Bcast:192.168.200.255  Mask:255.255.255.0
              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)
              Interrupt:205

    eth1      Link encap:Ethernet  HWaddr 2A:7E:FC:85:08:02 
              inet addr:192.168.200.220  Bcast:192.168.200.255  Mask:255.255.255.0
              inet6 addr: fe80::287e:fcff:fe85:802/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

    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:61 errors:0 dropped:0 overruns:0 frame:0
              TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:6412 (6.2 KiB)  TX bytes:6412 (6.2 KiB)

    root@am437x-evm:~# ethtool eth1
    Settings for eth1:
            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 Receive-only
            Link partner advertised auto-negotiation: Yes
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 1
            Transceiver: external
            Auto-negotiation: on
            Link detected: yes
    root@am437x-evm:~# ping 192.168.200.107&
    root@am437x-evm:~# PING 192.168.200.107 (192.168.200.107): 56 data bytes

    TLK105L hardware test found that TX pin has no data, RX pin data is normal.

     

     

     



     

     

     

     

     

     

     

     


    log-0119.log
    root@am437x-evm:~# 
    U-Boot SPL 2014.07 (Jun 28 2018 - 15:22:39)
    Could not probe the EEPROM at 0x50
    Could not get board ID.
    
    
    U-Boot 2014.07 (Jun 28 2018 - 15:22:39)
    
    I2C:   ready
    DRAM:  1 GiB
    NAND:  512 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Card did not respond to voltage select!
    ** Bad device mmc 0 **
    Using default environment
    
    Could not probe the EEPROM at 0x50
    Could not get board ID.
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  0 
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    Booting from nand ...
    
    NAND read: device 0 offset 0x100000, size 0x80000
     524288 bytes read: OK
    
    NAND read: device 0 offset 0x300000, size 0x700000
     7340032 bytes read: OK
    Kernel image @ 0x82000000 [ 0x000000 - 0x378940 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff0000, end 8ffffb5a ... 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.12-rt17 (root@ubuntu) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #9 PREEMPT RT Wed Jun 27 02:21:50 PDT 2018
    [    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: TI AM437x GP EVM
    [    0.000000] cma: Reserved 24 MiB at 0xbe800000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM437x ES1.2 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260416
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1003424K/1048576K available (6843K kernel code, 304K rwdata, 2436K rodata, 300K init, 341K bss, 20576K reserved, 24576K cma-reserved, 237568K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0918034   (9281 kB)
    [    0.000000]       .init : 0xc0919000 - 0xc0964000   ( 300 kB)
    [    0.000000]       .data : 0xc0964000 - 0xc09b0140   ( 305 kB)
    [    0.000000]        .bss : 0xc09b3000 - 0xc0a087d4   ( 342 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] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000
    [    0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000
    [    0.000000] L2C-310 erratum 769419 enabled
    [    0.000000] L2C-310 enabling early BRESP for Cortex-A9
    [    0.000000] OMAP L2C310: ROM does not support power control setting
    [    0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled
    [    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
    [    0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e430000
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
    [    0.000011] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000021] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000026] OMAP clocksource: timer1 at 25000000 Hz
    [    0.000148] sched_clock: 64 bits at 500MHz, resolution 2ns, wraps every 4398046511103ns
    [    0.000157] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xe6a171a037, max_idle_ns: 881590485102 ns
    [    0.000642] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000645] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.001083] Console: colour dummy device 80x30
    [    0.001220] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.001222] This ensures that you still see kernel messages. Please
    [    0.001224] update your kernel commandline.
    [    0.060241] Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896)
    [    0.060245] pid_max: default: 32768 minimum: 301
    [    0.060353] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.060360] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.061023] Initializing cgroup subsys io
    [    0.061039] Initializing cgroup subsys memory
    [    0.061068] Initializing cgroup subsys devices
    [    0.061079] Initializing cgroup subsys freezer
    [    0.061089] Initializing cgroup subsys perf_event
    [    0.061098] Initializing cgroup subsys pids
    [    0.061160] CPU: Testing write buffer coherency: ok
    [    0.061480] Setting up static identity map for 0x80008200 - 0x80008258
    [    0.063102] devtmpfs: initialized
    [    0.073854] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    [    0.091453] omap_hwmod: rtc: no dt node
    [    0.091473] ------------[ cut here ]------------
    [    0.091494] WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2533 _init.constprop.23+0x1fc/0x424()
    [    0.091500] omap_hwmod: rtc: doesn't have mpu register target base
    [    0.091504] Modules linked in:
    [    0.091517] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.12-rt17 #9
    [    0.091522] Hardware name: Generic AM43 (Flattened Device Tree)
    [    0.091527] Backtrace: 
    [    0.091557] [<c00134d8>] (dump_backtrace) from [<c00136d4>] (show_stack+0x18/0x1c)
    [    0.091563]  r7:c0924fe4 r6:000009e5 r5:00000009 r4:00000000
    [    0.091584] [<c00136bc>] (show_stack) from [<c0288450>] (dump_stack+0x24/0x28)
    [    0.091597] [<c028842c>] (dump_stack) from [<c003462c>] (warn_slowpath_common+0x88/0xb4)
    [    0.091606] [<c00345a4>] (warn_slowpath_common) from [<c0034690>] (warn_slowpath_fmt+0x38/0x40)
    [    0.091610]  r8:000000d7 r7:ee8e4c40 r6:00000000 r5:00000000 r4:c0849fc8
    [    0.091625] [<c003465c>] (warn_slowpath_fmt) from [<c0924fe4>] (_init.constprop.23+0x1fc/0x424)
    [    0.091629]  r3:c087f624 r2:c0849fc8
    [    0.091635]  r4:c096fd0c
    [    0.091644] [<c0924de8>] (_init.constprop.23) from [<c092533c>] (__omap_hwmod_setup_all+0x48/0x98)
    [    0.091648]  r10:00000000 r9:c0919600 r8:000000d7 r7:ee8e4c40 r6:c09690a0 r5:c096b488
    [    0.091660]  r4:c096fd0c
    [    0.091669] [<c09252f4>] (__omap_hwmod_setup_all) from [<c000974c>] (do_one_initcall+0x98/0x1e4)
    [    0.091673]  r5:c09252f4 r4:c09690a0
    [    0.091688] [<c00096b4>] (do_one_initcall) from [<c0919e88>] (kernel_init_freeable+0x138/0x1cc)
    [    0.091692]  r10:00000002 r9:c0919600 r8:000000d7 r7:c095381c r6:c09618bc r5:c09b3000
    [    0.091703]  r4:c09b3000
    [    0.091720] [<c0919d50>] (kernel_init_freeable) from [<c06b0d18>] (kernel_init+0x18/0xe8)
    [    0.091724]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c06b0d00
    [    0.091734]  r4:c09b3000
    [    0.091744] [<c06b0d00>] (kernel_init) from [<c000fac0>] (ret_from_fork+0x14/0x34)
    [    0.091748]  r5:c06b0d00 r4:00000000
    [    0.091755] ---[ end trace 0000000000000001 ]---
    [    0.154451] omap_hwmod: usb_otg_ss0: _wait_target_disable failed
    [    0.154922] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.157017] pinctrl core: initialized pinctrl subsystem
    [    0.158203] NET: Registered protocol family 16
    [    0.160608] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.164050] omap_l3_noc 44000000.ocp: L3 debug error: target 8 mod:0 (unclearable)
    [    0.164216] omap_l3_noc 44000000.ocp: L3 application error: target 8 mod:0 (unclearable)
    [    0.168196] OMAP GPIO hardware version 0.1
    [    0.174805] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nand_flash_x8_default, deferring probe
    [    0.178319] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
    [    0.178333] hw-breakpoint: maximum watchpoint size is 4 bytes.
    [    0.217398] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.221248] vgaarb: loaded
    [    0.221750] SCSI subsystem initialized
    [    0.222030] usbcore: registered new interface driver usbfs
    [    0.222084] usbcore: registered new interface driver hub
    [    0.222191] usbcore: registered new device driver usb
    [    0.222773] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c0_pins, deferring probe
    [    0.222824] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c1_pins_default, deferring probe
    [    0.222930] media: Linux media interface: v0.10
    [    0.222979] Linux video capture interface: v2.00
    [    0.223023] pps_core: LinuxPPS API ver. 1 registered
    [    0.223029] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.223060] PTP clock support registered
    [    0.223268] EDAC MC: Ver: 3.0.0
    [    0.224177] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.224515] Advanced Linux Sound Architecture Driver Initialized.
    [    0.225511] clocksource: Switched to clocksource arm_global_timer
    [    0.234447] NET: Registered protocol family 2
    [    0.235151] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.235235] TCP bind hash table entries: 8192 (order: 5, 196608 bytes)
    [    0.235866] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.236045] UDP hash table entries: 512 (order: 3, 32768 bytes)
    [    0.236152] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
    [    0.236607] NET: Registered protocol family 1
    [    0.237068] RPC: Registered named UNIX socket transport module.
    [    0.237082] RPC: Registered udp transport module.
    [    0.237088] RPC: Registered tcp transport module.
    [    0.237093] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.239240] futex hash table entries: 256 (order: 1, 8192 bytes)
    [    0.245669] NFS: Registering the id_resolver key type
    [    0.245724] Key type id_resolver registered
    [    0.245731] Key type id_legacy registered
    [    0.245813] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.247362] bounce: pool size: 64 pages
    [    0.247567] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [    0.247588] io scheduler noop registered
    [    0.247599] io scheduler deadline registered
    [    0.247816] io scheduler cfq registered (default)
    [    0.250832] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size 796
    [    0.253523] backlight supply power not found, using dummy regulator
    [    0.300675] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.302923] omap8250 44e09000.serial: No clock speed specified: using default: 48000000
    [    0.303592] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
    [    1.224824] console [ttyS0] enabled
    [    1.228739] omap8250 481a6000.serial: No clock speed specified: using default: 48000000
    [    1.237386] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 31, base_baud = 3000000) is a 8250
    [    1.246493] omap8250 481a8000.serial: No clock speed specified: using default: 48000000
    [    1.255085] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 32, base_baud = 3000000) is a 8250
    [    1.264778] [drm] Initialized drm 1.1.0 20060810
    [    1.277095] loop: module loaded
    [    1.282591] /ocp/spi@481a2000: could not get #dma-cells for /ocp/l4_wkup@44c00000/prcm@1f0000/clocks/dpll_per_m2_ck
    [    1.293099] spi spi1.0: not using DMA for McSPI (-19)
    [    1.299540] libphy: Fixed MDIO Bus: probed
    [    1.365531] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.371663] davinci_mdio 4a101000.mdio: detected phy mask ffffffef
    [    1.378662] libphy: 4a101000.mdio: probed
    [    1.382705] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver Micrel KSZ9031 Gigabit PHY
    [    1.393035] cpsw 4a100000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property
    [    1.401352] cpsw 4a100000.ethernet: Detected MACID = a0:f6:fd:1b:77:68
    [    1.409010] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
    [    1.416534] usbcore: registered new interface driver pegasus
    [    1.422293] usbcore: registered new interface driver asix
    [    1.427775] usbcore: registered new interface driver ax88179_178a
    [    1.433935] usbcore: registered new interface driver cdc_ether
    [    1.439862] usbcore: registered new interface driver smsc75xx
    [    1.445692] usbcore: registered new interface driver smsc95xx
    [    1.451504] usbcore: registered new interface driver net1080
    [    1.457234] usbcore: registered new interface driver cdc_subset
    [    1.463214] usbcore: registered new interface driver zaurus
    [    1.468904] usbcore: registered new interface driver cdc_ncm
    [    1.475342] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.481911] ehci-pci: EHCI PCI platform driver
    [    1.486430] ehci-platform: EHCI generic platform driver
    [    1.491871] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.497235] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    1.503474] ohci-pci: OHCI PCI platform driver
    [    1.508014] ohci-platform: OHCI generic platform driver
    [    1.513719] usbcore: registered new interface driver usb-storage
    [    1.520150] mousedev: PS/2 mouse device common for all mice
    [    1.526631] i2c /dev entries driver
    [    1.531453] sdhci: Secure Digital Host Controller Interface driver
    [    1.537666] sdhci: Copyright(c) Pierre Ossman
    [    1.542656] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.585927] Synopsys Designware Multimedia Card Interface Driver
    [    1.592423] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.601896] usbcore: registered new interface driver usbhid
    [    1.608417] usbhid: USB HID core driver
    [    1.614875] NET: Registered protocol family 10
    [    1.620658] sit: IPv6 over IPv4 tunneling driver
    [    1.626089] NET: Registered protocol family 17
    [    1.630863] Key type dns_resolver registered
    [    1.635344] omap_voltage_late_init: Voltage driver support not added
    [    1.642239] ThumbEE CPU extension supported.
    [    1.646554] Registering SWP/SWPB emulation handler
    [    1.653774] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.658965] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.666979] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xdc
    [    1.673370] nand: AMD/Spansion S34ML04G2
    [    1.677314] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
    [    1.685037] using OMAP_ECC_BCH16_CODE_HW ECC scheme
    [    1.690016] 10 ofpart partitions found on MTD device 8000000.nand
    [    1.696140] Creating 10 MTD partitions on "8000000.nand":
    [    1.701579] 0x000000000000-0x000000040000 : "NAND.SPL"
    [    1.707929] 0x000000040000-0x000000080000 : "NAND.SPL.backup1"
    [    1.714856] 0x000000080000-0x0000000c0000 : "NAND.SPL.backup2"
    [    1.721743] 0x0000000c0000-0x000000100000 : "NAND.SPL.backup3"
    [    1.728590] 0x000000100000-0x000000180000 : "NAND.u-boot-spl-os"
    [    1.735795] 0x000000180000-0x000000280000 : "NAND.u-boot"
    [    1.742563] 0x000000280000-0x0000002c0000 : "NAND.u-boot-env"
    [    1.749366] 0x0000002c0000-0x000000300000 : "NAND.u-boot-env.backup1"
    [    1.756916] 0x000000300000-0x000000a00000 : "NAND.kernel"
    [    1.766369] 0x000000a00000-0x000020000000 : "NAND.file-system"
    [    2.031609] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz
    [    2.038599] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz
    [    2.044595] ubi0: default fastmap pool size: 200
    [    2.049239] ubi0: default fastmap WL pool size: 100
    [    2.054137] ubi0: attaching mtd9
    [    3.294999] ubi0: scanning is finished
    [    3.308037] ubi0: attached mtd9 (name "NAND.file-system", size 502 MiB)
    [    3.314699] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    3.321604] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    3.328335] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    3.335324] ubi0: good PEBs: 4016, bad PEBs: 0, corrupted PEBs: 0
    [    3.341441] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    3.348694] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 971489807
    [    3.357778] ubi0: available PEBs: 0, total reserved PEBs: 4016, PEBs reserved for bad PEB handling: 80
    [    3.367129] ubi0: background thread "ubi_bgt0d" started, PID 78
    [    3.374539] hctosys: unable to open rtc device (rtc0)
    [    3.384647] evm_v3_3d: disabling
    [    3.387920] vmmcwl_fixed: disabling
    [    3.391427] ads7846-reg: disabling
    [    3.394997] ALSA device list:
    [    3.397981]   No soundcards found.
    [    3.415638] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 81
    [    3.426908] UBIFS (ubi0:0): recovery needed
    [    3.485598] UBIFS (ubi0:0): recovery completed
    [    3.490173] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    3.497607] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    3.507568] UBIFS (ubi0:0): FS size: 497618944 bytes (474 MiB, 3919 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [    3.518308] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [    3.524169] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 0B5E06A5-8ABC-45D4-8BC8-87AB8C8363FA, small LPT model
    [    3.535928] VFS: Mounted root (ubifs filesystem) on device 0:14.
    [    3.542715] devtmpfs: mounted
    [    3.546225] Freeing unused kernel memory: 300K (c0919000 - c0964000)
    INIT: version 2.88 booting
    mount: mounting tmpfs on /mnt/.psplash failed: No such file or directory
    Error opening /dev/fb0: No such file or directory
    Starting udev
    [    4.112178] udevd[115]: starting version 182
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/50-firmware.rules:3
    
    udevd[115]: invalid rule '/lib/udev/rules.d/50-firmware.rules:3'
    
    udevd[115]: IMPORT{builtin}: 'hwdb --subsystem=usb' unknown /lib/udev/rules.d/50-udev-default.rules:13
    
    udevd[115]: IMPORT{builtin}: 'hwdb --subsystem=$env{SUBSYSTEM}' unknown /lib/udev/rules.d/50-udev-default.rules:15
    
    udevd[115]: IMPORT{builtin}: 'hwdb --subsystem=input --lookup-prefix=evdev:' unknown /lib/udev/rules.d/60-evdev.rules:8
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/60-evdev.rules:8
    
    udevd[115]: invalid rule '/lib/udev/rules.d/60-evdev.rules:8'
    
    udevd[115]: IMPORT{builtin}: 'hwdb 'evdev:atkbd:$attr{[dmi/id]modalias}'' unknown /lib/udev/rules.d/60-evdev.rules:13
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/60-evdev.rules:13
    
    udevd[115]: invalid rule '/lib/udev/rules.d/60-evdev.rules:13'
    
    udevd[115]: IMPORT{builtin}: 'hwdb 'evdev:name:$attr{name}:$attr{[dmi/id]modalias}'' unknown /lib/udev/rules.d/60-evdev.rules:17
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/60-evdev.rules:17
    
    udevd[115]: invalid rule '/lib/udev/rules.d/60-evdev.rules:17'
    
    udevd[115]: IMPORT{builtin}: 'hwdb --subsystem=pci' unknown /lib/udev/rules.d/60-serial.rules:7
    
    udevd[115]: IMPORT{builtin}: 'hwdb --subsystem=usb' unknown /lib/udev/rules.d/60-serial.rules:8
    
    udevd[115]: IMPORT{builtin}: 'btrfs ready $devnode' unknown /lib/udev/rules.d/64-btrfs.rules:8
    
    udevd[115]: IMPORT{builtin}: 'hwdb 'mouse:$env{ID_BUS}:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'' unknown /lib/udev/rules.d/70-mouse.rules:10
    
    udevd[115]: IMPORT{builtin}: 'hwdb 'mouse:$env{ID_BUS}:v$attr{id/vendor}p$attr{id/product}:name:$attr{name}:'' unknown /lib/udev/rules.d/70-mouse.rules:13
    
    udevd[115]: IMPORT{builtin}: 'hwdb 'mouse:ps2::name:$attr{device/name}:'' unknown /lib/udev/rules.d/70-mouse.rules:16
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/73-seat-late.rules:15
    
    udevd[115]: invalid rule '/lib/udev/rules.d/73-seat-late.rules:15'
    
    udevd[115]: IMPORT{builtin}: 'net_id' unknown /lib/udev/rules.d/75-net-description.rules:6
    
    udevd[115]: IMPORT{builtin}: 'hwdb --subsystem=usb' unknown /lib/udev/rules.d/75-net-description.rules:8
    
    udevd[115]: IMPORT{builtin}: 'hwdb --subsystem=pci' unknown /lib/udev/rules.d/75-net-description.rules:12
    
    udevd[115]: IMPORT{builtin}: 'hwdb' unknown /lib/udev/rules.d/78-sound-card.rules:40
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:5
    
    udevd[115]: invalid rule '/lib/udev/rules.d/80-drivers.rules:5'
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:6
    
    udevd[115]: invalid rule '/lib/udev/rules.d/80-drivers.rules:6'
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:7
    
    udevd[115]: invalid rule '/lib/udev/rules.d/80-drivers.rules:7'
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:8
    
    udevd[115]: invalid rule '/lib/udev/rules.d/80-drivers.rules:8'
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:9
    
    udevd[115]: invalid rule '/lib/udev/rules.d/80-drivers.rules:9'
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:10
    
    udevd[115]: invalid rule '/lib/udev/rules.d/80-drivers.rules:10'
    
    udevd[115]: unknown key 'RUN{builtin}' in /lib/udev/rules.d/80-drivers.rules:11
    
    udevd[115]: invalid rule '/lib/udev/rules.d/80-drivers.rules:11'
    
    udevd[115]: IMPORT{builtin}: 'net_setup_link' unknown /lib/udev/rules.d/80-net-setup-link.rules:9
    
    [    5.419967] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    5.495788] cryptodev: driver 1.8 loaded.
    [    5.504857] omap-aes 53501000.aes: OMAP AES hw accel rev: 0.1
    [    5.589489] CAN device driver interface
    [    5.642605] omap-des 53701000.des: OMAP DES hw accel rev: 0.33
    [    5.726241] ov2659 0-0030: Sensor detection failed (3030, 0)
    [    5.753290] omap-sham 53100000.sham: hw accel on OMAP rev 0.0
    [    5.778694]  remoteproc0: wkup_m3 is available
    [    5.783173]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    5.816296] ov2659 1-0030: Sensor detection failed (3030, 0)
    [    5.930352]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    Starting Bootlog daemon: [    6.260562] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    6.356126] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=217)
    [    6.444350] ti-pruss 54400000.pruss: creating PRU cores and other child platform devices
    [    6.509999] davinci_mdio 54432400.mdio: davinci mdio revision 1.6
    [    6.556393] libphy: 54432400.mdio: probed
    bootlogd.
    [    6.805471] davinci_mdio 54432400.mdio: phy[1]: device 54432400.mdio:01, driver TI TLK10X 10/100 Mbps PHY
    [    6.897199] edt_ft5x06 1-0038: touchscreen probe failed
    [    6.897264] edt_ft5x06: probe of 1-0038 failed with error -121
    [    6.969303]  remoteproc0: powering up wkup_m3
    [    6.975651]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 216260
    urandom start: failed.
    
    udevadm settle - timeout of 3 seconds reached, the event queue contains:
    [    6.976425]  remoteproc0: remote processor wkup_m3 is now up
      /sys/devices/platform/44000000.ocp/481cc000.can (1528)
      /sys/devices/platform/44000000.ocp/481d0000.can (1529)
      /sys/devices/platform/44000000.ocp/48326000.vpfe (1538)
      /sys/devices/platform/44000000.ocp/48328000.vpfe (1539)
      /sys/devices/platform/44000000.ocp/48380000.omap_dwc3 (1540)
      /sys/devices/platform/44000000.ocp/483c0000.omap_dwc3 (1541)
      /sys/devices/platform/44000000.ocp/4a100000.ethernet/net/eth0 (1615)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd0/mtdblock0 (1621)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd1/mtdblock1 (1624)
      /sys/[    6.976555] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd2/mtdblock2 (1627)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd3/mtdblock3 (1630)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd4/mtdblock4 (1633)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd5/mtdblock5 (1636)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd6/mtdblock6 (1639)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd7/mtdblock7 (1642)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd8/mtdblock8 (1645)
      /sys/devices/platform/44000000.ocp/50000000.gpmc/8000000.nand/mtd/mtd9/mtdblock9 (1648)
      /sys/devices/platform/44000000.ocp/54400000.pruss (1654)
      /sys/devices/platform/44000000.ocp/56000000.sgx (1655)
      /sys/devices/platform/pm33xx.0 (1678)
      /sys/devices/platform/pruss1_eth (1679)
      /sys/devices/platform/soc/soc:mpu (1685)
      /sys/devices/platform/sound@0 (1686)
      /[    7.093154] random: systemd-sysctl urandom read with 5 bits of entropy available
    sys/devices/virtual/block/loop0 (1716)
      /sys/devices/virtual/[    7.305273] asoc-simple-card sound@0: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
    block/loop1 (1717)
      /sys/devices/virtual/block/loop2 (1718)
      /sys/devices/virtual/block/loop3 (1719)
      /sys/devices/virt[    7.413408] ubi0 error: ubi_open_volume: cannot open device 0, volume 0, error -16
    ual/block/loop4 (1720)
      /sys/devices/virtual/block/loop5 (1721)
      /sys/devices/virtual/block/loop6 (1722)
      /sys/devices/virtual/block/loop7 (1723)
      /sys/devices/virtual/mtd/mtd10/mtdblock10 (1726)
      /sys/devices/virtual/mtd/mtd10ro (1727)
      /sys/devices/virtual/net/lo (1728)
      /sys/devices/virtual/net/sit0 (1729)
      /sys/devices/virtual/sound/timer (1730)
    [    8.415238]  remoteproc1: 54434000.pru0 is available
    [    8.420350]  remoteproc1: Note: remoteproc is still under development and considered experimental.
    [    8.479644]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    8.496972] omap_hwmod: gfx: failed to hardreset
    [    8.496997] pvrsrvkm 56000000.sgx: Unable to reset SGX!
    [    8.523697] omap_hwmod: gfx: _wait_target_ready failed: -16
    [    8.523715] PVR_K:(Error): EnableSGXClocks: pm_runtime_get_sync failed (16)
    [    8.523724] PVR_K:(Error): SysInitialise: Failed to Enable system clocks (175)
    [    8.549108] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=218)
    [    8.574754] PM: no-rtc available, rtc-only mode disabled.
    [    8.866041]  remoteproc1: registered virtio0 (type 7)
    [    8.871216] pru-rproc 54434000.pru0: PRU rproc node /ocp/pruss@54400000/pru0@54434000 probed successfully
    [    8.907147]  remoteproc2: 54438000.pru1 is available
    [    8.912151]  remoteproc2: Note: remoteproc is still under development and considered experimental.
    [    8.953652]  remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    8.991433]  remoteproc2: registered virtio1 (type 7)
    [    9.007851] pru-rproc 54438000.pru1: PRU rproc node /ocp/pruss@54400000/pru1@54438000 probed successfully
    [    9.133174] prueth pruss1_eth: port 1: using random MAC addr: 2a:7e:fc:85:08:02
    [    9.159662]  remoteproc1: powering up 54434000.pru0
    [    9.165068]  remoteproc1: Booting fw image am437x-pru1_0-fw, size 86264
    [    9.189371] ti-pruss 54400000.pruss: configured system_events = 0x1000000000000000 intr_channels = 0x00000001 host_intr = 0x00000001
    [    9.216161] prueth pruss1_eth: port 2: using random MAC addr: 66:66:76:f0:1d:4f
    [    9.216194] prueth pruss1_eth: couldn't connect to phy /ocp/pruss@54400000/mdio@54432400/ethernet-phy@1
    [    9.216210] prueth pruss1_eth: netdev init ethernet-mii1 failed: -19
    [    9.217675] prueth pruss1_eth: TI PRU ethernet driver initialized
    [    9.335005]  remoteproc1: remote processor 54434000.pru0 is now up
    [    9.379793] virtio_rpmsg_bus virtio0: creating channel rpmsg-pru addr 0x1e
    [    9.385689] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    9.385944]  remoteproc2: powering up 54438000.pru1
    [    9.386394]  remoteproc2: Booting fw image am437x-pru1_1-fw, size 86264
    [    9.386482] ti-pruss 54400000.pruss: configured system_events = 0x0800000000000000 intr_channels = 0x00000002 host_intr = 0x00000002
    [    9.386488]  remoteproc2: remote processor 54438000.pru1 is now up
    [    9.386893] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    9.534075] virtio_rpmsg_bus virtio1: creating channel rpmsg-pru addr 0x1f
    [    9.576542] dwc3 48390000.usb: otg: primary host xhci-hcd.0.auto registered
    [    9.583555] dwc3 48390000.usb: otg: shared host xhci-hcd.0.auto registered
    [    9.587414] rpmsg_pru rpmsg0: new rpmsg_pru device: /dev/rpmsg_pru30
    [    9.587911] rpmsg_pru rpmsg1: new rpmsg_pru device: /dev/rpmsg_pru31
    [    9.631597] dwc3 48390000.usb: otg: can't start till gadget registers
    ALSA: Restoring mixer settings...
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Tue Oct  6 07:20:00 UTC 2015
    [   10.077808] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   10.083360] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    INIT: Entering runlevel: 5
    [   10.104950] xhci-hcd xhci-hcd.1.auto: hcc params 0x0238f06d hci version 0x100 quirks 0x00010010
    [   10.125204] xhci-hcd xhci-hcd.1.auto: irq 265, io mem 0x483d0000
    [   10.136850] hub 1-0:1.0: USB hub found
    [   10.145743] hub 1-0:1.0: 1 port detected
    [   10.156171] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   10.161706] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
    [   10.180730] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   10.211796] hub 2-0:1.0: USB hub found
    [   10.216711] hub 2-0:1.0: 1 port detected
    Configuring network interfaces... [   10.405907] net eth0: initializing cpsw version 1.15 (0)
    [   10.411259] net eth0: initialized cpsw ale version 1.4
    [   10.497026] net eth0: phy found : id is : 0x221622
    [   10.501913] libphy: PHY  not found
    [   10.505331] net eth0: phy "" not found on slave 1, err -19
    [   10.517729] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.22.1) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Starting system message bus: dbus.
    UIM SYSFS Node Not Found
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Starting rpcbind daemon...done.
    creating NFS state directory: done
    starting statd: done
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Starting syslogd/klogd: done
    Starting thttpdchdir: No such file or directory
    .
    Starting Lighttpd Web Server: lighttpd.
    2015-10-06 07:20:11: (/home/teddy/tl437x/openembedded/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa9t2hf-vfp-neon-linux-gnueabi/lighttpd/1.4.33-r1/lighttpd-1.4.33/src/log.c.166) server started 
    /
    Starting Matrix GUI application.
    Enabling thermal zones...
    /etc/rc5.d/S98thermal-zone-init: line 7: /sys/class/thermal/thermal_zone*/mode: No such file or directory
    grep: /var/lib/opkg/info/*.control: No such file or directory
    Stopping Bootlog daemon: bootlogd.
    umount: can't forcibly umount /mnt/.psplash: No such file or directory
    -ash: can't access tty; job control turned off
    root@am437x-evm:~# [   21.724830] atemsys: atemsys v1.3.11 loaded
    
    ==============
    main 
    ==============
    map_addr ok
    
    root@am437x-evm:~# ifconfig eth1 192.168.200.220
    [   38.158071] net eth1: started
    [   38.161181] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    root@am437x-evm:~# [   39.216169] eth1: Link is Up - 100Mbps/Full - flow control rx/tx
    [   39.222229] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
    
    root@am437x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr A0:F6:FD:1B:77:68  
              inet addr:192.168.200.99  Bcast:192.168.200.255  Mask:255.255.255.0
              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)
              Interrupt:205 
    
    eth1      Link encap:Ethernet  HWaddr 2A:7E:FC:85:08:02  
              inet addr:192.168.200.220  Bcast:192.168.200.255  Mask:255.255.255.0
              inet6 addr: fe80::287e:fcff:fe85:802/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)
    
    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:61 errors:0 dropped:0 overruns:0 frame:0
              TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1 
              RX bytes:6412 (6.2 KiB)  TX bytes:6412 (6.2 KiB)
    
    root@am437x-evm:~# ethtool eth1
    Settings for eth1:
            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 Receive-only
            Link partner advertised auto-negotiation: Yes
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 1
            Transceiver: external
            Auto-negotiation: on
            Link detected: yes
    root@am437x-evm:~# ping 192.168.200.107&
    root@am437x-evm:~# PING 192.168.200.107 (192.168.200.107): 56 data bytes
    

  • Hello Nick,

          I transplanted the latest version of am437x SDK provided by TI today. The kernel version is 4.9.59-rt23-g273202a0d3. The start-up error message is as follows:

    See the attachment for the detailed log and device tree file.Thank you very much for your help in looking at the possible problems.

    [   12.461630] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:04: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:04, irq=-1)
             Starting Print notice about GPLv3 packages...
    [   12.701405] cpts ptp bc clkid 0
    [   12.707732] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started System Logging Service.
    [  OK  ] Started Network Service.
    [  OK  ] Started telnetd.service.
    [  OK  ] Started Login Service.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Starting thttpd.service...
    [  OK  ] Reached target Network.
             Starting Network Name Resolution...
             Starting Permit User Sessions...
    [   14.730181] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [  OK  ] Started Permit User Sessions.
    [   14.797573] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started thttpd.service.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Started Network Name Resolution.
    [   16.473926] prueth pruss1_eth: could not get ptp tx irq
    [   16.509740] prueth pruss1_eth: port 1: using random MAC addr: 56:59:79:38:1b:7e
    [   16.619634] prueth pruss1_eth: could not get ptp tx irq
    [   16.624918] prueth pruss1_eth: port 2: using random MAC addr: 22:00:66:62:c7:b9
    [   16.721346] prueth pruss1_eth: freeing port 1
    [   16.805533] prueth pruss1_eth: could not get ptp tx irq
    [   16.868149] prueth pruss1_eth: port 1: using random MAC addr: 8a:5c:f3:ed:eb:24
    [   17.089586] prueth pruss1_eth: could not get ptp tx irq
    [   17.094869] prueth pruss1_eth: port 2: using random MAC addr: 82:d2:04:fd:e9:58
    [   17.244685] prueth pruss1_eth: freeing port 1
    [   17.425733] usbcore: registered new interface driver usbfs
    [   17.446697] usbcore: registered new interface driver hub
    [   17.466079] usbcore: registered new device driver usb
    [   17.533332] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
    [   17.551833] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 1
    [   17.578742] xhci-hcd xhci-hcd.3.auto: hcc params 0x0238f06d hci version 0x100 quirks 0x02010010
    [   17.608535] xhci-hcd xhci-hcd.3.auto: irq 257, io mem 0x483d0000
    [   17.637209] hub 1-0:1.0: USB hub found
    [   17.648172] hub 1-0:1.0: 1 port detected
    [   17.670106] prueth pruss1_eth: could not get ptp tx irq
    [   17.675389] prueth pruss1_eth: port 1: using random MAC addr: f6:3f:23:32:c6:4b
    [   17.683153] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
    [   17.683174] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 2
    [   17.683476] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   17.690459] hub 2-0:1.0: USB hub found
    [   17.690533] hub 2-0:1.0: 1 port detected
    [   17.939659] prueth pruss1_eth: could not get ptp tx irq
    [   17.944943] prueth pruss1_eth: port 2: using random MAC addr: b6:7a:c7:44:fe:b3
    [   17.972484] prueth pruss1_eth: freeing port 1
    [   17.978058] prueth pruss1_eth: could not get ptp tx irq
    [   18.003550] prueth pruss1_eth: port 1: using random MAC addr: 1a:f6:62:1e:fb:be
    [   18.129650] prueth pruss1_eth: could not get ptp tx irq
    [   18.134931] prueth pruss1_eth: port 2: using random MAC addr: ea:83:28:6e:e2:10
    [   18.161964] prueth pruss1_eth: freeing port 1

    This error should be consistent with the system RT Linux 4.4.12 error in my previous reply.

    Downloads.rar

  • Hello,Nick

       Today, I continued to test on RT Linux 4.4.12 system and found that the connection between the network cable and the Pru port on the computer side to Ping the eth1 IP Ping network card is not available, and the connection between the network cable and the cpsw eth0 port Ping eth0 IP and eth1 IP can ping, I would like to ask what may be the cause of this, thank you very much.

  • Hello Nanfeng,

    I am sorry for the delayed response.

    There were significant changes made in PRU Ethernet between Linux 4.4 and Linux 4.9, which might contribute to why you are getting different errors with the different versions of Linux. Which one are you going to use in your design?

    First, we need to establish the basic health of your link. Make sure that the PRU port is the only ethernet port on the board plugged in (currently you have two ports with the same subnet, which can cause problems - i.e., both ports have IP address 192.168.200.xxx). Take a look at the Ethernet Triage Checklist for ideas for collecting debug information.

    Regards,

    Nick

  • Hello Nick,

    Thank you very much for your response.

    First,We will use Linux 4.4 in our design.Today,I use the PRU port as the only Ethernet port  on the board plugged in and I collected some information according to the Ethernet Triage Checklist as follows.

    Specific log and device tree files are attached. Please take time to help analyze them. Thank you very much.

    root@am437x-evm:~# uname -a
    Linux am437x-evm 4.4.12-rt17 #9 PREEMPT RT Wed Jun 27 02:21:50 PDT 2018 armv7l GNU/Linux


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


    root@am437x-evm:~# ethtool eth1
    Settings for eth1:
            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
            Speed: Unknown!
            Duplex: Unknown! (255)
            Port: MII
            PHYAD: 1
            Transceiver: external
            Auto-negotiation: on
            Link detected: no


    root@am437x-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: 0
         Broadcast Tx Frames: 0
         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: 0
         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: 0
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 0
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan: head_enqueue: 1
         Rx DMA chan: tail_enqueue: 63
         Rx DMA chan: pad_enqueue: 0
         Rx DMA chan: misqueued: 0
         Rx DMA chan: desc_alloc_fail: 0
         Rx DMA chan: pad_alloc_fail: 0
         Rx DMA chan: runt_receive_buf: 0
         Rx DMA chan: runt_transmit_buf: 0
         Rx DMA chan: empty_dequeue: 0
         Rx DMA chan: busy_dequeue: 0
         Rx DMA chan: good_dequeue: 0
         Rx DMA chan: requeue: 0
         Rx DMA chan: teardown_dequeue: 0
         Tx DMA chan: head_enqueue: 0
         Tx DMA chan: tail_enqueue: 0
         Tx DMA chan: pad_enqueue: 0
         Tx DMA chan: misqueued: 0
         Tx DMA chan: desc_alloc_fail: 0
         Tx DMA chan: pad_alloc_fail: 0
         Tx DMA chan: runt_receive_buf: 0
         Tx DMA chan: runt_transmit_buf: 0
         Tx DMA chan: empty_dequeue: 0
         Tx DMA chan: busy_dequeue: 0
         Tx DMA chan: good_dequeue: 0
         Tx DMA chan: requeue: 0
         Tx DMA chan: teardown_dequeue: 0


    root@am437x-evm:~# ethtool -S eth1
    NIC statistics:
         txBcast: 3062445018
         txMcast: 1430714398
         txUcast: 1065225721
         txOctets: 3053336679
         rxBcast: 1956714635
         rxMcast: 3635055263
         rxUcast: 644762053
         rxOctets: 4206342494
         lateColl: 3365623983
         singleColl: 520944315
         multiColl: 2371230194
         excessColl: 3808853157
         txHWQOverFlow: 3291607544
         rxMisAlignmentFrames: 2889749082
         stormPrevCounter: 534891132
         macRxError: 2590527735
         SFDError: 3587269388
         defTx: 1467118072
         macTxError: 3907486115
         rxOverSizedFrames: 3478540460
         rxUnderSizedFrames: 4130930271
         rxCRCFrames: 3883872427
         droppedPackets: 976170229
         tx64byte: 3502010057
         tx65_127byte: 3483201250
         tx128_255byte: 3183594976
         tx256_511byte: 1167906185
         tx512_1023byte: 1741888485
         tx1024byte: 3059743504
         rx64byte: 638494777
         rx65_127byte: 2051764841
         rx128_255byte: 2561501120
         rx256_511byte: 162245860
         rx512_1023byte: 68378088
         rx1024byte: 2929288930
         sqeTestError: 3853919141


    root@am437x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr A0:F6:FD:1B:77:68 
              inet addr:192.168.200.99  Bcast:192.168.200.255  Mask:255.255.255.0
              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)
              Interrupt:205

    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:10 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

    root@am437x-evm:~# ifconfig eth1 192.168.200.220
    [   79.915821] net eth1: started
    [   79.918931] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    root@am437x-evm:~# [   81.776118] eth1: Link is Up - 100Mbps/Full - flow control rx/tx
    [   81.782182] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
    root@am437x-evm:~#
    root@am437x-evm:~#
    root@am437x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr A0:F6:FD:1B:77:68 
              inet addr:192.168.200.99  Bcast:192.168.200.255  Mask:255.255.255.0
              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)
              Interrupt:205

    eth1      Link encap:Ethernet  HWaddr 76:BA:74:01:40:51 
              inet addr:192.168.200.220  Bcast:192.168.200.255  Mask:255.255.255.0
              inet6 addr: fe80::74ba:74ff:fe01:4051/64 Scope:Link
              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:578 (578.0 B)

    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:10 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

    root@am437x-evm:~# ethtool eth1
    Settings for eth1:
            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 Receive-only
            Link partner advertised auto-negotiation: Yes
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 1
            Transceiver: external
            Auto-negotiation: on
            Link detected: yes


    root@am437x-evm:~# ethtool -S eth1
    NIC statistics:
         txBcast: 0
         txMcast: 0
         txUcast: 0
         txOctets: 0
         rxBcast: 0
         rxMcast: 0
         rxUcast: 0
         rxOctets: 0
         lateColl: 0
         singleColl: 0
         multiColl: 0
         excessColl: 0
         txHWQOverFlow: 0
         rxMisAlignmentFrames: 0
         stormPrevCounter: 0
         macRxError: 0
         SFDError: 0
         defTx: 0
         macTxError: 0
         rxOverSizedFrames: 0
         rxUnderSizedFrames: 0
         rxCRCFrames: 0
         droppedPackets: 0
         tx64byte: 0
         tx65_127byte: 0
         tx128_255byte: 0
         tx256_511byte: 0
         tx512_1023byte: 0
         tx1024byte: 0
         rx64byte: 0
         rx65_127byte: 0
         rx128_255byte: 0
         rx256_511byte: 0
         rx512_1023byte: 0
         rx1024byte: 0
         sqeTestError: 0

    root@am437x-evm:~# dmesg |grep pru
    [    6.077506] ti-pruss 54400000.pruss: creating PRU cores and other child platform devices
    [    6.210340]  remoteproc1: 54434000.pru0 is available
    [    6.232223] pru-rproc 54434000.pru0: PRU rproc node /ocp/pruss@54400000/pru0@54434000 probed successfully
    [    6.235768]  remoteproc2: 54438000.pru1 is available
    [    6.253006] pru-rproc 54438000.pru1: PRU rproc node /ocp/pruss@54400000/pru1@54438000 probed successfully
    [    7.696754] prueth pruss1_eth: port 1: using random MAC addr: 76:ba:74:01:40:51
    [    7.776184] prueth pruss1_eth: port 2: using random MAC addr: 32:9b:e6:9a:94:b7
    [    7.776219] prueth pruss1_eth: couldn't connect to phy /ocp/pruss@54400000/mdio@54432400/ethernet-phy@1
    [    7.776236] prueth pruss1_eth: netdev init ethernet-mii1 failed: -19
    [    7.777143] prueth pruss1_eth: TI PRU ethernet driver initialized
    [    8.010531]  remoteproc1: powering up 54434000.pru0
    [    8.011036]  remoteproc1: Booting fw image am437x-pru1_0-fw, size 86264
    [    8.011130] ti-pruss 54400000.pruss: configured system_events = 0x1000000000000000 intr_channels = 0x00000001 host_intr = 0x00000001
    [    8.011134]  remoteproc1: remote processor 54434000.pru0 is now up
    [    8.011450] virtio_rpmsg_bus virtio0: creating channel rpmsg-pru addr 0x1e
    [    8.014984]  remoteproc2: powering up 54438000.pru1
    [    8.015427]  remoteproc2: Booting fw image am437x-pru1_1-fw, size 86264
    [    8.023908] ti-pruss 54400000.pruss: configured system_events = 0x0800000000000000 intr_channels = 0x00000002 host_intr = 0x00000002
    [    8.023916]  remoteproc2: remote processor 54438000.pru1 is now up
    [    8.024221] virtio_rpmsg_bus virtio1: creating channel rpmsg-pru addr 0x1f
    [    8.456306] rpmsg_pru rpmsg0: new rpmsg_pru device: /dev/rpmsg_pru30
    [    8.457447] rpmsg_pru rpmsg1: new rpmsg_pru device: /dev/rpmsg_pru31

    Ping the eth1 IP 192.168.200.220 Ping network card is not available as fllows

    log and device tree files.rar

  • Hello Nick,

    Today I according to PRU-ICSS Remoteproc and RPMsg(http://processors.wiki.ti.com/index.php/PRU-ICSS_Remoteproc_and_RPMsg, I found that the remoteproc directory did not appear under /sys/class. Is my PRU core not activated?


     

    remoteproc.ko exists in the directory kernel/drivers/remoteproc as follows,and lsmod found remoteproc has been loaded.

     


     

     

    The files in lib/firmware are as follows.

     


  • Hello Nanfeng,

    Ethernet:
    1) Please confirm: There are only two PHYs on your board: KSZ9031 which connects to the CPSW, and TLK105L which connects to pru1_mii1. I am researching if single EMAC functionality was enabled for PRUETH in Linux 4.4, or if it was limited to dual EMAC use cases - I do know there have been many other bug fixes and added features in later versions of Linux.

    2) I expect that ethernet-phy@0 should have reg=<0> and ethernet-phy@1 should have reg=<1>. Is there a reason why you flipped them?

    PRU RemoteProc:
    1) What PRU firmware are you trying to load into which PRU cores?

    2) Keep in mind there have been many remoteproc / RPMsg changes since Linux 4.4. You might want to look at the page that applies to your version of Linux Processor SDK in the "Archived Versions" section at the bottom of processors.wiki.ti.com/.../PRU-ICSS_Remoteproc_and_RPMsg

    Regards,
    Nick
  • Hello Nick,

    Thank you very much for your response.

    1)I confirm our board only two PHYs on your board: KSZ9031 which connects to the CPSW, and TLK105L which connects to pru1_mii1. As you said, I saw your TI IDK card and other companies IDK card are two routes of Pru network.Thank you very much for your help me to verify  if single EMAC functionality was enabled for PRUETH in Linux 4.4, or if it was limited to dual EMAC use cases.I will be anxious to wait for your verification results.

    And I'm not sure if the following mistakes have any impact.

    [    7.696754] prueth pruss1_eth: port 1: using random MAC addr: 76:ba:74:01:40:51
    [    7.776184] prueth pruss1_eth: port 2: using random MAC addr: 32:9b:e6:9a:94:b7
    [    7.776219] prueth pruss1_eth: couldn't connect to phy /ocp/pruss@54400000/mdio@54432400/ethernet-phy@1
    [    7.776236] prueth pruss1_eth: netdev init ethernet-mii1 failed: -19
    [    7.777143] prueth pruss1_eth: TI PRU ethernet driver initialized

    2)Our board TLK105L COL pins are not connected,so the default address is 0x01,We verify that the pin address of the connection col has been changed to 0x0, but the current problem still exists.

    PRU RemoteProc:

    1)I don't quite understand what your question means. I use the file system in tisdk-rootfs-image-am437x-evm.tar.gz in the SDK ti-processor-sdk-linux-rt-am437x-evm-03.00.00.04-Linux-x86-install.bin which provided by your TI. Pru1_eth is used in my device tree configuration, so I think pru1_0 and pru1_1 firmware should be loaded into pru1.

    2)ok,I'll take a closer look at this page.

    etmc.pdf

  • TI does not support single port operation for PRUETH on Linux 4.4. We added single port operation for PRUETH in Linux 4.14 (Processor Linux SDK 5.0 or later).   EDIT 2019-05-17: Linux SDK 5.3 or later.

    The TI suggested solution is to upgrade to a more recent version of Linux in order to enable single port operation and benefit from other features and bug fixes.

    If you cannot upgrade to a more recent version of Linux, it makes more sense to cherry pick the patches that add support for single port operation rather than trying to hack the driver. I found the attached patches to backport single port operation to Linux 4.9. In your dts/dtsi files, you would want to delete the second pruss emac node and pruss phy node since you only have one phy attached to the PRU-ICSS rather than 2 phys.

    Note: I will not be able to help you in the backporting process if you go that way.

    Regards,

    Nick

    0001-net-prueth-Optimize-data-structure.patch

    0002-net-prueth-Allow-usage-in-single-EMAC-mode.patch

    0003-Documentation-dt-net-ti-prueth-Add-details-about-chi.patch

  • About remoteproc: I expect the PRUETH firmware to get loaded into the correct PRUs by the PRUETH Linux driver. You should not need to worry about PRU and remoteproc if you do not want to use the other PRUs in your system for anything else.

    If you are trying to use remoteproc to initialize other PRUs for non-ethernet tasks, and if you still have questions about that, please create a new thread. It should get assigned back to me.

    Regards,
    Nick
  • Hello Nick,

       Today, I updated the latest RT Linux 4.14.79(ti-processor-sdk-linux-rt-am437x-evm-05.02.00.10-Linux-x86-Install.bin) provided by TI. The file system uses arago-base-tisdk-image-am437x-evm.tar.xz in SDK. Now I have the following questions to ask.

      1)When the system starts and enters the login,I can't login by entering root. How should I login, please? Thank you!

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

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

    Arago 2018.10 am437x-evm ttyS0

    am437x-evm login: root

    Login incorrect
    am437x-evm login:
    Login timed out after 60 seconds.

    2)System startup prueth prints the following error,the complete  log file is attached.Is there a problem with my device tree configuration?

    [   14.081186] pruss 54400000.pruss: creating PRU cores and other child platform devices
    [   14.239553] davinci_mdio 54432400.mdio: davinci mdio revision 1.6, bus freq 1000000
    [   14.247264] libphy: 54432400.mdio: probed
    [   14.481321] davinci_mdio 54432400.mdio: phy[0]: device 54432400.mdio:00, driver TI TLK10X 10/100 Mbps PHY
    [   14.584555] pruss 54440000.pruss: creating PRU cores and other child platform devices
             Starting Login Service...
             Starting Network Service...
    [   14.863320] remoteproc remoteproc1: 54434000.pru is available
    [   14.869205] pru-rproc 54434000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@34000 probed successfully
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
             [   15.124514] remoteproc remoteproc2: 54438000.pru is available
    Starting RPC Bind Service...[   15.212668] pru-rproc 54438000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@38000 probed successfully

    [   15.460998] remoteproc remoteproc3: 54474000.pru is available
    [   15.466883] pru-rproc 54474000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@74000 probed successfully
    [  OK  ] Started telnetd.service.
    [   15.726949] remoteproc remoteproc4: 54478000.pru is available
    [  OK  ] Started RPC Bind Service.
    [   15.833596] pru-rproc 54478000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@78000 probed successfully
    [   16.208743] prueth pruss1_eth: port 1: using random MAC addr: 86:44:4f:51:c5:ca
    [  OK  ] Started Network Service.
    [   16.450546] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [   16.458690] pgd = ee56c000
    [   16.537870] [00000000] *pgd=00000000
    [   16.579711] net eth0: initializing cpsw version 1.15 (0)
    [   16.596360] Internal error: Oops: 5 [#1] PREEMPT ARM
    [   16.596365] Modules linked in: ti_prueth(+) pru_rproc pruss pruss_intc pm33xx omap_aes_driver omap_des des_generic crypto_engine omap_sham omap_crypto pruss_soc_bus ti_emif_sram am437x_vpfe dwc3_omap c_can_platform c_can can_dev pixcir_i2c_ts snd_soc_tlv320aic3x ov2659 v4l2_fwnode wkup_m3_ipc phy_omap_usb2 wkup_m3_rproc remoteproc omap_wdt ti_am335x_tscadc sch_fq_codel cryptodev(O)
    [   16.596427] CPU: 0 PID: 131 Comm: systemd-udevd Tainted: G           O    4.14.79-rt47-g28d73230da #1
    [   16.596430] Hardware name: Generic AM43 (Flattened Device Tree)
    [   16.596435] task: ee5aa300 task.stack: ee566000
    [   16.596562] PC is at prueth_get_mc_mac_mask+0x14/0x8c [ti_prueth]
    [   16.596583] LR is at prueth_probe+0x768/0x80c [ti_prueth]
    [   16.596587] pc : [<bf169414>]    lr : [<bf169bf4>]    psr: 600e0113
    [   16.596589] sp : ee567c30  ip : ee567c60  fp : ee567c5c
    [   16.596592] r10: bf17332c  r9 : 00000000  r8 : 00000000
    [   16.596595] r7 : ee7ca62c  r6 : ef6f8e40  r5 : 00000000  r4 : ee7ca410
    [   16.596597] r3 : ee4036c1  r2 : 00000000  r1 : bf17332c  r0 : 00000000
    [   16.596603] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    [   16.596607] Control: 10c53c7d  Table: ae56c059  DAC: 00000051
    [   16.596611] Process systemd-udevd (pid: 131, stack limit = 0xee566208)
    [   16.596614] Stack: (0xee567c30 to 0xee568000)
    [   16.596621] 7c20:                                     ee4036be ee4036bf ee4036c0 ee4036c1
    [   16.596627] 7c40: ee7ca410 ee4c3790 ef6f8e40 ee7ca62c ee567cb4 ee567c60 bf169bf4 bf16940c
    [   16.596633] 7c60: 00000002 00000001 ef170900 00000000 ee567ca4 bf17332c bf17332c bf17332c
    [   16.596638] 7c80: ef16f410 00000000 ef16f418 ef16f410 ffffffed bf1740bc fffffdfb bf1740bc
    [   16.596644] 7ca0: 00000024 00000000 ee567cd4 ee567cb8 c0534564 bf169498 ef16f410 c0d91428
    [   16.596650] 7cc0: c0d9143c 00000000 ee567d04 ee567cd8 c0532d9c c0534518 00000000 ef16f410
    [   16.596655] 7ce0: bf1740bc ef16f444 00000000 00000001 00000000 ee6cdc64 ee567d24 ee567d08
    [   16.596661] 7d00: c0532f14 c0532b90 00000000 bf1740bc c0532e68 00000000 ee567d4c ee567d28
    [   16.596666] 7d20: c05310cc c0532e74 ef005864 ef150a44 c080e47c bf1740bc edc81a00 c0d33728
    [   16.596672] 7d40: ee567d5c ee567d50 c0532750 c0531084 ee567d84 ee567d60 c0532248 c0532738
    [   16.596678] 7d60: bf172fdc ee567d70 bf1740bc 00000000 bf17a000 ee6cdd00 ee567d9c ee567d88
    [   16.596684] 7d80: c0533608 c05320c4 c0d33728 00000000 ee567db4 ee567da0 c05344bc c0533594
    [   16.596689] 7da0: ffffe000 00000000 ee567dc4 ee567db8 bf17a01c c0534480 ee567e34 ee567dc8
    [   16.596695] 7dc0: c0101794 bf17a00c ee777900 ef001d80 ffffe000 efd68a8c edc4b300 ef001e40
    [   16.596701] 7de0: ffffe000 00010dcf 00000000 ee6cdc64 ee567e2c ee567e00 c020d6fc c020d2fc
    [   16.596706] 7e00: 00000001 f0e4a000 c0d7f274 bf174280 00000001 bf174280 00000001 ee6cdc40
    [   16.596712] 7e20: ee6cdd00 00000001 ee567e5c ee567e38 c019c080 c0101754 ee6cdc40 bf174280
    [   16.596717] 7e40: ee567f40 00000001 ee6cdc40 bf174280 ee567f1c ee567e60 c019ad7c c019c024
    [   16.596723] 7e60: bf17428c 00007fff bf174280 c019815c 00000000 c0aa67a4 c0aa677c c0aa68cc
    [   16.596729] 7e80: bf174394 c0b2eda0 bf1743b0 c0903fac bf174380 bf173ce8 bf1742c8 bf174280
    [   16.596734] 7ea0: ee5bdb00 ee567f34 ee567eec ee567eb8 c0226214 00000000 00000000 00000000
    [   16.596740] 7ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   16.596745] 7ee0: 00000000 00000000 00000000 00000000 7fffffff 00000000 00000011 b6f1d0c4
    [   16.596751] 7f00: 0000017b c0107b44 ee566000 0000017b ee567fa4 ee567f20 c019b5d4 c0198fa8
    [   16.596756] 7f20: 7fffffff 00000000 00000003 00000000 00000000 f0e4a000 00017184 00000000
    [   16.596762] 7f40: f0e55479 f0e4a000 00017184 f0e60d9c f0e60cbc f0e5be14 0000e000 0000fd90
    [   16.596767] 7f60: 00000000 00000000 00000000 00005a90 00000016 00000017 00000011 0000000e
    [   16.596772] 7f80: 0000000a 00000000 00000000 00000000 00000001 00000000 00000000 ee567fa8
    [   16.596778] 7fa0: c0107940 c019b53c 00000000 00000001 00000011 b6f1d0c4 00000000 00500e70
    [   16.596783] 7fc0: 00000000 00000001 00000000 0000017b 00000000 004d2dec 00000000 004fae08
    [   16.596789] 7fe0: bebeb950 bebeb940 b6f15c58 b6e4fa82 60010030 00000011 00000000 00000000
    [   16.596790] Backtrace:
    [   16.596841] [<bf169400>] (prueth_get_mc_mac_mask [ti_prueth]) from [<bf169bf4>] (prueth_probe+0x768/0x80c [ti_prueth])
    [   16.596847]  r7:ee7ca62c r6:ef6f8e40 r5:ee4c3790 r4:ee7ca410
    [   16.596886] [<bf16948c>] (prueth_probe [ti_prueth]) from [<c0534564>] (platform_drv_probe+0x58/0xb4)
    [   16.596892]  r10:00000000 r9:00000024 r8:bf1740bc r7:fffffdfb r6:bf1740bc r5:ffffffed
    [   16.596895]  r4:ef16f410
    [   16.596905] [<c053450c>] (platform_drv_probe) from [<c0532d9c>] (driver_probe_device+0x218/0x2e4)
    [   16.596909]  r7:00000000 r6:c0d9143c r5:c0d91428 r4:ef16f410
    [   16.596916] [<c0532b84>] (driver_probe_device) from [<c0532f14>] (__driver_attach+0xac/0xb0)
    [   16.596922]  r10:ee6cdc64 r9:00000000 r8:00000001 r7:00000000 r6:ef16f444 r5:bf1740bc
    [   16.596924]  r4:ef16f410 r3:00000000
    [   16.596931] [<c0532e68>] (__driver_attach) from [<c05310cc>] (bus_for_each_dev+0x54/0xa4)
    [   16.596935]  r7:00000000 r6:c0532e68 r5:bf1740bc r4:00000000
    [   16.596941] [<c0531078>] (bus_for_each_dev) from [<c0532750>] (driver_attach+0x24/0x28)
    [   16.596945]  r6:c0d33728 r5:edc81a00 r4:bf1740bc
    [   16.596951] [<c053272c>] (driver_attach) from [<c0532248>] (bus_add_driver+0x190/0x214)
    [   16.596958] [<c05320b8>] (bus_add_driver) from [<c0533608>] (driver_register+0x80/0xfc)
    [   16.596962]  r7:ee6cdd00 r6:bf17a000 r5:00000000 r4:bf1740bc
    [   16.596969] [<c0533588>] (driver_register) from [<c05344bc>] (__platform_driver_register+0x48/0x50)
    [   16.596972]  r5:00000000 r4:c0d33728
    [   16.596999] [<c0534474>] (__platform_driver_register) from [<bf17a01c>] (prueth_driver_init+0x1c/0x1000 [ti_prueth])
    [   16.597002]  r5:00000000 r4:ffffe000
    [   16.597030] [<bf17a000>] (prueth_driver_init [ti_prueth]) from [<c0101794>] (do_one_initcall+0x4c/0x170)
    [   16.597045] [<c0101748>] (do_one_initcall) from [<c019c080>] (do_init_module+0x68/0x1f8)
    [   16.597050]  r8:00000001 r7:ee6cdd00 r6:ee6cdc40 r5:00000001 r4:bf174280
    [   16.597057] [<c019c018>] (do_init_module) from [<c019ad7c>] (load_module+0x1de0/0x2424)
    [   16.597061]  r7:bf174280 r6:ee6cdc40 r5:00000001 r4:ee567f40
    [   16.597068] [<c0198f9c>] (load_module) from [<c019b5d4>] (SyS_finit_module+0xa4/0xbc)
    [   16.597073]  r10:0000017b r9:ee566000 r8:c0107b44 r7:0000017b r6:b6f1d0c4 r5:00000011
    [   16.597075]  r4:00000000
    [   16.597088] [<c019b530>] (SyS_finit_module) from [<c0107940>] (ret_fast_syscall+0x0/0x5c)
    [   16.597091]  r6:00000000 r5:00000001 r4:00000000
    [   16.597098] Code: e92dd8f0 e24cb004 e24dd010 e1a05000 (e495717c)
    [   17.225494] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:04: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:04, irq=POLL)
    [   17.369024] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   19.451622] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   19.508369] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

    The prueth-related configurations in my device tree are as follows.The complete  device tree file is attached.

     aliases {
      //display0 = &lcd0;
      ethernet2 = &pruss1_emac0;
     };

    /* Dual-MAC Ethernet application node on PRU-ICSS1 */
     pruss1_eth: pruss1_eth {
      compatible = "ti,am4376-prueth";
      prus = <&pru1_0>, <&pru1_1>;
      firmware-name = "ti-pruss/am437x-pru0-prueth-fw.elf",
        "ti-pruss/am437x-pru1-prueth-fw.elf";
      sram = <&ocmcram>;
      interrupt-parent = <&pruss1_intc>;

      pinctrl-0 = <&pruss1_eth_default>;
      pinctrl-names = "default";

      pruss1_emac0: ethernet-mii0 {
       phy-handle = <&pruss1_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];
      };
     };

    pruss1_mdio_default: pruss1_mdio_default {
      pinctrl-single,pins = <
       //AM4372_IOPAD(0x88c, (PIN_OUTPUT | MUX_MODE5))  /* (A12)gpmc_clk.pr1_mdio_mdclk */
       //AM4372_IOPAD(0x888, (PIN_INPUT  | MUX_MODE8))  /* (B12)xdma_event_intr0.pr1_mdio_data */
                            //AM4372_IOPAD(0xa6c, (PIN_INPUT_PULLUP | MUX_MODE7))     /* spi2_cs0.gpio3_25 */
                          0x8c ( PIN_OUTPUT | MUX_MODE5 ) /* (A12) gpmc_clk.pr1_mdio_mdclk */
       //0x88 ( PIN_INPUT_PULLUP | MUX_MODE5 ) /* (B12) gpmc_csn3.pr1_mdio_data */
              0x88 ( PIN_INPUT| MUX_MODE5 ) /* (B12) gpmc_csn3.pr1_mdio_data */
       //0x248( PIN_OUTPUT | MUX_MODE7)     /* gpio5_12 */
       0x248( PIN_INPUT_PULLUP | MUX_MODE7)     /* gpio5_12 */
      >;
     };
     
     pruss1_eth_default: pruss1_eth_default {
      pinctrl-single,pins = <
      0x58 ( PIN_INPUT | MUX_MODE5 ) /* (E8) gpmc_a6.pr1_mii_mt1_clk */
      0x54 ( PIN_OUTPUT | MUX_MODE5 ) /* (E7) gpmc_a5.pr1_mii1_txd0 */
      0x50 ( PIN_OUTPUT | MUX_MODE5 ) /* (D7) gpmc_a4.pr1_mii1_txd1 */
      0x4c ( PIN_OUTPUT | MUX_MODE5 ) /* (A4) gpmc_a3.pr1_mii1_txd2 */
      0x48 ( PIN_OUTPUT | MUX_MODE5 ) /* (C6) gpmc_a2.pr1_mii1_txd3 */
      0x6c ( PIN_INPUT | MUX_MODE5 ) /* (D8) gpmc_a11.pr1_mii1_rxd0 */
      0x68 ( PIN_INPUT | MUX_MODE5 ) /* (G8) gpmc_a10.pr1_mii1_rxd1 */
      0x64 ( PIN_INPUT | MUX_MODE5 ) /* (B4) gpmc_a9.pr1_mii1_rxd2 */
      0x60 ( PIN_INPUT | MUX_MODE5 ) /* (F7) gpmc_a8.pr1_mii1_rxd3 */
      0x40 ( PIN_OUTPUT | MUX_MODE5 ) /* (C3) gpmc_a0.pr1_mii1_txen */
      0x5c ( PIN_INPUT | MUX_MODE5 ) /* (F6) gpmc_a7.pr1_mii_mr1_clk */
      0x44 ( PIN_INPUT | MUX_MODE5 ) /* (C5) gpmc_a1.pr1_mii1_rxdv */
      0x74 ( PIN_INPUT | MUX_MODE5 ) /* (B3) gpmc_wpn.pr1_mii1_rxer */
      0x24c (PIN_INPUT | MUX_MODE5 ) /* (E24) gpio5_13.pr1_mii1_rxlink */
      0x244 (PIN_INPUT | MUX_MODE5 ) /* (F23) gpio5_11.pr1_mii1_crs */
             //0x23c ( PIN_INPUT | MUX_MODE5 ) /* (F24) gpio5_9.pr1_mii1_col */
      >;
     };

    &pruss_soc_bus {
     status = "okay";

     pruss1: pruss@0 {
      status = "okay";
     };

     pruss0: pruss@40000 {
      status = "okay";
     };
    };

    &pruss1_mdio {
     pinctrl-0 = <&pruss1_mdio_default>;
     pinctrl-names = "default";
     status = "okay";

     reset-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
     reset-delay-us = <2>;

     pruss1_eth0_phy: ethernet-phy@0 {
      reg = <0>;
     };
    };

    log-and-device-tree.rar

  • Hello Nanfeng,

    I am not familiar with the "root" login issue. If the board sees anything other than "root", I expect it to ask you for a password. (e.g., "root " with a space after "root" causes it to ask me for a password).

    Are you still having the root login issue? If so, how are you connecting to the board? (tereterm, minicom, etc) and what settings are you using to connect? Did you change anything in the file system that could be related?

    I will be able to take a look at the rest of your post tomorrow.

    Regards,
    Nick
  • Hello Nick,

    Thank you very much for your response.

    root login issue I changed the system to start the automatic login problem has been solved,but now prueth has new problems, such as the following log, complete printing of log and device tree files in the attachment.Thank you very much for your help to see what may be the problem.

    [   14.113025] pruss 54400000.pruss: creating PRU cores and other child platform devices
    [   14.199951] davinci_mdio 54432400.mdio: davinci mdio revision 1.6, bus freq 1000000
    [   14.199960] libphy: 54432400.mdio: probed
    [   14.282119] davinci_mdio 54432400.mdio: phy[0]: device 54432400.mdio:00, driver TI TLK10X 10/100 Mbps PHY
    [   14.282488] pruss 54440000.pruss: creating PRU cores and other child platform devices
    [   14.347091] remoteproc remoteproc1: 54434000.pru is available
    [   14.347169] pru-rproc 54434000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@34000 probed successfully
    [   14.364846] remoteproc remoteproc2: 54438000.pru is available
    [   14.364927] pru-rproc 54438000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@38000 probed successfully
    [   14.366957] remoteproc remoteproc3: 54474000.pru is available
    [   14.367030] pru-rproc 54474000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@74000 probed successfully
    [   14.379127] remoteproc remoteproc4: 54478000.pru is available
    [   14.379223] pru-rproc 54478000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@78000 probed successfully
    [  OK  ] Started telnetd.service.
    [  OK  ] Started RPC Bind Service.
    [   15.334310] prueth pruss1_eth: port 1: using random MAC addr: ce:ab:49:35:f0:7b
    [   15.540905] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [   15.549050] pgd = ee63c000
    [   15.651943] [00000000] *pgd=00000000
    [   15.655555] Internal error: Oops: 5 [#1] PREEMPT ARM
    [   15.655558] Modules linked in: ti_prueth(+) pru_rproc pruss pruss_intc pm33xx omap_des omap_aes_driver des_generic crypto_engine omap_sham omap_crypto pruss_soc_bus ti_emif_sram dwc3_omap am437x_vpfe c_can_platform c_can can_dev snd_soc_tlv320aic3x pixcir_i2c_ts wkup_m3_ipc ov2659 v4l2_fwnode wkup_m3_rproc phy_omap_usb2 remoteproc ti_am335x_tscadc omap_wdt sch_fq_codel cryptodev(O)
    [   15.655618] CPU: 0 PID: 140 Comm: systemd-udevd Tainted: G           O    4.14.79-rt47-g28d73230da #1
    [   15.655621] Hardware name: Generic AM43 (Flattened Device Tree)
    [   15.655626] task: eebb5500 task.stack: ee63a000
    [   15.655758] PC is at prueth_get_mc_mac_mask+0x14/0x8c [ti_prueth]
    [   15.655781] LR is at prueth_probe+0x768/0x80c [ti_prueth]
    [   15.655785] pc : [<bf155414>]    lr : [<bf155bf4>]    psr: 60040113
    [   15.655787] sp : ee63bc30  ip : ee63bc60  fp : ee63bc5c
    [   15.655790] r10: bf15f32c  r9 : 00000000  r8 : 00000000
    [   15.655793] r7 : ee6b462c  r6 : ef6f8e40  r5 : 00000000  r4 : ee6b4410
    [   15.655795] r3 : ee401ec1  r2 : 00000000  r1 : bf15f32c  r0 : 00000000
    [   15.655801] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    [   15.655804] Control: 10c53c7d  Table: ae63c059  DAC: 00000051
    [   15.655809] Process systemd-udevd (pid: 140, stack limit = 0xee63a208)
    [   15.655813] Stack: (0xee63bc30 to 0xee63c000)
    [   15.655819] bc20:                                     ee401ebe ee401ebf ee401ec0 ee401ec1
    [   15.655825] bc40: ee6b4410 ee4fff10 ef6f8e40 ee6b462c ee63bcb4 ee63bc60 bf155bf4 bf15540c
    [   15.655831] bc60: 00000002 00000001 ef1708a0 00000000 ee63bca4 bf15f32c bf15f32c bf15f32c
    [   15.655837] bc80: ef16f410 00000000 ef16f418 ef16f410 ffffffed bf1600bc fffffdfb bf1600bc
    [   15.655843] bca0: 00000024 00000000 ee63bcd4 ee63bcb8 c0534564 bf155498 ef16f410 c0d91428
    [   15.655848] bcc0: c0d9143c 00000000 ee63bd04 ee63bcd8 c0532d9c c0534518 00000000 ef16f410
    [   15.655854] bce0: bf1600bc ef16f444 00000000 00000001 00000000 edc48864 ee63bd24 ee63bd08
    [   15.655860] bd00: c0532f14 c0532b90 00000000 bf1600bc c0532e68 00000000 ee63bd4c ee63bd28
    [   15.655865] bd20: c05310cc c0532e74 ef005864 ef150a44 c080e47c bf1600bc ee6d7700 c0d33728
    [   15.655871] bd40: ee63bd5c ee63bd50 c0532750 c0531084 ee63bd84 ee63bd60 c0532248 c0532738
    [   15.655877] bd60: bf15efdc ee63bd70 bf1600bc 00000000 bf166000 edc1d080 ee63bd9c ee63bd88
    [   15.655883] bd80: c0533608 c05320c4 c0d33728 00000000 ee63bdb4 ee63bda0 c05344bc c0533594
    [   15.655888] bda0: ffffe000 00000000 ee63bdc4 ee63bdb8 bf16601c c0534480 ee63be34 ee63bdc8
    [   15.655894] bdc0: c0101794 bf16600c c01cb064 c014bf7c ffffe000 efd68a8c edc4b2c0 ef001e40
    [   15.655900] bde0: ffffe000 0000fe67 00000000 edc48864 ee63be2c ee63be00 c020d6fc c020d2fc
    [   15.655906] be00: 00000001 f0e30000 c0d7f274 bf160280 00000001 bf160280 00000001 edc48840
    [   15.655911] be20: edc1d080 00000001 ee63be5c ee63be38 c019c080 c0101754 edc48840 bf160280
    [   15.655917] be40: ee63bf40 00000001 edc48840 bf160280 ee63bf1c ee63be60 c019ad7c c019c024
    [   15.655923] be60: bf16028c 00007fff bf160280 c019815c 00000000 c0aa67a4 c0aa677c c0aa68cc
    [   15.655929] be80: bf160394 c0b2eda0 bf1603b0 c0903fac bf160380 bf15fce8 bf1602c8 bf160280
    [   15.655934] bea0: ee7fb900 ee63bf34 ee63beec ee63beb8 c0226214 00000000 00000000 00000000
    [   15.655939] bec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   15.655945] bee0: 00000000 00000000 00000000 00000000 7fffffff 00000000 00000011 b6e6a0c4
    [   15.655951] bf00: 0000017b c0107b44 ee63a000 0000017b ee63bfa4 ee63bf20 c019b5d4 c0198fa8
    [   15.655956] bf20: 7fffffff 00000000 00000003 00000000 00000000 f0e30000 00017184 00000000
    [   15.655962] bf40: f0e3b479 f0e30000 00017184 f0e46d9c f0e46cbc f0e41e14 0000e000 0000fd90
    [   15.655967] bf60: 00000000 00000000 00000000 00005a90 00000016 00000017 00000011 0000000e
    [   15.655973] bf80: 0000000a 00000000 00000000 00000000 00000001 00000000 00000000 ee63bfa8
    [   15.655978] bfa0: c0107940 c019b53c 00000000 00000001 00000011 b6e6a0c4 00000000 0049d230
    [   15.655983] bfc0: 00000000 00000001 00000000 0000017b 00000000 00472dec 00000000 00492698
    [   15.655989] bfe0: bea60950 bea60940 b6e62c58 b6d9ca82 60010030 00000011 00000000 00000000
    [   15.655990] Backtrace:
    [   15.656040] [<bf155400>] (prueth_get_mc_mac_mask [ti_prueth]) from [<bf155bf4>] (prueth_probe+0x768/0x80c [ti_prueth])
    [   15.656046]  r7:ee6b462c r6:ef6f8e40 r5:ee4fff10 r4:ee6b4410
    [   15.656085] [<bf15548c>] (prueth_probe [ti_prueth]) from [<c0534564>] (platform_drv_probe+0x58/0xb4)
    [   15.656092]  r10:00000000 r9:00000024 r8:bf1600bc r7:fffffdfb r6:bf1600bc r5:ffffffed
    [   15.656093]  r4:ef16f410
    [   15.656104] [<c053450c>] (platform_drv_probe) from [<c0532d9c>] (driver_probe_device+0x218/0x2e4)
    [   15.656108]  r7:00000000 r6:c0d9143c r5:c0d91428 r4:ef16f410
    [   15.656115] [<c0532b84>] (driver_probe_device) from [<c0532f14>] (__driver_attach+0xac/0xb0)
    [   15.656121]  r10:edc48864 r9:00000000 r8:00000001 r7:00000000 r6:ef16f444 r5:bf1600bc
    [   15.656123]  r4:ef16f410 r3:00000000
    [   15.656131] [<c0532e68>] (__driver_attach) from [<c05310cc>] (bus_for_each_dev+0x54/0xa4)
    [   15.656135]  r7:00000000 r6:c0532e68 r5:bf1600bc r4:00000000
    [   15.656141] [<c0531078>] (bus_for_each_dev) from [<c0532750>] (driver_attach+0x24/0x28)
    [   15.656144]  r6:c0d33728 r5:ee6d7700 r4:bf1600bc
    [   15.656150] [<c053272c>] (driver_attach) from [<c0532248>] (bus_add_driver+0x190/0x214)
    [   15.656158] [<c05320b8>] (bus_add_driver) from [<c0533608>] (driver_register+0x80/0xfc)
    [   15.656162]  r7:edc1d080 r6:bf166000 r5:00000000 r4:bf1600bc
    [   15.656169] [<c0533588>] (driver_register) from [<c05344bc>] (__platform_driver_register+0x48/0x50)
    [   15.656172]  r5:00000000 r4:c0d33728
    [   15.656202] [<c0534474>] (__platform_driver_register) from [<bf16601c>] (prueth_driver_init+0x1c/0x1000 [ti_prueth])
    [   15.656205]  r5:00000000 r4:ffffe000
    [   15.656234] [<bf166000>] (prueth_driver_init [ti_prueth]) from [<c0101794>] (do_one_initcall+0x4c/0x170)
    [   15.656249] [<c0101748>] (do_one_initcall) from [<c019c080>] (do_init_module+0x68/0x1f8)
    [   15.656254]  r8:00000001 r7:edc1d080 r6:edc48840 r5:00000001 r4:bf160280
    [   15.656261] [<c019c018>] (do_init_module) from [<c019ad7c>] (load_module+0x1de0/0x2424)
    [   15.656265]  r7:bf160280 r6:edc48840 r5:00000001 r4:ee63bf40
    [   15.656272] [<c0198f9c>] (load_module) from [<c019b5d4>] (SyS_finit_module+0xa4/0xbc)
    [   15.656278]  r10:0000017b r9:ee63a000 r8:c0107b44 r7:0000017b r6:b6e6a0c4 r5:00000011
    [   15.656279]  r4:00000000
    [   15.656292] [<c019b530>] (SyS_finit_module) from [<c0107940>] (ret_fast_syscall+0x0/0x5c)
    [   15.656295]  r6:00000000 r5:00000001 r4:00000000
    [   15.656302] Code: e92dd8f0 e24cb004 e24dd010 e1a05000 (e495717c)
    [  OK  ] Started Network Service.
    [   16.659980] net eth0: initializing cpsw version 1.15 (0)
    [   16.814652] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:04: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:04, irq=POLL)
    [   16.989561] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started Login Service.

    root@am437x-evm:~# dmesg |grep pru
    [   14.113025] pruss 54400000.pruss: creating PRU cores and other child platform devices
    [   14.143192] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/ocp@44000000/pruss_soc_bus@54426000/pruss@0/mdio@32400[0]' - status (0)
    [   14.143238] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp@44000000/pruss_soc_bus@54426000/pruss@0/mdio@32400[1]'
    [   14.143245] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp@44000000/pruss_soc_bus@54426000/pruss@0/mdio@32400[1]'
    [   14.282488] pruss 54440000.pruss: creating PRU cores and other child platform devices
    [   14.347091] remoteproc remoteproc1: 54434000.pru is available
    [   14.347169] pru-rproc 54434000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@34000 probed successfully
    [   14.364846] remoteproc remoteproc2: 54438000.pru is available
    [   14.364927] pru-rproc 54438000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@38000 probed successfully
    [   14.366957] remoteproc remoteproc3: 54474000.pru is available
    [   14.367030] pru-rproc 54474000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@74000 probed successfully
    [   14.379127] remoteproc remoteproc4: 54478000.pru is available
    [   14.379223] pru-rproc 54478000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@78000 probed successfully
    [   15.334310] prueth pruss1_eth: port 1: using random MAC addr: ce:ab:49:35:f0:7b
    [   15.655558] Modules linked in: ti_prueth(+) pru_rproc pruss pruss_intc pm33xx omap_des omap_aes_driver des_generic crypto_engine omap_sham omap_crypto pruss_soc_bus ti_emif_sram dwc3_omap am437x_vpfe c_can_platform c_can can_dev snd_soc_tlv320aic3x pixcir_i2c_ts wkup_m3_ipc ov2659 v4l2_fwnode wkup_m3_rproc phy_omap_usb2 remoteproc ti_am335x_tscadc omap_wdt sch_fq_codel cryptodev(O)
    [   15.655758] PC is at prueth_get_mc_mac_mask+0x14/0x8c [ti_prueth]
    [   15.655781] LR is at prueth_probe+0x768/0x80c [ti_prueth]
    [   15.656040] [<bf155400>] (prueth_get_mc_mac_mask [ti_prueth]) from [<bf155bf4>] (prueth_probe+0x768/0x80c [ti_prueth])
    [   15.656085] [<bf15548c>] (prueth_probe [ti_prueth]) from [<c0534564>] (platform_drv_probe+0x58/0xb4)
    [   15.656202] [<c0534474>] (__platform_driver_register) from [<bf16601c>] (prueth_driver_init+0x1c/0x1000 [ti_prueth])
    [   15.656234] [<bf166000>] (prueth_driver_init [ti_prueth]) from [<c0101794>] (do_one_initcall+0x4c/0x170)
    root@am437x-evm:~#

    Only eth0 network card, eth1 network card does not exist.

    root@am437x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 10:CE:A9:8D:BA:8C 
              inet addr:192.168.200.106  Bcast:192.168.200.255  Mask:255.255.255.0
              inet6 addr: fe80::12ce:a9ff:fe8d:ba8c%775872/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:6292 errors:0 dropped:249 overruns:0 frame:0
              TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:419577 (409.7 KiB)  TX bytes:6955 (6.7 KiB)
              Interrupt:43

    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1%775872/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:328 errors:0 dropped:0 overruns:0 frame:0
              TX packets:328 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:24988 (24.4 KiB)  TX bytes:24988 (24.4 KiB)

    root@am437x-evm:~# ifconfig eth1
    ifconfig: eth1: error fetching interface information: Device not found

    1524.log-and-device-tree.rar

  • Hello Nanfeng,

    Please take a look at the second example in the Linux 4.14 bindings documentation in Documentation/devicetree/bindings/net/ti-prueth.txt for guidance on modifying the device tree node for single-emac operation. it looks like you should only list one firmware-name, there might be other changes to make as well.

    Regards,
    Nick
  • Hello Nick,

    Thank you very much for your response.

    I modified the device tree file node for single-emac operation according to /devicetree/bindings/net/ti-prueth.txt,but the problem remains. Complete printing of log and device tree files in the attachment,Could you help me see if there are any other errors in the device tree?Thank you very much.

    [   14.562710] davinci_mdio 54432400.mdio: phy[0]: device 54432400.mdio:00, driver TI TLK10X 10/100 Mbps PHY
    [   14.727137] pruss 54440000.pruss: creating PRU cores and other child platform devices
    [  OK  ] Started RPC Bind Service.
    [   15.004342] remoteproc remoteproc1: 54434000.pru is available
    [   15.103937] pru-rproc 54434000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@34000 probed successfully
    [   15.250424] remoteproc remoteproc2: 54438000.pru is available
    [  OK  ] Started telnetd.service.
    [   15.328300] pru-rproc 54438000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@38000 probed successfully
    [   15.446425] remoteproc remoteproc3: 54474000.pru is available
    [   15.508196] pru-rproc 54474000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@74000 probed successfully
    [  OK  ] Started Network Service.
    [   15.744716] remoteproc remoteproc4: 54478000.pru is available
    [   15.830588] pru-rproc 54478000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@78000 probed successfully
    [   15.930971] net eth0: initializing cpsw version 1.15 (0)
    [   16.034820] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:04: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:04, irq=POLL)
    [   16.065716] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   16.523914] prueth pruss1_eth: port 2: using random MAC addr: fe:f7:12:87:df:c2
    [   16.710927] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [   16.719071] pgd = ee5d4000
    [   16.799620] [00000000] *pgd=00000000
    [   16.807415] Internal error: Oops: 5 [#1] PREEMPT ARM
    [   16.807419] Modules linked in: ti_prueth(+) pru_rproc pruss pruss_intc pm33xx omap_des omap_aes_driver des_generic omap_sham crypto_engine omap_crypto pruss_soc_bus ti_emif_sram am437x_vpfe dwc3_omap c_can_platform c_can can_dev snd_soc_tlv320aic3x ov2659 pixcir_i2c_ts wkup_m3_ipc v4l2_fwnode wkup_m3_rproc remoteproc phy_omap_usb2 omap_wdt ti_am335x_tscadc sch_fq_codel cryptodev(O)
    [   16.807482] CPU: 0 PID: 130 Comm: systemd-udevd Tainted: G           O    4.14.79-rt47-g28d73230da #1
    [   16.807484] Hardware name: Generic AM43 (Flattened Device Tree)
    [   16.807489] task: ee5a9500 task.stack: ee5d0000
    [   16.807613] PC is at prueth_get_mc_mac_mask+0x14/0x8c [ti_prueth]
    [   16.807637] LR is at prueth_probe+0x75c/0x80c [ti_prueth]
    [   16.807640] pc : [<bf178414>]    lr : [<bf178be8>]    psr: 80030013
    [   16.807642] sp : ee5d1c30  ip : ee5d1c60  fp : ee5d1c5c
    [   16.807645] r10: bf18232c  r9 : 00000000  r8 : ef6f8e40
    [   16.807648] r7 : edcafa2c  r6 : 00000000  r5 : 00000000  r4 : edcaf810
    [   16.807651] r3 : 00000000  r2 : ffffffdc  r1 : bf18232c  r0 : 00000000
    [   16.807656] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    [   16.807660] Control: 10c53c7d  Table: ae5d4059  DAC: 00000051
    [   16.807664] Process systemd-udevd (pid: 130, stack limit = 0xee5d0208)
    [   16.807668] Stack: (0xee5d1c30 to 0xee5d2000)
    [   16.807675] 1c20:                                     ef16a0c0 edcaf810 ee538250 00000000
    [   16.807681] 1c40: edcaf810 ee538250 00000000 edcafa2c ee5d1cb4 ee5d1c60 bf178be8 bf17840c
    [   16.807687] 1c60: 00000002 00000001 ef1708a0 00000000 ee5d1ca4 bf18232c bf18232c bf18232c
    [   16.807693] 1c80: ef16f410 00000000 ef16f418 ef16f410 ffffffed bf1830bc fffffdfb bf1830bc
    [   16.807699] 1ca0: 00000024 00000000 ee5d1cd4 ee5d1cb8 c0534564 bf178498 ef16f410 c0d91428
    [   16.807705] 1cc0: c0d9143c 00000000 ee5d1d04 ee5d1cd8 c0532d9c c0534518 00000000 ef16f410
    [   16.807711] 1ce0: bf1830bc ef16f444 00000000 00000001 00000000 ee7e7164 ee5d1d24 ee5d1d08
    [   16.807716] 1d00: c0532f14 c0532b90 00000000 bf1830bc c0532e68 00000000 ee5d1d4c ee5d1d28
    [   16.807722] 1d20: c05310cc c0532e74 ef005864 ef150a44 c080e47c bf1830bc edd01300 c0d33728
    [   16.807728] 1d40: ee5d1d5c ee5d1d50 c0532750 c0531084 ee5d1d84 ee5d1d60 c0532248 c0532738
    [   16.807734] 1d60: bf181fdc ee5d1d70 bf1830bc 00000000 bf189000 ee7e7200 ee5d1d9c ee5d1d88
    [   16.807740] 1d80: c0533608 c05320c4 c0d33728 00000000 ee5d1db4 ee5d1da0 c05344bc c0533594
    [   16.807746] 1da0: ffffe000 00000000 ee5d1dc4 ee5d1db8 bf18901c c0534480 ee5d1e34 ee5d1dc8
    [   16.807752] 1dc0: c0101794 bf18900c edcb2200 ef001d80 ffffe000 efd82550 ee7b4440 ef001e40
    [   16.807758] 1de0: ffffe000 00011027 00000000 ee7e7164 ee5d1e2c ee5d1e00 c020d6fc c020d2fc
    [   16.807764] 1e00: 00000001 f0e44000 c0d7f274 bf183280 00000001 bf183280 00000001 ee7e7140
    [   16.807769] 1e20: ee7e7200 00000001 ee5d1e5c ee5d1e38 c019c080 c0101754 ee7e7140 bf183280
    [   16.807775] 1e40: ee5d1f40 00000001 ee7e7140 bf183280 ee5d1f1c ee5d1e60 c019ad7c c019c024
    [   16.807781] 1e60: bf18328c 00007fff bf183280 c019815c 00000000 c0aa67a4 c0aa677c c0aa68cc
    [   16.807787] 1e80: bf183394 c0b2eda0 bf1833b0 c0903fac bf183380 bf182ce8 bf1832c8 bf183280
    [   16.807793] 1ea0: ee772100 ee5d1f34 ee5d1eec ee5d1eb8 c0226214 00000000 00000000 00000000
    [   16.807798] 1ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   16.807804] 1ee0: 00000000 00000000 00000000 00000000 7fffffff 00000000 00000011 b6f5b0c4
    [   16.807810] 1f00: 0000017b c0107b44 ee5d0000 0000017b ee5d1fa4 ee5d1f20 c019b5d4 c0198fa8
    [   16.807815] 1f20: 7fffffff 00000000 00000003 00000000 00000000 f0e44000 00017184 00000000
    [   16.807821] 1f40: f0e4f479 f0e44000 00017184 f0e5ad9c f0e5acbc f0e55e14 0000e000 0000fd90
    [   16.807827] 1f60: 00000000 00000000 00000000 00005a90 00000016 00000017 00000011 0000000e
    [   16.807832] 1f80: 0000000a 00000000 00000000 00000000 00000001 00000000 00000000 ee5d1fa8
    [   16.807837] 1fa0: c0107940 c019b53c 00000000 00000001 00000011 b6f5b0c4 00000000 00482960
    [   16.807843] 1fc0: 00000000 00000001 00000000 0000017b 00000000 00457dec 00000000 00477360
    [   16.807849] 1fe0: bed46950 bed46940 b6f53c58 b6e8da82 60010030 00000011 00000000 00000000
    [   16.807850] Backtrace:
    [   16.807899] [<bf178400>] (prueth_get_mc_mac_mask [ti_prueth]) from [<bf178be8>] (prueth_probe+0x75c/0x80c [ti_prueth])
    [   16.807905]  r7:edcafa2c r6:00000000 r5:ee538250 r4:edcaf810
    [   16.807945] [<bf17848c>] (prueth_probe [ti_prueth]) from [<c0534564>] (platform_drv_probe+0x58/0xb4)
    [   16.807952]  r10:00000000 r9:00000024 r8:bf1830bc r7:fffffdfb r6:bf1830bc r5:ffffffed
    [   16.807954]  r4:ef16f410
    [   16.807964] [<c053450c>] (platform_drv_probe) from [<c0532d9c>] (driver_probe_device+0x218/0x2e4)
    [   16.807969]  r7:00000000 r6:c0d9143c r5:c0d91428 r4:ef16f410
    [   16.807976] [<c0532b84>] (driver_probe_device) from [<c0532f14>] (__driver_attach+0xac/0xb0)
    [   16.807982]  r10:ee7e7164 r9:00000000 r8:00000001 r7:00000000 r6:ef16f444 r5:bf1830bc
    [   16.807984]  r4:ef16f410 r3:00000000
    [   16.807992] [<c0532e68>] (__driver_attach) from [<c05310cc>] (bus_for_each_dev+0x54/0xa4)
    [   16.807996]  r7:00000000 r6:c0532e68 r5:bf1830bc r4:00000000
    [   16.808002] [<c0531078>] (bus_for_each_dev) from [<c0532750>] (driver_attach+0x24/0x28)
    [   16.808005]  r6:c0d33728 r5:edd01300 r4:bf1830bc
    [   16.808012] [<c053272c>] (driver_attach) from [<c0532248>] (bus_add_driver+0x190/0x214)
    [   16.808020] [<c05320b8>] (bus_add_driver) from [<c0533608>] (driver_register+0x80/0xfc)
    [   16.808024]  r7:ee7e7200 r6:bf189000 r5:00000000 r4:bf1830bc
    [   16.808031] [<c0533588>] (driver_register) from [<c05344bc>] (__platform_driver_register+0x48/0x50)
    [   16.808033]  r5:00000000 r4:c0d33728
    [   16.808063] [<c0534474>] (__platform_driver_register) from [<bf18901c>] (prueth_driver_init+0x1c/0x1000 [ti_prueth])
    [   16.808065]  r5:00000000 r4:ffffe000
    [   16.808096] [<bf189000>] (prueth_driver_init [ti_prueth]) from [<c0101794>] (do_one_initcall+0x4c/0x170)
    [   16.808112] [<c0101748>] (do_one_initcall) from [<c019c080>] (do_init_module+0x68/0x1f8)
    [   16.808117]  r8:00000001 r7:ee7e7200 r6:ee7e7140 r5:00000001 r4:bf183280
    [   16.808124] [<c019c018>] (do_init_module) from [<c019ad7c>] (load_module+0x1de0/0x2424)
    [   16.808128]  r7:bf183280 r6:ee7e7140 r5:00000001 r4:ee5d1f40
    [   16.808134] [<c0198f9c>] (load_module) from [<c019b5d4>] (SyS_finit_module+0xa4/0xbc)
    [   16.808140]  r10:0000017b r9:ee5d0000 r8:c0107b44 r7:0000017b r6:b6f5b0c4 r5:00000011
    [   16.808142]  r4:00000000
    [   16.808155] [<c019b530>] (SyS_finit_module) from [<c0107940>] (ret_fast_syscall+0x0/0x5c)
    [   16.808159]  r6:00000000 r5:00000001 r4:00000000
    [   16.808166] Code: e92dd8f0 e24cb004 e24dd010 e1a05000 (e495717c)
    [  OK  ] Started Login Service.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Created slice system-systemd\x2dbacklight.slice.
    [   18.491770] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   18.552956] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
             Starting Load/Save Screen Backlight鈥ghtness of backlight:backlight...
    [  OK  ] Reached target Network.
             Starting Permit User Sessions...
             Starting Network Name Resolution...
             Starting thttpd.service...
    [  OK  ] Started Load/Save Screen Backlight Brightness of backlight:backlight.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started thttpd.service.
    [   21.997392] usbcore: registered new interface driver usbfs
    [   22.031751] usbcore: registered new interface driver hub
    [   22.063971] usbcore: registered new device driver usb
    [   22.353181] ---[ end trace 0000000000000002 ]---
    [   22.641102] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
    [   22.646664] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 1
    [   22.698753] xhci-hcd xhci-hcd.3.auto: hcc params 0x0238f06d hci version 0x100 quirks 0x02010010
    [   22.728219] xhci-hcd xhci-hcd.3.auto: irq 101, io mem 0x483d0000
    [   22.758306] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [   22.783936] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   22.806818] usb usb1: Product: xHCI Host Controller
    [   22.834079] usb usb1: Manufacturer: Linux 4.14.79-rt47-g28d73230da xhci-hcd
    [   22.855433] usb usb1: SerialNumber: xhci-hcd.3.auto
    [   22.882292] hub 1-0:1.0: USB hub found
    [   22.893000] hub 1-0:1.0: 1 port detected
    [   22.922015] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
    [   22.927557] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 2
    [   22.971533] xhci-hcd xhci-hcd.3.auto: Host supports USB 3.0  SuperSpeed
    [   23.007385] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   23.039963] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [   23.049407] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   23.083397] usb usb2: Product: xHCI Host Controller
    [   23.097337] usb usb2: Manufacturer: Linux 4.14.79-rt47-g28d73230da xhci-hcd
    [   23.118650] usb usb2: SerialNumber: xhci-hcd.3.auto
    [   23.158187] hub 2-0:1.0: USB hub found
    [   23.167482] hub 2-0:1.0: 1 port detected
             Starting rng-tools.service...
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started rng-tools.service.
             Starting thermal-zone-init.service...
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Started thermal-zone-init.service.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Host and Network Name Lookups.
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            bash
            binutils
            cifs-utils
            cpio
            dosfstools
            elfutils
            gawk
            gzip
            libdw1
            libelf1
            libreadline7
            m4
            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  ] Reached target Multi-User System.
             Starting Update UTMP about System Runlevel Changes...
    [  OK  ] Started Update UTMP about System Runlevel Changes.

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

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

    Arago 2018.10 am437x-evm ttyS0

    am437x-evm login: root (automatic login)

    root@am437x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 10:CE:A9:8D:BA:8C 
              inet addr:192.168.200.106  Bcast:192.168.200.255  Mask:255.255.255.0
              inet6 addr: fe80::12ce:a9ff:fe8d:ba8c%775872/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1308 errors:0 dropped:74 overruns:0 frame:0
              TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:85784 (83.7 KiB)  TX bytes:3686 (3.5 KiB)
              Interrupt:43

    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1%775872/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:328 errors:0 dropped:0 overruns:0 frame:0
              TX packets:328 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:24988 (24.4 KiB)  TX bytes:24988 (24.4 KiB)

    root@am437x-evm:~# ifconfig eth1
    ifconfig: eth1: error fetching interface information: Device not found
    root@am437x-evm:~#
    root@am437x-evm:~# lsmod
    Module                  Size  Used by
    xhci_plat_hcd          16384  0
    xhci_hcd              118784  1 xhci_plat_hcd
    usbcore               204800  2 xhci_plat_hcd,xhci_hcd
    dwc3                   69632  0
    udc_core               28672  1 dwc3
    usb_common             16384  3 udc_core,usbcore,dwc3
    ti_am335x_adc          16384  0
    ti_prueth              73728  1
    pru_rproc              20480  1 ti_prueth
    pruss                  16384  2 pru_rproc,ti_prueth
    pruss_intc             16384  1 pru_rproc
    pm33xx                 16384  0
    omap_des               20480  0
    omap_aes_driver        24576  0
    des_generic            28672  1 omap_des
    omap_sham              28672  0
    crypto_engine          16384  2 omap_des,omap_aes_driver
    omap_crypto            16384  2 omap_des,omap_aes_driver
    pruss_soc_bus          16384  0
    ti_emif_sram           16384  1 pm33xx
    am437x_vpfe            36864  0
    dwc3_omap              16384  0
    c_can_platform         16384  0
    c_can                  20480  1 c_can_platform
    can_dev                24576  1 c_can
    snd_soc_tlv320aic3x    57344  0
    ov2659                 16384  0
    pixcir_i2c_ts          16384  0
    wkup_m3_ipc            16384  1 pm33xx
    v4l2_fwnode            16384  2 am437x_vpfe,ov2659
    wkup_m3_rproc          16384  1
    remoteproc             40960  4 pru_rproc,wkup_m3_rproc,wkup_m3_ipc,ti_prueth
    phy_omap_usb2          16384  2
    omap_wdt               16384  0
    ti_am335x_tscadc       16384  1 ti_am335x_adc
    sch_fq_codel           20480  2
    cryptodev              45056  0

    log-and-device-tree-20190201.rar

  • Hello Nanfeng,

    Does it change anything if you make one of the below changes to &pruss1_mdio in your device tree?
    pruss1_eth1_phy: ethernet-phy@0 {
    reg = <0>;
    };

    or
    pruss1_eth1_phy: ethernet-phy@1 {
    reg = <1>;
    };

    Regards,
    Nick
  • Hello Nanfeng,

    I am going to mark the thread resolved. If you want to continue our conversation, just reply to the thread.

    Regards,
    Nick
  • Hello Nick,
    I am sorry for the delayed response.A few days ago, we had our Spring Festival holiday.
    Today, we changed the hardware to make PHY address 1.And the device tree is used as follows:
    pruss1_eth1_phy: ethernet-phy@1 {
    reg = <1>;
    };
    But there's still a prueth runaway problem, as shown in the following log,the complete log and device tree are attached.
                                                                                                                                                                                                      
    [   14.233720] davinci_mdio 54432400.mdio: phy[1]: device 54432400.mdio:01, driver TI TLK10X 10/100 Mbps PHY
    [   14.320358] pruss 54440000.pruss: creating PRU cores and other child platform devices
    [   14.449511] remoteproc remoteproc1: 54434000.pru is available
    [   14.488243] pru-rproc 54434000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@34000 probed successfully
    [   14.697161] remoteproc remoteproc2: 54438000.pru is available
    [   14.739193] pru-rproc 54438000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@38000 probed successfully
             Starting RPC Bind Service...
    [   14.909158] remoteproc remoteproc3: 54474000.pru is available
    [   15.021246] pru-rproc 54474000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@74000 probed successfully
             Starting Print notice about GPLv3 packages...
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [   15.199503] remoteproc remoteproc4: 54478000.pru is available
    [   15.228570] pru-rproc 54478000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@78000 probed successfully
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [   15.400041] net eth0: initializing cpsw version 1.15 (0)
    [  OK  ] Started Network Service.
    [  OK  ] Started telnetd.service.
    [  OK  ] Started RPC Bind Service.
    [   15.574888] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:04: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:04, irq=POLL)
    [   15.665712] prueth pruss1_eth: port 2: using random MAC addr: 7a:2b:00:fe:8f:fe
    [   15.791033] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [   15.791040] pgd = ee5d4000
    [   15.791043] [00000000] *pgd=00000000
    [   15.791054] Internal error: Oops: 5 [#1] PREEMPT ARM
    [   15.791057] Modules linked in: ti_prueth(+) pru_rproc pruss pruss_intc pm33xx omap_des omap_aes_driver des_generic omap_sham crypto_engine omap_crypto pruss_soc_bus ti_emif_sram c_can_platform c_can dwc3_omap can_dev am437x_vpfe pixcir_i2c_ts snd_soc_tlv320aic3x ov2659 wkup_m3_ipc v4l2_fwnode phy_omap_usb2 wkup_m3_rproc remoteproc omap_wdt ti_am335x_tscadc sch_fq_codel cryptodev(O)
    [   15.791116] CPU: 0 PID: 136 Comm: systemd-udevd Tainted: G           O    4.14.79-rt47-g28d73230da #1
    [   15.791118] Hardware name: Generic AM43 (Flattened Device Tree)
    [   15.791122] task: ee467100 task.stack: ee5ce000
    [   15.791247] PC is at prueth_get_mc_mac_mask+0x14/0x8c [ti_prueth]
    [   15.791270] LR is at prueth_probe+0x75c/0x80c [ti_prueth]
    [   15.791273] pc : [<bf171414>]    lr : [<bf171be8>]    psr: 80040113
    [   15.791276] sp : ee5cfc30  ip : ee5cfc60  fp : ee5cfc5c
    [   15.791278] r10: bf17b32c  r9 : 00000000  r8 : ef6f8e40
    [   15.791281] r7 : ee6f962c  r6 : 00000000  r5 : 00000000  r4 : ee6f9410
    [   15.791284] r3 : 00000000  r2 : ffffffdc  r1 : bf17b32c  r0 : 00000000
    [   15.791289] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    [   15.791292] Control: 10c53c7d  Table: ae5d4059  DAC: 00000051
    [   15.791296] Process systemd-udevd (pid: 136, stack limit = 0xee5ce208)
    [   15.791300] Stack: (0xee5cfc30 to 0xee5d0000)
    [   15.791306] fc20:                                     ef16a0c0 ee6f9410 ee547790 00000000
    [   15.791313] fc40: ee6f9410 ee547790 00000000 ee6f962c ee5cfcb4 ee5cfc60 bf171be8 bf17140c
    [   15.791318] fc60: 00000002 00000001 ef1708a0 00000000 ee5cfca4 bf17b32c bf17b32c bf17b32c
    [   15.791324] fc80: ef16f410 00000000 ef16f418 ef16f410 ffffffed bf17c0bc fffffdfb bf17c0bc
    [   15.791330] fca0: 00000024 00000000 ee5cfcd4 ee5cfcb8 c0534564 bf171498 ef16f410 c0d91428
    [   15.791336] fcc0: c0d9143c 00000000 ee5cfd04 ee5cfcd8 c0532d9c c0534518 00000000 ef16f410
    [   15.791342] fce0: bf17c0bc ef16f444 00000000 00000001 00000000 edc5d424 ee5cfd24 ee5cfd08
    [   15.791347] fd00: c0532f14 c0532b90 00000000 bf17c0bc c0532e68 00000000 ee5cfd4c ee5cfd28
    [   15.791353] fd20: c05310cc c0532e74 ef005864 ef150a44 c080e47c bf17c0bc ee746800 c0d33728
    [   15.791359] fd40: ee5cfd5c ee5cfd50 c0532750 c0531084 ee5cfd84 ee5cfd60 c0532248 c0532738
    [   15.791365] fd60: bf17afdc ee5cfd70 bf17c0bc 00000000 bf182000 edc5d4c0 ee5cfd9c ee5cfd88
    [   15.791371] fd80: c0533608 c05320c4 c0d33728 00000000 ee5cfdb4 ee5cfda0 c05344bc c0533594
    [   15.791377] fda0: ffffe000 00000000 ee5cfdc4 ee5cfdb8 bf18201c c0534480 ee5cfe34 ee5cfdc8
    [   15.791383] fdc0: c0101794 bf18200c ee74b980 ef001d80 ffffe000 efd80780 ee6e0b40 ef001e40
    [   15.791389] fde0: ffffe000 00010232 00000000 edc5d424 ee5cfe2c ee5cfe00 c020d6fc c020d2fc
    [   15.791395] fe00: 00000001 f0e66000 c0d7f274 bf17c280 00000001 bf17c280 00000001 edc5d400
    [   15.791400] fe20: edc5d4c0 00000001 ee5cfe5c ee5cfe38 c019c080 c0101754 edc5d400 bf17c280
    [   15.791406] fe40: ee5cff40 00000001 edc5d400 bf17c280 ee5cff1c ee5cfe60 c019ad7c c019c024
    [   15.791412] fe60: bf17c28c 00007fff bf17c280 c019815c 00000000 c0aa67a4 c0aa677c c0aa68cc
    [   15.791418] fe80: bf17c394 c0b2eda0 bf17c3b0 c0903fac bf17c380 bf17bce8 bf17c2c8 bf17c280
    [   15.791424] fea0: ee7bb700 ee5cff34 ee5cfeec ee5cfeb8 c0226214 00000000 00000000 00000000
    [   15.791429] fec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   15.791434] fee0: 00000000 00000000 00000000 00000000 7fffffff 00000000 00000011 b6ed60c4
    [   15.791440] ff00: 0000017b c0107b44 ee5ce000 0000017b ee5cffa4 ee5cff20 c019b5d4 c0198fa8
    [   15.791446] ff20: 7fffffff 00000000 00000003 00000000 00000000 f0e66000 00017184 00000000
    [   15.791452] ff40: f0e71479 f0e66000 00017184 f0e7cd9c f0e7ccbc f0e77e14 0000e000 0000fd90
    [   15.791457] ff60: 00000000 00000000 00000000 00005a90 00000016 00000017 00000011 0000000e
    [   15.791463] ff80: 0000000a 00000000 00000000 00000000 00000001 00000000 00000000 ee5cffa8
    [   15.791469] ffa0: c0107940 c019b53c 00000000 00000001 00000011 b6ed60c4 00000000 00576dd8
    [   15.791474] ffc0: 00000000 00000001 00000000 0000017b 00000000 0054edec 00000000 00577998
    [   15.791480] ffe0: bef0b950 bef0b940 b6ecec58 b6e08a82 60010030 00000011 00000000 00000000
    [   15.791481] Backtrace:
    [   15.791531] [<bf171400>] (prueth_get_mc_mac_mask [ti_prueth]) from [<bf171be8>] (prueth_probe+0x75c/0x80c [ti_prueth])
    [   15.791537]  r7:ee6f962c r6:00000000 r5:ee547790 r4:ee6f9410
    [   15.791578] [<bf17148c>] (prueth_probe [ti_prueth]) from [<c0534564>] (platform_drv_probe+0x58/0xb4)
    [   15.791585]  r10:00000000 r9:00000024 r8:bf17c0bc r7:fffffdfb r6:bf17c0bc r5:ffffffed
    [   15.791587]  r4:ef16f410
    [   15.791598] [<c053450c>] (platform_drv_probe) from [<c0532d9c>] (driver_probe_device+0x218/0x2e4)
    [   15.791602]  r7:00000000 r6:c0d9143c r5:c0d91428 r4:ef16f410
    [   15.791609] [<c0532b84>] (driver_probe_device) from [<c0532f14>] (__driver_attach+0xac/0xb0)
    [   15.791615]  r10:edc5d424 r9:00000000 r8:00000001 r7:00000000 r6:ef16f444 r5:bf17c0bc
    [   15.791617]  r4:ef16f410 r3:00000000
    [   15.791625] [<c0532e68>] (__driver_attach) from [<c05310cc>] (bus_for_each_dev+0x54/0xa4)
    [   15.791629]  r7:00000000 r6:c0532e68 r5:bf17c0bc r4:00000000
    [   15.791635] [<c0531078>] (bus_for_each_dev) from [<c0532750>] (driver_attach+0x24/0x28)
    [   15.791638]  r6:c0d33728 r5:ee746800 r4:bf17c0bc
    [   15.791645] [<c053272c>] (driver_attach) from [<c0532248>] (bus_add_driver+0x190/0x214)
    [   15.791653] [<c05320b8>] (bus_add_driver) from [<c0533608>] (driver_register+0x80/0xfc)
    [   15.791657]  r7:edc5d4c0 r6:bf182000 r5:00000000 r4:bf17c0bc
    [   15.791664] [<c0533588>] (driver_register) from [<c05344bc>] (__platform_driver_register+0x48/0x50)
    [   15.791666]  r5:00000000 r4:c0d33728
    [   15.791696] [<c0534474>] (__platform_driver_register) from [<bf18201c>] (prueth_driver_init+0x1c/0x1000 [ti_prueth])
    [   15.791699]  r5:00000000 r4:ffffe000
    [   15.791729] [<bf182000>] (prueth_driver_init [ti_prueth]) from [<c0101794>] (do_one_initcall+0x4c/0x170)
    [   15.791743] [<c0101748>] (do_one_initcall) from [<c019c080>] (do_init_module+0x68/0x1f8)
    [   15.791749]  r8:00000001 r7:edc5d4c0 r6:edc5d400 r5:00000001 r4:bf17c280
    [   15.791756] [<c019c018>] (do_init_module) from [<c019ad7c>] (load_module+0x1de0/0x2424)
    [   15.791760]  r7:bf17c280 r6:edc5d400 r5:00000001 r4:ee5cff40
    [   15.791766] [<c0198f9c>] (load_module) from [<c019b5d4>] (SyS_finit_module+0xa4/0xbc)
    [   15.791773]  r10:0000017b r9:ee5ce000 r8:c0107b44 r7:0000017b r6:b6ed60c4 r5:00000011
    [   15.791775]  r4:00000000
    [   15.791788] [<c019b530>] (SyS_finit_module) from [<c0107940>] (ret_fast_syscall+0x0/0x5c)
    [   15.791791]  r6:00000000 r5:00000001 r4:00000000
    [   15.791798] Code: e92dd8f0 e24cb004 e24dd010 e1a05000 (e495717c)
    [   15.791805] ---[ end trace 0000000000000002 ]---
    [   20.851590] usbcore: registered new interface driver usbfs
    [   20.852973] usbcore: registered new interface driver hub
    [   20.854540] usbcore: registered new device driver usb
    [   20.982715] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    If phy is set to 0 in the device tree as follows:
    pruss1_eth1_phy: ethernet-phy@0 {
    reg = <0>;
    };
    an error occurred in the following log,the complete log and device tree are attached.
    [   13.716480] pruss 54400000.pruss: creating PRU cores and other child platform devices
             Starting Print notice about GPLv3 packages...
             Starting Login Service...
             [   13.929928] davinci_mdio 54432400.mdio: davinci mdio revision 1.6, bus freq 1000000
    [   13.937640] libphy: 54432400.mdio: probed
    Starting Network Service...
    [   14.016588] davinci_mdio: probe of 54432400.mdio failed with error -5
    [  OK  ] Started telnetd.service.
    [  OK  ] Started RPC Bind Service.
    [   14.072879] pruss 54440000.pruss: creating PRU cores and other child platform devices
    [  OK  ] Found device /dev/ttyS0.
    [   14.411035] remoteproc remoteproc1: 54434000.pru is available
    [   14.416910] pru-rproc 54434000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@34000 probed successfully
    [   14.722550] remoteproc remoteproc2: 54438000.pru is available
    [   14.728407] pru-rproc 54438000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@38000 probed successfully
    [   14.965689] remoteproc remoteproc3: 54474000.pru is available
    [   15.026690] pru-rproc 54474000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@74000 probed successfully
    [   15.231305] remoteproc remoteproc4: 54478000.pru is available
    [   15.237182] pru-rproc 54478000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@78000 probed successfully
    [  OK  ] Started Network Service.
    [   15.617670] prueth pruss1_eth: port 2: using random MAC addr: 4a:94:4e:99:ff:fd
    [   15.620000] net eth0: initializing cpsw version 1.15 (0)
    [   15.724829] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:04: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:04, irq=POLL)
    [   15.746981] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started Login Service.
    [   17.772141] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   17.824387] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   19.315514] prueth pruss1_eth: port 2: using random MAC addr: c6:08:62:77:da:5b
    [   19.639549] prueth pruss1_eth: port 2: using random MAC addr: da:50:02:a9:ae:11
    [   19.656390] prueth pruss1_eth: port 2: using random MAC addr: 16:24:e6:7d:c9:38
    [   20.210503] usbcore: registered new interface driver usbfs
    [   20.235341] usbcore: registered new interface driver hub
    [   20.262212] usbcore: registered new device driver usb
    What may be the problem? I'm looking forward to your answer. Thank you very much.
  • Hello Nanfeng,

    Take a look at TI's training for debugging the Linux kernel here: training.ti.com/debugging-embedded-linux-systems-training-series . In particular, watch the "Understand Kernel Oops Logs" video for guidance on figuring out in which line of the kernel driver the NULL pointer is occurring.

    For example, for the above log I'd start with something like
    gdb drivers/path/to/ti_prueth.ko
    then
    list *(prueth_get_mc_mac_mask+0x14)

    Regards,
    Nick
  • Hello Nick,

    gdb cannot be performed in file system arago-base-tisdk-image-am437x-evm.tar,As in the previous log, I found that the crash was caused by the function prueth_get_mc_mac_mask.

    [   15.791247] PC is at prueth_get_mc_mac_mask+0x14/0x8c [ti_prueth]
    [   15.791270] LR is at prueth_probe+0x75c/0x80c [ti_prueth]

    And I found that prueth_get_mc_mac_mask was called twice in the function prueth_probe. Should prueth_get_mc_mac_mask be called twice when it is set to single-emac?

    I modified prueth. c code to rebuild ti-prueth. ko as shown in the following picture:

    New problems arise as shown in the following log:

    [   13.663605] pruss 54400000.pruss: creating PRU cores and other child platform devices
    [   13.809836] davinci_mdio 54432400.mdio: davinci mdio revision 1.6, bus freq 1000000
    [   13.817545] libphy: 54432400.mdio: probed
    [   13.942523] davinci_mdio 54432400.mdio: phy[1]: device 54432400.mdio:01, driver TI TLK10X 10/100 Mbps PHY
    [   14.082365] pruss 54440000.pruss: creating PRU cores and other child platform devices
    [  OK  ] Started Kernel Logging Service.
    [   14.357763] remoteproc remoteproc1: 54434000.pru is available
             Starting telnetd.service...
    [   14.475060] pru-rproc 54434000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@34000 probed successfully
    [   14.625611] remoteproc remoteproc2: 54438000.pru is available
    [  OK  ] Started Periodic Command Scheduler.
    [   14.719896] pru-rproc 54438000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@38000 probed successfully
             Starting RPC Bind Service...
    [   14.900303] remoteproc remoteproc3: 54474000.pru is available
    [   14.906162] pru-rproc 54474000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@74000 probed successfully
    [  OK  ] Started System Logging Service.
    [   15.233507] remoteproc remoteproc4: 54478000.pru is available
    [   15.239388] pru-rproc 54478000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@78000 probed successfully
    [   15.309859] net eth0: initializing cpsw version 1.15 (0)
    [   15.414652] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:04: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:04, irq=POLL)
    [   15.484624] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started Network Service.
    [  OK  ] Started telnetd.service.
    [  OK  ] Started RPC Bind Service.
    [   15.992729] prueth pruss1_eth: port 2: using random MAC addr: e6:81:56:8a:3f:7d
    [   16.190824] prueth pruss1_eth: pruss_fw_drop_untagged_vlan 0
    [   16.196528] prueth pruss1_eth: pruss MC Mask (Port 1) ff:ff:ff:ff:ff:ff
    [   16.278724] Unable to handle kernel NULL pointer dereference at virtual address 00000004
    [   16.368017] pgd = ee5d4000
    [   16.419540] [00000004] *pgd=00000000
    [   16.437843] Internal error: Oops: 5 [#1] PREEMPT ARM
    [   16.437848] Modules linked in: ti_prueth(+) pru_rproc pruss pruss_intc pm33xx omap_des omap_aes_driver des_generic omap_sham pruss_soc_bus crypto_engine omap_crypto ti_emif_sram dwc3_omap c_can_platform c_can can_dev am437x_vpfe snd_soc_tlv320aic3x pixcir_i2c_ts ov2659 v4l2_fwnode wkup_m3_ipc phy_omap_usb2 wkup_m3_rproc omap_wdt ti_am335x_tscadc remoteproc sch_fq_codel cryptodev(O)
    [   16.437909] CPU: 0 PID: 133 Comm: systemd-udevd Tainted: G           O    4.14.79-rt47-g28d73230da #1
    [   16.437912] Hardware name: Generic AM43 (Flattened Device Tree)
    [   16.437918] task: ee597100 task.stack: ee5d0000
    [   16.438046] PC is at emac_ndo_set_features+0x60/0x104 [ti_prueth]
    [   16.438048] LR is at 0x0
    [   16.438052] pc : [<bf167e24>]    lr : [<00000000>]    psr: 20070113
    [   16.438054] sp : ee5d1b60  ip : ee6f0478  fp : ee5d1b7c
    [   16.438057] r10: edcbe000  r9 : ef16f410  r8 : edcbe064
    [   16.438059] r7 : 00000000  r6 : ee6f0410  r5 : 00000000  r4 : 00000000
    [   16.438062] r3 : 00000000  r2 : 00000000  r1 : edcbe000  r0 : edcbe000
    [   16.438068] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    [   16.438071] Control: 10c53c7d  Table: ae5d4059  DAC: 00000051
    [   16.438075] Process systemd-udevd (pid: 133, stack limit = 0xee5d0208)
    [   16.438079] Stack: (0xee5d1b60 to 0xee5d2000)
    [   16.438088] 1b60: 00004200 00000000 00000001 edcbe064 ee5d1c1c ee5d1b80 c06da1a8 bf167dd0
    [   16.438094] 1b80: ee5419c0 edcbe000 00000001 ee5d1b88 00000001 ee5d1b90 ee5d1bb4 c0d33578
    [   16.438100] 1ba0: 00000001 00000001 c053b77c 00000000 00000001 00000000 ee5d1bd4 ee5d1bc8
    [   16.438106] 1bc0: c080e5c0 c080c9f8 00004a00 00000000 c053b824 c080e5bc 00004200 00000000
    [   16.438111] 1be0: edcbe300 00000001 ee5d1c1c ee5d1bf8 c06faf98 edcbe000 00000000 00000001
    [   16.438117] 1c00: ee6f062c ef6f8e40 ef16f410 00000000 ee5d1c4c ee5d1c20 c06dad4c c06d9ebc
    [   16.438123] 1c20: ee5d1c3c ee5d1c30 edcbe000 c080c69c ee5d1c4c edcbe000 ee563550 00000000
    [   16.438129] 1c40: ee5d1c64 ee5d1c50 c06daec4 c06da9a4 ee6f0410 ee563550 ee5d1cb4 ee5d1c68
    [   16.438135] 1c60: bf169a5c c06daeb4 00000000 000000ff 000000ff 000000ff bf1732a0 bf1732a0
    [   16.438141] 1c80: bf1732a0 00000000 ef16f418 ef16f410 ffffffed bf1740b8 fffffdfb bf1740b8
    [   16.438147] 1ca0: 00000024 00000000 ee5d1cd4 ee5d1cb8 c0534564 bf169498 ef16f410 c0d91428
    [   16.438153] 1cc0: c0d9143c 00000000 ee5d1d04 ee5d1cd8 c0532d9c c0534518 00000000 ef16f410
    [   16.438159] 1ce0: bf1740b8 ef16f444 00000000 00000001 00000000 ee75fae4 ee5d1d24 ee5d1d08
    [   16.438165] 1d00: c0532f14 c0532b90 00000000 bf1740b8 c0532e68 00000000 ee5d1d4c ee5d1d28
    [   16.438171] 1d20: c05310cc c0532e74 ef005864 ef150a44 c080e47c bf1740b8 ee7e4180 c0d33728
    [   16.438177] 1d40: ee5d1d5c ee5d1d50 c0532750 c0531084 ee5d1d84 ee5d1d60 c0532248 c0532738
    [   16.438183] 1d60: bf172f50 ee5d1d70 bf1740b8 00000000 bf17a000 ee75fb80 ee5d1d9c ee5d1d88
    [   16.438189] 1d80: c0533608 c05320c4 c0d33728 00000000 ee5d1db4 ee5d1da0 c05344bc c0533594
    [   16.438195] 1da0: ffffe000 00000000 ee5d1dc4 ee5d1db8 bf17a01c c0534480 ee5d1e34 ee5d1dc8
    [   16.438201] 1dc0: c0101794 bf17a00c ee7de400 ef001d80 ffffe000 efd68288 edc12ac0 ef001e40
    [   16.438207] 1de0: ffffe000 0001008a 00000000 ee75fae4 ee5d1e2c ee5d1e00 c020d6fc c020d2fc
    [   16.438212] 1e00: 00000001 f0e44000 c0d7f274 bf174280 00000001 bf174280 00000001 ee75fac0
    [   16.438218] 1e20: ee75fb80 00000001 ee5d1e5c ee5d1e38 c019c080 c0101754 ee75fac0 bf174280
    [   16.438224] 1e40: ee5d1f40 00000001 ee75fac0 bf174280 ee5d1f1c ee5d1e60 c019ad7c c019c024
    [   16.438230] 1e60: bf17428c 00007fff bf174280 c019815c 00000000 c0aa67a4 c0aa677c c0aa68cc
    [   16.438236] 1e80: bf174394 c0b2eda0 bf1743b0 c0903fac bf174380 bf173b9c bf1742c8 bf174280
    [   16.438242] 1ea0: edc62b00 ee5d1f34 ee5d1eec ee5d1eb8 c0226214 00000000 00000000 00000000
    [   16.438248] 1ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   16.438253] 1ee0: 00000000 00000000 00000000 00000000 7fffffff 00000000 00000012 b6ee80c4
    [   16.438259] 1f00: 0000017b c0107b44 ee5d0000 0000017b ee5d1fa4 ee5d1f20 c019b5d4 c0198fa8
    [   16.438265] 1f20: 7fffffff 00000000 00000003 00000000 00000000 f0e44000 000171dc 00000000
    [   16.438271] 1f40: f0e4f439 f0e44000 000171dc f0e5adcc f0e5ace4 f0e55e08 0000e000 0000fd80
    [   16.438276] 1f60: 00000000 00000000 00000000 00005b3c 00000017 00000018 00000011 0000000e
    [   16.438282] 1f80: 0000000a 00000000 00000000 00000000 00000001 00000000 00000000 ee5d1fa8
    [   16.438288] 1fa0: c0107940 c019b53c 00000000 00000001 00000012 b6ee80c4 00000000 00490a98
    [   16.438293] 1fc0: 00000000 00000001 00000000 0000017b 00000000 00469dec 00000000 00491f48
    [   16.438299] 1fe0: becf2950 becf2940 b6ee0c58 b6e1aa82 60010030 00000012 00000000 00000000
    [   16.438300] Backtrace:
    [   16.438357] [<bf167dc4>] (emac_ndo_set_features [ti_prueth]) from [<c06da1a8>] (__netdev_update_features+0x2f8/0x790)
    [   16.438363]  r7:edcbe064 r6:00000001 r5:00000000 r4:00004200
    [   16.438374] [<c06d9eb0>] (__netdev_update_features) from [<c06dad4c>] (register_netdevice+0x3b4/0x510)
    [   16.438380]  r10:00000000 r9:ef16f410 r8:ef6f8e40 r7:ee6f062c r6:00000001 r5:00000000
    [   16.438382]  r4:edcbe000
    [   16.438390] [<c06da998>] (register_netdevice) from [<c06daec4>] (register_netdev+0x1c/0x2c)
    [   16.438394]  r6:00000000 r5:ee563550 r4:edcbe000
    [   16.438422] [<c06daea8>] (register_netdev) from [<bf169a5c>] (prueth_probe+0x5d0/0x7c8 [ti_prueth])
    [   16.438426]  r5:ee563550 r4:ee6f0410
    [   16.438462] [<bf16948c>] (prueth_probe [ti_prueth]) from [<c0534564>] (platform_drv_probe+0x58/0xb4)
    [   16.438468]  r10:00000000 r9:00000024 r8:bf1740b8 r7:fffffdfb r6:bf1740b8 r5:ffffffed
    [   16.438470]  r4:ef16f410
    [   16.438479] [<c053450c>] (platform_drv_probe) from [<c0532d9c>] (driver_probe_device+0x218/0x2e4)
    [   16.438483]  r7:00000000 r6:c0d9143c r5:c0d91428 r4:ef16f410
    [   16.438490] [<c0532b84>] (driver_probe_device) from [<c0532f14>] (__driver_attach+0xac/0xb0)
    [   16.438495]  r10:ee75fae4 r9:00000000 r8:00000001 r7:00000000 r6:ef16f444 r5:bf1740b8
    [   16.438498]  r4:ef16f410 r3:00000000
    [   16.438505] [<c0532e68>] (__driver_attach) from [<c05310cc>] (bus_for_each_dev+0x54/0xa4)
    [   16.438509]  r7:00000000 r6:c0532e68 r5:bf1740b8 r4:00000000
    [   16.438515] [<c0531078>] (bus_for_each_dev) from [<c0532750>] (driver_attach+0x24/0x28)
    [   16.438518]  r6:c0d33728 r5:ee7e4180 r4:bf1740b8
    [   16.438525] [<c053272c>] (driver_attach) from [<c0532248>] (bus_add_driver+0x190/0x214)
    [   16.438532] [<c05320b8>] (bus_add_driver) from [<c0533608>] (driver_register+0x80/0xfc)
    [   16.438536]  r7:ee75fb80 r6:bf17a000 r5:00000000 r4:bf1740b8
    [   16.438544] [<c0533588>] (driver_register) from [<c05344bc>] (__platform_driver_register+0x48/0x50)
    [   16.438546]  r5:00000000 r4:c0d33728
    [   16.438577] [<c0534474>] (__platform_driver_register) from [<bf17a01c>] (prueth_driver_init+0x1c/0x1000 [ti_prueth])
    [   16.438580]  r5:00000000 r4:ffffe000
    [   16.438611] [<bf17a000>] (prueth_driver_init [ti_prueth]) from [<c0101794>] (do_one_initcall+0x4c/0x170)
    [   16.438626] [<c0101748>] (do_one_initcall) from [<c019c080>] (do_init_module+0x68/0x1f8)
    [   16.438631]  r8:00000001 r7:ee75fb80 r6:ee75fac0 r5:00000001 r4:bf174280
    [   16.438638] [<c019c018>] (do_init_module) from [<c019ad7c>] (load_module+0x1de0/0x2424)
    [   16.438642]  r7:bf174280 r6:ee75fac0 r5:00000001 r4:ee5d1f40
    [   16.438649] [<c0198f9c>] (load_module) from [<c019b5d4>] (SyS_finit_module+0xa4/0xbc)
    [   16.438655]  r10:0000017b r9:ee5d0000 r8:c0107b44 r7:0000017b r6:b6ee80c4 r5:00000012
    [   16.438657]  r4:00000000
    [   16.438670] [<c019b530>] (SyS_finit_module) from [<c0107940>] (ret_fast_syscall+0x0/0x5c)
    [   16.438673]  r6:00000000 r5:00000001 r4:00000000
    [   16.438680] Code: 03a0c06c 13a0c068 e086c00c e59c2004 (e5922004)
    [   17.134008] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

    I don't know why the two MAC addresses labeled in red don't correspond.And whether single-emac has been verified by your TI?Thank you very much!

    log-0213.log

  • Hello Nanfeng,

    This may be a driver bug that was introduced between SDK 5.0 and SDK 5.2 - that code that is causing issues was added after SDK 5.0, and the last time I have verification that single EMAC was tested was 5.0. I'm digging around some more on this end.

    Do you get the same results when you change the driver as below?

            if (prueth->pruss_id == pruss_id1) {
                    if (PRUETH_HAS_RED(prueth) || PRUETH_IS_EMAC(prueth)) {
                            if (eth0_node) {
                                    prueth_get_mc_mac_mask(prueth->emac[PRUETH_MAC0],
                                                   mc_mask1_port0);
                            }
                            if (eth1_node) {
                                    prueth_get_mc_mac_mask(prueth->emac[PRUETH_MAC1],
                                                   mc_mask1_port1);
                            }
                    }
            } else {
                    if (PRUETH_HAS_RED(prueth) || PRUETH_IS_EMAC(prueth)) {
                            if (eth0_node) {
                                    prueth_get_mc_mac_mask(prueth->emac[PRUETH_MAC0],
                                                   mc_mask2_port0);
                            }
                            if (eth1_node) {
                                    prueth_get_mc_mac_mask(prueth->emac[PRUETH_MAC1],
                                                   mc_mask2_port1);
                            }
                    }
            }
    
            dev_info(dev, "pruss_fw_drop_untagged_vlan %d\n",
                     prueth->fw_drop_untagged_vlan);
            if (eth0_node) {
            dev_info(dev, "pruss MC Mask (Port 0) %x:%x:%x:%x:%x:%x\n",
                     prueth->emac[PRUETH_MAC0]->mc_mac_mask[0],
                     prueth->emac[PRUETH_MAC0]->mc_mac_mask[1],
                     prueth->emac[PRUETH_MAC0]->mc_mac_mask[2],
                     prueth->emac[PRUETH_MAC0]->mc_mac_mask[3],
                     prueth->emac[PRUETH_MAC0]->mc_mac_mask[4],
                     prueth->emac[PRUETH_MAC0]->mc_mac_mask[5]);
            }
            if (eth1_node) {
            dev_info(dev, "pruss MC Mask (Port 1) %x:%x:%x:%x:%x:%x\n",
                     prueth->emac[PRUETH_MAC1]->mc_mac_mask[0],
                     prueth->emac[PRUETH_MAC1]->mc_mac_mask[1],
                     prueth->emac[PRUETH_MAC1]->mc_mac_mask[2],
                     prueth->emac[PRUETH_MAC1]->mc_mac_mask[3],
                     prueth->emac[PRUETH_MAC1]->mc_mac_mask[4],
                     prueth->emac[PRUETH_MAC1]->mc_mac_mask[5]);
            }

    If that still gives the kernel oops from  emac_ndo_set_features, it would help if you could narrow down the line causing the issue - maybe with printks in the driver, or a tool like arm-linux-gnueabihf-addr2line if you can get it working?

    Regards,

    Nick

  • Hello Nanfeng,

    It does look like this is a bug in the driver. I'm sorry this has dragged out so long. I'm working internally to try to figure out all the parts of the driver that need to get re-fixed. It looks like code to enable HSR/PRP was added to the driver after SDK 5.0, and that code did not take the single EMAC use case into account.

    The developer should have tested SDK 5.0 to work with single EMAC. I am not sure how long it will take to create a patch to fix it for SDK 5.2 and later.

    What is your timeframe, ability to select which version of Linux you use, etc?

    Regards,
    Nick
  • Hello Nick,

    Do you mean that there is no SDK version of single EMAC that can be used at present?

    We are currently using single EMAC on our project, so it is urgent in terms of time.

    I'm sorry to trouble you, but could you help us solve it as soon as possible? Thank you very much.

  • Hello Nanfeng,

    SDK 5.0 should work, but I have not had the chance to test it myself. I'm going on a short vacation, but I'll be back the second half of next week. Let me know if SDK 5.0 would be sufficient for you or if you need the latest SDK, that will help me figure out how to prioritize debugging the SDK 5.2 issue when I get back.

    Regards,

    Nick

  • Hello Nick,
    Where can I download SDK 5.0? I'll download it and verify it.I do not need the latest SDK.
    I am currently using the latest SDK (ti-processor-sdk-linux-rt-am437x-evm-05.02.00.10-Linux-x86-Install.bin) on the official website.
  • Hello Nanfeng,

    Scroll to the bottom of the website software-dl.ti.com/.../index_FDS.html and you will find a "Previous SDK Link". You can use that to get back to SDK 5.1, and use it again on the SDK 5.1 website to get to SDK 5.0.

    Regards,
    Nick
  • Hello Nick,

    I validated SDK V5.0 and Linux version 4.14.40 as you said, but the problem still exists as shown in the following log.The complete log and device tree files are attached.

    [   12.836409] pruss 54400000.pruss: creating PRU cores and other child platform devices
    [   13.007706] davinci_mdio 54432400.mdio: davinci mdio revision 1.6, bus freq 1000000
    [   13.015414] libphy: 54432400.mdio: probed
    [   13.134683] davinci_mdio 54432400.mdio: phy[1]: device 54432400.mdio:01, driver TI TLK10X 10/100 Mbps PHY
    [   13.217806] pruss 54440000.pruss: creating PRU cores and other child platform devices
    [   13.406589] remoteproc remoteproc1: 54434000.pru is available
    [   13.549482] pru-rproc 54434000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@34000 probed successfully
             Starting RPC Bind Service...
    [   13.773391] remoteproc remoteproc2: 54438000.pru is available
    [  OK  ] Started System Logging Service.
    [   13.862879] pru-rproc 54438000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@0/pru@38000 probed successfully
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.[   14.058945] remoteproc remoteproc3: 54474000.pru is available

    [   14.066013] pru-rproc 54474000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@74000 probed successfully
             Starting telnetd.service...
    [  OK  ] Started Job spooling tools.
    [   14.400469] remoteproc remoteproc4: 54478000.pru is available
    [   14.406322] pru-rproc 54478000.pru: PRU rproc node /ocp@44000000/pruss_soc_bus@54426000/pruss@40000/pru@78000 probed successfully
    [   14.457535] net eth0: initializing cpsw version 1.15 (0)
    [   14.565026] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:04: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:04, irq=POLL)
    [   14.591041] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
             Starting Login Service...
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Started Periodic Command Scheduler.
    [   15.116588] prueth pruss1_eth: pruss MC Mask 0:0:0:0:0:0
    [  OK  ] Started Kernel Logging Service.
    [   15.195439] prueth pruss1_eth: could not get ptp tx irq
    [  OK  ] Started Network Service.
    [  OK  ] Started RPC Bind Service.
    [   15.266804] prueth pruss1_eth: port 2: using random MAC addr: be:76:00:11:c1:a4
    [  OK  ] Started telnetd.service.
    [   15.439011] Unable to handle kernel NULL pointer dereference at virtual address 00000004
    [   15.447150] pgd = ee510000
    [   15.516488] [00000004] *pgd=00000000
    [   15.540446] Internal error: Oops: 5 [#1] PREEMPT ARM
    [   15.545446] Modules linked in: ti_prueth(+) pru_rproc pruss pruss_intc pm33xx omap_des omap_aes_driver des_generic crypto_engine omap_sham ti_emif_sram omap_crypto pruss_soc_bus dwc3_omap c_can_platform c_can can_dev am437x_vpfe snd_soc_tlv320aic3x pixcir_i2c_ts ov2659 v4l2_fwnode wkup_m3_ipc wkup_m3_rproc omap_wdt remoteproc sch_fq_codel cryptodev(O)
    [   15.576751] CPU: 0 PID: 112 Comm: systemd-udevd Tainted: G           O    4.14.40-g4796173fc5 #1
    [   15.585570] Hardware name: Generic AM43 (Flattened Device Tree)
    [   15.591514] task: ee4ab000 task.stack: ee50a000
    [   15.596172] PC is at emac_ndo_set_features+0x5c/0x100 [ti_prueth]
    [   15.602290] LR is at 0xee692c10
    [   15.605443] pc : [<bf15c204>]    lr : [<ee692c10>]    psr: 20030113
    [   15.611732] sp : ee50bb60  ip : 00000000  fp : ee50bb7c
    [   15.616976] r10: ee77a800  r9 : ef6f8e40  r8 : ee77a864
    [   15.622219] r7 : 00000000  r6 : 00000000  r5 : 00000000  r4 : 00000000
    [   15.628771] r3 : 00000000  r2 : 00000000  r1 : ee77a800  r0 : ee77a800
    [   15.635326] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    [   15.642489] Control: 10c53c7d  Table: ae510059  DAC: 00000051
    [   15.648256] Process systemd-udevd (pid: 112, stack limit = 0xee50a208)
    [   15.654809] Stack: (0xee50bb60 to 0xee50c000)
    [   15.659185] bb60: 00004000 00000000 00000000 ee77a864 ee50bc1c ee50bb80 c070d3dc bf15c1b4
    [   15.667397] bb80: ee6d6180 ee77a800 00000000 ee6d618c 00000000 00000000 ee50bbb4 ee50bba8
    [   15.675609] bba0: c08347f8 c0834258 ee50bbf4 ee50bbb8 c072e3cc c08347f0 00000000 c08347f0
    [   15.683821] bbc0: ee50bbf4 ee50bbd0 00004800 00000000 ee77a800 00000000 00004000 00000000
    [   15.692031] bbe0: 00000000 00000001 ee50bc1c ee50bbf8 c072e5e8 ee77a800 00000001 00000000
    [   15.700242] bc00: ef6f8c30 00000000 ef6f8e40 00000000 ee50bc4c ee50bc20 c070deb4 c070d0f0
    [   15.708453] bc20: ee7ae810 00000001 ee77a800 ffffffff ee50bc4c ee77a800 00000001 ee4879d0
    [   15.716664] bc40: ee50bc64 ee50bc50 c070e028 c070db30 ee692c10 00000001 ee50bcb4 ee50bc68
    [   15.724875] bc60: bf15e868 c070e018 00000000 00000000 00000000 00000000 ef6f8c30 ee692c10
    [   15.733086] bc80: 00000000 ef149010 ef149018 ef149010 ffffffed bf168054 fffffdfb bf168054
    [   15.741298] bca0: 00000022 00000000 ee50bcd4 ee50bcb8 c0548d48 bf15e2b8 ef149010 c0d8c2ec
    [   15.749509] bcc0: c0d8c2f0 00000000 ee50bd04 ee50bcd8 c0547230 c0548cfc 00000000 ef149010
    [   15.757720] bce0: bf168054 ef149044 00000000 00000001 00000000 ee74fa24 ee50bd24 ee50bd08
    [   15.765931] bd00: c054738c c0546ffc 00000000 bf168054 c05472e0 00000000 ee50bd4c ee50bd28
    [   15.774142] bd20: c05453f4 c05472ec ef003e8c ef13e930 ee48c234 bf168054 ee48c200 c0d2fa98
    [   15.782353] bd40: ee50bd5c ee50bd50 c0546bac c05453ac ee50bd84 ee50bd60 c05466c0 c0546b94
    [   15.790564] bd60: bf166ee4 ee50bd70 bf168054 00000000 bf16d000 ee74fac0 ee50bd9c ee50bd88
    [   15.798775] bd80: c0547d54 c054653c c0d2fa98 00000000 ee50bdb4 ee50bda0 c0548ca0 c0547ce0
    [   15.806986] bda0: ffffe000 00000000 ee50bdc4 ee50bdb8 bf16d01c c0548c64 ee50be34 ee50bdc8
    [   15.815197] bdc0: c01019e4 bf16d00c ee6d7180 ef001d80 ffffe000 efd7f970 ee67ca00 ef001e40
    [   15.823408] bde0: ffffe000 0000fad8 00000000 ee74fa24 ee50be2c ee50be00 c0212228 c0211e70
    [   15.831619] be00: 00000001 f0e3a000 00000001 00000015 bf168180 bf168180 00000001 ee74fa00
    [   15.839830] be20: ee74fac0 00000001 ee50be5c ee50be38 c019da44 c01019a4 ee74fa00 bf168180
    [   15.848041] be40: ee50bf40 00000001 ee74fa00 bf168180 ee50bf1c ee50be60 c019c854 c019d9e8
    [   15.856252] be60: bf16818c 00007fff bf168180 c0199bc8 00000000 c0a9e360 c0a9e338 c0a9e488
    [   15.864463] be80: bf168294 c0b26e50 bf1682b0 c0904070 bf168280 bf1679b0 bf1681c8 bf168180
    [   15.872674] bea0: ee43d900 ee50bf34 ee50beec ee50beb8 c022ad28 00000000 00000000 00000000
    [   15.880884] bec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   15.889095] bee0: 00000000 00000000 00000000 00000000 7fffffff 00000000 00000011 b6f1f0c4
    [   15.897306] bf00: 0000017b c0107f64 ee50a000 00000000 ee50bfa4 ee50bf20 c019d098 c019aa90
    [   15.905517] bf20: 7fffffff 00000000 00000003 00000000 00000000 f0e3a000 00014c04 00000000
    [   15.913728] bf40: f0e44459 f0e3a000 00014c04 f0e4e81c f0e4e73c f0e4a194 0000d000 0000e9e0
    [   15.921938] bf60: 00000000 00000000 00000000 000052e0 00000016 00000017 00000011 0000000e
    [   15.930149] bf80: 0000000a 00000000 00000000 00000000 00000001 00000000 00000000 ee50bfa8
    [   15.938360] bfa0: c0107d80 c019d000 00000000 00000001 00000011 b6f1f0c4 00000000 00494818
    [   15.946571] bfc0: 00000000 00000001 00000000 0000017b 00000000 00462dec 00000000 00482690
    [   15.954782] bfe0: bed5e950 bed5e940 b6f17c58 b6e51a82 60010030 00000011 f37fef3f 206eeff5
    [   15.962988] Backtrace:
    [   15.965492] [<bf15c1a8>] (emac_ndo_set_features [ti_prueth]) from [<c070d3dc>] (__netdev_update_features+0x2f8/0x790)
    [   15.976146]  r7:ee77a864 r6:00000000 r5:00000000 r4:00004000
    [   15.981833] [<c070d0e4>] (__netdev_update_features) from [<c070deb4>] (register_netdevice+0x390/0x4e8)
    [   15.991179]  r10:00000000 r9:ef6f8e40 r8:00000000 r7:ef6f8c30 r6:00000000 r5:00000001
    [   15.999039]  r4:ee77a800
    [   16.001584] [<c070db24>] (register_netdevice) from [<c070e028>] (register_netdev+0x1c/0x2c)
    [   16.009968]  r6:ee4879d0 r5:00000001 r4:ee77a800
    [   16.014626] [<c070e00c>] (register_netdev) from [<bf15e868>] (prueth_probe+0x5bc/0x728 [ti_prueth])
    [   16.023707]  r5:00000001 r4:ee692c10
    [   16.027322] [<bf15e2ac>] (prueth_probe [ti_prueth]) from [<c0548d48>] (platform_drv_probe+0x58/0xb4)
    [   16.036494]  r10:00000000 r9:00000022 r8:bf168054 r7:fffffdfb r6:bf168054 r5:ffffffed
    [   16.044354]  r4:ef149010
    [   16.046900] [<c0548cf0>] (platform_drv_probe) from [<c0547230>] (driver_probe_device+0x240/0x2f0)
    [   16.055807]  r7:00000000 r6:c0d8c2f0 r5:c0d8c2ec r4:ef149010
    [   16.061491] [<c0546ff0>] (driver_probe_device) from [<c054738c>] (__driver_attach+0xac/0xb0)
    [   16.069964]  r10:ee74fa24 r9:00000000 r8:00000001 r7:00000000 r6:ef149044 r5:bf168054
    [   16.077824]  r4:ef149010 r3:00000000
    [   16.081414] [<c05472e0>] (__driver_attach) from [<c05453f4>] (bus_for_each_dev+0x54/0xa4)
    [   16.089624]  r7:00000000 r6:c05472e0 r5:bf168054 r4:00000000
    [   16.095306] [<c05453a0>] (bus_for_each_dev) from [<c0546bac>] (driver_attach+0x24/0x28)
    [   16.103342]  r6:c0d2fa98 r5:ee48c200 r4:bf168054
    [   16.107978] [<c0546b88>] (driver_attach) from [<c05466c0>] (bus_add_driver+0x190/0x214)
    [   16.116017] [<c0546530>] (bus_add_driver) from [<c0547d54>] (driver_register+0x80/0xfc)
    [   16.124052]  r7:ee74fac0 r6:bf16d000 r5:00000000 r4:bf168054
    [   16.129735] [<c0547cd4>] (driver_register) from [<c0548ca0>] (__platform_driver_register+0x48/0x50)
    [   16.138815]  r5:00000000 r4:c0d2fa98
    [   16.142424] [<c0548c58>] (__platform_driver_register) from [<bf16d01c>] (prueth_driver_init+0x1c/0x1000 [ti_prueth])
    [   16.152988]  r5:00000000 r4:ffffe000
    [   16.156597] [<bf16d000>] (prueth_driver_init [ti_prueth]) from [<c01019e4>] (do_one_initcall+0x4c/0x170)
    [   16.166127] [<c0101998>] (do_one_initcall) from [<c019da44>] (do_init_module+0x68/0x1f4)
    [   16.174250]  r8:00000001 r7:ee74fac0 r6:ee74fa00 r5:00000001 r4:bf168180
    [   16.180981] [<c019d9dc>] (do_init_module) from [<c019c854>] (load_module+0x1dd0/0x2400)
    [   16.189017]  r7:bf168180 r6:ee74fa00 r5:00000001 r4:ee50bf40
    [   16.194701] [<c019aa84>] (load_module) from [<c019d098>] (SyS_finit_module+0xa4/0xbc)
    [   16.202563]  r10:00000000 r9:ee50a000 r8:c0107f64 r7:0000017b r6:b6f1f0c4 r5:00000011
    [   16.210422]  r4:00000000
    [   16.212972] [<c019cff4>] (SyS_finit_module) from [<c0107d80>] (ret_fast_syscall+0x0/0x54)
    [   16.221182]  r6:00000000 r5:00000001 r4:00000000
    [   16.225819] Code: e3520001 03a0206c 13a02068 e792200e (e5922004)
    [   19.371111] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   19.582003] usbcore: registered new interface driver usbfs

    log-and-device-tree-20190222.rar

  • Checking on my end, will reply soon.
    --Nick
  • Hello Nanfeng,

    I have confirmed that single EMAC is broken on Linux SDK 5.0 and Linux SDK 5.2. It should also be broken on SDK 5.1. This is marked as a priority item, and I am getting a timeline for the fix now.

    I would like to apologize for sending you on a wild goose chase. Our team is working to figure out how this bug got through our tests and how we can improve the process going forward.

    Regards,
    Nick
  • Hello Nick,

    Thank you very much. Please take time to help me solve this problem as soon as possible.We are in a rather urgent time for the project here.

  • Hello Nanfeng,

    Got it. I will add updates as I get them.

    Regards,
    Nick
  • I don't have time to run tests today. My hypothesis is that single EMAC prueth should be working in ti-linux-kernel, but it gets broken by HSR/PRP additions to prueth that were added in processor-sdk-linux (which is the superset version of linux that TI uses for Processor Linux SDK).

    Note to future readers: ti-linux-kernel is NOT supported on the e2e forums, because it is only a subset of the kernel that we release and support in Processor Linux SDK.

    If you wanted to test ti-linux-kernel,

    git clone git.ti.com/ti-linux-kernel/ti-linux-kernel.git
    git checkout origin/ti-linux-4.14.y
    git checkout 119a713d3e67 // this is 2018.05 which was used for Linux SDK 5.2
    // the commit 89fd6df05a58 is 2018.01 which was used for Linux SDK 5.0

    and then you can build linux, the device tree, and the linux modules there. I think you should be able to take the filesystem from the SDK download, but you do not want to mix kernel modules and kernel from different builds. You would need to take tisdk_am437x-evm_defconfig from the SDK download (arch/arm/configs/), and you may or may not need to make changes to get it working with the ti-linux-kernel.

    Regards,
    Nick
  • Hello Nick,

    Now we have added a network chip w5100s to replace prueth. w5100s is connected to SPI2 pin of ARM 4377. We use SPI mode to control w5100s. I configure the kernel as follows:

    1、Open wiznet related configuration in kernel configuration

    2、Open CONFIG_SPI_SPIDEV configuration in kernel configuration

    3、modify /drivers/spi/spidev.c to add .compatible= "w5100" matches in spidev_dt_ids[ ]

    4、recompiling tisdk_am437x-evm-rt_deconfig, kernel zImage and modules will generate new zImage, w5100.ko and w5100-spi.ko, burn new zImage to NAND flash, and put w5100.ko and w5100-spi.ko into file system /lib/modules/4.14.79-rt47-g28d73230da/kernel/drivers/net/ethernet/wiznet/

    5、modifying device tree file to increase spi2-related configuration

    6、restart system found that lsmod did not load w5100.ko and w5100-spi.ko,appearance of device node /dev/spidev2.0,after the system started, I manually loaded w5100.ko and w5100-spi.ko and did not execute the pr_err function I added to the probe function, indicating that the probe function was not called.

    root@am437x-evm:~# lsmod
    Module                  Size  Used by
    xhci_plat_hcd          16384  0
    xhci_hcd              118784  1 xhci_plat_hcd
    usbcore               204800  2 xhci_plat_hcd,xhci_hcd
    dwc3                   69632  0
    udc_core               28672  1 dwc3
    usb_common             16384  3 udc_core,usbcore,dwc3
    ti_am335x_adc          16384  0
    ti_prueth              73728  1
    pru_rproc              20480  1 ti_prueth
    pruss                  16384  2 pru_rproc,ti_prueth
    pruss_intc             16384  1 pru_rproc
    pm33xx                 16384  0
    omap_des               20480  0
    omap_aes_driver        24576  0
    des_generic            28672  1 omap_des
    omap_sham              28672  0
    crypto_engine          16384  2 omap_des,omap_aes_driver
    omap_crypto            16384  2 omap_des,omap_aes_driver
    pruss_soc_bus          16384  0
    ti_emif_sram           16384  1 pm33xx
    dwc3_omap              16384  0
    am437x_vpfe            36864  0
    c_can_platform         16384  0
    c_can                  20480  1 c_can_platform
    can_dev                24576  1 c_can
    pixcir_i2c_ts          16384  0
    snd_soc_tlv320aic3x    57344  0
    ov2659                 16384  0
    wkup_m3_ipc            16384  1 pm33xx
    v4l2_fwnode            16384  2 am437x_vpfe,ov2659
    phy_omap_usb2          16384  2
    wkup_m3_rproc          16384  1
    ti_am335x_tscadc       16384  1 ti_am335x_adc
    remoteproc             40960  4 pru_rproc,wkup_m3_rproc,wkup_m3_ipc,ti_prueth
    omap_wdt               16384  0
    sch_fq_codel           20480  2
    cryptodev              45056  0
    root@am437x-evm:~#

    root@am437x-evm:~# ls  /dev                                        
    autofs              ptye5               ptyx2               ttyS6               ttys9
    block               ptye6               ptyx3               ttyS7               ttysa
    btrfs-control       ptye7               ptyx4               ttyS8               ttysb
    bus                 ptye8               ptyx5               ttyS9               ttysc
    char                ptye9               ptyx6               ttya0               ttysd
    console             ptyea               ptyx7               ttya1               ttyse
    cpu_dma_latency     ptyeb               ptyx8               ttya2               ttysf
    crypto              ptyec               ptyx9               ttya3               ttyt0
    fd                  ptyed               ptyxa               ttya4               ttyt1
    full                ptyee               ptyxb               ttya5               ttyt2
    gpiochip0           ptyef               ptyxc               ttya6               ttyt3
    gpiochip1           ptyp0               ptyxd               ttya7               ttyt4
    gpiochip2           ptyp1               ptyxe               ttya8               ttyt5
    gpiochip3           ptyp2               ptyxf               ttya9               ttyt6
    gpiochip4           ptyp3               ptyy0               ttyaa               ttyt7
    gpiochip5           ptyp4               ptyy1               ttyab               ttyt8
    hwrng               ptyp5               ptyy2               ttyac               ttyt9
    i2c-0               ptyp6               ptyy3               ttyad               ttyta
    i2c-1               ptyp7               ptyy4               ttyae               ttytb
    iio:device0         ptyp8               ptyy5               ttyaf               ttytc
    initctl             ptyp9               ptyy6               ttyb0               ttytd
    kmsg                ptypa               ptyy7               ttyb1               ttyte
    log                 ptypb               ptyy8               ttyb2               ttytf
    loop-control        ptypc               ptyy9               ttyb3               ttyu0
    loop0               ptypd               ptyya               ttyb4               ttyu1
    loop1               ptype               ptyyb               ttyb5               ttyu2
    loop2               ptypf               ptyyc               ttyb6               ttyu3
    loop3               ptyq0               ptyyd               ttyb7               ttyu4
    loop4               ptyq1               ptyye               ttyb8               ttyu5
    loop5               ptyq2               ptyyf               ttyb9               ttyu6
    loop6               ptyq3               ptyz0               ttyba               ttyu7
    loop7               ptyq4               ptyz1               ttybb               ttyu8
    mem                 ptyq5               ptyz2               ttybc               ttyu9
    memory_bandwidth    ptyq6               ptyz3               ttybd               ttyua
    mqueue              ptyq7               ptyz4               ttybe               ttyub
    mtd0                ptyq8               ptyz5               ttybf               ttyuc
    mtd0ro              ptyq9               ptyz6               ttyc0               ttyud
    mtd1                ptyqa               ptyz7               ttyc1               ttyue
    mtd1ro              ptyqb               ptyz8               ttyc2               ttyuf
    mtd2                ptyqc               ptyz9               ttyc3               ttyv0
    mtd2ro              ptyqd               ptyza               ttyc4               ttyv1
    mtd3                ptyqe               ptyzb               ttyc5               ttyv2
    mtd3ro              ptyqf               ptyzc               ttyc6               ttyv3
    mtd4                ptyr0               ptyzd               ttyc7               ttyv4
    mtd4ro              ptyr1               ptyze               ttyc8               ttyv5
    mtd5                ptyr2               ptyzf               ttyc9               ttyv6
    mtd5ro              ptyr3               ram0                ttyca               ttyv7
    mtd6                ptyr4               ram1                ttycb               ttyv8
    mtd6ro              ptyr5               ram10               ttycc               ttyv9
    mtd7                ptyr6               ram11               ttycd               ttyva
    mtd7ro              ptyr7               ram12               ttyce               ttyvb
    mtd8                ptyr8               ram13               ttycf               ttyvc
    mtd8ro              ptyr9               ram14               ttyd0               ttyvd
    mtd9                ptyra               ram15               ttyd1               ttyve
    mtd9ro              ptyrb               ram2                ttyd2               ttyvf
    mtdblock0           ptyrc               ram3                ttyd3               ttyw0
    mtdblock1           ptyrd               ram4                ttyd4               ttyw1
    mtdblock2           ptyre               ram5                ttyd5               ttyw2
    mtdblock3           ptyrf               ram6                ttyd6               ttyw3
    mtdblock4           ptys0               ram7                ttyd7               ttyw4
    mtdblock5           ptys1               ram8                ttyd8               ttyw5
    mtdblock6           ptys2               ram9                ttyd9               ttyw6
    mtdblock7           ptys3               random              ttyda               ttyw7
    mtdblock8           ptys4               rfkill              ttydb               ttyw8
    mtdblock9           ptys5               shm                 ttydc               ttyw9
    network_latency     ptys6               snd                 ttydd               ttywa
    network_throughput  ptys7               spidev2.0           ttyde               ttywb
    null                ptys8               stderr              ttydf               ttywc
    port                ptys9               stdin               ttye0               ttywd
    ptmx                ptysa               stdout              ttye1               ttywe
    ptp0                ptysb               tty                 ttye2               ttywf
    pts                 ptysc               tty0                ttye3               ttyx0
    ptya0               ptysd               tty1                ttye4               ttyx1
    ptya1               ptyse               tty10               ttye5               ttyx2
    ptya2               ptysf               tty11               ttye6               ttyx3
    ptya3               ptyt0               tty12               ttye7               ttyx4
    ptya4               ptyt1               tty13               ttye8               ttyx5
    ptya5               ptyt2               tty14               ttye9               ttyx6
    ptya6               ptyt3               tty15               ttyea               ttyx7
    ptya7               ptyt4               tty16               ttyeb               ttyx8
    ptya8               ptyt5               tty17               ttyec               ttyx9
    ptya9               ptyt6               tty18               ttyed               ttyxa
    ptyaa               ptyt7               tty19               ttyee               ttyxb
    ptyab               ptyt8               tty2                ttyef               ttyxc
    ptyac               ptyt9               tty20               ttyp0               ttyxd
    ptyad               ptyta               tty21               ttyp1               ttyxe
    ptyae               ptytb               tty22               ttyp2               ttyxf
    ptyaf               ptytc               tty23               ttyp3               ttyy0
    ptyb0               ptytd               tty24               ttyp4               ttyy1
    ptyb1               ptyte               tty25               ttyp5               ttyy2
    ptyb2               ptytf               tty26               ttyp6               ttyy3
    ptyb3               ptyu0               tty27               ttyp7               ttyy4
    ptyb4               ptyu1               tty28               ttyp8               ttyy5
    ptyb5               ptyu2               tty29               ttyp9               ttyy6
    ptyb6               ptyu3               tty3                ttypa               ttyy7
    ptyb7               ptyu4               tty30               ttypb               ttyy8
    ptyb8               ptyu5               tty31               ttypc               ttyy9
    ptyb9               ptyu6               tty32               ttypd               ttyya
    ptyba               ptyu7               tty33               ttype               ttyyb
    ptybb               ptyu8               tty34               ttypf               ttyyc
    ptybc               ptyu9               tty35               ttyq0               ttyyd
    ptybd               ptyua               tty36               ttyq1               ttyye
    ptybe               ptyub               tty37               ttyq2               ttyyf
    ptybf               ptyuc               tty38               ttyq3               ttyz0
    ptyc0               ptyud               tty39               ttyq4               ttyz1
    ptyc1               ptyue               tty4                ttyq5               ttyz2
    ptyc2               ptyuf               tty40               ttyq6               ttyz3
    ptyc3               ptyv0               tty41               ttyq7               ttyz4
    ptyc4               ptyv1               tty42               ttyq8               ttyz5
    ptyc5               ptyv2               tty43               ttyq9               ttyz6
    ptyc6               ptyv3               tty44               ttyqa               ttyz7
    ptyc7               ptyv4               tty45               ttyqb               ttyz8
    ptyc8               ptyv5               tty46               ttyqc               ttyz9
    ptyc9               ptyv6               tty47               ttyqd               ttyza
    ptyca               ptyv7               tty48               ttyqe               ttyzb
    ptycb               ptyv8               tty49               ttyqf               ttyzc
    ptycc               ptyv9               tty5                ttyr0               ttyzd
    ptycd               ptyva               tty50               ttyr1               ttyze
    ptyce               ptyvb               tty51               ttyr2               ttyzf
    ptycf               ptyvc               tty52               ttyr3               ubi0
    ptyd0               ptyvd               tty53               ttyr4               ubi0_0
    ptyd1               ptyve               tty54               ttyr5               ubi_ctrl
    ptyd2               ptyvf               tty55               ttyr6               udev_network_queue
    ptyd3               ptyw0               tty56               ttyr7               urandom
    ptyd4               ptyw1               tty57               ttyr8               vcs
    ptyd5               ptyw2               tty58               ttyr9               vcs1
    ptyd6               ptyw3               tty59               ttyra               vcs2
    ptyd7               ptyw4               tty6                ttyrb               vcs3
    ptyd8               ptyw5               tty60               ttyrc               vcs4
    ptyd9               ptyw6               tty61               ttyrd               vcs5
    ptyda               ptyw7               tty62               ttyre               vcs6
    ptydb               ptyw8               tty63               ttyrf               vcsa
    ptydc               ptyw9               tty7                ttys0               vcsa1
    ptydd               ptywa               tty8                ttys1               vcsa2
    ptyde               ptywb               tty9                ttys2               vcsa3
    ptydf               ptywc               ttyS0               ttys3               vcsa4
    ptye0               ptywd               ttyS1               ttys4               vcsa5
    ptye1               ptywe               ttyS2               ttys5               vcsa6
    ptye2               ptywf               ttyS3               ttys6               watchdog
    ptye3               ptyx0               ttyS4               ttys7               watchdog0
    ptye4               ptyx1               ttyS5               ttys8               zero


    root@am437x-evm:~# cd /lib/modules/4.14.79-rt47-g28d73230da/kernel/drivers/net/ethernet/wiznet/
    root@am437x-evm:/lib/modules/4.14.79-rt47-g28d73230da/kernel/drivers/net/ethernet/wiznet# ls -al
    total 36
    drwxrwxr-x    2 1000     1000           304 Feb 28  2019 .
    drwxrwxrwx    7 root     root           488 Feb 28  2019 ..
    -rwxrw-rw-    1 1000     1000          9708 Feb 28  2019 w5100-spi.ko
    -rwxrw-rw-    1 1000     1000         20552 Feb 28  2019 w5100.ko

    Nick,I don't know why the kernel start didn't load w5100.ko and w5100-spi.ko. Is there any lack of steps here? Would you please help me to see the problem? Thank you very much!

    the complete log and device tree files are attached.

    log-20190228.rar

  • Hello Nanfeng,

    I wish I could help you out. You need to contact WIZnet for assistance in using their part in a Linux environment.

    It looks like the plan is to have single EMAC PRUETH fixed in Linux SDK 5.3, which should come out end of March / early April. I will update if the timeline updates. If needed, I can push to see if I can get an unofficial patch earlier.

    Regards,
    Nick
  • Hello Nick,

    Thank you very much for your help. As our project is short of time, please help us to provide a patch as soon as possible.

  • Hello Nanfeng,

    Got it. I am working on getting that patch and then testing it.

    Regards,
    Nick
  • Hello Nick,

    Ok,Thank you very much for your help. I will wait for your reply.

  • No updates on an official patch set yet. I have confirmed that my instructions on February 25 can be used to create a booting version of single EMAC without investing much time in getting it up and running.

    Regards,

    Nick

  • Hello Nick,

    1)because we need to run the EtherCat Master, so we need a RT Linux kernel,ti-linux-4.14.y can I still use it? As shown in the picture below, I only found linux-4.1.y-rt on the website,but not linux-4.14.y-rt.

    2)As you said, I can't find the contents in the following picture boxes.

     I can only find what is shown in the following picture.

    As shown in the first picture below, when I click download on the right side of the page, I can't download it. The second picture report error appears as follows.

  • Hello Nanfeng,

    I have observed some problems with clicking the "Download" button on the git repo. I would suggest using git commands in your linux computer's terminal instead of clicking the download button. The git commands I used are below.

    PRUETH is the same for Linux and RT Linux, so I would expect PRUETH to work the same in RT Linux.

    Here are modified Linux PC terminal commands to get the ti-linux-kernel RT Linux:

    git clone git.ti.com/ti-linux-kernel/ti-linux-kernel.git

    git checkout origin/ti-rt-linux-4.14.y

    git checkout aab33cfa0d3a

    // this commit is 2018.05 which was used for Linux SDK 5.2

    Otherwise, the February 25 instructions should be the same.

    Regards,

    Nick

  • Hello Nick,

    I don't quite understand what you mean. If I use ti-linux-kernel, can I use the file system in SDK 5.2 provided by the official website? I just need to replace the driver-related ko files in the lib/modules folder. Can I also use the device tree I compiled in SDK 5.2 directly? If not, please help me compile the device tree files attached. If so, please send me the compiled ti-linux-kernel file, prueth-related driver ko file and device tree file. I will verify it on my board with what you have verified.

    device-tree-4.14.79.rar

  • Hello Nanfeng,

    1) Yes, you would use the filesystem from the RT Linux SDK 5.2 release with the kernel and kernel modules built in ti-linux-kernel.

    2) I would not expect to see issues if you used your dtb from RT Linux SDK 5.2 with the same linux version in ti-linux-kernel, but I cannot promise that it would work. If you wanted to rebuild your dtb, copy it into ti-linux-kernel and build it there

    3) See the Kernel User's Guide for instructions on compiling the kernel, compiling the dtb, compiling the kernel modules, and then installing the kernel, dtb, and kernel modules. Remember that you will need to copy the kernel config file from the SDK to ti-linux-kernel.

    Regards,

    Nick

  • Hello Nick,

    1)I entered the command git clone git.ti.com/ti-linux-kernel/ti-linux-kernel.git at the Linux terminal to get the kernel, but reported an error fatal: repository 'git clone git.ti.com/ti-linux-kernel/ti-linux-kernel.git' does not exist.

     when I entered the command git clone git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git  to report the error of the following picture at the end.

    2)the following errors occurred when entering commands  git checkout origin/ti-rt-linux-4.14.y and git checkout aab33cfa0d3a.

    3)how is the official patch going now?

  • Hello Nanfeng,

    1) seems like it could be a proxy issue. We will not worry about it for now.

    2) You should be able to download ti-linux-kernel from this cgit page:

    That link is provided for future readers, since you should be able to apply the patch to the prueth.c file in your RT Linux SDK 5.2.

    3) I have a beta version of the patch that will be applied in future releases. The patch is attached, as well as a dts file used to validate it. I have not had time to test it myself, but let me know if you run into any issues.

    am437x-idk-evm_ONLY-PORT2-ENABLED.dts

    net-ethernet-prueth-Fix-single-EMAC-use-case.patch

    Regards,

    Nick