Verification Environment
Before you start to verify the new Ethernet driver, you need to define the environment variables for the following items.
- U-Boot
- Board IP address (by setting the variable of ipaddr)
- Active Ethernet Interface (by setting the variable of ethact)
- Interface MAC address (by setting the variable of ethaddr)
As a single-process operating system, Linux can only operate one Ethernet driver (interface) at a time. Thus you need to specify in the above parameters to inform U-Boot which interface is active before use.
The following code block provides an example.
===>print baudrate=115200 boottargs=console=ttySO,115200 debug rootwait earlycon=sbi bootcmd=run load_vf2_env;run importbootenv;run boot2;run distro_bootcmd bootcmd_mmc0=devnum=0; run mmc_boot bootde|ay=2 bootdir=/boot eth0addr=6c:cf:39:7c:4e:22 ethladdr=6c:cf:39:7c:3e:53 ethact=ethernet@16030000 ethaddr=6c:cf:39:7c:4e:22 ipaddr=192.168.120.230 netmask=255.255.255.0 stderr=serial@10000000 stdin=serial@10000000 stdout=serial@10000000