Wiki Home » imx6 openrex » recovery

recovery

Last modified by Administrator on 2018/01/15 19:17

Info

Description

Recovery procedure consists from following steps:

  • Loading bootloader binary over usb using Mfgtools
  • Flashing new bootloader over Ethernet using TFTP
  • Erasing bootloader environment
  • Reseting module

Requirements

  • Mfg_tool
  • Serial adapter with terminal application
  • TFTP server
  • DHCP server (optional)

Update

Hint: Erase Bootloader environment or load the default environment.

Bootloader

Yocto

IMX6 Basic SBC

From TFTP server

SH

cd /srv/tftp/imx6/
wget http://www.voipac.com/downloads/imx/iMX6_OpenRex/bin/uboot/u-boot-imx6-openrexbasic-2.3.imx

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-openrexbasic-2.3.imx; then if sf probe 2:2; then sf erase 0x0 0x80000;sf write 0x10800000 0x400 0x7fc00; fi; fi
reset
From SD card

SH

# Step 1: Create vfat partition
sudo fdisk /dev/sdX
# Step 2: Unplug/plug sd card
# Step 3: Format partition
sudo mkfs.vfat /dev/sdX1
# Step 4: Copy bootloader to SD card
cd /media/user/61B3-D9BF
wget http://www.voipac.com/downloads/imx/iMX6_OpenRex/bin/uboot/u-boot-imx6-openrexbasic-2.3.imx

U-BOOT

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

IMX6 Max SBC

From TFTP server

SH

cd /srv/tftp/imx6/
wget http://www.voipac.com/downloads/imx/iMX6_OpenRex/bin/uboot/u-boot-imx6-openrexmax-2.3.imx

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-openrexmax-2.3.imx; then if sf probe 2:2; then sf erase 0x0 0x80000;sf write 0x10800000 0x400 0x7fc00; fi; fi
reset
From SD card

SH

# Step 1: Create vfat partition
sudo fdisk /dev/sdX
# Step 2: Unplug/plug sd card
# Step 3: Format partition
sudo mkfs.vfat /dev/sdX1
# Step 4: Copy bootloader to SD card
cd /media/user/61B3-D9BF
wget http://www.voipac.com/downloads/imx/iMX6_OpenRex/bin/uboot/u-boot-imx6-openrexmax-2.3.imx

U-BOOT

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

IMX6 Max4g SBC

From TFTP server

SH

cd /srv/tftp/imx6/
wget http://www.voipac.com/downloads/imx/iMX6_OpenRex/bin/uboot/u-boot-imx6-openrexmax4g-2.3.imx

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-openrexmax4g-2.3.imx; then if sf probe 2:2; then sf erase 0x0 0x80000;sf write 0x10800000 0x400 0x7fc00; fi; fi
reset
From SD card

SH

# Step 1: Create vfat partition
sudo fdisk /dev/sdX
# Step 2: Unplug/plug sd card
# Step 3: Format partition
sudo mkfs.vfat /dev/sdX1
# Step 4: Copy bootloader to SD card
cd /media/user/61B3-D9BF
wget http://www.voipac.com/downloads/imx/iMX6_OpenRex/bin/uboot/u-boot-imx6-openrexmax4g-2.3.imx

U-BOOT

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

IMX6 Ultra SBC

From TFTP server

SH

cd /srv/tftp/imx6/
wget http://www.voipac.com/downloads/imx/iMX6_OpenRex/bin/uboot/u-boot-imx6-openrexultra-2.3.imx

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.3.imx; then if sf probe 2:2; then sf erase 0x0 0x80000;sf write 0x10800000 0x400 0x7fc00; fi; fi
reset
From SD card

SH

# Step 1: Create vfat partition
sudo fdisk /dev/sdX
# Step 2: Unplug/plug sd card
# Step 3: Format partition
sudo mkfs.vfat /dev/sdX1
# Step 4: Copy bootloader to SD card
cd /media/user/61B3-D9BF
wget http://www.voipac.com/downloads/imx/iMX6_OpenRex/bin/uboot/u-boot-imx6-openrexultra-2.3.imx

U-BOOT

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

Erasing bootloader env

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

SD card image

Initial steps

Create working directory

mkdir -pv ~/workdir/imx6/rootfs/yocto

Download & Extract binary files

cd ~/workdir/imx6/rootfs/yocto
wget http://www.voipac.com/downloads/imx/iMX6_Rex/Module/bin/yocto/fsl-image-gui-imx6-openrexbasic-2.3.sdcard.gz
wget http://www.voipac.com/downloads/imx/iMX6_Rex/Module/bin/yocto/fsl-image-gui-imx6-openrexmax-2.3.sdcard.gz
wget http://www.voipac.com/downloads/imx/iMX6_Rex/Module/bin/yocto/fsl-image-gui-imx6-openrexmax4g-2.3.sdcard.gz
wget http://www.voipac.com/downloads/imx/iMX6_Rex/Module/bin/yocto/fsl-image-gui-imx6-openrexultra-2.3.sdcard.gz

Create Bootable SD card

Windows

Following example is for IMX6 Basic module.

USBWriter-imx6-tinyrexbasic-step01.png
USBWriter-imx6-tinyrexbasic-step02.png
USBWriter-imx6-tinyrexbasic-step03.png
USBWriter-imx6-tinyrexbasic-step04.png

Linux

IMX6 Basic SBC

gunzip -c fsl-image-gui-imx6-openrexbasic-2.3.sdcard.gz | sudo dd of=/dev/mmcblk0 conv=sync bs=64K

IMX6 Max SBC

gunzip -c fsl-image-gui-imx6-openrexmax-2.3.sdcard.gz | sudo dd of=/dev/mmcblk0 conv=sync bs=64K

IMX6 Max4g SBC

gunzip -c fsl-image-gui-imx6-openrexmax4g-2.3.sdcard.gz | sudo dd of=/dev/mmcblk0 conv=sync bs=64K

IMX6 Ultra SBC

gunzip -c fsl-image-gui-imx6-openrexultra-2.3.sdcard.gz | sudo dd of=/dev/mmcblk0 conv=sync bs=64K

Configuration

Load custom device tree file

Tags:
Created by Administrator on 2017/03/11 12:41

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.1 - Documentation