VAR-SOM-MX6 Ubuntu GS: Difference between revisions

From Variscite Wiki
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{PageHeader|VAR-SOM-MX6 - Ubuntu Linaro}}
{{DocImage|category1=VAR-SOM-MX6|category2=}}
{{DocImage|category1=VAR-SOM-MX6|category2=}}
=VAR-SOM-MX6 - Ubuntu Linaro =
__toc__
__toc__
= Introduction =
= Introduction =


Variscite supports its VAR-SOM-MX6&nbsp;with [http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git Linaro Ubuntu]&nbsp;(11.10) distribution.<br>  
Variscite supports its VAR-SOM-MX6&nbsp;with [http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git Linaro Ubuntu]&nbsp;(11.10) distribution.<br/>Your Ubuntu folder on your CD / &nbsp;FTP contains&nbsp;ready-to-run pre-built image which contain:Kernel, U-boot, and Ubuntu File system.<br/>{{note|Variscite recommends the use of Ultra (class 10 and above) microSD for optimial performance.|error}}
 
Your Ubuntu folder on your CD / &nbsp;FTP contains&nbsp;ready-to-run pre-built image which contain:Kernel, U-boot, and Ubuntu File system.<br>  
 
{{note|Variscite recommends the use of Ultra (class 10 and above) microSD for optimial performance.|error}}


= Installation  =
= Installation  =
Plug your SD card to your Linux machine, run dmesg and see which device is added (i.e. /dev/sd<span style="color: rgb(255, 0, 0);">'''X'''</span>). Copy the Ubuntu image to your SD card:
<pre>$&nbsp;gunzip mx6-som-ubuntu-oneric-sd.vx.img.gz
$&nbsp;dd if=mx6-som-ubuntu-oneric-sd.vx.img of=/dev/sdX bs=4M</pre>


Plug your SD card to your Linux machine, run dmesg and see what device is added (i.e. /dev/sd<span style="color: rgb(255, 0, 0);">'''X'''</span>).
Copy the Ubuntu image to your SD card:
<pre>$&nbsp;gunzip mx6-som-ubuntu-oneric-sd.vx.img.gz
$&nbsp;dd if=mx6-som-ubuntu-oneric-sd.vx.img of=/dev/sd<span style="color: rgb(255, 0, 0);">X</span> bs=4M</pre>
= Boot  =
= Boot  =


Line 23: Line 17:
In order to boot from SD-Card:  
In order to boot from SD-Card:  


#Power on board. press 'space' to enter u-boot prompt.  
#use our standard nand-recovery image. Boot into it and flash Yocto by running "nand-recovery.sh" after boot.  
#enter "nand erase". wait for completion. This operations will reset the default env settings to boot from Nand by default.  
#reboot the system (nand). Hit space bar to go into u-boot prompt.<br>
#Power off board, and power on again, while pressing the 'boot-select' button
#change the environment variables:<br>
<pre>U-Boot &gt; setenv bootcmd run bootcmd_mmc
U-Boot &gt; saveenv


</pre>
This method will use the u-boot from nand while booting kernel and using fileystem from the sd-card.


The default username and password are:


Username : linaro
Username&nbsp;: linaro  


password: linaro
password: linaro


= Build Kernel and U-Boot from Sources<br>  =
== Linux  ==
Get sources:
<pre>$ mkdir ~/VAR-MX6-ub/
$ cd ~/VAR-MX6-ub/
$ git clone git://github.com/varigit/linux-2.6-imx.git
$ cd linux-2.6-imx/
$ git checkout -b rel_imx_3.0.35_4.1.0-var17-release remotes/origin/rel_imx_3.0.35_4.1.0-var17-release
</pre>
{{note|Comment:<br/> get var_som_mx6_ubuntu_defconfig from the ftp site and relpace arch/arm/configs/var_som_mx6_ubuntu_defconfig with it.}}
Build the kernel:
<pre>$ make ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- mrproper
$ make ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- var_som_mx6_ubuntu_defconfig
$ make -j7 ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- uImage
$ make -j7 ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- modules
</pre>
{{note|Comment:<br/> /dev/mmcblk0 is used here in all SD card commands. You need to use dmesg and change it to your device name.|error}}


Flash the kernel to the sd-card and transfer the modules:
<pre>$ sudo dd if=arch/arm/boot/uImage of=/dev/mmcblk0 bs=512 seek=2048 conv=fsync;sync
$ sudo make ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- modules_install INSTALL_MOD_PATH=/media/VAR_MX6_UB4.1/
</pre>


<span style="font-size: 24.66666603088379px; line-height: 1.5em;">Build Kernel and U-Boot from Sources</span>
== u-boot  ==


To build Linux kernel and U-Boot from sources follow the instructions from [http://www.variwiki.com/index.php?title=VAR-SOM-MX6_-_Linux_support#Building_the_Linux_Platform here].<br>
Get sources:
<pre>$ cd ~/VAR-MX6-ub/
$ git clone git://github.com/varigit/uboot-imx
$ cd uboot-imx/
$ git checkout -b imx_v2009.08_3.0.35_4.1.0-var15 remotes/origin/imx_v2009.08_3.0.35_4.1.0-var15
</pre>
Build u-boot:
<pre>$ make -j6 ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- mrproper
$ make ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- mx6q_var_som_config
$ make -j6 ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi-
</pre>
Flash u-boot to the sd-card:
<pre>$ sudo dd if=u-boot.bin of=/dev/mmcblk0 bs=512 seek=2 skip=2 conv=fsync; sync
</pre>  
Un mount the sdcard. Press eject first.

Latest revision as of 10:50, 20 July 2016

VAR-SOM-MX6 - Ubuntu Linaro

Introduction

Variscite supports its VAR-SOM-MX6 with Linaro Ubuntu (11.10) distribution.
Your Ubuntu folder on your CD /  FTP contains ready-to-run pre-built image which contain:Kernel, U-boot, and Ubuntu File system.

Variscite recommends the use of Ultra (class 10 and above) microSD for optimial performance.

Installation

Plug your SD card to your Linux machine, run dmesg and see which device is added (i.e. /dev/sdX). Copy the Ubuntu image to your SD card:

$ gunzip mx6-som-ubuntu-oneric-sd.vx.img.gz
$ dd if=mx6-som-ubuntu-oneric-sd.vx.img of=/dev/sdX bs=4M

Boot

The default u-boot environment settings will load the on-som Nand flash based image.

In order to boot from SD-Card:

  1. use our standard nand-recovery image. Boot into it and flash Yocto by running "nand-recovery.sh" after boot.
  2. reboot the system (nand). Hit space bar to go into u-boot prompt.
  3. change the environment variables:
U-Boot > setenv bootcmd run bootcmd_mmc
U-Boot > saveenv

This method will use the u-boot from nand while booting kernel and using fileystem from the sd-card.

The default username and password are:

Username : linaro

password: linaro

Build Kernel and U-Boot from Sources

Linux

Get sources:

$ mkdir ~/VAR-MX6-ub/
$ cd ~/VAR-MX6-ub/
$ git clone git://github.com/varigit/linux-2.6-imx.git
$ cd linux-2.6-imx/
$ git checkout -b rel_imx_3.0.35_4.1.0-var17-release remotes/origin/rel_imx_3.0.35_4.1.0-var17-release
Comment:
get var_som_mx6_ubuntu_defconfig from the ftp site and relpace arch/arm/configs/var_som_mx6_ubuntu_defconfig with it.

Build the kernel:

$ make ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- mrproper
$ make ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- var_som_mx6_ubuntu_defconfig
$ make -j7 ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- uImage
$ make -j7 ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- modules
Comment:
/dev/mmcblk0 is used here in all SD card commands. You need to use dmesg and change it to your device name.

Flash the kernel to the sd-card and transfer the modules:

$ sudo dd if=arch/arm/boot/uImage of=/dev/mmcblk0 bs=512 seek=2048 conv=fsync;sync
$ sudo make ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- modules_install INSTALL_MOD_PATH=/media/VAR_MX6_UB4.1/

u-boot

Get sources:

$ cd ~/VAR-MX6-ub/
$ git clone git://github.com/varigit/uboot-imx
$ cd uboot-imx/
$ git checkout -b imx_v2009.08_3.0.35_4.1.0-var15 remotes/origin/imx_v2009.08_3.0.35_4.1.0-var15

Build u-boot:

$ make -j6 ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- mrproper
$ make ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- mx6q_var_som_config
$ make -j6 ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi-

Flash u-boot to the sd-card:

$ sudo dd if=u-boot.bin of=/dev/mmcblk0 bs=512 seek=2 skip=2 conv=fsync; sync

Un mount the sdcard. Press eject first.