Recovery U-Boot Image (Lizard)

From DAVE Developer's Wiki
Revision as of 09:29, 16 March 2018 by U0002 (talk | contribs) (update to match the automatic recovery script)

Jump to: navigation, search

Introduction[edit | edit source]

This article describe how to recover a corrupted U-Boot image on Lizard NOR Flash using a Windows host machine.

In brief user needs to:

  • configure Lizard SOM to boot over serial port instead of on board NOR flash
  • download and prepare serial communication tools
  • use those tools to download first stage bootloader and U-Boot over UART
  • use this U-Boot to update NOR flash

This assume that you're using a standard LELK hardware and software.

Tool Preparation[edit | edit source]

  • Download the lizard-recovery.zip archive and extract it on your Windows PC
  • If needed, replace the u-boot.bin file with your custom binary or download the latest LELK binary from DAVE Embedded Systems mirror
  • Open the command prompt and go inside the folder where you extracted the recovery file
  • Launch the utility with the serial port number as the argument
C:\Users\Desktop\lizard-Recovery\lizard> .\uart-recovery.bat COM1

The tools is now waiting for the board to wakeup

Info Box
Lizard.jpg Applies to Lizard
Lizard-evb-02.png Applies to LizardEVB-Lite

Board Preparation[edit | edit source]

  • Power off the board and set the dip switch S2.2 ON to select serial boot
  • Connect UART2 to your host PC
  • Turn on the board

Flashing the firmware[edit | edit source]

Once the board boot up, after a couple of seconds of delay, the recovery procedure will start.

The script is totally automated and, in case of success, this is the output: