VAR-SOM-MX6 Debian R1: Difference between revisions
No edit summary |
|||
Line 2: | Line 2: | ||
= Overview = | = Overview = | ||
This page describes how to assemble and install Linaro ALIP distro based on Debian Jessie on Variscite var-som-mx6 SoMs. | This page describes how to assemble and install Linaro ALIP (ARM Linux Internet Platform) distro based on Debian Jessie on Variscite var-som-mx6 SoMs. | ||
This instruction was tested with Debian 8.4 x64 (jessie) and Ubuntu 14.04/16.04 x64! When using other distributions, there may be problems. | This instruction was tested with Debian 8.4 x64 (jessie) and Ubuntu 14.04/16.04 x64! When using other distributions, there may be problems. |
Revision as of 07:56, 9 August 2016
Overview
This page describes how to assemble and install Linaro ALIP (ARM Linux Internet Platform) distro based on Debian Jessie on Variscite var-som-mx6 SoMs.
This instruction was tested with Debian 8.4 x64 (jessie) and Ubuntu 14.04/16.04 x64! When using other distributions, there may be problems.
SW Versions
package |
version |
---|---|
u-boot | imx_v2015.04_4.1.15_1.1.0_ga_var01 |
kernel | imx-rel_imx_4.1.15_1.1.0_ga-var02 |
wilink 8 | 8.6 SP1 |
firmware-imx | 5.4 |
imx-vpu | 5.4.33 |
imx-codec | 4.0.9 |
imx-gpu-viv | 5.0.11.p8.4 |
xserver-xorg-video-imx-viv | 5.0.11.p8.4 |
libimxvpu | 0.10.2 |
gstreamer-imx | 0.12.2 |
Linaro Debian ALIP | 20160722-27 |
Create build environment
Installing required packages
Debian jessie x64
If your system does not have "sudo", set the "sudo" using the link: [1]
On your Debian building machine:
$ sudo apt-get install -y binfmt-support qemu qemu-user-static debootstrap kpartx $ sudo apt-get install -y lvm2 dosfstools gpart binutils git lib32ncurses5-dev python-m2crypto $ sudo apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev $ sudo apt-get install -y autoconf libtool libglib2.0-dev libarchive-dev $ sudo apt-get install -y python-git xterm sed cvs subversion coreutils texi2html bc $ sudo apt-get install -y docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev $ sudo apt-get install -y libglu1-mesa-dev mercurial automake groff curl lzop asciidoc u-boot-tools mtd-utils
Ubuntu 14.04/16.04 x64
On your Ubuntu building machine:
$ sudo apt-get install -y binfmt-support qemu qemu-user-static debootstrap kpartx $ sudo apt-get install -y lvm2 dosfstools gpart binutils git lib32ncurses5-dev python-m2crypto $ sudo apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev $ sudo apt-get install -y autoconf libtool libglib2.0-dev libarchive-dev $ sudo apt-get install -y python-git xterm sed cvs subversion coreutils texi2html bc $ sudo apt-get install -y docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev $ sudo apt-get install -y libglu1-mesa-dev mercurial automake groff curl lzop asciidoc u-boot-tools mtd-utils
Deploy source
Download archive contains the build script and support files for building Debian (Jessie) for this board:
$ cd ~ $ git clone https://github.com/varigit/debian-var.git -b debian_jessie_varsommx6_var01 var_som_mx6_debian
Create environment (Internet connection should be available):
$ cd ~/var_som_mx6_debian $ ./make_var_som_mx6_debian.sh -c deploy
This environment prepared to build.
Make Debian
Build all
Internet connection should be available
$ cd ~/var_som_mx6_debian $ sudo ./make_var_som_mx6_debian.sh -c all | tee 2.log
Build by parts
Build bootloader
$ cd ~/var_som_mx6_debian $ ./make_var_som_mx6_debian.sh -c bootloader
Build kernel, dtb files and kernel modules
$ cd ~/var_som_mx6_debian $ ./make_var_som_mx6_debian.sh -c kernel $ ./make_var_som_mx6_debian.sh -c modules
Build rootfs
Internet connection should be available
$ cd ~/var_som_mx6_debian $ sudo ./make_var_som_mx6_debian.sh -c rootfs
Pack rootfs
For the create archive root file system (rootfs.tar.bz2) run the following commands:
$ cd ~/var_som_mx6_debian $ sudo ./make_var_som_mx6_debian.sh -c rtar
Create boot SD card
- Follow the steps for make rootfs, kernel, bootloader;
- Insert the SD card to card reader connected to a host system;
- Run the following commands (Caution! All data on the card will be destroyed):
$ cd ~/var_som_mx6_debian $ sudo ./make_var_som_mx6_debian.sh -c sdcard -d /dev/sdX
where '/dev/sdX' path to the block SD device in your system.
Successful process log
I: Flashing U-Boot 35+0 records in 35+0 records out 35840 bytes (36 kB) copied, 0.0773679 s, 463 kB/s 237+1 records in 237+1 records out 243104 bytes (243 kB) copied, 0.720032 s, 338 kB/s I: Flashing "BOOT-VARSOM" partition I: Flashing "rootfs" partition I: Copying Debian images to /opt/images/Debian I: Copying MMC U-Boot to /opt/images/Debian I: Copying scripts to /opt/images/Debian I: Sync sdcard... I: Done make sdcard! I: I: Command: "sdcard" end. Exit code: 0 I:
Build Results
The resulted images are located in ~/var_som_mx6_debian/output/.
Image Name |
How to use |
---|---|
rootfs.tar.bz2 | Used to create sdcard |
uImage | Linux kernel image |
SPL.mmc | SPL built for SD-Card and eMMC boot. The SPL is pre-u-boot SW component, required for DDR initialization |
u-boot.bin.mmc | u-boot built for SD-Card boot, or eMMC boot in case of DART-MX6UL. |
Device Tree Name |
Boot Device |
imx6dl-var-som-cap.dtb | VAR-SOM-MX6 with iMX6S/DL on MX6CustomBoard with capacitive touch |
imx6dl-var-som-res.dtb | VAR-SOM-MX6 with iMX6S/DL on MX6CustomBoard with resistive touch |
imx6dl-var-som-solo-cap.dtb | VAR-SOM-SOLO with iMX6S/DL on MX6CustomBoard with capacitive touch |
imx6dl-var-som-solo-res.dtb | VAR-SOM-SOLO with iMX6S/DL on MX6CustomBoard with resistive touch |
imx6dl-var-som-solo-vsc.dtb | VAR-SOM-SOLO with iMX6S/DL on SOLOCustomBoard with capacitive touch |
imx6dl-var-som-vsc.dtb | VAR-SOM-MX6 with iMX6S/DL on SOLOCustomBoard with capacitive touch |
imx6q-var-dart.dtb | DART-MX6 with iMX6D/Q on DARTCustomBoard with capacitive touch |
imx6q-var-som-cap.dtb | VAR-SOM-MX6 with iMX6D/Q on MX6CustomBoard with capacitive touch |
imx6q-var-som-res.dtb | VAR-SOM-MX6 with iMX6D/Q on MX6CustomBoard with resistive touch |
imx6q-var-som-solo-vsc.dtb | VAR-SOM-MX6 with iMX6D/Q on SOLOCustomBoard with capacitive touch |
Linux console access
Standard Linaro Debian ALIP provide 2 user with no password:
User name |
User descriptor |
---|---|
root | system administrator |
linaro | local user belonging to sudoers |
iMX6 accelerations packages
To support iMX6 GPU acceleration, libdrm souces have been patched to support Vivante using drm-update-arm.patch.
Since mesa and xorg-server sources depends on libdrm sources, related deb packages have been rebuilt.
To speed up rootfs generations, all generated deb packages are already part of the git repo and will be installed to substitute official ones. To avoid unwanted substitutions via apt-get upgrade, all those packages will be "set on hold" via apt-mark.
To support iMX6 VPU acceleration and avoid patching standard gstreamer, the new community driven gstreamer-imx plugins will be used.
Flash images to eMMC
If you want to flash images on eMMC, on the device, as root, run the following command:
# debian-emmc.sh
The above command are located in /usr/bin folder of uSD card used to boot debian.