Difference between revisions of "i.MX53 SODIMM PC Recovery"

From Voipac Wiki
Jump to navigation Jump to search
(Created page with "Category:i.MX53 SODIMM PC - Development kit Category:iMX6 Rex Recovery <!-- --> <div style="float:right">__TOC__</div> == Description == The recovery procedure consist...")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:i.MX53 SODIMM PC - Development kit]]
+
[[Category:i.MX53 SODIMM PC - Development Kit]]
[[Category:iMX6 Rex Recovery]]
+
[[Category:i.MX53 SODIMM PC Recovery]]
 
<!-- -->
 
<!-- -->
 
<div style="float:right">__TOC__</div>
 
<div style="float:right">__TOC__</div>
 
== Description ==
 
== Description ==
The recovery procedure consists of following steps:
+
'''''The recovery procedure consists of following steps:'''''
 
* Loading bootloader binary over JTAG interface using [[i.MX53 SODIMM PC Loading bootloader|OpenOCD Programming feature]]
 
* Loading bootloader binary over JTAG interface using [[i.MX53 SODIMM PC Loading bootloader|OpenOCD Programming feature]]
 
* Running bootloader from RAM
 
* Running bootloader from RAM
Line 11: Line 11:
 
* Flashing kernel over Ethernet
 
* Flashing kernel over Ethernet
 
* Flashing root filesystem over Ethernet
 
* Flashing root filesystem over Ethernet
* Erasing bootloader environment
+
* Resetting module
* Reseting module
 
 
<br />
 
<br />
Requirements:
+
'''''Requirements:'''''
* JTAG adapter with OpenOCD software
+
* JTAG adapter with [http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/tools/jtag/binaries/openocd-0.6.0-vmx0.zip OpenOCD software]
 
* Serial adapter with terminal application
 
* Serial adapter with terminal application
 
* Running TFTP server
 
* Running TFTP server
 
* Running DHCP server (optional)
 
* Running DHCP server (optional)
 
=== Recommended SW ===
 
* [http://downloads.voipac.com/files/iMX6_Rex_Development_kit/tools/DDR_Stress_Tester_V2.52_Imx6Rex.zip Mfg tools]
 
* Serial adapter with terminal application
 
* TFTP server
 
* DHCP server (optional)
 
  
 
== Loading bootloader ==
 
== Loading bootloader ==
 
Follow [[i.MX53 SODIMM PC Loading bootloader|these steps]] to load bootloader over serial connection.<br /><br />
 
Follow [[i.MX53 SODIMM PC Loading bootloader|these steps]] to load bootloader over serial connection.<br /><br />
  
Make sure to load the correct bootloader binary over JTAG. It is also a good practice to erase Barebox environment or load the default environment as incorrect definitions can be the cause of the malfunction.
+
Make sure to load the correct bootloader binary over JTAG. It is also a good practice to erase Barebox environment or load the default environment.
  
 
== Updating firmware ==
 
== Updating firmware ==
[[i.MX53_SODIMM_PC_Flashing_images#|This article]] describes updating Barebox, kernel and filesystems in details. The instructions down below provides these informations in a more compact form.
+
[[i.MX53_SODIMM_PC_Flashing_images#|This article]] describes updating Barebox, kernel and filesystems in details. The following sections provide these informations in more compact form.
  
 
=== Updating bootloader ===
 
=== Updating bootloader ===
Line 38: Line 31:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
mkdir -pv ~/tftp/vmx53
 
mkdir -pv ~/tftp/vmx53
cd /tftp/vmx53/
+
cd ~/tftp/vmx53/
 
release=20151129
 
release=20151129
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_kit/module/software/barebox/binaries/barebox-2014.03.0_vmx53_${release}.img
+
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/barebox/binaries/barebox-2014.03.0_vmx53_${release}.img
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 57: Line 50:
 
Download the latest Linux kernel image and store it into TFTP directory:
 
Download the latest Linux kernel image and store it into TFTP directory:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
cd /tftp/vmx53/
+
cd ~/tftp/vmx53/
 
release=20151129
 
release=20151129
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_kit/module/software/linux/binaries/zImage-3.12.13_vmx53_${release}.bin
+
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/linux/binaries/zImage-3.12.13_vmx53_${release}.bin
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 74: Line 67:
 
Download the latest filesystem image and store it into TFTP directory:
 
Download the latest filesystem image and store it into TFTP directory:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
cd /tftp/vmx53/
+
cd ~/tftp/vmx53/
 
release=20140907
 
release=20140907
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_kit/module/software/filesystem/binaries/rootfs-1.22-ubifs-m2k-e128k-512M_vmx53_${release}.bin
+
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/filesystem/binaries/rootfs-1.22-ubifs-m2k-e128k-512M_vmx53_${release}.bin
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_kit/module/software/filesystem/binaries/rootfs-1.22-ubifs-m4k-e1M-4G_vmx53_${release}.bin
+
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/filesystem/binaries/rootfs-1.22-ubifs-m4k-e1M-4G_vmx53_${release}.bin
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_kit/module/software/filesystem/binaries/rootfs-1.22-ubifs-m4k-e512k-1G_vmx53_${release}.bin
+
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/filesystem/binaries/rootfs-1.22-ubifs-m4k-e512k-1G_vmx53_${release}.bin
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 110: Line 103:
 
== Configuration ==
 
== Configuration ==
 
=== Configuring module version ===
 
=== Configuring module version ===
By modifying ''env/config'' file the board configuration is chosen:
+
By modifying ''env/config'' file the board configuration can be chosen:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
barebox@Voipac VMX53:/ edit /env/config
 
barebox@Voipac VMX53:/ edit /env/config

Latest revision as of 12:57, 24 April 2022

Description

The recovery procedure consists of following steps:

  • Loading bootloader binary over JTAG interface using OpenOCD Programming feature
  • Running bootloader from RAM
  • Flashing bootloader over Ethernet
  • Erasing bootloader environment
  • Flashing kernel over Ethernet
  • Flashing root filesystem over Ethernet
  • Resetting module


Requirements:

  • JTAG adapter with OpenOCD software
  • Serial adapter with terminal application
  • Running TFTP server
  • Running DHCP server (optional)

Loading bootloader

Follow these steps to load bootloader over serial connection.

Make sure to load the correct bootloader binary over JTAG. It is also a good practice to erase Barebox environment or load the default environment.

Updating firmware

This article describes updating Barebox, kernel and filesystems in details. The following sections provide these informations in more compact form.

Updating bootloader

Download the latest Barebox image and store it into TFTP directory:

mkdir -pv ~/tftp/vmx53
cd ~/tftp/vmx53/
release=20151129
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/barebox/binaries/barebox-2014.03.0_vmx53_${release}.img

Update Barebox:

#release=20150308
release=20151129
dhcp
eth0.serverip=192.168.0.1
update barebox vmx53/barebox-2014.03.0_vmx53_${release}.img
erase /dev/nand0.environment
reset

Updating Linux kernel

Download the latest Linux kernel image and store it into TFTP directory:

cd ~/tftp/vmx53/
release=20151129
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/linux/binaries/zImage-3.12.13_vmx53_${release}.bin

Update the kernel:

#release=20150308
release=20151129
dhcp
eth0.serverip=192.168.0.1
update kernel vmx53/zImage-3.12.13_vmx53_${release}.bin

Updating filesystem in UBIFS format

Download the latest filesystem image and store it into TFTP directory:

cd ~/tftp/vmx53/
release=20140907
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/filesystem/binaries/rootfs-1.22-ubifs-m2k-e128k-512M_vmx53_${release}.bin
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/filesystem/binaries/rootfs-1.22-ubifs-m4k-e1M-4G_vmx53_${release}.bin
wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/filesystem/binaries/rootfs-1.22-ubifs-m4k-e512k-1G_vmx53_${release}.bin

Update the filesystem:

release=20140907
dhcp
eth0.serverip=192.168.0.1
update rootfs vmx53/rootfs-1.22-ubifs_vmx53_20140817.bin
# Flash size: 128MB, 256MB, 512MB 
update rootfs vmx53/rootfs-1.22-ubifs-m2k-e128k-512M_vmx53_${release}.bin
# Flash size: 1024MB 
update rootfs vmx53/rootfs-1.22-ubifs-m4k-e512k-1G_vmx53_${release}.bin
# Flash size: 4094MB 
update rootfs vmx53/rootfs-1.22-ubifs-m4k-e1M-4G_vmx53_${release}.bin

Updating filesystem in UBI format

release=20140907
dhcp
eth0.serverip=192.168.0.1
# Flash size: 128MB, 256MB, 512MB 
tftp vmx53/rootfs-1.22-ubi-m2k-e128k-512M_vmx53_${release}.bin /dev/nand0.rootfs.bb
# Flash size: 1024MB 
tftp vmx53/rootfs-1.22-ubi-m4k-e512k-1G_vmx53_${release}.bin /dev/nand0.rootfs.bb
# Flash size: 4094MB 
tftp vmx53/rootfs-1.22-ubi-m4k-e1M-4G_vmx53_${release}.bin /dev/nand0.rootfs.bb

Configuration

Configuring module version

By modifying env/config file the board configuration can be chosen:

barebox@Voipac VMX53:/ edit /env/config
...
# Module Configuration (Device Tree mode)

# BASIC=557, PRO=668, MAX=779
#global.vmxmodel=557
#global.vmxmodel=668
global.vmxmodel=779

# Nand Boot Mode
global.boot.default=nand-dtb-ubi
...
barebox@Voipac VMX53:/ saveenv
barebox@Voipac VMX53:/ reset

Loading custom device tree file

Upload a custom DTB file into Barebox environment:

dhcp
eth0.serverip=192.168.0.1
tftp vmx53/imx53-vmx53-999.dtb /env/dtb/3.12/imx53-vmx53-999.dtb
saveenv

Edit /env/config and add custom "global.vmxmodel" settings:

barebox@Voipac VMX53:/ edit /env/config
# BASIC=557, PRO=668, MAX=779
#global.vmxmodel=557
#global.vmxmodel=668
global.vmxmodel=999
barebox@Voipac VMX53:/ saveenv

Note: The script responsible for loading correct DTB file is stored in /env/init/dtb.