Difference between revisions of "Debian Recovery SD card"

From Variscite Wiki
Line 30: Line 30:
 
$ sudo umount /dev/sdX*
 
$ sudo umount /dev/sdX*
 
$ sudo dd if=mx8qxp-var-som-debian-recovery-sd.vXX.img of=/dev/sdX bs=1M; sync
 
$ sudo dd if=mx8qxp-var-som-debian-recovery-sd.vXX.img of=/dev/sdX bs=1M; sync
 +
 +
(Replace /dev/sdX with your actual device)
 +
</pre>
 +
|
 +
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-PLUS |
 +
<pre>
 +
$ gunzip dart-mx8mp-debian-recovery-sd.vXX.img.gz
 +
$ sudo umount /dev/sdX*
 +
$ sudo dd if=dart-mx8mp-debian-recovery-sd.vXX.img of=/dev/sdX bs=1M; sync
  
 
(Replace /dev/sdX with your actual device)
 
(Replace /dev/sdX with your actual device)

Revision as of 09:46, 2 May 2021

DART-MX8M - 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.

1 Download the recovery SD card image

Download stretch-4.14.78-mx8m-v1.0.img.gz from Variscite's FTP server: ftp://customerv:Variscite1@ftp.variscite.com/DART-MX8M/Software/debian/


2 Write the image to an SD card

2.1 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) {{#ifeq: DART-MX8M | DART-MX8M-MINI |

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

(Replace /dev/sdX with your actual device)

|

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

(Replace /dev/sdX with your actual device)

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

3 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 Mode
  • Power up the board - it will boot into Linux from the SD card

3.1 Flash from command line

  • Login as root (password root)
  • From Linux command line, type the following
$ install_debian.sh	- Flash Debian into eMMC

3.2 SD card image file tree

/opt/images/
└── Debian
    ├── rootfs.tar.gz
    └── imx-boot-sd.bin
The install_debian.sh script file is located at /usr/sbin/