DART-6UL Yocto NAND Recovery
From Variscite Wiki
DART-6UL - Yocto NAND Recovery
Variscite provides a recovery SD-card image that can be used to install the pre-built U-Boot, Linux kernel and the UBI file system into the Nand-Flash This SD card image includes a script (nand-recovery.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 mx6ul-dart-nand-recovery-sd.vXX.img.gz ( latest which is available on Variscite's FTP)
$ gunzip mx6ul-dart-nand-recovery-sd.XX.img.gz $ sudo dd if=mx6ul-dart-nand-recovery-sd.vXX.img of=/dev/sdX bs=128k 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)
- Switch the relevant dip-switch to "Boot from SD-Card", according to the relevant start-up guide of your system.
See picture below.
- The board will automatically boot into Linux from SD-Card
Flash from GUI
- Press the right arrow on the upper right corner to change the desktop into Utilities.
- Push Yocto-nand flash Yocto into nand.
- Push Yocto-eMMC flash Yocto into eMMC. This option require changes in u-boot environment.
Flash from command line
- Login as root (no password)
- From Linux command line, type one of flash options
$ $ yocto-emmc.sh - flash Yocto into eMMC (See note below) $ yocto-nand.sh - flash Yocto into nand
- 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
/media/rootfs/opt/images/ └── Yocto ├── rootfs.sdcard ├── rootfs.tar.bz2 ├── rootfs.ubi.img ├── SPL-nand ├── SPL-sd ├── u-boot-nand-2015.04-r0.img ├── u-boot-sd-2015.04-r0.img ├── zImage ├── zImage-imx6ul-var-dart-emmc_wifi.dtb ├── zImage-imx6ul-var-dart-nand_wifi.dtb ├── zImage-imx6ul-var-dart-sd_emmc.dtb └── zImage-imx6ul-var-dart-sd_nand.dtb
Script files located on /media/rootfs/sbin/ yocto-nand.sh nand-recovery.sh yocto-emmc.sh