iMX6 OpenRex Ultra Recovery

From Voipac Wiki
Revision as of 08:15, 27 March 2021 by Voipac (talk | contribs) (Created page with "Category:iMX6 OpenRex SBC Category:iMX6 OpenRex Ultra Category:iMX6 OpenRex Recovery <!-- --> <div style="float:right">__TOC__</div> == Description == Recovery pro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Recovery procedure consist from following steps:

  • Loading bootloader binary over USB using Mfgtools fealture
  • Flashing new bootloader over Ethernet using TFTP
  • Erasing bootloader environment
  • Reseting module
  • Creating a new SD card containing filesystem (if needed)

Bootloader

Updating from TFTP server

Downloading the U-Boot image (on computer acting as TFTP server):

cd /srv/tftp/imx6/
wget http://downloads.voipac.com/files/iMX6_OpenRex_SBC/software/uboot/binaries/u-boot-imx6-openrexultra-2.4.imx

Updating in U-Boot:

setenv ipaddr 192.168.0.150
setenv serverip 192.168.0.1

mw.b 0x10800000 0xFF 0x80000;if tftp 0x10800000 imx6/u-boot-imx6-openrexultra-2.4.imx; then if sf probe 2:2; then sf erase 0x0 0x80000;sf write 0x10800000 0x400 0x7fc00; fi; fi
reset

Updating from SD card

Creating SD card in Linux

Create VFAT partition:

sudo fdisk /dev/sdX

Unplug/plug SD card and format the partition afterwards:

sudo mkfs.vfat /dev/sdX1

Copy bootloader to SD card:

cd /media/user/61B3-D9BF 
wget http://downloads.voipac.com/files/iMX6_OpenRex_SBC/software/uboot/binaries/u-boot-imx6-openrexultra-2.4.imx

Updating in U-Boot:

mw.b 0x10800000 0xFF 0x80000;
if fatload mmc 0:1 0x10800000 u-boot-imx6-openrexultra-2.4.imx; then if sf probe 2:2; then sf erase 0x0 0x80000;sf write 0x10800000 0x400 0x7fc00; fi; fi
reset

Erasing bootloader environment =

OpenRex U-Boot > env default -f -a
## Resetting to default environment
OpenRex U-Boot > saveenv
Saving Environment to SPI Flash...
SF: Detected SST26VF032B with page size 256 Bytes, erase size 4 KiB, total 4 MiB
Erasing SPI flash...Writing to SPI flash...done

Creating bootable SD card

Follow these steps to prepare the SD card