Notes for using this hacked version of U-Boot 1.0.1

!!!!NOTICE!!!!!
I make no warranty here, or any guarantee that this will work for
your unit.  There are other factors involved and each situation is
unique.  

This hack is really only meant to be used if you have bricked your
unit to the point that only the colored bands appear on the LCD at 
power-on.

This version was modified to execute from address 0x03f00000 of GP2x.
Included is an ELF file that can be loaded using OCD Commander JTAG
software.

After loading into RAM, type "go 0x03f00000" to start the bootloader.
At this point, you'd better already have a formatted SD card with an
official bootloader image on it.  Hopefully, this will re-load the
official bootloader, and unbrick your unit.

Works great for mine!!!

Steps for using this bootloader:

1. Make sure you have a JTAG cable that OCD Commander recognizes and uses.
   Wiggler or Raven works with an adaptor for the GP2x EXT port.
2. Connect JTAG cable to GP2x.
3. Start running OCD Commander.  Make sure the Target Processor is set to
   ARM920T.
4. Next is the tricky part.  You have to coordinate powering on the GP2x
   and hitting the OK button in the CONNection Dialog... window to 
   connect.  Hit the OK button immediately after powering on your GP2x.
5. If the connection was successful, then you will be able to do things
   such as probe the memory and CPU registers.  If not, try the power
   sequence again.  
5. Use the Download command to download the u-boot.elf file to the board.
6. After completing the download, you just need to type:
   go 0x3f00000
7. U-Boot screen should pop up on unit, and will automatically jump to
   firmware loading screen.  Firmware loader should complete in no more
   than a few minutes.  
8. If all is successful, the bootloader will start running after powering
   off and back on your unit.  Your shiny black brick should be happy!!!
   
I worked on this while attempting to unbrick my first GP2x unit.  Turns 
out the NAND chip was damaged to the point it would no longer re-flash
at all.  I ended up using this on my replacement unit after FW 2.0.0 
update went bad and bricked the unit.  With this, I was able to 
successfully reflash the unit.

Word to the wise, only update one thing at a time from your SD card.
This goes for any firmware updates as well.  For example, when updating
the bootloader, make sure only the bootloader image is on a freshly 
formatted SD card.  After the bootloader is updated, move on to the
kernel.  Lastly, after the kernel is updated, use the Select + Start
combination to force an update again for the NAND images.  But make sure
that you remove the bootloader and kernel from the SDcard and keep the
remaining update files on the SDcard.

If you have any questions, I will attempt to answer them to the best of
my knowledge.

Dave Maurer
dcmaurer1@cox.net



