Hello World Application for imx8m mini evk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hello World Application for imx8m mini evk

1,221 Views
VinithNama
Contributor III

Hi ,

     I'm using an IMX8M MINI EVK i need to cross compile my helloworld application to the evk board

 

0 Kudos
3 Replies

1,216 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

Follow these steps, please!

Firstly you will have to prepare cross compile toolchain.

1. you can refer to i.MX_Yocto_Project_User's_Guide and i.MX_Linux_Users_Guide.pdf to export cross compile toolchain.

or.

2. the following steps are what I often uses, for you reference

# mkdir ~/bin (this step may not be needed if the bin folder already exists)
# curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
# chmod a+x ~/bin/repo
# export PATH=~/bin:$PATH
# mkdir imx-yocto-bsp-l5.4.24_2.31.0
# cd imx-yocto-bsp-l5.4.24_2.1.0
# repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -
m imx-5.4.24-2.1.0.xml
# repo sync

 

# DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source imx-setup-release.sh -b build-fb
# cd ../
# DISTRO= fsl-imx-xwayland MACHINE=imx8mmevk bitbake core-image-minimal -c populate_sdk

 

After all tasks are done, a .sh file will be find in build_fb/tmp/deploy/sdk, it’s name is like
this:
fsl-imx-xwayland-glibc-x86_64-imx-image-full-aarch64-imx8mmevk-toolchain-5.4-zeus.sh
copy the file to /opt,
# cd build_fb/tmp/deploy/sdk
# sudo cp fsl-imx-xwayland-glibc-x86_64-imx-image-full-aarch64-imx8mmevk-toolchain-5.4-zeus.sh /opt
# cd /opt

# chmod a+x fsl-imx-xwayland-glibc-x86_64-imx-image-full-aarch64-imx8mmevk-toolchain-5.4-zeus.sh
# sudo ./ fsl-imx-xwayland-glibc-x86_64-imx-image-full-aarch64-imx8mmevk-toolchain-5.4-zeus.sh
Use the default directory to install it, and the toolchain installation will be done.

3. writing your hello_world.c and cross compiling it.

---example code , see attachment, please!

---before compiling it, run the command to configure cross compiling environment

(Below is my toolchain's path)

# source /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux

# make hello

weidong_sun_0-1622510810341.png

Hope above steps are helpful for you.

Have a nice day!

B.R,

weidong

 

1,211 Views
VinithNama
Contributor III

While Entering the make hello it showing make: ****No rule to make target 'hello'. stop.

0 Kudos

1,205 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Didn't you decompress Makefile.rar ?

0 Kudos