VAR-SOM-MX6 Ubuntu Flash Ubuntu Alip to eMMC
From Variscite Wiki
VAR-SOM-MX6 - Ubuntu Linaro Alip-20151215 Flash your target from bootable SDCARD
Note:
Under construction!!! Under construction!!! Under construction!!!
Under construction!!! Under construction!!! Under construction!!!
1 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.
Create Ubuntu Alip SDCARD is prerequisite step. Please make sure you run it and have a bootable Ubuntu SDCARD as described in the linked WIKI.
The steps require to build an Bootable SDCARD:
- Build Ubuntu Alip NFS. Build Ubuntu Alip NFS
- Created Ubuntu Alip bootable SDCARD. Create Ubuntu Alip SDCARD
- Copy required file to your SDCARD
- Boot your target from SDCARD
- 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
2 Copy required file to your SDCARD
Note:
Make sure you built U-Boot for NAND.
Make sure you built U-Boot for NAND.
Plug-In the bootable SDCARD $ cd ~/var-som-mx6-alip/ $ mkdir -p /media/rootfs/opt/images/Alip $ sudo cp uboot-imx/SPL /media/rootfs/opt/images/Alip $ sudo cp uboot-imx/u-boot.img /media/rootfs/opt/images/Alip $ sudo cp linux-2.6-imx/arch/arm/boot/uImage /media/rootfs/opt/images/Alip $ sudo cp linux-2.6-imx/arch/arm/boot/dts/*var*.dtb /media/rootfs/opt/images/Alip $ sudo cp ~/Downloads/linaro-alip-20151215-v1.tar.bz2 /media/rootfs/opt/images/Alip
3 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
4 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
5 Install the root file system
$ mkdir tmp $ mount /dev/mmcblk1p1 tmp/ $ tar xf linaro-alip-20151215-v1.tar.bz2 -C tmp/ $ umount tmp $ rm -rf tmp
6 Deploy the kernel modules
$ cd ~/var-som-mx6-alip/linux-2.6-imx $ sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules_install INSTALL_MOD_PATH=/media/rootfs/
7 Deploy the Wi-Fi modules and firmware
$ cd ~/var-som-mx6-alip/build-utilites $ gedit setup-env set: export ROOTFS=/media/rootfs
$ ./sudo_build_wl18xx.sh modules $ ./sudo_build_wl18xx.sh firmware $ ./sudo_build_wl18xx.sh bt-firmware $ sudo umount /dev/sdxxx*
8 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"