VAR-SOM-MX6 Ubuntu GS: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
= Introduction = | = Introduction = | ||
Variscite supports its VAR-SOM-MX6 with [http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git Linaro Ubuntu] (11.10) distribution.<br> | Variscite supports its VAR-SOM-MX6 with [http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git Linaro Ubuntu] (11.10) distribution.<br> Your Ubuntu folder on your CD / FTP contains ready-to-run pre-built image which contain:Kernel, U-boot, and Ubuntu File system.<br> | ||
Your Ubuntu folder on your CD / FTP contains 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}} | {{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 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: | |||
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>$ gunzip mx6-som-ubuntu-oneric-sd.vx.img.gz | <pre>$ gunzip mx6-som-ubuntu-oneric-sd.vx.img.gz | ||
$ dd if=mx6-som-ubuntu-oneric-sd.vx.img of=/dev/sd | $ 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: | ||
# | #use our standard nand-recovery image. Boot into it and flash Yocto by running "nand-recovery.sh" after boot. | ||
# | #reboot the system (nand). hit space bar to go into u-boot prompt.<br> | ||
# | #change the environment variables:<br> | ||
<pre>U-Boot > setenv bootcmd run bootcmd_mmc | |||
U-Boot > 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 : 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 https://varigit@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> | |||
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/> I used /dev/mmcblk0 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> | |||
== u-boot == | |||
Get sources: | |||
<pre>$ cd ~/VAR-MX6-ub/ | |||
$ git clone https://varigit@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. |
Revision as of 08:07, 21 January 2014
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.
Installation
Plug your SD card to your Linux machine, run dmesg and see what 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/sd<span style="color: rgb(255, 0, 0);">X</span> 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:
- use our standard nand-recovery image. Boot into it and flash Yocto by running "nand-recovery.sh" after boot.
- reboot the system (nand). hit space bar to go into u-boot prompt.
- 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 https://varigit@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
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
I used /dev/mmcblk0 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 https://varigit@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.