Hi, all
I want to use PING in uboot, but there is a problem , and here is the output of uboot:
U-Boot 2015.04 (Oct 11 2016 - 15:40:16)
CPU: Freescale i.MX6UL rev1.1 at 396 MHz
CPU: Temperature 44 C
Reset cause: POR
Board: MX6UL 14x14 EVK
I2C: ready
DRAM: 512 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment
Display: AC150 (1024x768)
Video: 1024x768x24
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc1(part 0) is current device
Net: FEC0
Normal Boot
Hit any key to stop autoboot: 0
=> mii read 0-2 1-6
addr=00 reg=01 data=0000
addr=00 reg=02 data=0000
addr=00 reg=03 data=0000
addr=00 reg=04 data=0000
addr=00 reg=05 data=0000
addr=00 reg=06 data=0000
addr=01 reg=01 data=0000
addr=01 reg=02 data=0000
addr=01 reg=03 data=0000
addr=01 reg=04 data=0000
addr=01 reg=05 data=0000
addr=01 reg=06 data=0000
addr=02 reg=01 data=0000
addr=02 reg=02 data=0000
addr=02 reg=03 data=0000
addr=02 reg=04 data=0000
addr=02 reg=05 data=0000
addr=02 reg=06 data=0000
=> ping 172.16.0.1
Using FEC0 device
ping failed; host 172.16.0.1 is not alive
Here is my configurations:
mx6ul_14x14_evk.h :
#define CONFIG_FEC_ENET_DEV 0/* Fresxc */
#if (CONFIG_FEC_ENET_DEV == 0)
#define IMX_FEC_BASE ENET_BASE_ADDR
#define CONFIG_FEC_MXC_PHYADDR 0x2
#define CONFIG_FEC_XCV_TYPE RMII
#elif (CONFIG_FEC_ENET_DEV == 1)
#define IMX_FEC_BASE ENET2_BASE_ADDR
#define CONFIG_FEC_MXC_PHYADDR 0x1 /* need board rework */
#define CONFIG_FEC_XCV_TYPE RMII
#endif
/* fresxc */
#define CONFIG_IPADDR 172.16.0.123
#define CONFIG_NETMASK 255.255.255.0
#define CONFIG_GATEWAYIP 172.16.0.1
#define CONFIG_ETHADDR 06:05:04:03:02:01
mx6ul_14x14_evk.c:
static iomux_v3_cfg_t const fec1_pads[] = {
// MX6_PAD_GPIO1_IO06__ENET1_MDIO | MUX_PAD_CTRL(MDIO_PAD_CTRL),
// MX6_PAD_GPIO1_IO07__ENET1_MDC | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET1_TX_DATA0__ENET1_TDATA00 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET1_TX_DATA1__ENET1_TDATA01 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET1_TX_EN__ENET1_TX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 | MUX_PAD_CTRL(ENET_CLK_PAD_CTRL),
MX6_PAD_ENET1_RX_DATA0__ENET1_RDATA00 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET1_RX_DATA1__ENET1_RDATA01 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET1_RX_ER__ENET1_RX_ER | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET1_RX_EN__ENET1_RX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),
};
static iomux_v3_cfg_t const fec2_pads[] = {
/* When i release ENET1_MDIO & ENET1_MDC and/or comment ENET2_MDIO & ENET2_MDC, The output of uboot will be said PHY 2 could not found */
MX6_PAD_GPIO1_IO06__ENET2_MDIO | MUX_PAD_CTRL(MDIO_PAD_CTRL),
MX6_PAD_GPIO1_IO07__ENET2_MDC | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET2_TX_DATA0__ENET2_TDATA00 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET2_TX_DATA1__ENET2_TDATA01 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET2_TX_CLK__ENET2_REF_CLK2 | MUX_PAD_CTRL(ENET_CLK_PAD_CTRL),
MX6_PAD_ENET2_TX_EN__ENET2_TX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET2_RX_DATA0__ENET2_RDATA00 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET2_RX_DATA1__ENET2_RDATA01 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET2_RX_EN__ENET2_RX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET2_RX_ER__ENET2_RX_ER | MUX_PAD_CTRL(ENET_PAD_CTRL),
};
I do not know what to look for to resolve this problem...
Thank you in advance for your help !
Fresxc
Solved! Go to Solution.
Hi Fresxc
after setting #define CONFIG_FEC_ENET_DEV 0, no additional
code modifications are needed. Another port will not be available.
Please rebuild it and check ethernet following sect.4.4.1.1 Downloading
an image to MMC/SD attached Linux Guide for configuring the U-Boot
environment for network communications.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Fresxc
after setting #define CONFIG_FEC_ENET_DEV 0, no additional
code modifications are needed. Another port will not be available.
Please rebuild it and check ethernet following sect.4.4.1.1 Downloading
an image to MMC/SD attached Linux Guide for configuring the U-Boot
environment for network communications.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------