#endif #ifdefCONFIG_ETH1ADDR "eth1addr="MK_STR (CONFIG_ETH1ADDR)"\0" #endif #ifdefCONFIG_ETH2ADDR "eth2addr="MK_STR (CONFIG_ETH2ADDR)"\0" #endif #ifdefCONFIG_ETH3ADDR "eth3addr="MK_STR (CONFIG_ETH3ADDR)"\0" #endif #ifdefCONFIG_ETHPRIME "ethprime="CONFIG_ETHPRIME"\0" #end...
inteth_rx(void){structudevice*current;uchar*packet;intflags;intret;inti;current=eth_get_dev();if(!current)return-ENODEV;if(!device_active(current))return-EINVAL;/* Process up to 32 packets at one time */flags=ETH_RECV_CHECK_DEVICE;for(i=0;i<32;i++){ret=eth_get_ops(current)->recv...
console=ttymxc0 ethact=FEC1 ethprime=FEC fdt_addr=0x83000000 fdt_file=undefined fdt_high=0xffffffff findfdt=if test $fdt_file = undefined; then if test $board_name = EVK && test $board_rev = 9X9; then setenv fdt_file imx6ull-9x9-evk.dtb; fi; if tst $board_name = EVK && t...
CONFIG_ETH3ADDR39"eth3addr="MK_STR(CONFIG_ETH3ADDR)"\0"40#endif41#ifdef CONFIG_ETH4ADDR42"eth4addr="MK_STR(CONFIG_ETH4ADDR)"\0"43#endif44#ifdef CONFIG_ETH5ADDR45"eth5addr="MK_STR(CONFIG_ETH5ADDR)"\0"46#endif47#ifdef CONFIG_ETHPRIME48"ethprime="CONFIG_ETHPRIME"\0"49#endif50#...
#define CONFIG_ETHPRIME "FEC" #define CONFIG_PHYLIB #define CONFIG_PHY_SMSC #endif #define CONFIG_IMX_THERMAL #ifndef CONFIG_SPL_BUILD #define CONFIG_VIDEO #ifdef CONFIG_VIDEO #define CONFIG_CFB_CONSOLE #define CONFIG_VIDEO_MXS #define CONFIG_VIDEO_LOGO ...
#define CONFIG_ETHPRIME "FEC" #define CONFIG_PHYLIB #define **CONFIG_PHY_SMSC** #endif 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 修改*board/freescale/mx6ull_jarvis_emmc/mx6ull_jarvis_emmc.c* 内容比较多,一共修改了3个文件,内容较多,输出diff。
OK In: serial Out: serial Err: serial Net: eth1: ethernet@20b4000 [PRIME] Hit any key to stop autoboot: 0 = > = > 3.验证网络是否连通 使用ping命令,验证网络是否可以正常工作 = > ping 192.168.0.106 Using ethernet@20b4000 device ARP Retry count exceeded; starting again ping failed; host...
可以看到initr_net函数其实就两个作用,一是调用eth_initialize进行网络初始化,二是调用reset_phy对phy进行复位,具体实现,如下; static int initr_net(void){puts("Net: ");eth_initialize();#if defined(CONFIG_RESET_PHY_R)debug("Reset Ethernet PHY\n");reset_phy();#endifreturn 0;} ...
ethact=FM1@DTSEC1 ethaddr=00-04-9F-02-4C-4C ethprime=e1000#0 fdtaddr=c00000 fdtfile=uImage-p2041rdb.dtb filesize=80000 fman_ucode=0xef000000 gatewayip=192.168.2.123 hvboot=setenv bootargs config-addr=0xfe8900000;bootm 0xfe8700000 - 0xfe8800000 hwconfig=fsl_ddr:ctlr_intlv=cacheline,...
device*dev=eth_devices;char*ethprime=getenv("ethprime");show_boot_progress(65);do{if(eth_number)puts(",");printf("%s",dev->name);//如果到结境结量找”ethprime”,结将eth_current指向前当eth_device。if(ethprime&&strcmp(dev->name,ethprime)==0){eth_current=dev;puts("[PRIME]");}//...