Wiki Home » vmx53 » recovery

recovery

Last modified by Administrator on 2015/04/12 13:27

Info

Description

Recovery procedure consist from following steps:

  • Loading bootloader binary over JTAG into RAM
  • Running bootloader from RAM
  • Flashing bootloader over Ethernet
  • Erasing bootloader environmet
  • Flashing kernel over Ethernet
  • Flashing root filesystems over Ethernet
  • Erasing bootloader environmet
  • Reseting module

Requirements

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

Update

Hint: Load proper Bootloader binary over JTAG since the partition layout may change among releases.
Hint: Erase Bootloader environment or load the default environment.

Bootloader

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

Kernel

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

Rootfs (rootfs is in ubifs format)

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

Rootfs (rootfs is 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

env/config

Correct module configuration and bootmode must be configured

[email protected] 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
...
[email protected] VMX53:/ saveenv
[email protected] VMX53:/ reset

Load custom device tree file

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

[email protected] VMX53:/ edit /env/config
# BASIC=557, PRO=668, MAX=779
#global.vmxmodel=557
#global.vmxmodel=668
global.vmxmodel=999
[email protected] VMX53:/ saveenv
Hint: Script responsible for loading correct DTB file is saved as "/env/init/dtb".
Tags:
Created by Administrator on 2014/08/21 18:50

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