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/AM3359: MII1_REFCLK CAN BE USED AS GPIO

Part Number: AM3359

Tool/software: Linux

Hi Team,

can  MII1_REFCLK can be used as GPIO in RGMII mode?

i am able to see 50 MHz clock on this pin, if iam trying to use MII1_REFCLK as GPIO my Ethernet PING is failing

please let me know how to use MII1_REFCLK as GPIO in RGMII mode 

Regards,

Sandeep.M

  

  • Hi,

    Seeing 50MHz on this pin in RGMII mode means you have something wrong in the Ethernet configuration. RMII1_REFCLK is used only as input in RMII mode. Please complete this checklist and post the results here: processors.wiki.ti.com/.../5x_CPSW
  • Hi Biser,

             These are the checklist results:

             1)  Kernel version :Linux am335x-evm 4.14.67-gd315a9bb00 #11 PREEMPT Sat Feb 2 17:32:16 IST 2019 armv7l GNU/Linux

             2)Filesystem:arago-base-tisdk-image-am335x-evm.ubi

             3)Custom board based on am3359 icev2,dts

    /*
     * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License version 2 as
     * published by the Free Software Foundation.
     */
    
    /*
     * AM335x ICE V2 board
     * http://www.ti.com/tool/tmdsice3359
     */
    
    /dts-v1/;
    
    #include "am33xx.dtsi"
    #include <dt-bindings/interrupt-controller/irq.h>
    #include <dt-bindings/net/ti-dp83867.h>
    
    / {
    	model = "TI AM3359 ICE-V2";
    	compatible = "ti,am3359-icev2", "ti,am33xx";
    
    	memory@80000000 {
    		device_type = "memory";
    		reg = <0x80000000 0x10000000>; /* 256 MB */
    	};
    
    	chosen {
    		stdout-path = &uart0;
    	};
    
    	vbat: fixedregulator0 {
    		compatible = "regulator-fixed";
    		regulator-name = "vbat";
    		regulator-min-microvolt = <5000000>;
    		regulator-max-microvolt = <5000000>;
    		regulator-boot-on;
    	};
    
    	vtt_fixed: fixedregulator1 {
    		compatible = "regulator-fixed";
    		regulator-name = "vtt";
    		regulator-min-microvolt = <1500000>;
    		regulator-max-microvolt = <1500000>;
    		gpio = <&gpio0 18 GPIO_ACTIVE_HIGH>;
    		regulator-always-on;
    		regulator-boot-on;
    		enable-active-high;
    	};
    
    	leds-iio {
    		status = "disabled";
    		compatible = "gpio-leds";
    		led-out0 {
    			label = "out0";
    			gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>;
    			default-state = "off";
    		};
    
    		led-out1 {
    			label = "out1";
    			gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>;
    			default-state = "off";
    		};
    
    		led-out2 {
    			label = "out2";
    			gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>;
    			default-state = "off";
    		};
    
    		led-out3 {
    			label = "out3";
    			gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>;
    			default-state = "off";
    		};
    
    		led-out4 {
    			label = "out4";
    			gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>;
    			default-state = "off";
    		};
    
    		led-out5 {
    			label = "out5";
    			gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>;
    			default-state = "off";
    		};
    
    		led-out6 {
    			label = "out6";
    			gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>;
    			default-state = "off";
    		};
    
    		led-out7 {
    			label = "out7";
    			gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
    			default-state = "off";
    		};
    	};
    
    	
    	gpio-decoder {
    		compatible = "gpio-decoder";
    		gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
    			<&pca9536 2 GPIO_ACTIVE_HIGH>,
    			<&pca9536 1 GPIO_ACTIVE_HIGH>,
    			<&pca9536 0 GPIO_ACTIVE_HIGH>;
    		linux,axis = <0>; /* ABS_X */
    		decoder-max-value = <9>;
    	};
    
    	
    };
    
    &am33xx_pinmux {
    
    		
    
    	i2c0_pins_default: i2c0_pins_default {
    		pinctrl-single,pins = <
    			AM33XX_IOPAD(0x988, PIN_INPUT | MUX_MODE0) /* (C17) I2C0_SDA.I2C0_SDA */
    			AM33XX_IOPAD(0x98c, PIN_INPUT | MUX_MODE0) /* (C16) I2C0_SCL.I2C0_SCL */
    		>;
    	};
    
    	/*gpio0_pins_default: gpio0_pins_default {
    		pinctrl-single,pins = <
    			AM33XX_IOPAD(0x944, PIN_INPUT | MUX_MODE0) /* (H18) rmii1_refclk.gpio0[29] 
    		>;
    	};*/
    
    	spi0_pins_default: spi0_pins_default {
    		pinctrl-single,pins = <
    			AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* (A17) spi0_sclk.spi0_sclk */
    			AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* (B17) spi0_d0.spi0_d0 */
    			AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* (B16) spi0_d1.spi0_d1 */
    			AM33XX_IOPAD(0x95c, PIN_INPUT_PULLUP | MUX_MODE0) /* (A16) spi0_cs0.spi0_cs0 */
    			AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE0) /* (C15) spi0_cs1.spi0_cs1 */
    			AM33XX_IOPAD(0x9a0, PIN_INPUT_PULLUP | MUX_MODE7) /* (B12) mcasp0_aclkr.gpio3[18] */
    		>;
    	};
    
    	uart0_pins_default: uart0_pins_default {
    		pinctrl-single,pins = <
    			AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* (E15) uart0_rxd.uart0_rxd */
    			AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLUP | MUX_MODE0) /* (E16) uart0_txd.uart0_txd */
    		>;
    	};
    
    	uart4_pins_default: uart4_pins_default {
    	pinctrl-single,pins = <
    		AM33XX_IOPAD(0x968, PIN_INPUT | MUX_MODE1) /* (E18) uart0_ctsn.uart4_rxd */
    		AM33XX_IOPAD(0x96c, PIN_OUTPUT | MUX_MODE1) /* (E17) uart0_rtsn.uart4_txd */
    	>;
    	};
    
    
    
    	uart1_pins_default: uart1_pins_default {
    	pinctrl-single,pins = <
    		AM33XX_IOPAD(0x980, PIN_INPUT | MUX_MODE0) /* (D16) uart1_rxd.uart1_rxd */
    		AM33XX_IOPAD(0x984, PIN_OUTPUT | MUX_MODE0) /* (D15) uart1_txd.uart1_txd */
    	>;
    	};
    
    	
    
    	uart2_pins_default: uart2_pins_default {
    	pinctrl-single,pins = <
    		AM33XX_IOPAD(0x900, PIN_INPUT | MUX_MODE3) /* (G17) mmc0_clk.uart2_rxd */
    		AM33XX_IOPAD(0x904, PIN_OUTPUT | MUX_MODE3) /* (G18) mmc0_cmd.uart2_txd */
    	>;
    	};
    
    
    	cpsw_default: cpsw_default {
    		pinctrl-single,pins = <
    				/* Slave 1 */
    		AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txen.rgmii1_tctl */
    		AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxdv.rgmii1_rctl */
    		AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd3.rgmii1_td3 */
    		AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd2.rgmii1_td2 */
    		AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_td1 */
    		AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txd0.rgmii1_td0 */		       
    
                    AM33XX_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txclk.rgmii1_tclk */
    		AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxclk.rgmii1_rclk */
    		AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd3.rgmii1_rd3 */
    		AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd2.rgmii1_rd2 */
    		AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rd1 */
    		AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rd0 */
    		AM33XX_IOPAD(0xA34, PIN_OUTPUT_PULLUP | MUX_MODE7) /* (F15) USB1_DRVVBUS.gpio3[13] */
    	>;
    	};
    
    	cpsw_sleep: cpsw_sleep {
    		pinctrl-single,pins = <
    		AM33XX_IOPAD(0x914, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (J16) gmii1_txen.rgmii1_tctl */
    		AM33XX_IOPAD(0x918, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (J17) gmii1_rxdv.rgmii1_rctl */
    		AM33XX_IOPAD(0x92c, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (K18) gmii1_txclk.rgmii1_tclk */
    		AM33XX_IOPAD(0x930, (PIN_INPUT_PULLDOWN | MUX_MODE7)) /* (L18) gmii1_rxclk.rgmii1_rclk */
    		AM33XX_IOPAD(0x928, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (K17) gmii1_txd0.rgmii1_td0 */
    		AM33XX_IOPAD(0x924, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (K16) gmii1_txd1.rgmii1_td1 */
    		AM33XX_IOPAD(0x920, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (K15) gmii1_txd2.rgmii1_td2 */
    		AM33XX_IOPAD(0x91c, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (J18) gmii1_txd3.rgmii1_td3 */
    		AM33XX_IOPAD(0x940, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (M16) gmii1_rxd0.rgmii1_rd0 */
    		AM33XX_IOPAD(0x93c, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (L15) gmii1_rxd1.rgmii1_rd1 */
    		AM33XX_IOPAD(0x938, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (L16) gmii1_rxd2.rgmii1_rd2 */
    		AM33XX_IOPAD(0x934, (PIN_INPUT_PULLDOWN | MUX_MODE7) ) /* (L17) gmii1_rxd3.rgmii1_rd3 */
    		AM33XX_IOPAD(0xA34, PIN_OUTPUT_PULLDOWN | MUX_MODE7)	
    
    		>;
    	};
    
    	davinci_mdio_default: davinci_mdio_default {
    		pinctrl-single,pins = <
    			/* MDIO */
    			AM33XX_IOPAD(0x948, (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0))	/* mdio_data.mdio_data */
    			AM33XX_IOPAD(0x94c, (PIN_OUTPUT_PULLUP | MUX_MODE0))			/* mdio_clk.mdio_clk */
    	
    		>;
    	};
    
    	davinci_mdio_sleep: davinci_mdio_sleep {
    		pinctrl-single,pins = <
    			/* MDIO reset value */
    			AM33XX_IOPAD(0x948, (PIN_INPUT_PULLDOWN | MUX_MODE7))
    			AM33XX_IOPAD(0x94c, (PIN_INPUT_PULLDOWN | MUX_MODE7))
    		>;
    	};
            
    	nandflash_pins_s0: nandflash_pins_s0 {
                    pinctrl-single,pins = <
                            AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE0)       /* gpmc_ad0.gpmc_ad0 */
                            AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE0)       /* gpmc_ad1.gpmc_ad1 */
                            AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE0)       /* gpmc_ad2.gpmc_ad2 */
                            AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE0)       /* gpmc_ad3.gpmc_ad3 */
                            AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE0)       /* gpmc_ad4.gpmc_ad4 */
                            AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE0)       /* gpmc_ad5.gpmc_ad5 */
                            AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE0)       /* gpmc_ad6.gpmc_ad6 */
                            AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE0)       /* gpmc_ad7.gpmc_ad7 */
    			AM33XX_IOPAD(0x820, PIN_INPUT_PULLUP | MUX_MODE0)	/*gpmc_ad8.gpmc.ad8*/
    			AM33XX_IOPAD(0x824, PIN_INPUT_PULLUP | MUX_MODE0)	/*gpmc_ad9.gpmc.ad9*/
    			AM33XX_IOPAD(0x828, PIN_INPUT_PULLUP | MUX_MODE0)	/*gpmc_ad10.gpmc.ad10*/
    			AM33XX_IOPAD(0x82C, PIN_INPUT_PULLUP | MUX_MODE0)	/*gpmc_ad11.gpmc.ad11*/
    			AM33XX_IOPAD(0x830, PIN_INPUT_PULLUP | MUX_MODE0)	/*gpmc_ad12.gpmc.ad12*/
    			AM33XX_IOPAD(0x834, PIN_INPUT_PULLUP | MUX_MODE0)	/*gpmc_ad13.gpmc.ad13*/
    			AM33XX_IOPAD(0x838, PIN_INPUT_PULLUP | MUX_MODE0)	/*gpmc_ad14.gpmc.ad14*/
    			AM33XX_IOPAD(0x83C, PIN_INPUT_PULLUP | MUX_MODE0)	/*gpmc_ad15.gpmc.ad15*/
    	
    			AM33XX_IOPAD(0x878, PIN_OUTPUT_PULLUP | MUX_MODE0)	/*gpmc_ben1*/
    			AM33XX_IOPAD(0x884, PIN_OUTPUT_PULLUP | MUX_MODE0)	/*gpmc_csn2*/
    			AM33XX_IOPAD(0x888, PIN_OUTPUT_PULLUP | MUX_MODE0) 	/* (T13) gpmc_csn3.gpmc_csn3 */
    			AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP  | MUX_MODE0)	/*gpmc_csn1.gpmc_csn1*/
    			AM33XX_IOPAD(0x88C, PIN_INPUT | MUX_MODE0)		/*gpmc_clk.gpmc_clk*/
    
                            AM33XX_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0)      /* gpmc_wait0.gpmc_wait0 */
                            AM33XX_IOPAD(0x874, PIN_INPUT_PULLUP | MUX_MODE0)      /* gpmc_wpn.gpio0_30 */
                            AM33XX_IOPAD(0x87c, PIN_OUTPUT_PULLUP | MUX_MODE0)     /* gpmc_csn0.gpmc_csn0  */
                            AM33XX_IOPAD(0x890, PIN_OUTPUT_PULLUP | MUX_MODE0)     /* gpmc_advn_ale.gpmc_advn_ale */
                            AM33XX_IOPAD(0x894, PIN_OUTPUT_PULLUP | MUX_MODE0)     /* gpmc_oen_ren.gpmc_oen_ren */
                            AM33XX_IOPAD(0x898, PIN_OUTPUT_PULLUP | MUX_MODE0)     /* gpmc_wen.gpmc_wen */
                            AM33XX_IOPAD(0x89c, PIN_OUTPUT_PULLUP | MUX_MODE0)     /* gpmc_be0n_cle.gpmc_be0n_cle */
    
                    >;
            };
    
    
    };
    
    
    
    &i2c0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&i2c0_pins_default>;
    
    	status = "okay";
    	clock-frequency = <400000>;
    
    	tps: power-controller@2d {
    		reg = <0x2d>;
    	};
    
    	tpic2810: gpio@60 {
    		compatible = "ti,tpic2810";
    		reg = <0x60>;
    		gpio-controller;
    		#gpio-cells = <2>;
    	};
    
    	pca9536: gpio@41 {
    		compatible = "ti,pca9536";
    		reg = <0x41>;
    		gpio-controller;
    		#gpio-cells = <2>;
    	};
    };
    
    &spi0 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&spi0_pins_default>;
    
    	sn65hvs882@1 {
    		compatible = "pisosr-gpio";
    		gpio-controller;
    		#gpio-cells = <2>;
    
    		load-gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
    
    		reg = <1>;
    		spi-max-frequency = <1000000>;
    		spi-cpol;
    	};
    
    	spi_nor: flash@0 {
    		#address-cells = <1>;
    		#size-cells = <1>;
    		compatible = "winbond,w25q64", "jedec,spi-nor";
    		spi-max-frequency = <80000000>;
    		m25p,fast-read;
    		reg = <0>;
    
    		partition@0 {
    			label = "u-boot-spl";
    			reg = <0x0 0x80000>;
    			read-only;
    		};
    
    		partition@1 {
    			label = "u-boot";
    			reg = <0x80000 0x100000>;
    			read-only;
    		};
    
    		partition@2 {
    			label = "u-boot-env";
    			reg = <0x180000 0x20000>;
    			read-only;
    		};
    
    		partition@3 {
    			label = "misc";
    			reg = <0x1A0000 0x660000>;
    		};
    	};
    
    };
    
    &tscadc {
    	status = "okay";
    	adc {
    		ti,adc-channels = <1 2 3 4 5 6 7>;
    	};
    };
    
    #include "tps65910.dtsi"
    
    &tps {
    	vcc1-supply = <&vbat>;
    	vcc2-supply = <&vbat>;
    	vcc3-supply = <&vbat>;
    	vcc4-supply = <&vbat>;
    	vcc5-supply = <&vbat>;
    	vcc6-supply = <&vbat>;
    	vcc7-supply = <&vbat>;
    	vccio-supply = <&vbat>;
    
    	regulators {
    		vrtc_reg: regulator@0 {
    			regulator-always-on;
    		};
    
    		vio_reg: regulator@1 {
    			regulator-always-on;
    		};
    
    		vdd1_reg: regulator@2 {
    			regulator-name = "vdd_mpu";
    			regulator-min-microvolt = <912500>;
    			regulator-max-microvolt = <1326000>;
    			regulator-boot-on;
    			regulator-always-on;
    		};
    
    		vdd2_reg: regulator@3 {
    			regulator-name = "vdd_core";
    			regulator-min-microvolt = <912500>;
    			regulator-max-microvolt = <1144000>;
    			regulator-boot-on;
    			regulator-always-on;
    		};
    
    		vdd3_reg: regulator@4 {
    			regulator-always-on;
    		};
    
    		vdig1_reg: regulator@5 {
    			regulator-always-on;
    		};
    
    		vdig2_reg: regulator@6 {
    			regulator-always-on;
    		};
    
    		vpll_reg: regulator@7 {
    			regulator-always-on;
    		};
    
    		vdac_reg: regulator@8 {
    			regulator-always-on;
    		};
    
    		vaux1_reg: regulator@9 {
    			regulator-always-on;
    		};
    
    		vaux2_reg: regulator@10 {
    			regulator-always-on;
    		};
    
    		vaux33_reg: regulator@11 {
    			regulator-always-on;
    		};
    
    		vmmc_reg: regulator@12 {
    			regulator-min-microvolt = <1800000>;
    			regulator-max-microvolt = <3300000>;
    			regulator-always-on;
    		};
    	};
    };
    
    
    &gpio0 {
    	/* Do not idle the GPIO used for holding the VTT regulator */
    	ti,no-reset-on-init;
    	ti,no-idle-on-init;
    	/*pinctrl-names = "default";
    	pinctrl-0 = <&gpio0_pins_default>;*/
    	p7 {
    		gpio-hog;
    		gpios = <7 GPIO_ACTIVE_HIGH>;
    		output-high;
    		line-name = "FET_SWITCH_CTRL";
    	};
    };
    
    &uart0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&uart0_pins_default>;
    	status = "okay";
    };
    
    
    &mac {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&cpsw_default>;
        pinctrl-1 = <&cpsw_sleep>;
        dual_emac;
        status = "okay";
    };
    
    &davinci_mdio {
        pinctrl-names = "default", "sleep";
        compatible = "ti,cpsw-mdio", "ti,davinci_mdio";
        pinctrl-0 = <&davinci_mdio_default>;
        pinctrl-1 = <&davinci_mdio_sleep>;
        status = "okay";
    
        dp83867_0: ethernet-phy@0 {
            reg = <0>;
            ti,rx-internal-delay = <DP83867_RGMIIDCTL_4_00_NS>;
            ti,tx-internal-delay = <DP83867_RGMIIDCTL_4_00_NS>;
            ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
            ti,min-output-impedance;
            ti,dp83867-rxctrl-strap-quirk;
        };
    
    };
    
    &cpsw_emac0 {
        phy_id = <&davinci_mdio>, <0>;
        phy-mode = "rgmii-id";
    };
    
    
    /*
    &cpsw_emac1 {
        phy_id = <&davinci_mdio>, <0>;
        phy-mode = "rgmii";
      
    };
    */
    &i2c1{
            compatible = "ti,omap4-i2c";
            #address-cells = <1>;
            #size-cells = <0>;
            ti,hwmods = "i2c2";
            reg = <0x4802a000 0x1000>;
            interrupts = <71>;
            status = "okay";
    		ad7414@48 {
    			compatible = "analog,ad7414";
            		reg = <0x48>;
          		  	status = "okay";
        			};
          };
    
    &elm{
    status = "okay"; 
    };
    
    &gpmc {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&nandflash_pins_s0>;
    	ranges = <0 0 0x08000000 0x01000000>,	/*CSn0 for NAND*/
            	 <2 0 0x09000000 0x01000000>;   /*CSn2 for FPGA*/
    	nand@0,0 {
    		compatible = "ti,omap2-nand";
    		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
    		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
    		ti,nand-xfer-type = "prefetch-dma";
    		ti,nand-ecc-opt = "bch8";
    		ti,elm-id = <&elm>;
    		nand-bus-width = <16>;
    		gpmc,device-width = <1>;
    		gpmc,sync-clk-ps = <0>;
    		gpmc,cs-on-ns = <0>;
    		gpmc,cs-rd-off-ns = <44>;
    		gpmc,cs-wr-off-ns = <44>;
    		gpmc,adv-on-ns = <6>;
    		gpmc,adv-rd-off-ns = <34>;
    		gpmc,adv-wr-off-ns = <44>;
    		gpmc,we-on-ns = <0>;
    		gpmc,we-off-ns = <40>;
    		gpmc,oe-on-ns = <0>;
    		gpmc,oe-off-ns = <54>;
    		gpmc,access-ns = <64>;
    		gpmc,rd-cycle-ns = <82>;
    		gpmc,wr-cycle-ns = <82>;
    		gpmc,bus-turnaround-ns = <0>;
    		gpmc,cycle2cycle-delay-ns = <0>;
    		gpmc,clk-activation-ns = <0>;
    		gpmc,wr-access-ns = <40>;
    		gpmc,wr-data-mux-bus-ns = <0>;
    		/* MTD partition table */
    		/* All SPL-* partitions are sized to minimal length
    		 * which can be independently programmable. For
    		 * NAND flash this is equal to size of erase-block */
    		#address-cells = <1>;
    		#size-cells = <1>;
    		partition@0 {
    			label = "NAND.SPL";
    			reg = <0x00000000 0x000020000>;
    		};
    		partition@1 {
    			label = "NAND.SPL.backup1";
    			reg = <0x00020000 0x00020000>;
    		};
    		partition@2 {
    			label = "NAND.SPL.backup2";
    			reg = <0x00040000 0x00020000>;
    		};
    		partition@3 {
    			label = "NAND.SPL.backup3";
    			reg = <0x00060000 0x00020000>;
    		};
    		partition@4 {
    			label = "NAND.u-boot-spl-os";
    			reg = <0x00080000 0x00040000>;
    		};
    		partition@5 {
    			label = "NAND.u-boot";
    			reg = <0x000C0000 0x00100000>;
    		};
    		partition@6 {
    			label = "NAND.u-boot-env";
    			reg = <0x001C0000 0x00020000>;
    		};
    		partition@7 {
    			label = "NAND.u-boot-env.backup1";
    			reg = <0x001E0000 0x00020000>;
    		};
    		partition@8 {
    			label = "NAND.kernel";
    			reg = <0x00200000 0x00800000>;
    		};
    		partition@9 {
    			label = "NAND.file-system";
    			reg = <0x00A00000 0x0F600000>;
    		};
    	};
    
    
    	fpga@2,0{
    	     reg = <2 0 0x01000000>; /*CSn2*/
                 compatible = "cet,am335x-dma-test";
       	     #address-cells = <1>;
    	     #size-cells = <1>;
                 bank-width = <2>; /* GPMC_CONFIG1_DEVICESIZE(1) *//*16 bit wide*/
    	     interrupt-parent = <&gpmc>;
    	     interrupts = <0 0>, <1 0>;
                 gpmc,burst-write;
                 /* gpmc,burst-read;*/
                 /*gpmc,burst-wrap;*/
                 gpmc,sync-read; /* GPMC_CONFIG1_READTYPE_ASYNC */
                 gpmc,sync-write; /* GPMC_CONFIG1_WRITETYPE_ASYNC */
                 gpmc,clk-activation-ns = <0>; /* GPMC_CONFIG1_CLKACTIVATIONTIME(2) */
                 gpmc,burst-length = <16>; /* GPMC_CONFIG1_PAGE_LEN(2) */
                 gpmc,mux-add-data = <0>; /* GPMC_CONFIG1_MUXTYPE(2) */
    
                 gpmc,sync-clk-ps = <0>; /* CONFIG2 20000*/
    
                 gpmc,cs-on-ns = <10>;
                 gpmc,cs-rd-off-ns = <10>;/*default 100*/
                 gpmc,cs-wr-off-ns = <10>;
    
                /* gpmc,adv-on-ns = <0>;*/ /* CONFIG3 */
                /* gpmc,adv-rd-off-ns = <20>;*/
                /* gpmc,adv-wr-off-ns = <20>;*/
    
                 gpmc,we-on-ns = <10>; /* CONFIG4 */
                 gpmc,we-off-ns = <10>;
                /*gpmc,oe-on-ns = <20>;*/
                /*gpmc,oe-off-ns = <100>;*/
    
                 gpmc,page-burst-access-ns = <10>; /* CONFIG 5 */
                 gpmc,access-ns = <80>;
                /* gpmc,rd-cycle-ns = <120>;*//*default 120*/
                 gpmc,wr-cycle-ns = <60>;
                 gpmc,wr-access-ns = <10>; /* CONFIG 6 */
                 /*gpmc,wr-data-mux-bus-ns = <20>;*/
    
                 gpmc,bus-turnaround-ns = <40>; /* CONFIG6:3:0 = 4 */
                 gpmc,cycle2cycle-samecsen; /* CONFIG6:7 = 1 */
                 gpmc,cycle2cycle-delay-ns = <20>; /* CONFIG6:11:8 = 4 */
    
    /* not using dma engine yet, but we can get the channel number here */
              /*   dmas = <&edma 1>;*/
              /*   dma-names = "rxtx";*/
    	      };
    };
    

    boot file

    U-Boot SPL 2018.01-00444-g96cdbefd5c-dirty (Jan 31 2019 - 16:06:34)
    Trying to boot from NAND
    
    
    U-Boot 2018.01-00444-g96cdbefd5c-dirty (Feb 06 2019 - 13:25:29 +0530)
    
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM:  512 MiB
    NAND:  256 MiB
    MMC:   OMAP SD/MMC: 0
    Net:   Could not get PHY for cpsw: addr 0
    cpsw, usb_ether
    Hit any key to stop autoboot:  0 
    Booting from nand ...
    
    NAND read: device 0 offset 0x80000, size 0x40000
     262144 bytes read: OK
    
    NAND read: device 0 offset 0x200000, size 0x800000
     8388608 bytes read: OK
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff3000, end 8ffff6be ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.67-gd315a9bb00 (astra@astra-OptiPlex-3020) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #11 PREEMPT Sat Feb 2 17:32:16 IST 29
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM3359 ICE-V2
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x9d000000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
    [    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: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 456912K/524288K available (8192K kernel code, 318K rwdata, 2476K rodata, 1024K init, 275K bss, 18224K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
    [    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
    [    0.000000]       .data : 0xc0d00000 - 0xc0d4fb08   ( 319 kB)
    [    0.000000]        .bss : 0xc0d4fb08 - 0xc0d948a4   ( 276 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
    [    0.000014] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000035] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000047] OMAP clocksource: timer1 at 25000000 Hz
    [    0.000244] timer_probe: no matching timers found
    [    0.000465] Console: colour dummy device 80x30
    [    0.000494] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000502] This ensures that you still see kernel messages. Please
    [    0.000508] update your kernel commandline.
    [    0.000538] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
    [    0.089042] pid_max: default: 32768 minimum: 301
    [    0.089245] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089262] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090088] CPU: Testing write buffer coherency: ok
    [    0.090867] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.091034] Hierarchical SRCU implementation.
    [    0.091395] EFI services will not be available.
    [    0.092836] devtmpfs: initialized
    [    0.101470] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
    [    0.101983] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.102302] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.102326] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.106358] pinctrl core: initialized pinctrl subsystem
    [    0.107146] DMI not present or invalid.
    [    0.107578] NET: Registered protocol family 16
    [    0.110029] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.124818] omap_hwmod: debugss: _wait_target_disable failed
    [    0.177769] cpuidle: using governor ladder
    [    0.177807] cpuidle: using governor menu
    [    0.182094] GPIO line 7 (FET_SWITCH_CTRL) hogged as output/high
    [    0.182542] OMAP GPIO hardware version 0.1
    [    0.190617] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe
    [    0.192762] No ATAGs?
    [    0.192779] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.206299] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.210212] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c0_pins_default, deferring probe
    [    0.211154] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    0.211389] media: Linux media interface: v0.10
    [    0.211445] Linux video capture interface: v2.00
    [    0.211566] pps_core: LinuxPPS API ver. 1 registered
    [    0.211576] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.211601] PTP clock support registered
    [    0.211636] EDAC MC: Ver: 3.0.0
    [    0.212015] dmi: Firmware registration failed.
    [    0.212463] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.212813] Advanced Linux Sound Architecture Driver Initialized.
    [    0.214061] clocksource: Switched to clocksource timer1
    [    0.222693] NET: Registered protocol family 2
    [    0.223464] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.223520] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.223566] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.223669] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.223689] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.223854] NET: Registered protocol family 1
    [    0.224409] RPC: Registered named UNIX socket transport module.
    [    0.224426] RPC: Registered udp transport module.
    [    0.224433] RPC: Registered tcp transport module.
    [    0.224440] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.225363] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.225497] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.227039] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    0.231525] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.232382] NFS: Registering the id_resolver key type
    [    0.232431] Key type id_resolver registered
    [    0.232440] Key type id_legacy registered
    [    0.232492] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.234825] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.234849] io scheduler noop registered
    [    0.234858] io scheduler deadline registered
    [    0.235089] io scheduler cfq registered (default)
    [    0.235100] io scheduler mq-deadline registered
    [    0.235108] io scheduler kyber registered
    [    0.236474] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.288837] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.292061] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
    [    0.935396] console [ttyS0] enabled
    [    0.940772] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    0.959323] brd: module loaded
    [    0.969287] loop: module loaded
    [    0.975749] m25p80 spi0.0: found s25fl064k, expected w25q64
    [    0.981376] m25p80 spi0.0: s25fl064k (8192 Kbytes)
    [    0.986379] 4 ofpart partitions found on MTD device spi0.0
    [    0.991891] Creating 4 MTD partitions on "spi0.0":
    [    0.996740] 0x000000000000-0x000000080000 : "u-boot-spl"
    [    1.003120] 0x000000080000-0x000000180000 : "u-boot"
    [    1.008996] 0x000000180000-0x0000001a0000 : "u-boot-env"
    [    1.015160] 0x0000001a0000-0x000000800000 : "misc"
    [    1.021704] libphy: Fixed MDIO Bus: probed
    [    1.094154] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.101862] libphy: 4a101000.mdio: probed
    [    1.107237] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver TI DP83867
    [    1.116549] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.
    [    1.123033] cpsw 4a100000.ethernet: Using 1 as Reserved VLAN for 0 slave
    [    1.129897] cpsw 4a100000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property
    [    1.138289] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.
    [    1.144801] cpsw 4a100000.ethernet: Using 2 as Reserved VLAN for 1 slave
    [    1.151535] cpsw 4a100000.ethernet: Detected MACID = c4:f3:12:e7:2a:4a
    [    1.158249] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.164668] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.169957] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.178007] cpsw 4a100000.ethernet: cpsw: Detected MACID = c4:f3:12:e7:2a:4c
    [    1.186454] i2c /dev entries driver
    [    1.190673] IR NEC protocol handler initialized
    [    1.195311] IR RC5(x/sz) protocol handler initialized
    [    1.200386] IR RC6 protocol handler initialized
    [    1.205088] IR JVC protocol handler initialized
    [    1.209639] IR Sony protocol handler initialized
    [    1.214295] IR SANYO protocol handler initialized
    [    1.219017] IR Sharp protocol handler initialized
    [    1.223739] IR MCE Keyboard/mouse protocol handler initialized
    [    1.229647] IR XMP protocol handler initialized
    [    1.236278] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.243399] sdhci: Secure Digital Host Controller Interface driver
    [    1.249696] sdhci: Copyright(c) Pierre Ossman
    [    1.254471] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.260738] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.270227] NET: Registered protocol family 10
    [    1.276391] Segment Routing with IPv6
    [    1.280160] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.287010] NET: Registered protocol family 17
    [    1.291755] Key type dns_resolver registered
    [    1.296413] omap_voltage_late_init: Voltage driver support not added
    [    1.308456] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.313648] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.321652] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xca
    [    1.328200] nand: Micron MT29F2G16ABAEAWP
    [    1.332232] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.339971] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.345492] 10 ofpart partitions found on MTD device omap2-nand.0
    [    1.351610] Creating 10 MTD partitions on "omap2-nand.0":
    [    1.357071] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    1.363396] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    1.370218] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    1.376987] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    1.383702] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    1.390712] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    1.397469] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    1.404147] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    1.411475] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    1.421284] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [    1.564477] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.573954] vrtc: supplied by vbat
    [    1.581738] vio: supplied by vbat
    [    1.586716] vdd1: supplied by vbat
    [    1.592015] vdd2: supplied by vbat
    [    1.597429] random: fast init done
    [    1.602478] vdig1: supplied by vbat
    [    1.607373] vdig2: supplied by vbat
    [    1.612218] vpll: supplied by vbat
    [    1.617090] vdac: supplied by vbat
    [    1.621908] vaux1: supplied by vbat
    [    1.626801] vaux2: supplied by vbat
    [    1.631645] vaux33: supplied by vbat
    [    1.636699] vmmc: supplied by vbat
    [    1.641537] vbb: supplied by vbat
    [    1.646730] pca953x 0-0041: 0-0041 supply vcc not found, using dummy regulator
    [    1.655637] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.661609] ubi0: attaching mtd13
    [    2.467627] ubi0: scanning is finished
    [    2.484000] ubi0: attached mtd13 (name "NAND.file-system", size 246 MiB)
    [    2.491050] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    2.497988] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    2.504735] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    2.511726] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
    [    2.517885] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    2.525159] ubi0: max/mean erase counter: 8/1, WL threshold: 4096, image sequence number: 935963569
    [    2.534278] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40
    [    2.543655] ubi0: background thread "ubi_bgt0d" started, PID 44
    [    2.549951] hctosys: unable to open rtc device (rtc0)
    [    2.555830] ALSA device list:
    [    2.555836]   No soundcards found.
    [    2.574116] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 45
    [    2.612345] UBIFS (ubi0:0): recovery needed
    [    2.719664] UBIFS (ubi0:0): recovery completed
    [    2.724588] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    2.732022] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    2.742022] UBIFS (ubi0:0): FS size: 242905088 bytes (231 MiB, 1913 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [    2.752811] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [    2.758693] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID C8F4E3B6-7FEB-486F-ABEC-EEF47A9446C1, small LPT model
    [    2.770599] VFS: Mounted root (ubifs filesystem) on device 0:14.
    [    2.777392] devtmpfs: mounted
    [    2.781859] Freeing unused kernel memory: 1024K
    [    2.824116] NOHZ: local_softirq_pending 40
    [    2.964124] NOHZ: local_softirq_pending 40
    [    3.030839] systemd[1]: System time before build time, advancing clock.
    [    3.054119] NOHZ: local_softirq_pending 40
    [    3.128094] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4)
    [    3.149857] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2018.08!
    
    [    3.186766] systemd[1]: Set hostname to <am335x-evm>.
    [    3.404120] NOHZ: local_softirq_pending 40
    [    3.484097] NOHZ: local_softirq_pending 40
    [    3.524128] NOHZ: local_softirq_pending 40
    [    3.883141] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.892023] systemd[1]: Listening on Syslog Socket.
    [  OK  ] Listening on Syslog Socket.
    [    3.924470] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.931632] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    4.014422] random: systemd: uninitialized urandom read (16 bytes read)
    [    4.021624] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    4.055303] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    4.096534] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [    4.134918] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    4.164786] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [  OK  ] Created slice User and Session Slice.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Listening on Process Core Dump Socket.
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Created slice System Slice.
             Starting Load Kernel Modules...
    [  OK  ] Created slice system-getty.slice.
    [    4.532253] cryptodev: loading out-of-tree module taints kernel.
    [    4.540697] cryptodev: driver 1.9 loaded.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
             Mounting Temporary Directory (/tmp)...
             Starting Remount Root and Kernel File Systems...
    [  OK  ] Reached target Slices.
             Mounting Kernel Debug File System...
             Starting Journal Service...
             Mounting POSIX Message Queue File System...
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [    4.804122] NOHZ: local_softirq_pending 40
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Started Load Kernel Modules.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting udev Coldplug all Devices...
             Starting Create Static Device Nodes in /dev...
             Mounting Kernel Configuration File System...
             Starting Apply Kernel Variables...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Journal Service.
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting udev Kernel Device Manager...
    [    5.524132] NOHZ: local_softirq_pending 40
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [    5.660068] systemd-journald[65]: Received request to flush runtime journal from PID 1
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Load/Save Random Seed.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [    7.604791] input: gpio-decoder as /devices/platform/gpio-decoder/input/input0
    [  OK  ] Found device /dev/ttyS0.
    [    7.795049] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    7.908281] omap_rtc 44e3e000.rtc: registered as rtc0
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
             Starting Network Service...
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting Print notice about GPLv3 packages...
    [  OK  ] Started Kernel Logging Service.
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Started Periodic Command Scheduler.
             Starting Login Service...
             Starting RPC Bind Service...
    [    9.097567] random: crng init done
    [    9.101021] random: 7 urandom warning(s) missed due to ratelimiting
    [  OK  ] Started System Logging Service.
             Starting telnetd.service...
    [  OK  ] Started Job spooling tools.
    [  OK  ] Reached target Containers.
    [  OK  ] Started D-Bus System Message Bus.
    [   10.887065] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [   11.044439] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [   11.097317] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [   11.122451] remoteproc remoteproc0: wkup_m3 is available
    [   11.156702] omap-aes 53500000.aes: will run requests pump with realtime priority
    [   11.428025] remoteproc remoteproc0: powering up wkup_m3
    [   11.498654] PM: Cannot get wkup_m3_ipc handle
    [   11.714878] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 224628
    [   11.723286] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [   11.729860] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [  OK  ] Started RPC Bind Service.
    [  OK  ] Started telnetd.service.
    [  OK  ] Started Network Service.
    [   12.741805] net eth1: initializing cpsw version 1.12 (0)
    [   12.843297] libphy: PHY  not found
    [   12.914364] net eth1: phy "" not found on slave 1, err -19
    [   13.059607] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [   13.401611] net eth0: initializing cpsw version 1.12 (0)
    [   13.547977] TI DP83867 4a101000.mdio:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    [  OK  ] Found device /dev/ttyS3.
    [   13.683525] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started Login Service.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Reached target Network.
             Starting Network Name Resolution...
             Starting Permit User Sessions...
             Starting thttpd.service...
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [   15.766080] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [  OK  ] Started thttpd.service.
    [   15.823299] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [  OK  ] Started Synchronize System and HW clocks.
             Starting rng-tools.service...
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Host and Network Name Lookups.
    [   16.162038] PM: bootloader does not support rtc-only!
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
    [  OK  ] Started rng-tools.service.
             Starting thermal-zone-init.service...
    [  OK  ] Started thermal-zone-init.service.
    ***************************************************************
    ***************************************************************
    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 am335x-evm ttyS0
    
    Arago 2018.08 am335x-evm ttyS0
    
    

    5)root@am335x-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 Receive-only
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    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
    Link partner advertised FEC modes: Not reported
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: d
    Wake-on: d
    Current message level: 0x00000000 (0)

    Link detected: yes

    6)root@am335x-evm:~# ethtool -S eth0
    NIC statistics:
    Good Rx Frames: 87
    Broadcast Rx Frames: 3
    Multicast Rx Frames: 84
    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: 13978
    Good Tx Frames: 90
    Broadcast Tx Frames: 30
    Multicast Tx Frames: 60
    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: 22
    Tx Octets: 15812
    Rx + Tx 64 Octet Frames: 5
    Rx + Tx 65-127 Octet Frames: 84
    Rx + Tx 128-255 Octet Frames: 58
    Rx + Tx 256-511 Octet Frames: 30
    Rx + Tx 512-1023 Octet Frames: 0
    Rx + Tx 1024-Up Octet Frames: 0
    Net Octets: 29944
    Rx Start of Frame Overruns: 0
    Rx Middle of Frame Overruns: 0
    Rx DMA Overruns: 0
    Rx DMA chan 0: head_enqueue: 1
    Rx DMA chan 0: tail_enqueue: 130
    Rx DMA chan 0: pad_enqueue: 0
    Rx DMA chan 0: misqueued: 0
    Rx DMA chan 0: desc_alloc_fail: 0
    Rx DMA chan 0: pad_alloc_fail: 0
    Rx DMA chan 0: runt_receive_buf: 0
    Rx DMA chan 0: runt_transmit_bu: 0
    Rx DMA chan 0: empty_dequeue: 0
    Rx DMA chan 0: busy_dequeue: 3
    Rx DMA chan 0: good_dequeue: 3
    Rx DMA chan 0: requeue: 0
    Rx DMA chan 0: teardown_dequeue: 0
    Tx DMA chan 0: head_enqueue: 112
    Tx DMA chan 0: tail_enqueue: 0
    Tx DMA chan 0: pad_enqueue: 0
    Tx DMA chan 0: misqueued: 0
    Tx DMA chan 0: desc_alloc_fail: 0
    Tx DMA chan 0: pad_alloc_fail: 0
    Tx DMA chan 0: runt_receive_buf: 0
    Tx DMA chan 0: runt_transmit_bu: 0
    Tx DMA chan 0: empty_dequeue: 112
    Tx DMA chan 0: busy_dequeue: 0
    Tx DMA chan 0: good_dequeue: 112
    Tx DMA chan 0: requeue: 0
    Tx DMA chan 0: teardown_dequeue: 0

    7)ifconfig eth0
    eth0 Link encap:Ethernet HWaddr C4:F3:12:E7:2A:4A
    inet6 addr: fe80::c6f3:12ff:fee7:2a4a%3068274072/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:3 errors:0 dropped:0 overruns:0 frame:0
    TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:192 (192.0 B) TX bytes:18908 (18.4 KiB)
    Interrupt:44

    regards,

    Sandeep.M

  • Hi,
    Thank you for supplying the requested checklist debug support.

    One thing that I am noticing is the mac node is showing dual mac mode but the second mac interface is commented out. The commenting out does not remove the interface, the node is still there and as the driver comes up it is complaining about not finding a PHY for eth1. This might mean that the cpsw interface tried to set up a pin mux and overrode your GPIO pin mux. So I will suggest to try to remove the dual_emac flag from the mac node below and see if you have the same issue:

    &mac {
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&cpsw_default>;
    pinctrl-1 = <&cpsw_sleep>;
    dual_emac; <---- Remove or comment out this line
    status = "okay";
    };

    The next thing is look up in the AM335x TRM the address of MII1_REFCLK and see what the pin mux setting is using devmem2. I don't have access to board at the moment or I would attempt this to make sure devmem2 works in the region where the pin control registers are in the memory space. If it does work you want to see that mux mode is set to GPIO and not the reference clock.

    Best Regards,
    Schuyler
  • hi Schuyler Patton,

    we have commented dual_emac still i see 50 MHz on that pin
    pin mux setting is using devmem2 is 0x20

    regards,
    Sandeep.M
  • Sir waiting for your solutions
  • Hi,

    Thank you for posting results of devmem2.

    Looking closer at your DTS file I noticed this, the pin mux is commented out so it will not be able to set the pin mux mode. This is confirmed by the devmem2 output which is showing the mux mode as 0 which is rmii1_refclk.


    /*gpio0_pins_default: gpio0_pins_default {
    pinctrl-single,pins = <
    AM33XX_IOPAD(0x944, PIN_INPUT | MUX_MODE0) /* (H18) rmii1_refclk.gpio0[29]
    >;
    };*/

    Since the Linux DTS file does not appear to be setting the mux mode for the pin then perhaps u-boot is. You might stop the boot sequence in u-boot and use the md.l command to show the value of the pin you are working with. Please post the results of the md.l 0x44E10944 command.

    If you un-comment the line shown does your gpio work?

    Best Regards,
    Schuyler
  • Dear Schuyler Patton ,

    Results of the md.l 0x44E10944 command from U-boot:

    => md.l 0x44E10944                                                              

    44e10944: 00000020 00000030 00000010 00000020     ...0....... ...              

    44e10954: 00000030 00000020 00000030 00000037    0... ...0...7...              

    44e10964: 00000027 00000037 00000037 00000030    '...7...7...0...              

    44e10974: 00000000 00000037 00000037 00000037    ....7...7...7...              

    44e10984: 00000037 00000060 00000060 00000027    7...`...`...'...              

    44e10994: 00000027 00000027 00000027 00000024    '...'...'...$...              

    44e109a4: 00000027 00000027 00000027 00000023    '...'...'...#...              

    44e109b4: 00000027 00000030 00000028 00000030    '...0...(...0...              

    44e109c4: 00000028 00000028 00000028 00000030    (...(...(...0...              

    44e109d4: 00000030 00000030 00000030 00000020    0...0...0... ...              

    44e109e4: 00000030 00000030 00000028 00000028    0...0...(...(...              

    44e109f4: 00000028 00000030 00000028 00000028    (...0...(...(...              

    44e10a04: 00000020 00000028 00000028 00000028     ...(...(...(...              

    44e10a14: 00000028 00000028 00000007 00000028    (...(.......(...              

    44e10a24: 00000028 00000028 00000028 00000028    (...(...(...(...              

    44e10a34: 00000020 00000030 00000030 00000020     ...0...0... ...             

    If we un-comment the gpio part in the DTS file. The reference clk is disables and the GPIO works as intended, but we end up with the Ethernet connection not working (Unable to Ping the HOST).

    This is the Reg value for the PINMUX after enabling GPIO :

    root@am335x-evm:~# devmem2 0x44E10944                                           
    /dev/mem opened.                                                                
    Memory mapped at address 0xb6f1b000.                                            
    Read at address  0x44E10944 (0xb6f1b944): 0x0000002F                            

    Boot Log :

    => boot                                                                         
    Booting from nand ...                                                           
                                                                                    
    NAND read: device 0 offset 0x80000, size 0x40000                                
     262144 bytes read: OK                                                          
                                                                                    
    NAND read: device 0 offset 0x200000, size 0x800000                              
     8388608 bytes read: OK                                                         
    ## Flattened Device Tree blob at 88000000                                       
       Booting using the fdt blob at 0x88000000                                     
       Loading Device Tree to 8fff3000, end 8ffff722 ... OK                         
                                                                                    
    Starting kernel ...                                                             
                                                                                    
    [    0.000000] Booting Linux on physical CPU 0x0                                
    [    0.000000] Linux version 4.14.67-gd315a9bb00 (astra@astra-OptiPlex-3020) (g9
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d  
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
    [    0.000000] OF: fdt: Machine model: TI AM3359 ICE-V2                         
    [    0.000000] Memory policy: Data cache writeback                              
    [    0.000000] efi: Getting EFI parameters from FDT:                            
    [    0.000000] efi: UEFI not found.                                             
    [    0.000000] cma: Reserved 48 MiB at 0x9d000000                               
    [    0.000000] CPU: All CPU(s) started in SVC mode.                             
    [    0.000000] AM335X ES2.1 (sgx neon)                                          
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920    
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw 1
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)              
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)  
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)   
    [    0.000000] Memory: 456912K/524288K available (8192K kernel code, 318K rwdat)
    [    0.000000] Virtual kernel memory layout:                                    
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)                
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)                
    [    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)                
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)                
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)                
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)                
    [    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)                
    [    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)                
    [    0.000000]       .data : 0xc0d00000 - 0xc0d4fb08   ( 319 kB)                
    [    0.000000]        .bss : 0xc0d4fb08 - 0xc0d948a4   ( 276 kB)                
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1       
    [    0.000000] Preemptible hierarchical RCU implementation.                     
    [    0.000000]  Tasks RCU enabled.                                              
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16                  
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrus
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz                    
    [    0.000017] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 8589s
    [    0.000037] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, mas
    [    0.000048] OMAP clocksource: timer1 at 25000000 Hz                          
    [    0.000244] timer_probe: no matching timers found                            
    [    0.000463] Console: colour dummy device 80x30                               
    [    0.000493] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'       
    [    0.000500] This ensures that you still see kernel messages. Please          
    [    0.000507] update your kernel commandline.                                  
    [    0.000538] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)          
    [    0.089032] pid_max: default: 32768 minimum: 301                             
    [    0.089234] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)      
    [    0.089250] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) 
    [    0.090071] CPU: Testing write buffer coherency: ok                          
    [    0.090840] Setting up static identity map for 0x80100000 - 0x80100060       
    [    0.091000] Hierarchical SRCU implementation.                                
    [    0.091360] EFI services will not be available.                              
    [    0.092795] devtmpfs: initialized                                            
    [    0.101433] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac0
    [    0.101969] VFP support v0.3: implementor 41 architecture 3 part 30 variant 3
    [    0.102282] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
    [    0.102304] futex hash table entries: 256 (order: -1, 3072 bytes)            
    [    0.106307] pinctrl core: initialized pinctrl subsystem                      
    [    0.107096] DMI not present or invalid.                                      
    [    0.107520] NET: Registered protocol family 16                               
    [    0.109988] DMA: preallocated 256 KiB pool for atomic coherent allocations   
    [    0.124822] omap_hwmod: debugss: _wait_target_disable failed                 
    [    0.177851] cpuidle: using governor ladder                                   
    [    0.177889] cpuidle: using governor menu                                     
    [    0.182027] omap_gpio 44e07000.gpio: could not find pctldev for node /ocp/l4e
    [    0.182974] OMAP GPIO hardware version 0.1                                   
    [    0.190224] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4e
    [    0.192369] No ATAGs?                                                        
    [    0.192385] hw-breakpoint: debug architecture 0x4 unsupported.               
    [    0.205795] edma 49000000.edma: TI EDMA DMA engine driver                    
    [    0.209537] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_we
    [    0.210479] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz                  
    [    0.210718] media: Linux media interface: v0.10                              
    [    0.210771] Linux video capture interface: v2.00                             
    [    0.210892] pps_core: LinuxPPS API ver. 1 registered                         
    [    0.210902] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
    [    0.210938] PTP clock support registered                                     
    [    0.210975] EDAC MC: Ver: 3.0.0                                              
    [    0.211364] dmi: Firmware registration failed.                               
    [    0.211817] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400            
    [    0.212151] Advanced Linux Sound Architecture Driver Initialized.            
    [    0.213390] clocksource: Switched to clocksource timer1                      
    [    0.222021] NET: Registered protocol family 2                                
    [    0.222792] TCP established hash table entries: 4096 (order: 2, 16384 bytes) 
    [    0.222850] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)        
    [    0.222897] TCP: Hash tables configured (established 4096 bind 4096)         
    [    0.222998] UDP hash table entries: 256 (order: 0, 4096 bytes)               
    [    0.223017] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)          
    [    0.223177] NET: Registered protocol family 1                                
    [    0.223728] RPC: Registered named UNIX socket transport module.              
    [    0.223745] RPC: Registered udp transport module.                            
    [    0.223752] RPC: Registered tcp transport module.                            
    [    0.223759] RPC: Registered tcp NFSv4.1 backchannel transport module.        
    [    0.224696] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.224828] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 countee
    [    0.226349] workingset: timestamp_bits=14 max_order=17 bucket_order=3        
    [    0.230811] squashfs: version 4.0 (2009/01/31) Phillip Lougher               
    [    0.231656] NFS: Registering the id_resolver key type                        
    [    0.231708] Key type id_resolver registered                                  
    [    0.231716] Key type id_legacy registered                                    
    [    0.231762] ntfs: driver 2.1.32 [Flags: R/O].                                
    [    0.234144] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
    [    0.234168] io scheduler noop registered                                     
    [    0.234178] io scheduler deadline registered                                 
    [    0.234415] io scheduler cfq registered (default)                            
    [    0.234426] io scheduler mq-deadline registered                              
    [    0.234433] io scheduler kyber registered                                    
    [    0.235806] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568 
    [    0.288365] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled        
    [    0.291601] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud =0
    [    0.942346] console [ttyS0] enabled                                          
    [    0.947686] omap_rng 48310000.rng: Random Number Generator ver. 20           
    [    0.966254] brd: module loaded                                               
    [    0.976177] loop: module loaded                                              
    [    0.982443] m25p80 spi0.0: found s25fl064k, expected w25q64                  
    [    0.988303] m25p80 spi0.0: s25fl064k (8192 Kbytes)                           
    [    0.993160] 4 ofpart partitions found on MTD device spi0.0                   
    [    0.998700] Creating 4 MTD partitions on "spi0.0":                           
    [    1.003540] 0x000000000000-0x000000080000 : "u-boot-spl"                     
    [    1.009897] 0x000000080000-0x000000180000 : "u-boot"                         
    [    1.015767] 0x000000180000-0x0000001a0000 : "u-boot-env"                     
    [    1.021884] 0x0000001a0000-0x000000800000 : "misc"                           
    [    1.028527] libphy: Fixed MDIO Bus: probed                                   
    [    1.103472] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 0
    [    1.111183] libphy: 4a101000.mdio: probed                                    
    [    1.116546] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, dri7
    [    1.125871] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.        
    [    1.132356] cpsw 4a100000.ethernet: Using 1 as Reserved VLAN for 0 slave     
    [    1.139212] cpsw 4a100000.ethernet: No slave[1] phy_id, phy-handle, or fixedy
    [    1.147601] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.        
    [    1.154112] cpsw 4a100000.ethernet: Using 2 as Reserved VLAN for 1 slave     
    [    1.160848] cpsw 4a100000.ethernet: Detected MACID = c4:f3:12:e7:2a:4a       
    [    1.167558] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4         
    [    1.173973] cpsw 4a100000.ethernet: ALE Table size 1024                      
    [    1.179260] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.187306] cpsw 4a100000.ethernet: cpsw: Detected MACID = c4:f3:12:e7:2a:4c 
    [    1.195763] i2c /dev entries driver                                          
    [    1.199974] IR NEC protocol handler initialized                              
    [    1.204619] IR RC5(x/sz) protocol handler initialized                        
    [    1.209692] IR RC6 protocol handler initialized                              
    [    1.214387] IR JVC protocol handler initialized                              
    [    1.218938] IR Sony protocol handler initialized                             
    [    1.223632] IR SANYO protocol handler initialized                            
    [    1.228357] IR Sharp protocol handler initialized                            
    [    1.233078] IR MCE Keyboard/mouse protocol handler initialized               
    [    1.238951] IR XMP protocol handler initialized                              
    [    1.245577] cpuidle: enable-method property 'ti,am3352' found operations     
    [    1.252688] sdhci: Secure Digital Host Controller Interface driver           
    [    1.258987] sdhci: Copyright(c) Pierre Ossman                                
    [    1.263748] sdhci-pltfm: SDHCI platform and OF driver helper                 
    [    1.269985] ledtrig-cpu: registered to indicate activity on CPUs             
    [    1.279483] NET: Registered protocol family 10                               
    [    1.285659] Segment Routing with IPv6                                        
    [    1.289431] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver              
    [    1.296283] NET: Registered protocol family 17                               
    [    1.301025] Key type dns_resolver registered                                 
    [    1.305679] omap_voltage_late_init: Voltage driver support not added         
    [    1.317734] GPIO line 103 (FET_SWITCH_CTRL) hogged as output/high            
    [    1.324905] omap-gpmc 50000000.gpmc: GPMC revision 6.0                       
    [    1.330082] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000            
    [    1.337866] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xca         
    [    1.344400] nand: Micron MT29F2G16ABAEAWP                                    
    [    1.348433] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB si4
    [    1.356147] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme                     
    [    1.361633] 10 ofpart partitions found on MTD device omap2-nand.0            
    [    1.367789] Creating 10 MTD partitions on "omap2-nand.0":                    
    [    1.373226] 0x000000000000-0x000000020000 : "NAND.SPL"                       
    [    1.379554] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"               
    [    1.386378] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"               
    [    1.393079] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"               
    [    1.399869] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"             
    [    1.406886] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"                    
    [    1.413626] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"                
    [    1.420303] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"        
    [    1.427714] 0x000000200000-0x000000a00000 : "NAND.kernel"                    
    [    1.437507] 0x000000a00000-0x000010000000 : "NAND.file-system"               
    [    1.583807] tps65910 0-002d: No interrupt support, no core IRQ               
    [    1.593128] vrtc: supplied by vbat                                           
    [    1.600865] vio: supplied by vbat                                            
    [    1.605834] vdd1: supplied by vbat                                           
    [    1.611157] vdd2: supplied by vbat                                           
    [    1.616609] random: fast init done                                           
    [    1.621469] vdig1: supplied by vbat                                          
    [    1.626359] vdig2: supplied by vbat                                          
    [    1.631213] vpll: supplied by vbat                                           
    [    1.636093] vdac: supplied by vbat                                           
    [    1.640921] vaux1: supplied by vbat                                          
    [    1.645813] vaux2: supplied by vbat                                          
    [    1.650672] vaux33: supplied by vbat                                         
    [    1.655729] vmmc: supplied by vbat                                           
    [    1.660561] vbb: supplied by vbat                                            
    [    1.665742] pca953x 0-0041: 0-0041 supply vcc not found, using dummy regulatr
    [    1.674704] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz                  
    [    1.680680] ubi0: attaching mtd13                                            
    [    2.487192] ubi0: scanning is finished                                       
    [    2.503894] ubi0: attached mtd13 (name "NAND.file-system", size 246 MiB)     
    [    2.510649] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes   
    [    2.517610] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512     
    [    2.524363] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096  
    [    2.531357] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0            
    [    2.537597] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 18
    [    2.544876] ubi0: max/mean erase counter: 8/1, WL threshold: 4096, image seq9
    [    2.553996] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserve0
    [    2.563366] ubi0: background thread "ubi_bgt0d" started, PID 44              
    [    2.569663] hctosys: unable to open rtc device (rtc0)                        
    [    2.575541] ALSA device list:                                                
    [    2.575547]   No soundcards found.                                           
    [    2.593458] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 45 
    [    2.688315] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "roo"
    [    2.695823] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O s
    [    2.705846] UBIFS (ubi0:0): FS size: 242905088 bytes (231 MiB, 1913 LEBs), j)
    [    2.716610] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)               
    [    2.722473] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID C8F4l
    [    2.734623] VFS: Mounted root (ubifs filesystem) on device 0:14.             
    [    2.741340] devtmpfs: mounted                                                
    [    2.745895] Freeing unused kernel memory: 1024K                              
    [    2.987015] systemd[1]: System time before build time, advancing clock.      
    [    3.076785] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SE)
    [    3.098541] systemd[1]: Detected architecture arm.                           
                                                                                    
    Welcome to Arago 2018.08!                                                       
                                                                                    
    [    3.136088] systemd[1]: Set hostname to <am335x-evm>.                        
    [    3.363448] NOHZ: local_softirq_pending 40                                   
    [    3.483442] NOHZ: local_softirq_pending 202                                  
    [    3.643463] NOHZ: local_softirq_pending 40                                   
    [    3.793454] NOHZ: local_softirq_pending 40                                   
    [    3.813465] NOHZ: local_softirq_pending 40                                   
    [    3.854453] random: systemd: uninitialized urandom read (16 bytes read)      
    [    3.863165] systemd[1]: Listening on Journal Socket (/dev/log).              
    [  OK  ] Listening on Journal Socket (/dev/log).                                
    [    3.894242] random: systemd: uninitialized urandom read (16 bytes read)      
    [    3.913143] systemd[1]: Created slice System Slice.                          
    [  OK  ] Created slice System Slice.                                            
    [    3.944261] random: systemd: uninitialized urandom read (16 bytes read)      
    [    3.951872] systemd[1]: Started Dispatch Password Requests to Console Direct.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.         
    [    3.994592] systemd[1]: Listening on Syslog Socket.                          
    [  OK  ] Listening on Syslog Socket.                                            
    [    4.045640] systemd[1]: Listening on Process Core Dump Socket.               
    [  OK  ] Listening on Process Core Dump Socket.                                 
    [    4.093453] NOHZ: local_softirq_pending 202                                  
    [    4.110509] systemd[1]: Listening on udev Kernel Socket.                     
    [  OK  ] Listening on udev Kernel Socket.                                       
    [    4.146031] systemd[1]: Created slice system-getty.slice.                    
    [  OK  ] Created slice system-getty.slice.                                      
    [  OK  ] Listening on Network Service Netlink Socket.                           
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.             
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.                    
             Mounting POSIX Message Queue File System...                            
    [  OK  ] Reached target Remote File Systems.                                    
    [  OK  ] Reached target Swap.                                                   
             Mounting Temporary Directory (/tmp)...                                 
    [  OK  ] Created slice system-serial\x2dgetty.slice.                            
    [  OK  ] Reached target Paths.                                                  
    [  OK  ] Listening on udev Control Socket.                                      
             Mounting Kernel Debug File System...                                   
    [  OK  ] Listening on Journal Socket.                                           
             Starting Load Kernel Modules...                                        
             Starting Journal Service...                                            
             Starting Remount Root and Kernel File Systems...                       
    [  OK  ] Created slice User and Session Slice.                                  
    [  OK  ] Reached target Slices.                                                 
    [    4.711319] cryptodev: loading out-of-tree module taints kernel.             
    [  OK  ] Mounted Kernel Debug File System.                                      
    [  OK  ] Mounted POSIX Message Queue File System.                               
    [    4.746713] cryptodev: driver 1.9 loaded.                                    
    [  OK  ] Mounted Temporary Directory (/tmp).                                    
    [  OK  ] Started Load Kernel Modules.                                           
    [  OK  ] Started Remount Root and Kernel File Systems.                          
             Starting udev Coldplug all Devices...                                  
             Starting Create Static Device Nodes in /dev...                         
             Starting Apply Kernel Variables...                                     
             Mounting Kernel Configuration File System...                           
    [  OK  ] Started Journal Service.                                               
    [  OK  ] Mounted Kernel Configuration File System.                              
             Starting Flush Journal to Persistent Storage...                        
    [  OK  ] Started Apply Kernel Variables.                                        
    [  OK  ] Started Create Static Device Nodes in /dev.                            
    [    5.291127] systemd-journald[60]: Received request to flush runtime journal 1
             Starting udev Kernel Device Manager...                                 
    [  OK  ] Reached target Local File Systems (Pre).                               
             Mounting /media/ram...                                                 
             Mounting /var/volatile...                                              
    [    5.483448] NOHZ: local_softirq_pending 40                                   
    [  OK  ] Mounted /var/volatile.                                                 
    [  OK  ] Mounted /media/ram.                                                    
    [  OK  ] Started udev Kernel Device Manager.                                    
    [  OK  ] Started Flush Journal to Persistent Storage.                           
             Starting Load/Save Random Seed...                                      
    [  OK  ] Reached target Local File Systems.                                     
             Starting Create Volatile Files and Directories...                      
    [  OK  ] Started Load/Save Random Seed.                                         
    [  OK  ] Started Create Volatile Files and Directories.                         
             Starting Network Time Synchronization...                               
             Starting Update UTMP about System Boot/Shutdown...                     
    [  OK  ] Started Update UTMP about System Boot/Shutdown.                        
    [  OK  ] Started Network Time Synchronization.                                  
    [  OK  ] Reached target System Time Synchronized.                               
    [    7.450551] input: gpio-decoder as /devices/platform/gpio-decoder/input/inpu0
    [    7.588310] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec   
    [  OK  ] Found device /dev/ttyS0.                                               
    [    7.708324] omap_rtc 44e3e000.rtc: already running                           
    [    7.804378] omap_rtc 44e3e000.rtc: registered as rtc0                        
    [  OK  ] Started udev Coldplug all Devices.                                     
    [  OK  ] Reached target System Initialization.                                  
             Starting Network Service...                                            
    [  OK  ] Started Daily rotation of log files.                                   
    [  OK  ] Listening on RPCbind Server Activation Socket.                         
    [  OK  ] Started Daily Cleanup of Temporary Directories.                        
    [  OK  ] Reached target Timers.                                                 
    [  OK  ] Listening on D-Bus System Message Bus Socket.                          
    [  OK  ] Reached target Sockets.                                                
    [  OK  ] Reached target Basic System.                                           
    [  OK  ] Reached target Containers.                                             
    [  OK  ] Started Job spooling tools.                                            
             Starting telnetd.service...                                            
    [  OK  ] Started D-Bus System Message Bus.                                      
    [   10.347437] omap-sham 53100000.sham: hw accel on OMAP rev 4.3                
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.                          
    [  OK  ] Started Periodic Command Scheduler.                                    
    [   10.545809] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2                
    [   10.596009] omap-aes 53500000.aes: will run requests pump with realtime prioy
    [   10.718992] remoteproc remoteproc0: wkup_m3 is available                     
             Starting Print notice about GPLv3 packages...                          
    [   10.815561] remoteproc remoteproc0: powering up wkup_m3                      
    [  OK  ] Started System Logging Service.                                        
    [   10.935705] PM: Cannot get wkup_m3_ipc handle                                
             Starting Login Service...                                              
    [   11.066480] random: crng init done                                           
    [   11.069935] random: 7 urandom warning(s) missed due to ratelimiting          
    [   11.178875] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf,8
    [   11.179133] remoteproc remoteproc0: remote processor wkup_m3 is now up       
    [   11.179157] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192   
    [   11.434884] net eth1: initializing cpsw version 1.12 (0)                     
    [   11.437421] libphy: PHY  not found                                           
    [   11.437430] net eth1: phy "" not found on slave 1, err -19                   
    [   11.546596] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready               
    [   11.667472] net eth0: initializing cpsw version 1.12 (0)                     
    [   11.768130] TI DP83867 4a101000.mdio:00: attached PHY driver [TI DP83867] (m)
    [   11.772800] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready               
    [  OK  ] Started Kernel Logging Service.                                        
             Starting RPC Bind Service...                                           
    [  OK  ] Started Network Service.                                               
    [  OK  ] Started telnetd.service.                                               
    [  OK  ] Started RPC Bind Service.                                              
    [   13.845330] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow cox
    [   13.880762] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready          
    [  OK  ] Found device /dev/ttyS3.                                               
    [  OK  ] Started Login Service.                                                 
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.        
             Starting thttpd.service...                                             
    [  OK  ] Reached target Network.                                                
             Starting Permit User Sessions...                                       
             Starting Network Name Resolution...                                    
    [  OK  ] Started Permit User Sessions.                                          
    [  OK  ] Started Getty on tty1.                                                 
    [  OK  ] Started Serial Getty on ttyS3.                                         
    [   15.399087] PM: bootloader does not support rtc-only!                        
    [  OK  ] Started Serial Getty on ttyS0.                                         
    [  OK  ] Reached target Login Prompts.                                          
             Starting Synchronize System and HW clocks...                           
    [  OK  ] Started thttpd.service.                                                
    [  OK  ] Started Synchronize System and HW clocks.                              
             Starting rng-tools.service...                                          
    [  OK  ] Started rng-tools.service.                                             
    [  OK  ] Started Network Name Resolution.                                       
    ***************************************************************                 
    ***************************************************************                 
    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 Host and Network Name Lookups.                          
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..                       
             Starting thermal-zone-init.service...                                  
    [  OK  ] Started thermal-zone-init.service.                                     
    [  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 am335x-evm ttyS0                         
                                                                                    
    Arago 2018.08 am335x-evm ttyS0                                                  
                                                                                    
    am335x-evm login:                                                               
     _____                    _____           _         _                           
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_                         
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|                        
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|                          
                  |___|                    |___|                                    
                                                                                    
    Arago Project http://arago-project.org am335x-evm ttyS0                         
                                                                                    
    Arago 2018.08 am335x-evm ttyS0                                                  
                                                                                    
    am335x-evm login:                                                               
     _____                    _____           _         _                           
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_                         
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|                        
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|                          
                  |___|                    |___|                                    
                                                                                    
    Arago Project http://arago-project.org am335x-evm ttyS0                         
                                                                                    
    Arago 2018.08 am335x-evm ttyS0                                                  
                                                                                    
    am335x-evm login: root                                                          
    [   37.673461] NOHZ: local_softirq_pending 40                                   
    [   37.733457] NOHZ: local_softirq_pending 202                                  
    [   38.423477] NOHZ: local_softirq_pending 40                                   
    root@am335x-evm:~#                                                              
    root@am335x-evm:~#                                                              
    root@am335x-evm:~# ifconfig eth0 192.168.1.14                                   
    root@am335x-evm:~# ping 192.168.1.20                                            
    PING 192.168.1.20 (192.168.1.20): 56 data bytes                                 
    ^C                                                                              
    --- 192.168.1.20 ping statistics ---                                            
    5 packets transmitted, 0 packets received, 100% packet loss
    

  • Dear Schuyler Patton ,

    any update on this issue

    regards,
    Sandeep. M
  • Hi,
    Thanks for the boot log. The log indicates that the link is up.

    First please re-verify the data from the checklist request, you attach the results like the boot log
    ethtool eth0
    ethtool -S eth0

    Wire are you setting an ip address statically?
    What is the network topology that you are trying to setup?
    I will suggest that you use wireshark to look at and verify the packets coming out of the interface. You want to see the ARP packets come out looking for the ip address that you are trying to ping.

    Was the ping working before un-commenting the gpio?

    Best Regards,
    Schuyler
  • Hi Schuyler,
    After boot up we actually assigned static ip using ifconfig.Forgot to capture that in the log.We are using tree topology and udp protocol.With out the gpio we are able to use the ethernet and transfer files without any issue.When the gpio is disabled, 50 MHz MII1_REFCLK is available at the same pin and we are able to ping.But in dts we have configured phy-mode as RGMII.Does RGMII mode need MII1_REFCLK to work?

    Regards,

    Chinmay

  • Hi,

    After discussing with a colleague RGMII mode does not need MII1_REFCLK to function.

    With the GPIO enabled and devmem2 reporting the correct value for the gpio mode of the ref clock pin that you want, set the ip address and please attach the results for the following commands:
    ifconfig eth0
    ethtool eth0
    ethtool -S eth0

    after you ping the 192.168.1.20 address

    ifconfig eth0
    ethtool eth0
    ethtool -S eth0

    Is there a way to capture the network traffic from the 192.168.1.20 address in your example?

    You will need to verify that you have a link detected with a link partner and prove arp packets are being transmitted.

    Best Regards,
    Schuyler
  • Hi,

    I have attached the log file :

    Arago Project http://arago-project.org am335x-evm ttyS0
    
    Arago 2018.08 am335x-evm ttyS0
    
    am335x-evm login: root
    root@am335x-evm:~# devmem2 0x44E10944
    /dev/mem opened.
    Memory mapped at address 0xb6f1f000.
    Read at address  0x44E10944 (0xb6f1f944): 0x0000002F
    root@am335x-evm:~# ifconfig eth0 192.168.1.14
    root@am335x-evm:~# ifconfig eth0
    eth0      Link encap:Ethernet  HWaddr C4:F3:12:E7:2A:4A  
              inet addr:192.168.1.14  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::c6f3:12ff:fee7:2a4a%3068208536/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:4656 (4.5 KiB)
              Interrupt:44 
    
    root@am335x-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 Receive-only
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full 
                                    100baseT/Half 100baseT/Full 
                                    1000baseT/Half 1000baseT/Full 
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                                 100baseT/Half 100baseT/Full 
            Link partner advertised pause frame use: Symmetric
            Link partner advertised auto-negotiation: Yes
            Link partner advertised FEC modes: Not reported
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
                                   
            Link detected: yes
    root@am335x-evm:~# ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 0
         Broadcast Rx Frames: 0
         Multicast Rx Frames: 0
         Pause Rx Frames: 0
         Rx CRC Errors: 0
         Rx Align/Code Errors: 0
         Oversize Rx Frames: 0
         Rx Jabbers: 0
         Undersize (Short) Rx Frames: 0
         Rx Fragments: 0
         Rx Octets: 0
         Good Tx Frames: 37
         Broadcast Tx Frames: 8
         Multicast Tx Frames: 29
         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: 5310
         Rx + Tx 64 Octet Frames: 0
         Rx + Tx 65-127 Octet Frames: 29
         Rx + Tx 128-255 Octet Frames: 0
         Rx + Tx 256-511 Octet Frames: 8
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 5310
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 1
         Rx DMA chan 0: tail_enqueue: 127
         Rx DMA chan 0: pad_enqueue: 0
         Rx DMA chan 0: misqueued: 0
         Rx DMA chan 0: desc_alloc_fail: 0
         Rx DMA chan 0: pad_alloc_fail: 0
         Rx DMA chan 0: runt_receive_buf: 0
         Rx DMA chan 0: runt_transmit_bu: 0
         Rx DMA chan 0: empty_dequeue: 0
         Rx DMA chan 0: busy_dequeue: 0
         Rx DMA chan 0: good_dequeue: 0
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 37
         Tx DMA chan 0: tail_enqueue: 0
         Tx DMA chan 0: pad_enqueue: 0
         Tx DMA chan 0: misqueued: 0
         Tx DMA chan 0: desc_alloc_fail: 0
         Tx DMA chan 0: pad_alloc_fail: 0
         Tx DMA chan 0: runt_receive_buf: 0
         Tx DMA chan 0: runt_transmit_bu: 2
         Tx DMA chan 0: empty_dequeue: 37
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 37
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ping 192.168.1.20
    PING 192.168.1.20 (192.168.1.20): 56 data bytes
    ^C
    --- 192.168.1.20 ping statistics ---
    70 packets transmitted, 0 packets received, 100% packet loss
    root@am335x-evm:~# ifconfig eth0
    eth0      Link encap:Ethernet  HWaddr C4:F3:12:E7:2A:4A  
              inet addr:192.168.1.14  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::c6f3:12ff:fee7:2a4a%3068241304/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:13044 (12.7 KiB)
              Interrupt:44 
    
    root@am335x-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 Receive-only
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full 
                                    100baseT/Half 100baseT/Full 
                                    1000baseT/Half 1000baseT/Full 
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                                 100baseT/Half 100baseT/Full 
            Link partner advertised pause frame use: Symmetric
            Link partner advertised auto-negotiation: Yes
            Link partner advertised FEC modes: Not reported
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
                                   
            Link detected: yes
    root@am335x-evm:~# ethtool -S eth0                                                                                                                                    
    NIC statistics:
         Good Rx Frames: 0
         Broadcast Rx Frames: 0
         Multicast Rx Frames: 0
         Pause Rx Frames: 0
         Rx CRC Errors: 0
         Rx Align/Code Errors: 2
         Oversize Rx Frames: 0
         Rx Jabbers: 0
         Undersize (Short) Rx Frames: 0
         Rx Fragments: 0
         Rx Octets: 0
         Good Tx Frames: 110
         Broadcast Tx Frames: 73
         Multicast Tx Frames: 37
         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: 13484
         Rx + Tx 64 Octet Frames: 0
         Rx + Tx 65-127 Octet Frames: 91
         Rx + Tx 128-255 Octet Frames: 2
         Rx + Tx 256-511 Octet Frames: 19
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 13876
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 1
         Rx DMA chan 0: tail_enqueue: 127
         Rx DMA chan 0: pad_enqueue: 0
         Rx DMA chan 0: misqueued: 0
         Rx DMA chan 0: desc_alloc_fail: 0
         Rx DMA chan 0: pad_alloc_fail: 0
         Rx DMA chan 0: runt_receive_buf: 0
         Rx DMA chan 0: runt_transmit_bu: 0
         Rx DMA chan 0: empty_dequeue: 0
         Rx DMA chan 0: busy_dequeue: 0
         Rx DMA chan 0: good_dequeue: 0
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 110
         Tx DMA chan 0: tail_enqueue: 0
         Tx DMA chan 0: pad_enqueue: 0
         Tx DMA chan 0: misqueued: 0
         Tx DMA chan 0: desc_alloc_fail: 0
         Tx DMA chan 0: pad_alloc_fail: 0
         Tx DMA chan 0: runt_receive_buf: 0
         Tx DMA chan 0: runt_transmit_bu: 56
         Tx DMA chan 0: empty_dequeue: 110
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 110
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# 
    
    

    Host PC wireshark screenshot:

    Host PC ifconfig :

    astra@astra-OptiPlex-3020:~$ ifconfig enp2s0
    enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.1.20  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::c9e3:96aa:170b:79ba  prefixlen 64  scopeid 0x20<link>
            ether f8:bc:12:8c:cd:0b  txqueuelen 1000  (Ethernet)
            RX packets 107  bytes 35738 (35.7 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 118  bytes 19138 (19.1 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    astra@astra-OptiPlex-3020:~$ ethtool enp2s0
    Settings for enp2s0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
    Cannot get wake-on-lan settings: Operation not permitted
        Current message level: 0x00000033 (51)
                       drv probe ifdown ifup
        Link detected: yes
    astra@astra-OptiPlex-3020:~$ ethtool -s enp2s0
    astra@astra-OptiPlex-3020:~$ ethtool -S enp2s0
    NIC statistics:
         tx_packets: 118
         rx_packets: 107
         tx_errors: 0
         rx_errors: 0
         rx_missed: 0
         align_errors: 0
         tx_single_collisions: 0
         tx_multi_collisions: 0
         unicast: 0
         broadcast: 107
         multicast: 0
         tx_aborted: 0
         tx_underrun: 0

  • Hi,
    Thanks for posting the logs, the wireshark capture and especially the PC interface statistics. This helps by seeing what the link partners are seeing. Can I assume that the two link partners are directly connected?

    It looks like to me like the data receive interactions with the Ethernet PHY needs to be investigated and why changing the gpio causes this issue. The TI part at the lowest level as captured in the MAC interface statistics is sending out packets. This can only happen if the driver sees a link partner which it does and that is being reported by the ethtool which is indicating a link is detected. Looking at the PC statistics shows that it is receiving packets, roughly the same as what was sent by the TI part. Now looking back at the TI part on the receive side at the MAC level statistics there are not any packets being received. I recommend changing the filter on the wireshark to show all traffic and then look for the ARP traffic between the two link partners. I suspect that the ARP process is not completing and therefore the ICMP packets are not happening.

    As far as a next step I would recommend hooking up a scope to watch the out bound traffic on the MAC to PHY data path. Also verify looking at the PHY datasheet where and what the expected clocks should be on the receive path.

    You might also try changing out the GPIO again to see the expected traffic on wireshark so you have an idea of what that looks like.

    Best Regards,
    Schuyler
  • Hi,
    It has been awhile since we have heard from you so we will assume that you were able to move past the issue. I am going to close the thread and mark it as resolved. If you have additional questions on this thread you can reply to it or start a new thread.
    Best Regards,
    Schuyler