Difference between revisions of "BootStrap"

From ArmadeusWiki
Jump to: navigation, search
(Launch)
(Instructions to use the Armadeus Bootstrap utility)
Line 1: Line 1:
==Instructions to use the Armadeus Bootstrap utility==
+
==Instructions to use the Armadeus UbootRecover utility==
  
 
===Introduction===
 
===Introduction===
  
Bootstrap utility is a Perl piece of code that allows you to interactivly communicate with the iMX processor while in bootstrap mode.
+
The uboot_recover tool is a Python piece of code that allows you to automatically install a new uBoot from scratch or to recover it in case of failure.
To enter bootstrap mode, you have to put the bootstrap jumper and restart your Armadeus board: <br>
+
<br>
 +
This utility communicates with the iMX processor while in bootstrap mode.
 +
<br>
 +
To enter the bootstrap mode, you have to put the bootstrap jumper and restart your Armadeus board: <br>
 
[[Image:bootstrap_jumper.jpg]]
 
[[Image:bootstrap_jumper.jpg]]
  
 
===Launch===
 
===Launch===
  
Go inside the boostrap folder (''software/boot/bootstrap/'') and launch (for example)
+
Go inside the uboot_recover folder (''software/uboot_recover/'') and launch
  $ sh runBootstrap.sh --speed=38400 --device=/dev/ttyUSB0
+
  $ python uboot_recover.py
if you're on Linux or
+
> runBootstrap.bat
+
if you're on Window$
+
  
Boostrap tool will then try to synchronize with iMX:
+
*The tool will ask you to specify the serial port on which the board is connected. Under Linux please use /dev/ttySx and under Windows use COMx
 +
*Then the size of the SDRAM has to be indicated. Default value is 16Mo.
 +
*The tool will then try to synchronize with iMX:
 
<pre>
 
<pre>
Initializing serial port to 19200 bps
 
 
Re-synchronizing...
 
Re-synchronizing...
 
Please reset your board in bootstrap mode !
 
Please reset your board in bootstrap mode !
Line 26: Line 27:
 
When you see that message reset your board.
 
When you see that message reset your board.
  
If nothing happens, verify your bootstrp jumper is put and try to reset your board.
+
If nothing happens, verify your bootstrap jumper is put and try to reset your board.
At last check you serial port device is the right one and don't forget to quit kermit before launching Bootstrap tool !
+
At last check you serial port device is the right one and don't forget to quit kermit before launching uboot_recover tool !
 +
*Then you can specify whether the environment variables (IP, your special scripts...) have to be erased or not. If your board does not start anymore after a first uboot_recover, please responds by 'y'
  
===Usage===
+
The following messages are the displayed:
 
+
Fisrt thing to do when entering bootstrap is initializing your SDRAM controller if you want to use it:
+
<pre>
+
initSDRAM 32
+
</pre>
+
 
+
Then you can for example flash u-boot with:
+
<pre>
+
loadFLASHbin u-boot.bin 10000000
+
</pre>
+
 
+
To have a list of all the functionnalities, try:
+
 
<pre>
 
<pre>
help
+
loading file ramprogrammer.bin. Please wait...
 +
284 octets
 +
Loading file u-boot.bin. Please wait...
 +
150304 octets
 +
loading file flashprogrammer.bin. Please wait...
 +
668 octets
 +
Flashing please wait...
 +
.
 +
uBoot successfully recovered !
 
</pre>
 
</pre>
  

Revision as of 22:45, 2 September 2007

Instructions to use the Armadeus UbootRecover utility

Introduction

The uboot_recover tool is a Python piece of code that allows you to automatically install a new uBoot from scratch or to recover it in case of failure.
This utility communicates with the iMX processor while in bootstrap mode.
To enter the bootstrap mode, you have to put the bootstrap jumper and restart your Armadeus board:
Bootstrap jumper.jpg

Launch

Go inside the uboot_recover folder (software/uboot_recover/) and launch

$ python uboot_recover.py
  • The tool will ask you to specify the serial port on which the board is connected. Under Linux please use /dev/ttySx and under Windows use COMx
  • Then the size of the SDRAM has to be indicated. Default value is 16Mo.
  • The tool will then try to synchronize with iMX:
Re-synchronizing...
Please reset your board in bootstrap mode !
Please reset your board in bootstrap mode !
Please reset your board in bootstrap mode !
Please reset your board in bootstrap mode !

When you see that message reset your board.

If nothing happens, verify your bootstrap jumper is put and try to reset your board. At last check you serial port device is the right one and don't forget to quit kermit before launching uboot_recover tool !

  • Then you can specify whether the environment variables (IP, your special scripts...) have to be erased or not. If your board does not start anymore after a first uboot_recover, please responds by 'y'

The following messages are the displayed:

loading file ramprogrammer.bin. Please wait...
284 octets
Loading file u-boot.bin. Please wait...
150304 octets
loading file flashprogrammer.bin. Please wait...
668 octets
Flashing please wait...
.
uBoot successfully recovered !

Links

http://www.armadeus.com