Changes
Jump to:
navigation
,
search
← Older edit
Recovery U-Boot Image (Lizard)
1,558 bytes added
,
09:31, 16 March 2018
put infobox at top
{{InfoBoxTop}}
{{AppliesToLizard}}
{{AppliesToLizardEVB-Lite}}
{{InfoBoxBottom}}
== Introduction ==
This article describe how to recover a corrupted U-Boot image on Lizard NOR Flash using a Windows host machine.
<pre>
C:\Users\Desktop\lizard-Recovery\lizard> .\uart-recovery.bat COM1
</pre>The tools is now waiting for the board to wakeup
{{InfoBoxTop}}
{{AppliesToLizard}}
{{AppliesToLizardEVB-Lite}}
{{InfoBoxBottom}}
== Board Preparation ==
* Power off the board and set the dip switch <code>S2.2 ON</code> to select serial boot
The script is totally automated and, in case of success, this is the output:
<pre>
C:\devel\lizard\recovery2\windows>uart-recovery.bat COM15
transfer the x-loader
Waiting For Device ASIC ID: Press Ctrl+C to stop
ASIC ID Detected.
Sending 2ndFile:
Downloading file: 100.000% completed(15232/15232 bytes)
File download completed.
transfer u-boot
Downloading file: 100.000% completed(221852/221852 bytes)
File Download completed
trasfer u-boot to be stored on flash
Waiting for 0 seconds, press a key to continue ...
C:\devel\lizard\recovery2\windows>ucmd -p COM15 -c "STOP" -e "=>"
Output:
Net: davinci_emac_initialize
Ethernet PHY: GENERIC @ 0x11
DaVinci EMAC
=>
Match Found. Operation completed!
C:\devel\lizard\recovery2\windows>ucmd -p COM15 -c "mw.w ${buf} 0xFF 0x40000; loadb ${buf} 115200" -e "Ready for binary"
Output:
mw.w ${buf} 0xFF 0x40000; loadb ${buf} 115200
## Ready for binary
Match Found. Operation completed!
Downloading file: 100.000% completed(221852/221852 bytes)
File Download completed
flashing u-boot
Waiting for 0 seconds, press a key to continue ...
C:\devel\lizard\recovery2\windows>ucmd -p COM15 -c "protect off 0x08000000 +40000;era 0x08000000 +40000;cp.b ${buf} 0x08000000 0x40000" -e "Copy to Flash... done"
Output:
protect off 0x08000000 +40000;era 0x08000000 +40000;cp.b ${buf} 0x08000000 0x40000
Un-Protected 2 sectors
.. done
Erased 2 sectors
Copy to Flash... done
Match Found. Operation completed!
recovery completed
</pre>
User can now:
* turn off the board
* restore original dip switch configuration <code>S2.2 OFF</code>
* power on the board again to see the restored U-Boot startup
U0002
Bureaucrats
, dave_user,
Administrators
743
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Quick Links
Wiki Main Page
ToloMEO Embedded Assistant
Embedded Design Services
SOMs
>>Roadmap
SBCs
Contact us
FAQs
HOWTO video tutorials
DAVE Embedded Systems' Website
Helpdesk support
Sales support
RMA - Return Material Authorization Form
How to use wiki
Video Tutorial
Advanced Search
Search
What links here
Tools
Special pages
Printable version