start)echo-n"Configuring network interfaces... "sysctl-e-p/etc/sysctl.conf>/dev/null2>&1#========set fix mac address by Carlosecho"[USER]/etc/init.d/networking: start to change the fix mac address for device."ifconfigeth0downecho"[USER]/etc/init.d/networking: config the mac address to 5A:A1:6A:97:F3:C8."ifconfigeth0hwether5A:A1:6A:97:F3:C8echo"[USER]/etc/init.d/networking: link up."ifconfigeth0upecho""#========set by Carlos finishifup-aecho"done.";;
note: The original README has been changed to README.old
Compiling the Linux Kernel for IMX6
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- imx_v7_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig (optional)
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- all -j16
The compiled output zImage is saved on arch/arm/boot
The compiled .dtb files are saved on the arch/arm/boot/dts
Starting compiled dirty Linux Kernel
config nfs on your host
installing nfs-kernel-server on your host
sudo apt-get install nfs-kernel-server rpcbind
config exports on your host
sudo vim /etc/exports
and you need to add the NFS sharing path on the exports: /home/carlos/nfs *(rw,sync,no_root_squash)
changing the version of nfs-kernel-server
Note, the nfs version of ubuntu 20.04 is too high to transform file for uboot. So we need to modify the version config manually by
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mx6ull_14x14_ddr512_emmc_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- all -j16