VAR-SOM-MX6 Debian R1: Difference between revisions
(Created page with "a") |
No edit summary |
||
Line 1: | Line 1: | ||
a | {{PageHeader|VAR-SOM-MX6 - Debian Jessie release}} {{DocImage|category1=VAR-SOM-MX6|category2=Debian}} __toc__ | ||
= Overview = | |||
This page describes how to assemble and install Linaro ALIP 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. | |||
= Create build environment = | |||
== Installing required packages<br/> == | |||
=== Debian jessie x64 === | |||
If your system does not have "sudo", set the "sudo" using the link: [https://www.privateinternetaccess.com/forum/discussion/18063/debian-8-1-0-jessie-sudo-fix-not-installed-by-default] | |||
On your Debian building machine: | |||
<pre> | |||
$ 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 | |||
</pre> | |||
=== Ubuntu 14.04/16.04 x64 === | |||
On your Ubuntu building machine: | |||
<pre> | |||
$ 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 | |||
</pre> | |||
== Deploy source == | |||
Download archive contains the build script and support files for building Debian (Jessie) for this board: | |||
<pre> | |||
$ cd ~ | |||
$ git clone https://github.com/varigit/debian-var.git -b debian_jessie_varsommx6_var01 var_som_mx6_debian | |||
</pre> | |||
Create environment (<span style="color:red">''Internet connection should be available''): | |||
<pre> | |||
$ cd ~/var_som_mx6_debian | |||
$ ./make_var_som_mx6_debian.sh -c deploy | |||
</pre> | |||
This environment prepared to build. | |||
= Make Debian = | |||
== Build all == | |||
<span style="color:red">''Internet connection should be available'' | |||
<pre> | |||
$ cd ~/var_som_mx6_debian | |||
$ sudo ./make_var_som_mx6_debian.sh -c all | tee 2.log | |||
</pre> | |||
== Build by parts == | |||
=== Build bootloader === | |||
<pre> | |||
$ cd ~/var_som_mx6_debian | |||
$ ./make_var_som_mx6_debian.sh -c bootloader | |||
</pre> | |||
=== Build kernel, dtb files and kernel modules === | |||
<pre> | |||
$ cd ~/var_som_mx6_debian | |||
$ ./make_var_som_mx6_debian.sh -c kernel | |||
$ ./make_var_som_mx6_debian.sh -c modules | |||
</pre> | |||
=== Build rootfs === | |||
<span style="color:red">''Internet connection should be available'' | |||
<pre> | |||
$ cd ~/var_som_mx6_debian | |||
$ sudo ./make_var_som_mx6_debian.sh -c rootfs | |||
</pre> | |||
=== Pack rootfs === | |||
For the create archive root file system (rootfs.tar.bz2) run the following commands: | |||
<pre> | |||
$ cd ~/var_som_mx6_debian | |||
$ sudo ./make_var_som_mx6_debian.sh -c rtar | |||
</pre> | |||
= 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): | |||
<pre> | |||
$ cd ~/var_som_mx6_debian | |||
$ sudo ./make_var_som_mx6_debian.sh -c sdcard -d /dev/sdX | |||
</pre> | |||
where '/dev/sdX' path to the block SD device in your system. | |||
Successful process log | |||
<pre> | |||
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: | |||
</pre> | |||
= Build Results = | |||
The resulted images are located in '''~/var_som_mx6_debian/output/'''. | |||
{| class="wikitable" | |||
|- | |||
! scope="col" | Image Name<br/> | |||
! scope="col" | How to use<br/> | |||
|- | |||
| 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. | |||
|- | |||
! scope="col" | Device Tree Name<br/> | |||
! scope="col" | Boot Device<br/> | |||
|- | |||
| 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: | |||
{| class="wikitable" | |||
|- | |||
! scope="col" | User name<br/> | |||
! scope="col" | User descriptor | |||
|- | |||
| root | |||
| system administrator | |||
|- | |||
| linaro | |||
| local user belonging to sudoers | |||
|- | |||
|} | |||
= Flash images to eMMC = | |||
If you want to flash images on eMMC, on the device, as '''root''', run the following command: | |||
<pre> | |||
# debian-emmc.sh | |||
</pre> | |||
The above command are located in /usr/bin folder of uSD card used to boot debian. |
Revision as of 18:00, 8 August 2016
Overview
This page describes how to assemble and install Linaro ALIP 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.
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 |
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.