TN Imx Yocto-2.0-Jethro qt5 Source 20161209
TN Imx Yocto-2.0-Jethro qt5 Source 20161209
name version
u-boot 2015.04
linux kernel 4.1.15
Yocto 2.0 (jethro)
EDM layers host packages for Ubuntu 14.04 host setup only:
sudo apt-get install u-boot-tools
ftp://ftp.technexion.net/development_resources/Freescale/yocto/
In Yocto section, download the source tarball. There are already pre-downloaded source
packages in the “downloads” folder inside the source tarball.
To get the BSP you need to have “repo” installed. Install the “repo” utility:
mkdir ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
There are various imx6 SOMs and baseboards in the TechNexion product list. To simplify the
build configuration for different combination of SOM and baseboard, we create “baseboard” option
to select different baseboard for SOM.
“MACHINE” is the target of build. It usually corresponds to the name of SOM or SBC.
For more information, please check the file under “sources/meta-edm-bsp-
release/conf/machine”.
“DISPLAY” is the disply type. This option only works on i.mx6 (i.mx6 Solo/Dual
Lite/Dual/Quad) SOMs and doesn’t work on i.mx6ul and i.mx6sx.
“BASEBOARD” is the baseboard type. This option only works on i.mx6 (i.mx6 Solo/Dual
Lite/Dual/Quad) SOMs and doesn’t work on i.mx6ul and i.mx6sx.
“-b” specify the build directory.
“-e” sets the graphical back end for frame buffer and direct fb images. X11 is default if no
backend is set.
For EDM1-CF-IMX6/EDM1-CF-IMX6P/EDM1-CF-IMX6QP :
bitbake fsl-image-qt5
FAIRY baseboard, QT5 with X11 image for 7 inch LVDS panel:
DISPLAY=lvds7 MACHINE=edm1-cf-imx6 BASEBOARD=fairy source edm-setup-release.sh \
-b build-x11-fairy -e x11
bitbake fsl-image-qt5
FAIRY baseboard, QT5 with X11 image for 7 inch/5 inch TTL-LCD panel:
DISPLAY=lcd MACHINE=edm1-cf-imx6 BASEBOARD=fairy source edm-setup-release.sh \
-b build-x11-fairy -e x11
bitbake fsl-image-qt5
Toucan0700, QT5 with X11 image for 7 inch LVDS panel and disabled debug console:
DISPLAY=lvds7 MACHINE=edm1-cf-imx6-no-console BASEBOARD=tc0700 \
source edm-setup-release.sh -b build-x11-toucan -e x11
bitbake fsl-image-qt5
For PICO-IMX6/PICO-IMX6-POP :
bitbake fsl-image-qt5
DWARF baseboard, QT5 with X11 image for 7 inch LVDS panel:
DISPLAY=lvds7 MACHINE=pico-imx6 BASEBOARD=dwarf source edm-setup-release.sh \
-b build-x11-pico -e x11
bitbake fsl-image-qt5
DWARF baseboard, QT5 with X11 image for 7 inch/5 inch TTL-LCD panel:
DISPLAY=lcd MACHINE=pico-imx6 BASEBOARD=dwarf source edm-setup-release.sh \
-b build-x11-pico -e x11
bitbake fsl-image-qt5
HOBBIT baseboard, QT5 with X11 image for 7 inch LVDS panel:
DISPLAY=lvds7 MACHINE=pico-imx6 BASEBOARD=hobbit source edm-setup-release.sh \
-b build-x11-pico -e x11
bitbake fsl-image-qt5
HOBBIT baseboard, QT5 with X11 image for 7 inch/5 inch TTL-LCD panel:
DISPLAY=lcd MACHINE=pico-imx6 BASEBOARD=hobbit source edm-setup-release.sh \
-b build-x11-pico -e x11
bitbake fsl-image-qt5
bitbake fsl-image-qt5
NYMPH baseboard, QT5 with X11 image for 7 inch LVDS panel:
DISPLAY=lvds7 MACHINE=pico-imx6 BASEBOARD=nymph source edm-setup-release.sh \
-b build-x11-pico -e x11
bitbake fsl-image-qt5
For TEK3-IMX6 :
TEK3-IMX6 BOX PC, QT5 with X11 image for HDMI output:
MACHINE=tek-imx6 source edm-setup-release.sh -b build-x11-tek -e x11
bitbake fsl-image-qt5
For TEP5-IMX6 :
TEP5-IMX6 BOX PC, QT5 with X11 image for 10 inch LVDS output:
DISPLAY=lvds10 MACHINE=tek-imx6 source edm-setup-release.sh -b build-x11-tek -e x11
bitbake fsl-image-qt5
For EDM1-CF-IMX6SX :
bitbake fsl-image-qt5
For PICO-IMX6UL-EMMC :
bitbake fsl-image-gui
HOBBIT baseboard, QT5 with FB image for 7 inch/5 inch TTL-LCD panel:
MACHINE=pico-imx6ul-emmc source edm-setup-release.sh -b build-fb-pico-imx6ul -e fb
bitbake fsl-image-qt5
For PICO-IMX6UL-NAND :
bitbake fsl-image-gui
HOBBIT baseboard, QT5 with FB image for 7 inch/5 inch TTL-LCD panel:
MACHINE=pico-imx6ul-nand source edm-setup-release.sh -b build-fb-pico-imx6ul-nand -e fb
bitbake fsl-image-qt5
Every time after changing the display settings, it requires to clean the target build first:
bitbake -c clean fsl-image-qt5
When you issue the “bitbake” command, you need to make sure the present directory is
“build” directory.
If the build process hangs on fetching some packages, please terminate the existing build
process then restart it.
4. Image Deployment
When build completes, the generated release image is under “${BUILD-
TYPE}/tmp/deploy/images/${MACHINE}”:
fsl-image-qt5-edm1-cf-imx6-20161208145633.rootfs.ext4
fsl-image-qt5-edm1-cf-imx6-20161208145633.rootfs.manifest
fsl-image-qt5-edm1-cf-imx6-20161208145633.rootfs.sdcard
fsl-image-qt5-edm1-cf-imx6-20161208145633.rootfs.tar.bz2
This method is convenient when you are in developing stage. This mode can let you
manipulate eMMC as USB storage.
4.3 Flash image into NAND
Please download generic installer image from TechNexion FTP:
ftp://ftp.technexion.net/development_resources/development_tools/installer/
Flash generic installer image into SD card.
Then are four required files for installation.
1. u-boot.imx
2. zImage
3. *.dtb
4. ubi.img
$ sudo mount /dev/${sd_partition_1} /mnt/temp
$ cd build-x11-pico-imx6ul-nand/tmp/deploy/images/pico-imx6ul-nand
$ sudo cp u-boot.imx /mnt/temp/image/
$ sudo cp zImage /mnt/temp/image/
$ sudo cp zImage-imx6ul-pico-nand_hobbit.dtb /mnt/temp/image/
$ sudo cp fsl-image-gui-pico-imx6ul-nand.ubi /mnt/temp/image/ ubi.img
$ sudo umount /mnt/temp
The default audio output for target image is SGTL5000. You can change it to HDMI audio or
SPDIF.
vim sources/meta-edm-bsp-release/recipes-multimedia/pulseaudio/pulseaudio/default.pa
#set-default-sink alsa_output.platform-sound-hdmi.analog-stereo
set-default-sink alsa_output.platform-sound.analog-stereo
BB_NUMBER_THREADS = '8'
PARALLEL_MAKE = '-j 8'
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
DISPLAY_TYPE = "hdmi720p"
IMAGE_ROOTFS_SIZE = "3000000"
cp tmp/work/edm1_cf_imx6-poky-linux-gnueabi/linux-tn-imx/4.1.15-r0/build/.config ../sources/meta-edm-
bsp-release/recipes-kernel/linux/linux-tn-imx-4.1.15/defconfig
bitbake fsl-image-qt5
For IMX6UL:
sh fsl-imx-x11-glibc-x86_64-meta-toolchain-cortexa7hf-vfp-neon-toolchain-4.1.15-1.2.0.sh
Compile the C file:
For IMX6:
source /opt/poky/1.7/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
$CC hello_arm_world.c
For IMX6UL:
source /opt/fsl-imx-x11/4.1.15-1.2.0/environment-setup-cortexa7hf-vfp-neon-poky-linux-gnueabi
$CC hello_arm_world.c