vi /etc/init.d/networking
on start handler.
start)
echo -n "Configuring network interfaces... "
sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
#========set fix mac address by Carlos
echo "[USER]/etc/init.d/networking: start to change the fix mac address for device."
ifconfig eth0 down
echo "[USER]/etc/init.d/networking: config the mac address to 5A:A1:6A:97:F3:C8."
ifconfig eth0 hw ether 5A:A1:6A:97:F3:C8
echo "[USER]/etc/init.d/networking: link up."
ifconfig eth0 up
echo ""
#========set by Carlos finish
ifup -a
echo "done."
;;
steps
setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
fatload mmc 0:1 80800000 zImage
fatload mmc 0:1 83000000 imx6ull-14x14-evk.dtb
bootz 0x80800000 - 0x83000000
env
setenv bootargs_mmc 'setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw'
setenv bootcmd_mmc 'run bootargs_mmc; fatload mmc 0:1 80800000 zImage; fatload mmc 0:1 83000000 imx6ull-14x14-evk.dtb;bootz 0x80800000 - 0x83000000'
setenv bootcmd 'run bootcmd_mmc'
saveenv