VAR-SOM-MX6 Ubuntu Flash From Net: Difference between revisions
From Variscite Wiki
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{PageHeader|VAR-SOM-MX6 - Ubuntu Linaro Alip-20151215 Flash your target from NET}} {{DocImage|category1=VAR-SOM-MX6|category2=Alip}} __toc__ | {{PageHeader|VAR-SOM-MX6 - Ubuntu Linaro Alip-20151215 Flash your target from NET}} {{DocImage|category1=VAR-SOM-MX6|category2=Alip}} __toc__ | ||
= Overview = | = Overview = | ||
Line 30: | Line 27: | ||
$ sudo cp linux-2.6-imx/arch/arm/boot/dts/*var*.dtb rootfs/root | $ sudo cp linux-2.6-imx/arch/arm/boot/dts/*var*.dtb rootfs/root | ||
$ sudo cp ~/baba/Downloads/ | $ sudo cp ~/baba/Downloads/ | ||
$ sudo cp ~/baba/Downloads/linaro-alip-20151215- | $ sudo cp ~/baba/Downloads/linaro-alip-20151215-v3.tar.bz2 rootfs/root/ | ||
</pre> | </pre> | ||
Line 49: | Line 46: | ||
= Install U-Boot and Linux Kernel images = | = Install U-Boot and Linux Kernel images = | ||
{{note|Note:<br/>Make sure you built U-Boot for | {{note|Note:<br/>Make sure you built U-Boot for NAND.|info}} | ||
<pre>$ flash_erase /dev/mtd0 0 0 | <pre>$ flash_erase /dev/mtd0 0 0 | ||
$ kobs-ng init -x SPL --search_exponent=1 -v > /dev/null | $ kobs-ng init -x SPL --search_exponent=1 -v > /dev/null | ||
$ flash_erase /dev/mtd1 0 0 | $ flash_erase /dev/mtd1 0 0 | ||
$ nandwrite -p /dev/mtd1 | $ nandwrite -p /dev/mtd1 u-boot.img | ||
$ | $ | ||
$ flash_erase /dev/mtd2 0 0 | $ flash_erase /dev/mtd2 0 0 | ||
$ nandwrite -p /dev/mtd2 uImage | $ nandwrite -p /dev/mtd2 uImage | ||
$ nandwrite -p /dev/ | $ nandwrite -p /dev/mtd1 -s 0x1e0000 imx6q-var-som.dtb | ||
$ sync | |||
</pre> | </pre> | ||
= Install the root file system = | = Install the root file system = | ||
<pre>$ | <pre>$ mkdir tmp | ||
$ mount /dev/mmcblk1p1 tmp/ | |||
$ tar xf linaro-alip-20151215-v3.tar.bz2 -C tmp/ | |||
$ umount tmp | |||
$ rm -rf tmp | |||
</pre> | </pre> | ||
= Deploy the kernel modules = | = Deploy the kernel modules = | ||
<pre> | <pre> | ||
</pre> | </pre> | ||
= Deploy the Wi-Fi modules and firmware = | = Deploy the Wi-Fi modules and firmware = | ||
<pre> | <pre> | ||
</pre> | </pre> | ||
= u-boot paramters = | |||
echo "Please stop at u-boot and set enviroment" | |||
echo "setenv bootargs console=ttymxc0,115200 video=mxcfb1:off root=/dev/mmcblk1p1 rootwait rw" | |||
echo "saveenv" |
Latest revision as of 06:46, 19 January 2016
VAR-SOM-MX6 - Ubuntu Linaro Alip-20151215 Flash your target from NET
Overview
Ubuntu Linaro Alip is pre built file system. For more information Ubuntu based Rootfs provided by Linaro. Variscite used linaro-vivid-alip-20151215-714 image added Vivante Graphic acceleration and compile the GStreamer with i.MX6 support.
Build Ubuntu Alip NFS is prerequisite step. Please make sure you run it and have a complete NFS build directory as described in the linked WIKI. Also make sure you target is booted from NFS.
The steps require to build an Bootable SDCARD:
- Build Ubuntu Alip NFS. Build Ubuntu Alip NFS
- Boot your Ubuntu Alip with TFTP and mount your file system over NFS. Build Ubuntu Alip NFS
- Copy required file to your NFS directory
- Format and partition the target eMMC
- Install U-Boot and Linux Kernel images
- Install the root file system
- Deploy the kernel modules
- Deploy the Wi-Fi modules and firmware
Copy required file to your NFS directory
Note:
Make sure you built U-Boot for NAND.
Make sure you built U-Boot for NAND.
$ cd ~/var-som-mx6-alip/ $ sudo cp uboot-imx/SPL rootfs/root $ sudo cp uboot-imx/u-boot.img rootfs/root $ sudo cp linux-2.6-imx/arch/arm/boot/uImage rootfs/root $ sudo cp linux-2.6-imx/arch/arm/boot/dts/*var*.dtb rootfs/root $ sudo cp ~/baba/Downloads/ $ sudo cp ~/baba/Downloads/linaro-alip-20151215-v3.tar.bz2 rootfs/root/
Format and partition the target eMMC
Boot your target and:
$ fdisk /dev/mmcblk1 n p 1 <enter for default> <enter for default> t 83 w $ mkfs.ext4 /dev/mmcblk1p1 -Lrootfs
Install U-Boot and Linux Kernel images
Note:
Make sure you built U-Boot for NAND.
Make sure you built U-Boot for NAND.
$ flash_erase /dev/mtd0 0 0 $ kobs-ng init -x SPL --search_exponent=1 -v > /dev/null $ flash_erase /dev/mtd1 0 0 $ nandwrite -p /dev/mtd1 u-boot.img $ $ flash_erase /dev/mtd2 0 0 $ nandwrite -p /dev/mtd2 uImage $ nandwrite -p /dev/mtd1 -s 0x1e0000 imx6q-var-som.dtb $ sync
Install the root file system
$ mkdir tmp $ mount /dev/mmcblk1p1 tmp/ $ tar xf linaro-alip-20151215-v3.tar.bz2 -C tmp/ $ umount tmp $ rm -rf tmp
Deploy the kernel modules
Deploy the Wi-Fi modules and firmware
u-boot paramters
echo "Please stop at u-boot and set enviroment" echo "setenv bootargs console=ttymxc0,115200 video=mxcfb1:off root=/dev/mmcblk1p1 rootwait rw" echo "saveenv"