DART-6UL Yocto Jethro R1 build: Difference between revisions
(Created page with "{{PageHeader|DART-6UL - Yocto fsl-4.1.15 Yocto Jethro R1 Build}} {{DocImage|category1=DART-6UL|category2=Yocto}} __toc__ = Installing required packages<br/> = Follow the link...") |
No edit summary |
||
(29 intermediate revisions by 2 users not shown) | |||
Line 27: | Line 27: | ||
$ export PATH=~/bin:$PATH | $ export PATH=~/bin:$PATH | ||
$ mkdir ~/var- | $ mkdir ~/var-mx6ul-mx7-yocto-jethro | ||
$ cd ~/var- | $ cd ~/var-mx6ul-mx7-yocto-jethro | ||
$ repo init -u | $ repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp.git -b imx-4.1.15-1.0.0_ga | ||
$ repo sync | $ repo sync | ||
</pre> | </pre> | ||
Line 35: | Line 35: | ||
= Download Yocto Jethro i.MX6UL with Meta Variscite DART-6UL support = | = Download Yocto Jethro i.MX6UL with Meta Variscite DART-6UL support = | ||
<pre> | <pre> | ||
$ cd ~/var- | $ cd ~/var-mx6ul-mx7-yocto-jethro/sources | ||
$ git clone https://github.com/varigit/meta-variscite- | $ git clone https://github.com/varigit/meta-variscite-mx6ul-mx7.git -b imx_4.1.15_ga-var01 | ||
$ | $ cp meta-variscite-mx6ul-mx7/scripts/var-setup-release.sh ../ | ||
$ patch -p1 < meta-variscite-mx6ul-mx7/patch/Fix-FSL-multi-patch-append-bugs.patch | |||
$ patch -p1 < meta-variscite- | |||
</pre> | </pre> | ||
= Setup and build Yocto = | = Setup and build Yocto = | ||
The following | The following distros can be used: | ||
* fsl-imx-x11 - Only X11 graphics | * fsl-imx-x11 - Only X11 graphics | ||
* fsl-imx-wayland - Wayland weston graphics | * fsl-imx-wayland - Wayland weston graphics | ||
Line 50: | Line 48: | ||
* fsl-imx-fb - Frame Buffer graphics - no X11 or Wayland | * fsl-imx-fb - Frame Buffer graphics - no X11 or Wayland | ||
<br> | <br> | ||
Note: refer to | Note: refer to [https://variscite-public.nyc3.cdn.digitaloceanspaces.com/VAR-SOM-MX6/Software/Linux/Yocto/fsl-yocto-imx-4.1.15_1.0.0-docs/Freescale_Yocto_Project_User's_Guide.pdf Freescale_Yocto_Project_User's_Guide.pdf] <br> | ||
Page 7 for further information. <br> | Page 7 for further information. <br> | ||
'''Sample build scenarios:''' | '''Sample build scenarios:''' | ||
* [[ | * [[#Build X11 GUI image without Qt content|Build X11 GUI image without Qt content]] | ||
* [[ | * [[#Build Qt5 image without X11|Build Qt5 image without X11]] | ||
== Build X11 GUI image without Qt content == | == Build X11 GUI image without Qt content == | ||
<pre> | <pre> | ||
$ cd ~/var- | $ cd ~/var-mx6ul-mx7-yocto-jethro | ||
$ DISTRO=fsl-imx-x11 source var-setup-release.sh -b build_x11 | $ MACHINE=imx6ul-var-dart DISTRO=fsl-imx-x11 source var-setup-release.sh -b build_x11 | ||
</pre> | </pre> | ||
Line 73: | Line 71: | ||
</pre> | </pre> | ||
== Build | == Build Qt5 image without X11 == | ||
<pre> | <pre> | ||
$ cd ~/var- | $ cd ~/var-mx6ul-mx7-yocto-jethro | ||
$ DISTRO=fsl-imx-fb source var-setup-release.sh -b build-fb | $ MACHINE=imx6ul-var-dart DISTRO=fsl-imx-fb source var-setup-release.sh -b build-fb | ||
</pre> | </pre> | ||
Line 87: | Line 85: | ||
$ bitbake fsl-image-qt5 | $ bitbake fsl-image-qt5 | ||
</pre> | </pre> | ||
== Build Results == | == Build Results == | ||
The resulted images are located in tmp/deploy/images/imx6ul-var-dart/ | The resulted images are located in tmp/deploy/images/imx6ul-var-dart/ | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 108: | Line 93: | ||
! scope="col" | Image Name<br/> | ! scope="col" | Image Name<br/> | ||
! scope="col" | How to use<br/> | ! scope="col" | How to use<br/> | ||
|- | |- | ||
| fsl-image-gui-imx6ul-var-dart.sdcard | | fsl-image-gui-imx6ul-var-dart.sdcard | ||
| This image is for SD | | This image is for SD card boot.<br> It can be flashed as-is on an SD card and you can boot your system <br> form SD card, according to the relevant startup-guide of your product (usually requires to press the boot select button, or toggle a dip-switch). | ||
For detailed information refer to Create a sample | For detailed information refer to Create a sample SD card section below [[#Create_a_bootable_SD_card |Create a bootable SD card]]. | ||
|- | |- | ||
| fsl-image-gui-imx6ul-var-dart.tar.bz2 | | fsl-image-gui-imx6ul-var-dart.tar.bz2 | ||
Line 120: | Line 102: | ||
|- | |- | ||
| fsl-image-gui-imx6ul-var-dart.ubi | | fsl-image-gui-imx6ul-var-dart.ubi | ||
| Use the | | Use the SD card created above. Copy the file into it and use the following commands to flash them into NAND.<br/>Coping files (mount the SD card created above first): | ||
|- | |- | ||
| zImage | | zImage | ||
Line 126: | Line 108: | ||
|- | |- | ||
| SPL-nand | | SPL-nand | ||
| SPL built for NAND | | SPL built for NAND flash. The SPL is a pre-U-Boot SW component, required for DDR initialization | ||
|- | |- | ||
| SPL-sd | | SPL-sd | ||
| SPL built for SD | | SPL built for SD card boot. The SPL is pre-U-Boot SW component, required for DDR initialization | ||
|- | |- | ||
| u-boot.img-sd | | u-boot.img-sd | ||
| | | U-Boot built for SD card boot, or eMMC boot | ||
|- | |- | ||
| u-boot.img-nand | | u-boot.img-nand | ||
| | | U-Boot built for NAND flash boot | ||
|- | |- | ||
! scope="col" | Device Tree Name<br/> | ! scope="col" | Device Tree Name<br/> | ||
Line 144: | Line 123: | ||
|- | |- | ||
| zImage-imx6ul-var-dart-emmc_wifi.dtb | | zImage-imx6ul-var-dart-emmc_wifi.dtb | ||
| Boot from internal eMMC with WI-FI enabled. ( | | Boot from internal eMMC with WI-FI enabled. (SD card & NAND disabled) | ||
|- | |- | ||
| zImage-imx6ul-var-dart-nand_wifi.dtb | | zImage-imx6ul-var-dart-nand_wifi.dtb | ||
| Boot from internal NAND with WI-FI enabled. ( | | Boot from internal NAND with WI-FI enabled. (SD card & eMMC disabled) | ||
|- | |- | ||
| zImage-imx6ul-var-dart-sd_emmc.dtb | | zImage-imx6ul-var-dart-sd_emmc.dtb | ||
| | | SD card and eMMC enabled (WIFI & NAND disabled). You can boot from eMMC or SD card | ||
|- | |- | ||
| zImage-imx6ul-var-dart-sd_nand.dtb | | zImage-imx6ul-var-dart-sd_nand.dtb | ||
| | | SD card and NAND enabled (WIFI & eMMC disabled). You can boot from NAND or SD card | ||
|- | |- | ||
|} | |} | ||
= Create a bootable SD | = Create a bootable SD card = | ||
== SD | == SD card structure == | ||
The first unallocated 4MB are saved space for U-Boot. it can be replaced with a dd command described in "U-Boot out of tree" section below.<br> | |||
The first partition is a fat16 partition used for the Linux uImage and device tree files. You can copy them as described in the Linux out of tree section.<br> | |||
The second partition is an ext4 partition that contains the complete file system and modules. | |||
<br>The | |||
<br>The | |||
== Yocto pre-built bootable SD card == | |||
The Yocto build products contains many files as explained in [[#Build Results|Build Results]] section above including a ".sdcard" file. For example, fsl-image-gui-imx6ul-var-dart.sdcard, depending on your build.<br> | |||
This is a complete image to be flashed directly to an SD card.<br> | |||
Example usage: | |||
<pre> | |||
$ cd ~/var-mx6ul-mx7-yocto-jethro/build_x11 | |||
$ sudo dd if=tmp/deploy/images/imx6ul-var-dart/fsl-image-gui-imx6ul-var-dart.sdcard of=/dev/sdX bs=1M | $ sudo dd if=tmp/deploy/images/imx6ul-var-dart/fsl-image-gui-imx6ul-var-dart.sdcard of=/dev/sdX bs=1M | ||
Replace sdX with the right device name. | Replace sdX with the right device name. | ||
</pre> | </pre> | ||
Drawbacks of the native .sdcard yocto-built image: | Drawbacks of the native .sdcard yocto-built image: | ||
* The second partition size doesn't use the entire SD | * The second partition size doesn't use the entire SD card. | ||
* The second partition is not labeled as rootfs. | * The second partition is not labeled as rootfs. | ||
* The NAND and eMMC flashing scripts are not included. | * The NAND and eMMC flashing scripts are not included. | ||
== Create an extended SD | == Create an extended SD card == | ||
Variscite provides var-create-yocto-sdcard.sh script | Variscite provides the var-create-yocto-sdcard.sh script which creates our NAND/eMMC recovery SD card - an SD card based on the fsl-image-gui filesystem, which copies the NAND flash burning scripts and relevant binaries for your convenience.<br> | ||
Later, you will be able to follow either the more automatic [[DART-6UL Yocto NAND Recovery|DART-6UL Yocto Recovery SD card]] guide or the more manual [[DART-6UL NAND Flash Burning|Flashing the internal storage device]] guide to burn your images to NAND flash or eMMC.<br><br> | |||
< | |||
Note:<br> | |||
This is essentially the same as our pre-built Recovery SD image, with the following main difference:<br> | |||
The pre-built image's rootfs partition size is 3700MiB, which is also the default size when using the script, but the script also has an option to set the rootfs partition size to fill the whole free space of the used SD card. Anyway, you can always resize the partition later with an external tool such as gparted.<br> | |||
Naturally, the pre-built image is more straight forward and easier to use, while the script method is easier to customize.<br><br> | |||
Usage:<br> | |||
* Follow the [[#Setup and build Yocto|Setup and build Yocto]] guide, and bitbake fsl-image-gui. | |||
* Plug-in the SD card to your Linux HOST PC, run dmesg and see which device is added (i.e. /dev/sdX or /dev/mmcblkX) | |||
<pre> | |||
$ sudo MACHINE=imx6ul-var-dart ~/var-mx6ul-mx7-yocto-jethro/sources/meta-variscite-mx6ul-mx7/scripts/var_mk_yocto_sdcard/var-create-yocto-sdcard.sh <options> /dev/sdX | |||
(Replace /dev/sdX with your actual device) | |||
</pre> | |||
<pre> | |||
options: | |||
-h Display help message | |||
-s Only show partition sizes to be written, without actually write them | |||
-a Automatically set the rootfs partition size to fill the SD card | |||
If you don't use the '-a' option, a default rootfs size of 3700MiB will be used | |||
</pre> | |||
= Boot board with a bootable SD card = | |||
<span style="color:red">Note: Boot from SD card eliminates Wifi</span> as the Wifi and SD card are using same SDIO interface.<br> | |||
A typical use-case, is to boot from SD card, flash eMMC or NAND flash, and re-boot form eMMC/NAND to have Wi-Fi operational. | |||
== Setting the Boot DIP switches == | |||
Booting your system from an SD card requires switching the Boot DIP switches. See picture below. | |||
[[File:Boot_switch_6ul1.jpg|thumb|none|upright=2.0]] | [[File:Boot_switch_6ul1.jpg|thumb|none|upright=2.0]] | ||
* "00" The current position in the picture will set the system to boot from SD card. | |||
* "00" | * "01" Moving the right switch will set the system to boot from eMMC | ||
* "01" | * "10" Moving the left switch will set the system to boot from NAND flash | ||
* "10" | |||
* "11" is illegal. | * "11" is illegal. | ||
Be aware that your | Be aware that your system has eMMC or NAND but never both. | ||
== Automatic device Tree selection in U-Boot == | == Automatic device Tree selection in U-Boot == | ||
Upon reset you will see the U- | Upon reset you will see the U-Boot SPL printouts. It will print also the SOM configuration: | ||
<br>On-SOM storage: SD only, eMMC, NAND. | <br>On-SOM storage: SD only, eMMC, NAND. | ||
<br>WIFI if chip exits. | <br>WIFI if chip exits. | ||
Line 228: | Line 212: | ||
</pre> | </pre> | ||
As explained in the above [[DART-6UL Yocto Fido R1 Build Yocto release#Build_Results | Build Results]] table we have 4 optional configurations. | As explained in the above [[DART-6UL Yocto Fido R1 Build Yocto release#Build_Results | Build Results]] table we have 4 optional configurations. | ||
<br>We implemented in U- | <br>We implemented in U-Boot and automatic device tree selection, so when kernel boots, the U-Boot will load the corresponding device tree according to On-SOM configuration. | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 268: | Line 252: | ||
|} | |} | ||
<span style="color:red">Note: Boot from SD | <span style="color:red">Note: Boot from SD card eliminates Wifi</span> as the Wifi and SD card are using same SDIO interface.<br> | ||
A typical use-case, is to boot from SD | A typical use-case, is to boot from SD card, flash eMMC or NAND flash, and re-boot form eMMC/NAND to have Wi-Fi operational. | ||
== Disable Automatic Device Tree selection == | == Disable Automatic Device Tree selection == | ||
To disable the automatic device tree selection in | To disable the automatic device tree selection in U-Boot: | ||
<pre> | <pre> | ||
$ setenv var_auto_fdt_file=N | $ setenv var_auto_fdt_file=N | ||
Line 292: | Line 276: | ||
= Flash images to NAND/eMMC = | = Flash images to NAND/eMMC = | ||
Please refer to [ | Please refer to [https://variwiki.com/index.php?title=DART-6UL_NAND_Flash_Burning DART-6UL NAND Flash Burning] | ||
= QT5/Embedded runtime = | = QT5/Embedded runtime = | ||
Line 322: | Line 306: | ||
</pre> | </pre> | ||
= Update Yocto Jethro Meta-Variscite = | |||
From time to time we will post updates to meta-variscite that will include new features and bug fixes.<br> | |||
Follow the instructions below to update your tree: | |||
<pre> | |||
$ cd ~/var-mx6ul-mx7-yocto-jethro/sources/meta-variscite-mx6ul-mx7/ | |||
= Update Yocto Jethro | |||
From time to time we will post updates to meta-variscite | |||
<pre>$ cd ~/var- | |||
$ git fetch origin | $ git fetch origin | ||
$ git checkout imx_4.1.15_ga-var01 | |||
$ git pull | $ git pull | ||
$ cd ~/var- | Setup your enviroment: | ||
$ DISTRO=fsl-imx-x11 source var-setup-release.sh -b build_x11 | $ cd ~/var-mx6ul-mx7-yocto-jethro | ||
In order to update the kernel | $ MACHINE=imx6ul-var-dart DISTRO=fsl-imx-x11 source var-setup-release.sh -b build_x11 | ||
$ bitbake -c cleanall | In order to update the kernel and U-Boot: | ||
$ bitbake -c cleanall fsl-image-gui u-boot-variscite linux-variscite cryptodev-module | |||
and build your image | and build your image: | ||
$ bitbake fsl-image-gui | $ bitbake fsl-image-gui | ||
</pre> | </pre> |
Latest revision as of 20:54, 22 August 2024
Installing required packages
Follow the link below and install all required packages on your machine.
www.yoctoproject.org/docs/latest/yocto-project-qs/yocto-project-qs.html
Please make sure you host PC is running Ubuntu 14.04 and install the following packages:
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev sudo apt-get install autoconf libtool libglib2.0-dev libarchive-dev sudo apt-get install python-git xterm sed cvs subversion coreutils texi2html sudo apt-get install docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev sudo apt-get install libglu1-mesa-dev mercurial automake groff curl lzop asciidoc u-boot-tools mtd-utils
Documentation
Documentation are available for Download from FreescaleJethroDocuments
Download Yocto Jethro for i.MX6UL Freescale source
$ git config --global user.name "Your Name" $ git config --global user.email "Your Email" $ mkdir ~/bin (this step may not be needed if the bin folder already exists) $ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo $ export PATH=~/bin:$PATH $ mkdir ~/var-mx6ul-mx7-yocto-jethro $ cd ~/var-mx6ul-mx7-yocto-jethro $ repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp.git -b imx-4.1.15-1.0.0_ga $ repo sync
Download Yocto Jethro i.MX6UL with Meta Variscite DART-6UL support
$ cd ~/var-mx6ul-mx7-yocto-jethro/sources $ git clone https://github.com/varigit/meta-variscite-mx6ul-mx7.git -b imx_4.1.15_ga-var01 $ cp meta-variscite-mx6ul-mx7/scripts/var-setup-release.sh ../ $ patch -p1 < meta-variscite-mx6ul-mx7/patch/Fix-FSL-multi-patch-append-bugs.patch
Setup and build Yocto
The following distros can be used:
- fsl-imx-x11 - Only X11 graphics
- fsl-imx-wayland - Wayland weston graphics
- fsl-imx-xwayland - Wayland graphics and X11. X11 applications using EGL are not supported
- fsl-imx-fb - Frame Buffer graphics - no X11 or Wayland
Note: refer to Freescale_Yocto_Project_User's_Guide.pdf
Page 7 for further information.
Sample build scenarios:
Build X11 GUI image without Qt content
$ cd ~/var-mx6ul-mx7-yocto-jethro $ MACHINE=imx6ul-var-dart DISTRO=fsl-imx-x11 source var-setup-release.sh -b build_x11
Optional: Direct downloads to /opt/yocto_downloads, make sure directory exists and all permissions are set
$ sudo mkdir /opt/yocto_downloads $ sudo chmod 777 /opt/yocto_downloads/ $ sed -i 's/DL_DIR ?= "${BSPDIR}\/downloads/DL_DIR = "\/opt\/yocto_downloads/g' conf/local.conf
launch bitbake:
$ bitbake fsl-image-gui
Build Qt5 image without X11
$ cd ~/var-mx6ul-mx7-yocto-jethro $ MACHINE=imx6ul-var-dart DISTRO=fsl-imx-fb source var-setup-release.sh -b build-fb
Optional: Direct downloads to /opt/yocto_downloads, make sure directory exists and all permissions are set
sed -i 's/DL_DIR ?= "${BSPDIR}\/downloads/DL_DIR = "\/opt\/yocto_downloads/g' conf/local.conf
launch bitbake:
$ bitbake fsl-image-qt5
Build Results
The resulted images are located in tmp/deploy/images/imx6ul-var-dart/
Image Name |
How to use |
---|---|
fsl-image-gui-imx6ul-var-dart.sdcard | This image is for SD card boot. It can be flashed as-is on an SD card and you can boot your system form SD card, according to the relevant startup-guide of your product (usually requires to press the boot select button, or toggle a dip-switch). For detailed information refer to Create a sample SD card section below Create a bootable SD card. |
fsl-image-gui-imx6ul-var-dart.tar.bz2 | Used to create an NFS root file system on the host. See apendix for setting an NFS server |
fsl-image-gui-imx6ul-var-dart.ubi | Use the SD card created above. Copy the file into it and use the following commands to flash them into NAND. Coping files (mount the SD card created above first): |
zImage | Linux kernel image |
SPL-nand | SPL built for NAND flash. The SPL is a pre-U-Boot SW component, required for DDR initialization |
SPL-sd | SPL built for SD card boot. The SPL is pre-U-Boot SW component, required for DDR initialization |
u-boot.img-sd | U-Boot built for SD card boot, or eMMC boot |
u-boot.img-nand | U-Boot built for NAND flash boot |
Device Tree Name |
Boot Device |
zImage-imx6ul-var-dart-emmc_wifi.dtb | Boot from internal eMMC with WI-FI enabled. (SD card & NAND disabled) |
zImage-imx6ul-var-dart-nand_wifi.dtb | Boot from internal NAND with WI-FI enabled. (SD card & eMMC disabled) |
zImage-imx6ul-var-dart-sd_emmc.dtb | SD card and eMMC enabled (WIFI & NAND disabled). You can boot from eMMC or SD card |
zImage-imx6ul-var-dart-sd_nand.dtb | SD card and NAND enabled (WIFI & eMMC disabled). You can boot from NAND or SD card |
Create a bootable SD card
SD card structure
The first unallocated 4MB are saved space for U-Boot. it can be replaced with a dd command described in "U-Boot out of tree" section below.
The first partition is a fat16 partition used for the Linux uImage and device tree files. You can copy them as described in the Linux out of tree section.
The second partition is an ext4 partition that contains the complete file system and modules.
Yocto pre-built bootable SD card
The Yocto build products contains many files as explained in Build Results section above including a ".sdcard" file. For example, fsl-image-gui-imx6ul-var-dart.sdcard, depending on your build.
This is a complete image to be flashed directly to an SD card.
Example usage:
$ cd ~/var-mx6ul-mx7-yocto-jethro/build_x11 $ sudo dd if=tmp/deploy/images/imx6ul-var-dart/fsl-image-gui-imx6ul-var-dart.sdcard of=/dev/sdX bs=1M Replace sdX with the right device name.
Drawbacks of the native .sdcard yocto-built image:
- The second partition size doesn't use the entire SD card.
- The second partition is not labeled as rootfs.
- The NAND and eMMC flashing scripts are not included.
Create an extended SD card
Variscite provides the var-create-yocto-sdcard.sh script which creates our NAND/eMMC recovery SD card - an SD card based on the fsl-image-gui filesystem, which copies the NAND flash burning scripts and relevant binaries for your convenience.
Later, you will be able to follow either the more automatic DART-6UL Yocto Recovery SD card guide or the more manual Flashing the internal storage device guide to burn your images to NAND flash or eMMC.
Note:
This is essentially the same as our pre-built Recovery SD image, with the following main difference:
The pre-built image's rootfs partition size is 3700MiB, which is also the default size when using the script, but the script also has an option to set the rootfs partition size to fill the whole free space of the used SD card. Anyway, you can always resize the partition later with an external tool such as gparted.
Naturally, the pre-built image is more straight forward and easier to use, while the script method is easier to customize.
Usage:
- Follow the Setup and build Yocto guide, and bitbake fsl-image-gui.
- Plug-in the SD card to your Linux HOST PC, run dmesg and see which device is added (i.e. /dev/sdX or /dev/mmcblkX)
$ sudo MACHINE=imx6ul-var-dart ~/var-mx6ul-mx7-yocto-jethro/sources/meta-variscite-mx6ul-mx7/scripts/var_mk_yocto_sdcard/var-create-yocto-sdcard.sh <options> /dev/sdX (Replace /dev/sdX with your actual device)
options: -h Display help message -s Only show partition sizes to be written, without actually write them -a Automatically set the rootfs partition size to fill the SD card If you don't use the '-a' option, a default rootfs size of 3700MiB will be used
Boot board with a bootable SD card
Note: Boot from SD card eliminates Wifi as the Wifi and SD card are using same SDIO interface.
A typical use-case, is to boot from SD card, flash eMMC or NAND flash, and re-boot form eMMC/NAND to have Wi-Fi operational.
Setting the Boot DIP switches
Booting your system from an SD card requires switching the Boot DIP switches. See picture below.
- "00" The current position in the picture will set the system to boot from SD card.
- "01" Moving the right switch will set the system to boot from eMMC
- "10" Moving the left switch will set the system to boot from NAND flash
- "11" is illegal.
Be aware that your system has eMMC or NAND but never both.
Automatic device Tree selection in U-Boot
Upon reset you will see the U-Boot SPL printouts. It will print also the SOM configuration:
On-SOM storage: SD only, eMMC, NAND.
WIFI if chip exits.
For example:
U-Boot SPL 2015.10-00532-g482dc88 (Jan 03 2016 - 10:05:42) i.MX6UL SOC Part number: DART-6U-A01 Assembly: AS11 Date of production: 2015 Dec 31 DART-6UL configuration: eMMC WIFI Ram size: 512 Boot Device: SD
As explained in the above Build Results table we have 4 optional configurations.
We implemented in U-Boot and automatic device tree selection, so when kernel boots, the U-Boot will load the corresponding device tree according to On-SOM configuration.
Boot From |
SOM Internal FLASH |
SOM has WIFI/BT |
Device Tree selected |
---|---|---|---|
SD | eMMC | Don't Care | imx6ul-var-dart-sd_emmc.dtb |
SD | NAND | Don't Care | imx6ul-var-dart-sd_nand.dtb |
eMMC | eMMC | Yes | imx6ul-var-dart-emmc_wifi.dtb |
eMMC | eMMC | NO | imx6ul-var-dart-sd_emmc.dtb |
NAND | NAND | YES | imx6ul-var-dart-nand_wifi.dtb |
NAND | NAND | NO | imx6ul-var-dart-sd_nand.dtb |
Note: Boot from SD card eliminates Wifi as the Wifi and SD card are using same SDIO interface.
A typical use-case, is to boot from SD card, flash eMMC or NAND flash, and re-boot form eMMC/NAND to have Wi-Fi operational.
Disable Automatic Device Tree selection
To disable the automatic device tree selection in U-Boot:
$ setenv var_auto_fdt_file=N $ saveenv
Now you can set the device tree to meet your requirments. For example:
$ setenv fdt_file=imx6ul-var-dart-sd_emmc.dtb $ saveenv
Will select device tree that has SD and eMMC regardless if the SOM has WIFI.
$ setenv fdt_file=imx6ul-var-dart-sd_nand.dtb $ saveenv
Will select device tree that has SD and NAND regardless if the SOM has WIFI.
Make sure you don't set am illegal value like "imx6ul-var-dart-sd_nand.dtb" in a SOM that has eMMC flash.
Flash images to NAND/eMMC
Please refer to DART-6UL NAND Flash Burning
QT5/Embedded runtime
Environment Variables
The QT5/Embedded require environment variables to run correctly. DART6Ul support QT Embedded over Linux Frame Buffer. For example /etc/profile.d/tslib.sh can be edited. The following example enable touch, mouse and keyboard:
export TSLIB_TSEVENTTYPE='INPUT' export TSLIB_TSDEVICE='/dev/input/touchscreen0' export TSLIB_CALIBFILE='/etc/pointercal' export TSLIB_CONFFILE='/etc/ts.conf' export TSLIB_CONSOLEDEVICE='none' export TSLIB_FBDEVICE='/dev/fb0' export TSLIB_PLUGINDIR='/usr/lib/ts' export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:size=800x480:mmSize=800x480 export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS='/dev/input/touchscreen0' export QT_QPA_GENERIC_PLUGINS='tslib:/dev/input/touchscreen0,evdevmouse:/dev/input/event5,evdevkeyboard:/dev/input/event3'
Running Application
$ cd /usr/share/qt5/examples/ $ touch/dials/dials --platform linuxfb $ gui/rasterwindow/rasterwindow --platform linuxfb $ touch/fingerpaint/fingerpaint --platform linuxfb $ widgets/mainwindows/mainwindow/mainwindow --platform linuxfb
Update Yocto Jethro Meta-Variscite
From time to time we will post updates to meta-variscite that will include new features and bug fixes.
Follow the instructions below to update your tree:
$ cd ~/var-mx6ul-mx7-yocto-jethro/sources/meta-variscite-mx6ul-mx7/ $ git fetch origin $ git checkout imx_4.1.15_ga-var01 $ git pull Setup your enviroment: $ cd ~/var-mx6ul-mx7-yocto-jethro $ MACHINE=imx6ul-var-dart DISTRO=fsl-imx-x11 source var-setup-release.sh -b build_x11 In order to update the kernel and U-Boot: $ bitbake -c cleanall fsl-image-gui u-boot-variscite linux-variscite cryptodev-module and build your image: $ bitbake fsl-image-gui