VAR-SOM-MX6 Ubuntu NAND Recovery

From Variscite Wiki
VAR-SOM-MX6 - Ubuntu Linaro Alip-20151215 NAND Recovery


Note:
Under construction!!! Under construction!!! Under construction!!!

Variscite provides a recovery SD-card image that can be used to install the pre-built U-Boot, Linux kernel and the eMMC root file system into the Nand-Flash This SD card image includes a script (ub-emmc.sh) that installs all the boot images and root file-system.

Preparing rescue SD-Card:

  • Plug-in the supplied SD card to your Linux HOST PC, run dmesg and see which device is added (i.e. /dev/sdX or /dev/mmcblk0)
  • Download linaro-alip-20151215-v3.img.gz ( latest which is available on Variscite's FTP)
$ gunzip linaro-alip-20151215-v3.img.gz
$ sudo dd if=linaro-alip-20151215-v3.img of=/dev/sdX bs=1M
Replace /dev/sdX with your true device, You can find it with dmesg.

Recover Nand Flash

  • Power-off the board.
  • Insert the SD card into the SD/MMC slot of the carrier board (DVK)
  • Press and hold the boot-select button, and power-on the board while button is pressed
  • The board will automatically boot into Linux from SD-Card

Flash from command line

  • System is at aluologin mode no password required/
  • From Linux command line, type one of flash options
$ cd rootfs/opt/images/Alip/
$ ./ub-emmc.sh
  • in case of yocto-emmc.sh, change boot arguments to :
$ setenv bootargs console=ttymxc0,115200 video=mxcfb1:off root=/dev/mmcblk1p1 rootwait rw
$ saveenv

SDCARD image file tree

opt/
└── images
    └── Alip
        ├── imx6dl-var-som.dtb
        ├── imx6dl-var-som-solo.dtb
        ├── imx6dl-var-som-solo-vsc.dtb
        ├── imx6q-var-dart.dtb
        ├── imx6q-var-som.dtb
        ├── imx6q-var-som-vsc.dtb
        ├── linaro-alip-20151215-v3.tar.bz2
        ├── mmcblk1p1
        ├── SPL
        ├── ub-emmc.sh
        ├── u-boot.img
        └── uImage

3 directories, 11 files