Skip to content

Instantly share code, notes, and snippets.

@carloscn
Created September 17, 2022 00:43
Show Gist options
  • Save carloscn/a533af3bc5d769fc07a2c301a61f5802 to your computer and use it in GitHub Desktop.
Save carloscn/a533af3bc5d769fc07a2c301a61f5802 to your computer and use it in GitHub Desktop.
NXP IMX6 嵌入式板子一些笔记

Set device a fix MAC address on Linux layer.

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."
        ;;
@carloscn
Copy link
Author

carloscn commented Mar 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment