Wiki Home » vmx25 » recovery

recovery

Last modified by Administrator on 2018/10/21 17:17

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 environment
  • Reseting module
  • Flashing kernel over Ethernet
  • Flashing root filesystem over Ethernet
  • 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.

Yocto version

Download files

cd /srv/tftp/vmx25
wget https://www.voipac.com/downloads/imx/25/bin/barebox/barebox-vmx25-1.0.img

wget https://www.voipac.com/downloads/imx/25/bin/linux/zImage-vmx25-1.0.bin
wget https://www.voipac.com/downloads/imx/25/bin/linux/zImage-vmx25-254-1.0.dtb
wget https://www.voipac.com/downloads/imx/25/bin/linux/zImage-vmx25-264-1.0.dtb
wget https://www.voipac.com/downloads/imx/25/bin/linux/zImage-vmx25-265-1.0.dtb

wget https://www.voipac.com/downloads/imx/25/bin/yocto/core-image-base-vmx25-1.0.ubi

Bootloader

#dhcp
eth0.serverip=192.168.1.1
eth0.ipaddr=192.168.1.2
eth0.netmask=255.255.255.0

image=vmx25/barebox-vmx25-1.0.img
part=/dev/nand0.barebox.bb

unprotect $part
erase $part
tftp $image $part
erase /dev/nand0.environment
reset

Kernel

#dhcp
eth0.serverip=192.168.1.1
eth0.ipaddr=192.168.1.2
eth0.netmask=255.255.255.0

image=vmx25/zImage-vmx25-1.0.bin
part=/dev/nand0.kernel.bb

unprotect $part
erase $part
tftp $image $part

DTB

#dhcp
eth0.serverip=192.168.1.1
eth0.ipaddr=192.168.1.2
eth0.netmask=255.255.255.0

tftp vmx25/zImage-vmx25-254-1.0.dtb /env/dtb/imx25-voipac-vmx25-254.dtb
tftp vmx25/zImage-vmx25-264-1.0.dtb /env/dtb/imx25-voipac-vmx25-264.dtb
tftp vmx25/zImage-vmx25-265-1.0.dtb /env/dtb/imx25-voipac-vmx25-265.dtb
saveenv
Hint: edit env/config-board to make sure the proper dtb file is loaded.
edit env/config-board
...
# BASIC=254, PRO=264, MAX=265
#global.vmx.model=254
#global.vmx.model=264
global.vmx.model=265
...
saveenv

Rootfs (rootfs is in ubi format)

#dhcp
eth0.serverip=192.168.1.1
eth0.ipaddr=192.168.1.2
eth0.netmask=255.255.255.0

image=vmx25/core-image-base-vmx25-1.0.ubi
part=/dev/nand0.rootfs.bb

unprotect $part
erase $part
tftp $image $part
reset

Busybox version

Download files

cd /srv/tftp/vmx25
wget https://www.voipac.com/downloads/imx/25/bin/_old/barebox-2014.03.0_vmx25_20151129.img

wget https://www.voipac.com/downloads/imx/25/bin/_old/zImage-3.12.13_sdint_vmx25_20151129.bin

wget https://www.voipac.com/downloads/imx/25/bin/_old/rootfs-1.22-ubifs_vmx25_20140817.bin

Bootloader

release=20151129
dhcp
eth0.serverip=192.168.0.1
update barebox vmx25/barebox-2014.03.0_vmx25_${release}.img
erase /dev/nand0.environment
reset

Kernel

release=20151129
dhcp
eth0.serverip=192.168.0.1
update kernel vmx25/zImage-3.12.13_sdint_vmx25_${release}.bin

Rootfs (rootfs is in ubifs format)

release=20140817
dhcp
eth0.serverip=192.168.0.1
update rootfs vmx25/rootfs-1.22-ubifs_vmx25_${release}.bin

Configuration

env/config

Add module configuration and bootmode into config file

[email protected] VMX25:/ edit /env/config
...
# Module Configuration (Device Tree mode)

# BASIC=254, PRO=264, MAX=265
#global.vmxmodel=254
#global.vmxmodel=264
global.vmxmodel=265

# Nand Boot Mode
global.boot.default=nand-legacy-ubi
...
[email protected] VMX25:/ saveenv
[email protected] VMX25:/ reset
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