Freescale Semiconductor i.MX 6SoloLite User Manual

Evk linux user's guide
Hide thumbs Also See for i.MX 6SoloLite:

Advertisement

Quick Links

i.MX 6SoloLite EVK Linux User's
Guide
Document Number: IMX6SLLXUGEVK
Rev L3.0.35_4.1.0, 09/2013

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the i.MX 6SoloLite and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Freescale Semiconductor i.MX 6SoloLite

  • Page 1 6SoloLite EVK Linux User's Guide Document Number: IMX6SLLXUGEVK Rev L3.0.35_4.1.0, 09/2013...
  • Page 2 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 3: Table Of Contents

    How to Enter Serial Download Mode for MFGTool......................15 How to Boot from SD Card from Slot2..........................15 How to Boot From eMMC4.4............................15 How to Boot from SPI-NOR............................16 Chapter 5 Flash Memory Map MMC/SD Memory Map..............................17 i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 4 Setting Up the Terminal ..............................23 Downloading Images by U-Boot............................23 7.2.1 MMC/SD on SD1...............................24 U-Boot Configurations..............................25 Using i.MX 6SoloLite EVK Board as Host Server to Create rootfs................25 Chapter 8 Using a Linux Host to Set Up an SD/MMC Card Requirements..................................27 Copying the Boot Loader Image.............................28 Copying the Kernel Image..............................28...
  • Page 5: About This Book

    This information is intended for software, hardware, and system engineers who are planning to use the product, and for anyone who wants to understand more about the product. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 6 Audience i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 7: Boot Loader

    Chapter 2 Introduction The i.MX 6SoloLite EVK Linux BSP is a collection of binary, source code, and support files that can be used to create U-Boot boot loader, Linux kernel image, and a root file system for i.MX 6SoloLite EVK development systems .
  • Page 8 The rootfs.ext2.gz file system includes Freescale specific libraries and gnome GUI. It can be mounted as NFS (see Setting rootfs for NFS), or its contents can be stored on a boot media such as Secure Digital (SD) card. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 9: Building The Linux Platform

    1. Remove all previously-installed packages from /opt/freescale/pkgs/. 2. Install the LTIB package, not as root, in a location such as /home/user/: tar zxvf L3.0.35_4.1.0_130816_source.tar.gz i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 10: Setting Rootfs For Nfs

    You can use the ./ltib -m selectype command to change the profile after the first selection. 5. To build U-Boot for i.MX 6SoloLite EVK board, select "Choose your board for U- Boot" as "mx6sl_evk". Please note this option is only for U-Boot. For the kernel image, the current default kernel configuration builds a single image that works for all i.MX 6 boards except i.MX 6SoloLite boards.
  • Page 11: Copying Images To Tftp Server

    To use the TFTP server to download the image, copy the kernel image in the release package or LTIB to the TFTP directory. For example: cp imx6/uImage <tftp folder> cp /<LTIB directory>/rootfs/boot/uImage <tftp folder> i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 12: How To Generate No-Padding U-Boot

    To build U-Boot in a standalone environment, perform the following actions in the root folder of U-Boot sources: ./ltib -m prep -p u-boot cd rpm/BUILD/u-boot-2009.08 make ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl- linaro-toolchain/bin/arm-none-linux-gnueabi- distclean make ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl- linaro-toolchain/bin/arm-none-linux-gnueabi- mx6sl_evk_config make ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl- linaro-toolchain/bin/arm-none-linux-gnueabi- i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 13: Building Manufacturing Firmware

    Kernel(Linux 3.0.35-imx) ---> After LTIB has completed the build, initramfs.cpio.gz.uboot is generated under the ltib root folder. The u-boot.bin and uImage for MFG tool are generated under rootfs/boot/. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 14 Building Manufacturing Firmware i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 15: How To Boot The I.mx 6Sololite Evk Board

    Chapter 4 How to Boot the i.MX 6SoloLite EVK Board The boot modes of the i.MX 6SoloLite EVK board are controlled by the boot configuration DIP switches on the board. To locate the boot configuration switches, see . The following sections list basic boot setup configurations only.
  • Page 16: How To Boot From Spi-Nor

    Boot Fusemap" in IC reference manual. 4.4 How to Boot from SPI-NOR Table below shows the boot switch settings to boot from SPI-NOR. Table 4-5. Boot switch setup for SPI-NOR boot Switch i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 17: Flash Memory Map

    The MBR can be generated through the fdisk command when creating partitions in MMC/SD cards on a Linux Host server. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 18 MMC/SD Memory Map i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 19: Downloading Images By Using Mfgtool

    MFGTool V2 will look for the setting in ucl2.xml file. [profiles] chip = MX6SL Linux Update [platform] board = EVK-SD [LIST] name = EVK-SD Follow these instructions to use the i.MX 6SoloLite EVK MFGTool V2: i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 20 • There is no configuration Menu in MFGTool V2. The configuration is done by parsing ucl2.xml and cfg.ini. After the board has been detected, you will see "HID- compliant device" in the notification bar as shown in the figure below. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 21 To fix this, unzip the file "Profiles\MX6SL Linux Update\OS Firmware \mksdcard.sh.tar" and then modify the script to increase the size of the partition and create more partitions according to i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 22 Usage your file system requirements. After the modification is done, tar the script again. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 23: Downloading Images By Bootloader Or Nfs

    1. Open HyperTerminal on the Windows PC and select the settings as shown in the figure below. Figure 7-1. HyperTerminal Settings for Terminal Setup 7.2 Downloading Images by U-Boot The following sections describe how to download images by U-Boot. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 24: Mmc/Sd On Sd1

    0x100000 of the microSD card. Refer to the following examples for the definition of the mmc Parameters. blk# = (microSD Offset)/(SD block length) = 0x100000/0x200 = 0x800 i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 25: U-Boot Configurations

    Linux provides multiple methods to program images to the storage device. This section describes how to use the i.MX 6SoloLite EVK as Linux Host server to create the rootfs on MMC/SD card. The example below is SD card. 1. Boot from NFS or other storage. Check partitions information: root@freescale ~$ cat /proc/partitions 2.
  • Page 26 Using i.MX 6SoloLite EVK Board as Host Server to Create rootfs 3. As described in Flash Memory Map, the rootfs partition should be located after kernel image; the first 0x800000 bytes can be reserved for MBR, bootloader, and kernel sections. From the log shown above, the Units of current MMC/SD card is 32768 bytes.
  • Page 27: Using A Linux Host To Set Up An Sd/Mmc Card

    In this example, the device node assigned is /dev/sdb (a block is 1kB large). NOTE Make sure that the device node is correct for the SD/MMC card. Otherwise, it may damage your operating system or data on your computer. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 28: Copying The Boot Loader Image

    [starting at offset sector #16384, i.e. 8MB, which leaves enough space for the kernel, the boot loader and its configuration data] <enter> [using the default value will create a partition that spans to the last sector i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 29 $ sudo umount /home/user/mountpoint NOTE Copying the file system takes several minutes depending on the size of your rootfs. The file system content is now on the media. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 30 Copying the Root File System (rootfs) i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 31: Running The Image On The Target

    MX6SL EVK U-Boot > saveenv NOTE If the MAC address has not burned into fuse, you must set the MAC address to use network in U-Boot. setenv ethaddr xx:xx:xx:xx:xx:xx i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 32 MX6SL EVK U-Boot > setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc dev 0;mmc read ${loadaddr} 0x800 0x2000;bootm' MX6SL EVK U-Boot > setenv bootcmd 'run bootcmd_mmc' MX6SL EVK U-Boot > saveenv MX6SL EVK U-Boot > run bootcmd i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 33: Frequently Asked Questions

    10.2 How to Use L2 Cache as IRAM i.MX 6SoloLite chip has [0x0090_0000, 0x0092_0000] as IRAM and [0x009C_0000, 0x00A0_0000] as L2 cache by default. The chip, however, has an option of configuring L2 Cache region and using it as IRAM.
  • Page 34: Demo On I.mx 6Sl Board

    See i.MX 6 Linux High Assurance Boot (HAB) User Guide for detailed instructions on how to enable this feature. i.MX 6SoloLite EVK Linux User's Guide, Rev. L3.0.35_4.1.0, 09/2013 Freescale Semiconductor, Inc.
  • Page 35 Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. All other product or service names are the property of their respective owners.

Table of Contents