yocto tutor
  • docs.yoctotutor.com
  • Boards
  • VIYARA I.MX6ull
  • others
    • Rugged board A5D2x
Powered by GitBook
On this page
  • 1. Hardware Requirements
  • 2. Software Requirements
  • 2.1 Requirements:
  • 2.2 Toolchain Setup
  • 2.3 U-Boot
  • 2.4 Linux Kernel

Was this helpful?

VIYARA I.MX6ull

Previousdocs.yoctotutor.comNextothers

Last updated 1 year ago

Was this helpful?

1. Hardware Requirements

2. Software Requirements

  1. Requirements

  2. Toolchain setup

  3. uboot

  4. Linux kernel

2.1 Requirements:

  1. ubuntu PC 16.04+ LTS

  2. Download below dependencies

sudo apt-get update
sudo  apt-get -y upgrade
sudo apt install -y gawk wget flex bison git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev python3-subunit mesa-common-dev zstd liblz4-tool file locales

2.2 Toolchain Setup

follow below steps

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

Copy Images to SDcard

cp arch/arm/boot/zImage /media/dell/BOOT/

cp arch/arm/boot/dts/myd-y6ull-gpmi-weim.dtb /media/dell/BOOT/

Onboard Flashing Images for SDcrad:

=> setenv mmcroot '/dev/mmcblk0p2 rootwait rw rootdelay=5 mem=256M'
=> run mmcargs
=> fatload mmc 0 0x83000000 zImage
	8649272 bytes read in 384 ms (21.5 MiB/s)
=> fatload mmc 0 0x84000000 mys-6ull-14x14-gpmi-weim.dtb
	35858 bytes read in 10 ms (3.4 MiB/s)
=> bootz 0x83000000 - 0x84000000 

RootFS for imx6ull

tar -xvf mys-6ulx-debian-jessie.tar.gz -C /media/${USER}/rootfs

sync

How make sdcard partiton

https://support.criticallink.com/redmine/projects/imx6/wiki/Creating_a_Bootable_SD_Card
Page cover image
https://tftp.yoctotutor.com/elinux/mys6ulx/mys-6ulx-debian-jessie.tar.gz