DART-6UL Debian Recovery SD card: Difference between revisions

From Variscite Wiki
Line 3: Line 3:


== Download the recovery SD card image ==
== Download the recovery SD card image ==
Download mx6ul-dart-debian-recovery-sd.vXX.img.gz (latest) from Variscite's FTP server: ftp://customerv:Variscite1@ftp.variscite.com/DART-6UL/Software/debian/<br>
Download var-mx6ul-debian-recovery-sd.vXX.img.gz (latest) from Variscite's FTP server: ftp://customerv:Variscite1@ftp.variscite.com/DART-6UL/Software/debian/<br>
See the detailed [ftp://customerv:Variscite1@ftp.variscite.com/DART-6UL/Software/debian/mx6ul-var-debian-recovery-sd.changelog changelog]
See the detailed [ftp://customerv:Variscite1@ftp.variscite.com/DART-6UL/Software/debian/var-mx6ul-debian-recovery-sd.changelog changelog]


== Write the image to an SD card ==
== Write the image to an SD card ==

Revision as of 15:26, 16 June 2019

DART-6UL - Debian recovery SD card

Variscite provides a recovery SD card image that can be used to install the pre-built Debian images into the internal storage device of the SOM.

Download the recovery SD card image

Download var-mx6ul-debian-recovery-sd.vXX.img.gz (latest) from Variscite's FTP server: ftp://customerv:Variscite1@ftp.variscite.com/DART-6UL/Software/debian/
See the detailed changelog

Write the image to an SD card

Using a Linux based host

Plug-in the SD card to your Linux HOST PC, run dmesg and see which device is added (i.e. /dev/sdX or /dev/mmcblkX)

$ gunzip mx6ul-dart-debian-recovery-sd.vXX.img.gz
$ sudo umount /dev/sdX*
$ sudo dd if=mx6ul-dart-debian-recovery-sd.vXX.img of=/dev/sdX bs=1M; sync

(Replace /dev/sdX with your actual device)

Using a Windows based host

Download Win32 Disk Imager from: https://sourceforge.net/projects/win32diskimager/, install and run it.
Select the image file, and the SD card device - double check that the device is correct to avoid accidentally overwriting a different device.
Click on "Write".
No need to format the SD card before writing the image to it.

Recover NAND flash/eMMC

  • Power-off the board.
  • Insert the SD card into the SD card slot of the carrier board (DVK)
  • Make sure the Boot DIP switches are set to SD card: Setting the Boot DIP switches
  • Power up the board - it will boot into Linux from the SD card

Flash from command line

  • Login as root (password root)
  • From Linux command line, type the following
$ debian-emmc.sh	- Flash Debian into eMMC (for SOMs with eMMC)

$ debian-nand.sh	- Flash Debian into NAND flash (for SOMs with NAND flash)

SD card image file tree

/opt/images/
└── Debian
    ├── imx6ul-var-dart-5g-emmc_wifi.dtb
    ├── imx6ul-var-dart-5g-nand_wifi.dtb
    ├── imx6ul-var-dart-emmc_wifi.dtb
    ├── imx6ul-var-dart-nand_wifi.dtb
    ├── imx6ul-var-dart-sd_emmc.dtb
    ├── imx6ul-var-dart-sd_nand.dtb
    ├── imx6ull-var-dart-5g-emmc_wifi.dtb
    ├── imx6ull-var-dart-5g-nand_wifi.dtb
    ├── imx6ull-var-dart-emmc_wifi.dtb
    ├── imx6ull-var-dart-nand_wifi.dtb
    ├── imx6ull-var-dart-sd_emmc.dtb
    ├── imx6ull-var-dart-sd_nand.dtb
    ├── rootfs.tar.gz
    ├── rootfs.ubi.img
    ├── SPL.mmc
    ├── SPL.nand
    ├── u-boot.img.mmc
    ├── u-boot.img.nand
    └── zImage
The debian-emmc.sh and debian-nand.sh script files are located at /usr/sbin/