For UBUNTU 20.04
*****************
for others you check gcc- press TAB you will gcc get version
sudo apt-get install gcc-10-arm-linux-gnueabihf
sudo apt-get install gcc-10-arm-linux-gnueabihf-base
if you have issue with arm-linux-gnueabihf-gcc not found
then goto cd /usr/bin
sudo ln -sf arm-linux-gnueabihf-gcc-10 arm-linux-gnueabihf-gcc
Other Ubuntu versions
*******************************************************
https://www.dropbox.com/scl/fi/sjrhails1jxorr5915p4e/fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7t2hf-neon-mys-6ull-toolchain-5.10-gatesgarth.sh?rlkey=ystecozp00s288fpbnatmba7z&dl=
chmod +x fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7t2hf-neon-mys-6ull-toolchain-5.10-gatesgarth.sh
./fsl-imx-fb-glibc-x86_64-meta-toolchain-cortexa7t2hf-neon-mys-6ull-toolchain-5.10-gatesgarth.sh
source environment-setup-cortexa7t2hf-neon-poky-linux-gnueabi
in terminal type "arm-" and press tab 2 times quickly to see toolchain
2.3 U-Boot
//
mkdir ~/yoctotutor
cd ~/yoctotutor
git clone https://github.com/viyaraembedded/viyara-imx-uboot.git
cd viyara-imx-uboot
git checkout imx_2020.04
setup toolchain
****************
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
make mrproper
make ve_imx6ull_nand_ddr256_defconfig
make
2.3.1 test U-boot on board
IMP NOTE: before flash uboot make sdcard partion using gpart
Connect MicroSD card to ubuntu PC
run the below command in uboot dir
sudo dd if=u-boot-dtb.imx of=/dev/sdX bs=1K seek=1 && sync
Note: here mysdcard connected as /dev/sdc check yours using df -h
remove SDcard and connect to board.
power on board using Micro USB cable
Jumper settings: Boot Mode
SDcard: 0 0 1 0 # 0 - down 1- up
Nand : 1 0 0 1
2.4 Linux Kernel
2.4.1 Download Linux
//
cd ~/yoctotutor
git clone https://github.com/viyaraembedded/viyara-imx-linux.git
cd viyara-imx-linux
git checkout viyara_lf-5.10.y
setup toolchain
****************
export ARCH=arm
export CROSS_COMPILE= arm-linux-gnueabihf-
make mrproper
make ve_6ulx_defconfig
make -j4