I2C bus | TQMa6ULx | ||||
---|---|---|---|---|---|
I2C4 | 0x08 PMIC | 0x1A Tempsensor 0x48 | 0x50 EEPROM | 0x52 EEPROM | 0x68 RTC |
I2C bus | MBa6ULx | ||||||
---|---|---|---|---|---|---|---|
I2C4 | 0x18 Audiocodec | 0x19 Tempsensor | 0x20 GPIO Expander | 0x21 GPIO Expander | 0x22 GPIO Expander | 0x41 Touch Controller | 0x51 EEPROM |
Feature | BSP Revision | Remarks | |||||||
---|---|---|---|---|---|---|---|---|---|
TQ Product | Chip | Interface | Function | 0100 | 0104 | 0106 | 0107 | 0110 | |
TQMa6ULx | i.MX6UL | Ethernet | RMII (10/100 Mbit/s) | • | • | • | • | • | |
TQMa6ULx | i.MX6UL | uSDHC | eMMC / SD-Card | • | • | • | • | • | SD card / eMMC |
TQMa6ULx | i.MX6UL | UART1 | RS232 | • | • | • | • | • | default console |
TQMa6ULx | i.MX6UL | I²C | EEPROM | • | • | • | • | • | |
TQMa6ULx | i.MX6UL | SPI | QSPI NOR Flash | • | • | • | • | • | |
TQMa6ULx | i.MX6UL | IIM / Fuse | on request |
Boot device | supported |
---|---|
eMMC / SD | • |
TFTP boot | • |
QSPI NOR | • |
Buildsystem | BSP Revision | ||||||||
---|---|---|---|---|---|---|---|---|---|
PTXdist | • | • | • | • | • | ||||
Yocto | • | • | • | • | |||||
TQ Product | Chip | Interface | Function | 0100 | 0104 | 0106 | 0107 | 0110 | Remarks |
TQMa6ULx | i.MX6UL | ENET1 | RMII (10/100 Mbit/s) | • | • | • | • | • | |
i.MX6UL | ENET2 | RMII (10/100 Mbit/s) | • | • | • | • | • | ||
i.MX6UL | FLEXCAN1 | CAN 2.0B | • | • | • | • | • | ||
i.MX6UL | FLEXCAN2 | CAN 2.0B | • | • | • | • | • | ||
i.MX6UL | GPIO | 1x GPIO | • | • | • | • | • | Supported via beep command |
|
i.MX6UL | GPMI | Multiplexed with other functions (on request), no device MBa6ULx |
|||||||
i.MX6UL | I2C2 | • | • | • | • | • | Not available by default / configuration resistor R451 and R455 | ||
i.MX6UL | I2C4 | I2C devices | • | • | • | • | • | See supported onboard I2C devices | |
i.MX6UL | JTAG | Not tested | |||||||
i.MX6UL | eLCDIF | Parallel LCD | • | • | • | • | • | 24-bit interface available via X4 | |
LVDS | • | • | • | • | • | 24-bit available via X17 | |||
i.MX6UL | MIPI CSI | No device on MBa6ULx | |||||||
i.MX6UL | MIPI DSI | No device on MBa6ULx | |||||||
i.MX6UL | MQS | Multiplexed with other functions (on request) | |||||||
i.MX6UL | PWM4 | Backlight Dimming | • | • | • | • | • | ||
i.MX6UL | QSPI | Bus access Memory access | • | • | • | • | • | ||
i.MX6UL | SAI1 | Audiocodec | • | • | • | • | |||
i.MX6UL | TEMPMON | • | • | • | • | • | Temperature read | ||
i.MX6UL | UART1 | RS232/ USB Debug | • | • | • | • | • | Default console / USB debug connector selectable with S15 on MBA6ULx | |
i.MX6UL | UART2 | TTL | Multiplexed with other functions (on request) | ||||||
i.MX6UL | UART3 | TTL | Not available on MBa6ULx | ||||||
i.MX6UL | UART4 | TLL | Multiplexed with other functions (on request) | ||||||
i.MX6UL | UART5 | TLL | Multiplexed with other functions (on request) | ||||||
i.MX6UL | UART6 | RS485 | • | • | • | • | • | ||
i.MX6UL | UART7 | TLL | Multiplexed with other functions (on request) | ||||||
i.MX6UL | UART8 | TLL | Multiplexed with other functions (on request) | ||||||
i.MX6UL | USB_Host | USB2517 | • | • | • | • | • | ||
i.MX6UL | USB_OTG1 | Host | • | • | • | • | • | ||
i.MX6UL | USB_OTG1 | OTG | • | • | • | • | tested with usb serial gadget | ||
i.MX6UL | USB_OTG2 | Host | • | • | • | • | • | Only Host supported | |
i.MX6UL | USB_OTG2 | OTG | Shared with USB2517 Hub [7:1] | ||||||
i.MX6UL | uSDHC | uSDHC1 SD Card uSDHC2 eMMC | • | • | • | • | • | ||
MBa6ULx | TLV320AIC3204 | Headphone Out/ Line Out | • | • | • | • | |||
Line In | • | • | • | • | |||||
Microphone In | On request | ||||||||
PCA9554BS | I2C GPIO expander | • | • | • | • | • | |||
PCA9554BS | I2C GPIO expander | • | • | • | • | • | |||
SIM | Not tested / available on Connector X22 on MBa6ULx | ||||||||
STMPE811 | resitive touch controller | Connected to I2C4 on MBa6ULx Not tested |
|||||||
USB2517 | USB1 | Host 1 | • | • | • | • | • | ||
USB2517 | USB2 | Host 2 | • | • | • | • | • | ||
USB2517 | USB3 | Host 3 | • | • | • | • | • | ||
USB2517 | USB4 | Host 4 | • | • | • | • | • | ||
USB2517 | USB5 | Host 5 | • | • | • | • | • | ||
USB2517 | USB6 | Host 6 | • | • | • | • | • | ||
USB2517 | USB7 | Host 7 | • | • | • | • | • | ||
SNVS | Reset | Reset PMIC-Reset Power-Down Wake-Up | • | • | • | • | • |
WORK IN PROGRESS
BSP revision | 0100 | 0104 | 0106 | 0107 | 0110 |
---|---|---|---|---|---|
PTXdist | 2016.04 | 2016.04 | 2016.04 | 2019.01 | 2019.01 |
OSELAS Toolchain | 2014.12.2 | 2014.12.2 | 2014.12.2 | 2018.02.0 | 2018.12.0 |
Platform | MBa6ULx | MBa6ULx | MBa6ULx | MBa6ULx MBa6ULxL | MBa6ULx MBa6ULxL |
U-Boot | 2015.04 rel_imx_4.1.15_1.2.0_ga + patches | 2016.03 + rel_imx_4.1.15_2.0.0_ga + patches | 2016.03 + rel_imx_4.1.15_2.0.0_ga + patches | 2016.03 + rel_imx_4.1.15_2.0.0_ga + patches | 2016.03 + rel_imx_4.1.15_2.0.0_ga + patches |
Linux Kernel | 4.1.15 + rel_imx_4.1.15_1.2.0_ga + patches | 4.1.15 + rel_imx_4.1.15_2.0.0_ga + patches | 4.1.15 + rel_imx_4.1.15_2.0.0_ga + patches | 4.14.78 + rel_imx_4.14.78_1.0.0_ga + patches | 4.14.78 + rel_imx_4.14.78_1.0.0_ga + patches |
Qt Version | 4.8.7 | 5.6.2 | 5.6.2 | 5.6.3 | 5.6.3 |
TQMa6ULx | TQMa6ULxL | |||
---|---|---|---|---|
Rev. 010x | Rev. 030x | Rev. 010x | Rev. 020x | |
BSP Rev. 0100 | • | • | ||
BSP Rev. 01xx | • | • |
BSP
U-Boot
BSP
U-Boot
Linux
TQMa6ULx-BSP
U-Boot
Linux
BSP
U-Boot
Linux
To install a new firmware use SD cards. To copy the built images on the host system to a connected card type:
$ cd <BSP project>/platform-<platform_name>/images $ sudo dd if=u-boot_@mod_name_code@_hd.img of=/dev/sdf bs=1M conv=fsync #Assuming the SD card is assigned to /dev/sdf
To find out what device file the SD card has, type “dmesg” after you connect the card to see the system messages. At the bottom you'll see some “Attached scsi …” messages along with something like:
[ 8197.588395] sdf: sdf1
To update bootloader / kernel / devicetree in a running system you have to copy the images in your tftp directory and upload them to the eMMC or SD Card.
Please see How to setup TFTP Server
1. Boot from eMMC or SD and stop autoboot in U-Boot
Hit any key to stop autoboot: 0 =>
2. Set U-Boot variable mmcdev according to the drive you want to write to
=> setenv mmcdev <Nr.>
Device assignment:
mmcdev 0 = eMMC
mmcdev 1 = SD Card
3. Connect device via ethernet to a tftp server supplying the image
4. Provide the correct network configuration in U-Boot:
5. Provide U-Boot the file name of the desired image on the tftp server:
6. Perform Update:
The u-boot update scripts automatically implement the selection of the primary copy to boot.
mmc dev 1 && mmc rescan && mmc read ${loadaddr} 0 (number of blocks) && mmc dev 0 && mmc rescan && mmc write ${loadaddr} 0 (number of blocks)
You have to set the number of blocks according to the image size to read entire data that is stored on the SD card and write the same number of blocks to the eMMC.
Formula to calulate the number of blocks
Size of SD card image in bytes / 512. Convert the result to a hex value.
Since the data is stored in the SDRAM on the module the size of the image must not exeed the size of the SDRAM.
mmc dev 1 && mmc rescan && mmc read ${loadaddr} 0 0x8c000 && mmc dev 0 && mmc rescan && mmc write ${loadaddr} 0 0x8c000
The rootfs is located in the second partition of the SD card/eMMC please see Partition Scheme
example for TQMa6ULx
dd if=/dev/mmcblk0p2 of=/dev/mmcblk1p2 bs=1M
please keep in mind to resize the eMMC rootfs partition,
if the rootfs size was changed in BSP configuration
To boot the @mod_name@ from network you need a working bootloader in eMMC/SD-card or SPI-NOR (placement option on @mod_name@) which is able to get the kernel image over tftp and to provide the kernel with commandline settings for NFS.
The dtb-file and kernel image have to be provided via tftp and the rootfs via nfs.
The bootloader environment needs to be modified to work with your tftp-server and your nfs-server.
You have to set the Starterkit to boot-mode “serial downloader”, please see MBa6ulx DIP switch settings
Starting with TQMa6ULx-BSP-REV.0104 we deliver a Linux tool to upload U-Boot into the TQMa6ULx RAM from your development host and start it.
After building the BSP the tool is located in:
…/TQMa6ULx.BSP.SW.SRC.0104/platform-MBa6ULx-FSL/packages/host-imx_usb_loader-48a85c0b84611c089cf870638fd1241619324b1d/
You have to apply the following steps before you can start to work with the tool:
usb 3-2.1: Product: SE Blank 6UL usb 3-2.1: Manufacturer: Freescale SemiConductor Inc hid-generic 0003:15A2:007D.0007: hiddev0,hidraw1: USB HID v1.10 Device [Freescale SemiConductor Inc SE Blank 6UL ] on usb-0000:03:00.0-2.1/input0
Keep in mind to select a U-Boot that is corresponding to your module, please see deployment
e.g.
embedded@ubuntu:~/workspace/TQMa6ULx.BSP.SW.SRC.0104/platform-MBa6ULx-FSL/images$ sudo imx_usb u-boot-fsl-mba6ulx-mmc.imx
Host console output after starting the serial downloader:
config file </etc/imx-loader.d/imx_usb.conf> vid=0x066f pid=0x3780 file_name=mx23_usb_work.conf vid=0x15a2 pid=0x004f file_name=mx28_usb_work.conf vid=0x15a2 pid=0x0052 file_name=mx50_usb_work.conf vid=0x15a2 pid=0x0054 file_name=mx6_usb_work.conf vid=0x15a2 pid=0x0061 file_name=mx6_usb_work.conf vid=0x15a2 pid=0x0063 file_name=mx6_usb_work.conf vid=0x15a2 pid=0x0071 file_name=mx6_usb_work.conf vid=0x15a2 pid=0x007d file_name=mx6_usb_work.conf vid=0x15a2 pid=0x0076 file_name=mx7_usb_work.conf vid=0x15a2 pid=0x0041 file_name=mx51_usb_work.conf vid=0x15a2 pid=0x004e file_name=mx53_usb_work.conf vid=0x15a2 pid=0x006a file_name=vybrid_usb_work.conf vid=0x066f pid=0x37ff file_name=linux_gadget.conf config file </etc/imx-loader.d/mx6_usb_work.conf> parse /etc/imx-loader.d/mx6_usb_work.conf 15a2:007d(mx6_qsb) bConfigurationValue =1 Interface 0 claimed HAB security state: development mode (0x56787856) == work item filename u-boot-fsl-mba6ulx-mmc.imx load_size 0 bytes load_addr 0x00000000 dcd 1 clear_dcd 0 plug 1 jump_mode 2 jump_addr 0x00000000 == end work item main dcd length 1e0 sub dcd length 1dc loading binary file(u-boot-fsl-mba6ulx-mmc.imx) to 8fbff400, skip=0, fsize=86c00 type=aa <<<551936, 551936 bytes>>> succeeded (status 0x88888888) jumping to 0x8fbff400
9. Now you can see the U-Boot messages in the serial terminal programm
Next steps are:
Finally, you will find the built images in platform-<platformname>/images.
Complete system image:
The complete system image is intended for:
QSPI NOR image without rootfs:
Bootloader images:
Not to be confused with the u-boot*.bin images, these are just intermediate images and will not be booted by the i.MX6ULx.
Linux images:
firmware partition images:
Rootfs images:
The Board Support Packages (BSPs) usually provide source code as well as precompiled images for one or more platforms.
Please see the version matrix for details of each BSP revision.
TQMa6ULx BSP REV.0110☚ current revision
MD5SUM: A22068C4F9497229F55FF8507C5A5B15
TQMa6ULx BSP REV.0107
MD5SUM: FF2F0A18947A130EA6E93B72A61B8183
TQMa6ULx BSP REV.0106
MD5SUM: 5E44B9C8F13CFAE482FA10A41411B01D
TQMa6ULx BSP REV.0104
MD5SUM: F18039434D484420E72061B9E64E62DA
TQMa6ULx BSP Rev.0100
MD5SUM: 6C1C87DBF7724B4FBE84266CE6146C85
PTXdist version XXXX.YY.0 is required to compile an OSELAS Toolchain XXXX.YY.Z.
The version of PTXdist and toolchain required to build a given BSP revision is shown in the version matrix.
PTXdist manual "How to become a PTXdist Guru" ☚ worthwhile reading
The size of eMMC/SD image exceeds TQMa6ULx RAM size so it is not possible to copy the image into the RAM.
Nevertheless copying is possible by splitting Rootfs into several parts during the process.
setenv install_firmware 'echo MBR... && mmc dev 1 && mmc read $loadaddr 0 1 && mmc dev 0 && mmc write $loadaddr 0 1 && echo U-Boot... && mmc dev 1 && mmc read $loadaddr 2 7fe && mmc dev 0 && mmc write $loadaddr 2 7fe && echo U-Boot environment... && mmc dev 1 && mmc read $loadaddr 800 800 && mmc dev 0 && mmc write $loadaddr 800 800 && echo Firmware Partition... && mmc dev 1 && mmc read $loadaddr 2000 A000 && mmc dev 0 && mmc write $loadaddr 2000 A000 && echo Root FS... && run root_loop'
setenv root_loop 'setenv start 0xC000 && setenv r1 $rootblks16 && while itest $r1 -gt 0; do if itest $r1 -gt 0x2D000; then setenv count 2D000; else setenv count $r1; fi && mmc dev 1 && mmc read $loadaddr $start $count && mmc dev 0 && mmc write $loadaddr $start $count && setexpr start $start + $count && setexpr r1 $r1 - $count; done; setenv r1; setenv start; setenv count'
setenv rootblks16 0x80000
saveenv
run install_firmware
Devicetree can be edit with the fdt commands under U-Boot.
1) At first the fdt file has to be loaded from the current boot medium (mmc) into RAM.
=> run loadfdt
2) Next step is to set the predefined U-Boot environment variable fdt_addr through the fdt addr command.
=> fdt addr $fdt_addr
3) Afterwards the size of the fdt has to be increased (to the next 4K divider) in order to have some space for modifications. This is simply done by entering:
=> fdt resize
4) List device in the tree you want to change to have a look at the default settings.
5) To modify a value of a propertie use the fdt set command.
=> fdt set <path> <property> <value>
6) Optional: If you want to save your modified Devicetree back to mmc you'll have to run the following command:
=> fatwrite mmc $mmcdev:$firmwarepart $fdt_addr $fdt_file <totalsize>
You can find out <totalsize> of the modified fdt by entering the command fdt header
Otherwise you can boot your module with the changed Devicetree right after the modification.
Affects | TQMa6ULx Camera Sensor Interface |
---|---|
Issue | When CSI is configured in Linux devicetree and the CSI is bound by the Linux driver, the system does not boot properly |
Effect | System does not boot properly |
Solution / Workaround | The issue can be fixed by removing the pinmux entries of the PMIC in Linux devicetree |
BSP Revision | meta-tq release | Yocto Project / Poky Release | Target machine1) | U-Boot | Linux Kernel |
---|---|---|---|---|---|
0104 | pyro | 2.3.3 - Pyro | tqma6ulx-mba6ulx | 2016.03 (NXP imx-rel_imx_4.1.15_2.0.0_ga) | rel_imx_4.1.15_2.0.0_ga |
0105 | pyro | 2.3.3 - Pyro | tqma6ulx-mba6ulx tqma6ulx-lga-mba6ulx tqma6ullx-mba6ulx | 2016.03 (NXP imx-rel_imx_4.1.15_2.0.0_ga) | rel_imx_4.1.15_2.0.0_ga |
0106 | pyro | 2.3.3 - Pyro | tqma6ulx-mba6ulx tqma6ulx-lga-mba6ulx tqma6ullx-mba6ulx | 2016.03 (NXP imx-rel_imx_4.1.15_2.0.0_ga) | rel_imx_4.1.15_2.0.0_ga |
0107 | warrior | 2.7 - Warrior | tqma6ulx-mba6ulx tqma6ulx-lga-mba6ulx tqma6ullx-mba6ulx | 2016.03 (NXP imx-rel_imx_4.1.15_2.0.0_ga) | NXP 4.14.78 rel_imx_4.14.78_1.0.0_ga |
0110 | warrior | 2.7 - Warrior | tqma6ulx-mba6ulx tqma6ulx-512mb-mba6ulx tqma6ulx-lga-mba6ulx tqma6ullx-mba6ulx tqma6ullx-512mb-mba6ulx tqma6ullx-lga-mba6ulx | 2016.03 (NXP imx-rel_imx_4.1.15_2.0.0_ga) | NXP 4.14.78 rel_imx_4.14.78_1.0.0_ga |