Debian Recovery SD card: Difference between revisions

From Variscite Wiki
No edit summary
(10 intermediate revisions by 3 users not shown)
Line 6: Line 6:


== Download the recovery SD card image ==
== Download the recovery SD card image ==
 
Download {{#var:RECOVERY_SD_NAME}} from Variscite's FTP server: ftp://customerv:Variscite1@ftp.variscite.com/{{#var:HARDWARE_NAME}}/Software/debian/
Download mx8m{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-MINI |m}}-dart-debian-recovery-sd.vXX.img.gz (latest) from Variscite's FTP server: ftp://customerv:Variscite1@ftp.variscite.com/{{#var:HARDWARE_NAME}}/Software/debian/
{{#ifeq: {{#var:HARDWARE_NAME}} | VAR-SOM-MX8X |{{#ifeq: {{#var:MACHINE_NAME_B0}} | imx8qxpb0-var-som |
<br>
'''Or, for i.MXQXP SOC revision B0:''' <br>
Download {{#var:RECOVERY_SD_NAME_B0}} from Variscite's FTP server: ftp://customerv:Variscite1@ftp.variscite.com/{{#var:HARDWARE_NAME}}/Software/debian/
|}}|}}


== Write the image to an SD card ==
== Write the image to an SD card ==
=== Using a Linux based host ===
=== 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)
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: {{#var:HARDWARE_NAME}} | DART-MX8M-MINI |
<pre>
$ 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)
</pre>
|
{{#ifeq: {{#var:HARDWARE_NAME}} | VAR-SOM-MX8X |
<pre>
$ gunzip mx8qxp-var-som-debian-recovery-sd.vXX.img.gz
$ sudo umount /dev/sdX*
$ 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>
|
<pre>
<pre>
$ gunzip mx8m-dart-debian-recovery-sd.vXX.img.gz
$ gunzip mx8m-dart-debian-recovery-sd.vXX.img.gz
Line 19: Line 41:
(Replace /dev/sdX with your actual device)
(Replace /dev/sdX with your actual device)
</pre>
</pre>
}}
}}


=== Using a Windows based host ===
=== Using a Windows based host ===
Line 29: Line 53:
* Power-off the board.
* Power-off the board.
* Insert the SD card into the SD card slot of the carrier board (DVK)
* 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: {{Varlink|Debian_Build_Release|RELEASE_STRETCH_V1.0_DART-MX8M#Setting_the_Boot_Mode|Setting the Boot Mode}}
* Make sure the Boot DIP switches are set to SD card: {{Varlink|Debian_Build_Release#Setting the Boot Mode|{{#var:RELEASE_LINK}}|Setting the Boot Mode}}
* Power up the board - it will boot into Linux from the SD card
* Power up the board - it will boot into Linux from the SD card


Line 36: Line 60:
* From Linux command line, type the following
* From Linux command line, type the following
<pre>
<pre>
$ debian-emmc.sh - Flash Debian into eMMC
$ install_debian.sh - Flash Debian into eMMC
</pre>
</pre>


Line 48: Line 72:


<pre>
<pre>
The debian-emmc.sh script file is located at /usr/sbin/
The install_debian.sh script file is located at /usr/sbin/
</pre>
</pre>

Revision as of 01:21, 28 July 2020

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.

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/


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 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)

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 Mode
  • 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
$ install_debian.sh	- Flash Debian into eMMC

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/