Frequently Asked Questions for i.MX6 Linux
From ESS-WIKI
Revision as of 06:41, 3 November 2016 by Winston.huang (talk | contribs)
Contents
Compiling
U-boot
Please refer to the following sections for details
Kernel
Please refer to the following sections for details
- Getting Started / Build Instructions / To build linux kernel (LBV3) (LBV5) (LBV6)
- Customization / Building & updating kernel/modules/dtb manually (LBV3) (LBV5) (LBV6)
Boot Logo
U-boot
Kernel
In Yocto Project, it is called "boot splashscreen", please refer to the each BSP's corresponding official Yocto website (list as below) for details
SDcard image
To build from prebuilt image, please refer to the following sections for details.
To build from BSP, please refer to the following sections for details.
How To Stress Test On a Linux
Perform the command as below:
stress -c 4 -i 4 -d 1 --hdd-bytes 512
How To Create One LIV Disk Image of SD Card
The LIV disk image of SD card is used to boot target device up and to install the entire system to on-baord eMMC.
- Prerequisites
- one free loop device
- prewritten script, mksd-linux.sh (extracted from mksd-linux.sh.gz)
- the built sdcard image (LBV3) (LBV5) (LBV6) (e.g. fsl-image-qt5-imx6qrsb4410a1.sdcard)
- 5GB more available disk space for LIV disk image (e.g. 4410A1LIV6000.img & 4410A1LIV6000.img.gz)
- Commands
$ LODEV=$(sudo losetup -f)
$ MKSD=mksd-linux.sh
$ gunzip -c mksd-linux.sh.gz > ${MKSD}
$ SDCARD=fsl-image-qt5-imx6qrsb4410a1.sdcard
$ LIV=4410A1LIV6000.img
$ cp ${SDCARD} ${LIV}
$ dd if=/dev/zero of=${LIV} bs=1M seek=3700 count=0
$ echo -e "d\n2\nn\np\n2\n24576\n\nw" | sudo fdisk -u ${LIV}
$ sudo losetup -o $((24576*512)) ${LODEV} ${LIV}
$ sudo e2fsck ${LODEV}
$ sudo resize2fs ${LODEV}
$ mkdir -p ~/mnt
$ sudo mount ${LODEV} ~/mnt
$ sudo mkdir ~/mnt/{mk_inand,image}
$ sudo cp ${MKSD} ~/mnt/mk_inand/
$ sudo chmod +x ~/mnt/mk_inand/${MKSD}
$ sudo cp ${SDCARD} ~/mnt/image/
$ sudo umount ~/mnt
$ sudo losetup -d ${LODEV}
$ gzip -c9 ${LIV} > ${LIV}.gz
Other Features
- see Linux Features