DART-6UL Yocto NAND Recovery: Difference between revisions

From Variscite Wiki
Line 44: Line 44:
</pre>
</pre>


=== SDCARD image file tree ===
=== SD card image file tree ===
<pre>
<pre>
/media/rootfs/opt/images/
/opt/images/
└── Yocto
└── Yocto
     ├── rootfs.sdcard
     ├── imx6ul-var-dart-emmc_wifi.dtb
    ├── imx6ul-var-dart-nand_wifi.dtb
    ├── imx6ul-var-dart-sd_emmc.dtb
    ├── imx6ul-var-dart-sd_nand.dtb
     ├── rootfs.tar.bz2
     ├── rootfs.tar.bz2
     ├── rootfs.ubi.img
     ├── rootfs.ubi
     ├── SPL-nand
     ├── SPL-nand
     ├── SPL-sd
     ├── SPL-sd
     ├── u-boot-nand-2015.04-r0.img
     ├── u-boot.img-nand
     ├── u-boot-sd-2015.04-r0.img
     ├── u-boot.img-sd
    ├── zImage
     └── 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
</pre>
 
<pre>
Script files located on /media/rootfs/sbin/
yocto-nand.sh
nand-recovery.sh
yocto-emmc.sh
</pre>
</pre>

Revision as of 12:44, 4 September 2016

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:

$ 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.

Booting options for DART-6UL

Booting your system requires switching the relevant dip-switch to "Boot from SD-Card".See picture below.

Boot switch 6ul1.jpg
  • "00" The current position will set the system to boot from SDCARD. The picture mode
  • "01" Moving the right switch will set the system to boot eMMC
  • "10" Moving the left switch will set the system to boot NAND
  • "11" is illegal.

Be aware that your system has eMMC or NAND but never both.

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"
  • Power-up board
  • The board will automatically boot into Linux from SD-Card

Flash from GUI

Nandr-6ul-p1.png

  • Press the right arrow on the upper right corner to change the desktop into Utilities.

Nandr-6ul-p2.png

  • 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

SD card image file tree

/opt/images/
└── Yocto
    ├── imx6ul-var-dart-emmc_wifi.dtb
    ├── imx6ul-var-dart-nand_wifi.dtb
    ├── imx6ul-var-dart-sd_emmc.dtb
    ├── imx6ul-var-dart-sd_nand.dtb
    ├── rootfs.tar.bz2
    ├── rootfs.ubi
    ├── SPL-nand
    ├── SPL-sd
    ├── u-boot.img-nand
    ├── u-boot.img-sd
    └── zImage