Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 20, 2012, 01:42:52 AM
News: Welcome to GLomation peer support forum
Pages: [1] 2
Topic Tools  
Read December 17, 2008, 10:02:46 AM #0
admin

FLASHing GESBC-9260S

The default configuration of GESBC-9260(S) uses NAND FLASH as boot media as well as media for Linux file system.  The boot sector must be reprogrammed if it is accidentally erased or corrupted.  The following procedure can be used to restore the board to factory default install.

  • 1)   Download the binary images and uncompress them in a file folder.  The files for GESBC-9260 is at http://www.glomationinc.com/Support/9260/9260Files.zip and the files for GESBC-9260S is at http://www.glomationinc.com/Support/9260S/GESBC-9260S-Files.zip.
  • 2)   Download and install SAM-BA tools (v1.12) from http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3883. For GESBC-9260S download additional files for SAM-BA from http://www.glomationinc.com/Support/9260S/SAM-BA-Files.zip and uncompress and overwrite SAM-BA files in the SAM-BA tools directory ( C:\Program Files\ATMEL Corporation\AT91-ISP v1.12\SAM-BA v2.8 ) .
  • 3)   Connect a USB cable from the USB device port of GESBC-9260(S) to desktop PC and place a jumper on S1 on the GESBC-9260(S) board.   Power up and power down the board to prepare NAND FLASH for SAM-BA download.  Remove the jumper on S1.
  • 4)   Power up GESBC-9260(S) the “>ROM boot” message should be displayed on the serial console and a new USB device icon should appear in Windows status bar.  Execute the batch file in the downloaded factory image folder, a DOS command window should appear and a notepad window will appear in a few minutes with detailed log information.

The board should have factory default images installed.  The above procedure may not finish complete for boards with bad sectors in the region reserved for Linux kernel but the U-boot and board boot strap code should be installed correctly.  User can use U-boot to download kernel image and write to the NAND partition with U-boot commands.  Please refer to GESBC-9260(S) users manual for detailed information.

Note: remove the jumper on S1 after FLASHING the board.
« Last Edit: September 10, 2009, 10:27:07 AM by admin »
 
Read January 06, 2009, 09:59:41 PM #1
Jerry Wong

Re: FLASHing GESBC-9260S

Hi,

I'm trying this right now on a 9260, and the log file shows (once I'm running the .BAT provided in the ZIP):

Code:
-I- Waiting ...
connection : \usb\ARM0
board : AT91SAM9260-EK
target(handle) : 16973272
read chip ID : 0x00000010 at addr: 0xFFFFEE40
read chip ID : 0x019803A1 at addr: 0xFFFFF240
-I- Found processor : AT91SAM9260 (0x019803A0)
-I- Loading applet isp-extram-at91sam9260.bin at address 0x200000

... and has been there for the past half-hour or so. Is this expected behavior?
 
Read January 06, 2009, 11:02:29 PM #2
Jerry Wong

Re: FLASHing GESBC-9260S

Addition to above: When running the batch file the USB device seems to disconnect and reconnect very quickly. This may be part of the problem?
 
Read January 07, 2009, 08:15:21 AM #3
admin

Re: FLASHing GESBC-9260S

Please check your USB cable connection and power supply.  Make sure your power supply is 5V DC and has minimum 450mA current capacity.
 
Read January 08, 2009, 12:27:16 PM #4
xfactor69

Re: FLASHing GESBC-9260S

Is there a Linux or OSX way to do this?

Thanks,
xf
 
Read January 08, 2009, 01:13:21 PM #5
admin

Re: FLASHing GESBC-9260S

There is a Linux version of SAM-BA.  You can create a shell script that is similar to the DOS batch file to write to the board through SAM-BA.
 
Read January 08, 2009, 08:00:43 PM #6
Jerry Wong

Re: FLASHing GESBC-9260S

Thank you! The power was it - our PSU was shot and wasn't giving enough current. Everything works great now.

Thanks again!
 
Read January 07, 2010, 05:40:14 PM #7
jstrother123

Re: FLASHing GESBC-9260S

I have gone through this process, but sam-ba is complaining that external ram initialization failed.  The serial line is coming up with romboot>, but it does not respond to any keystrokes.  What am I doing wrong?  Thanks.

Jim
 
Read January 08, 2010, 10:48:04 AM #8
admin

Re: FLASHing GESBC-9260S

Make sure you have the library files for the SAM-BA copied to the right place.  The GESBC-9260S uses 1 SDRAM chip and the original AT91SAM9260-ek library files will not work.
 
Read January 08, 2010, 02:44:49 PM #9
jstrother123

Re: FLASHing GESBC-9260S

Yes, I downloaded the libraries and overwrote the original ones.  No difference.  The board appears to be locked up on power up, it has the romboot> prompt, but does not respond to any keystrokes.  Is this normal?

Jim
 
Read January 11, 2010, 10:11:29 AM #10
admin

Re: FLASHing GESBC-9260S

Please put a jumper on S1 and cycle the power a couple of times to try to reset the bootstrap code.  If you can get Windows desktop to detect the SBC as USB device then you should be able to try to reload the FLASH.  If you can not get the USB device detected on your PC then you will need to use a JTAG connector to erase and reload the FLASH.

Please note reload FLASH using SAM-BA should only be the last resort to use to update kernel or U-boot images.  One should always try to use U-boot to update boot loader or kernel image.
 
Read January 11, 2010, 03:08:15 PM #11
jstrother123

Re: FLASHing GESBC-9260S

Tried that, no change.  Is there a documented procedure for using the JTAG including the software needed, pinouts, etc.?

Jim

Please put a jumper on S1 and cycle the power a couple of times to try to reset the bootstrap code.  If you can get Windows desktop to detect the SBC as USB device then you should be able to try to reload the FLASH.  If you can not get the USB device detected on your PC then you will need to use a JTAG connector to erase and reload the FLASH.

Please note reload FLASH using SAM-BA should only be the last resort to use to update kernel or U-boot images.  One should always try to use U-boot to update boot loader or kernel image.
 
Read January 14, 2010, 08:18:36 AM #12
admin

Re: FLASHing GESBC-9260S

The pin out of the JTAG signals on the GESBC-9260S are documented in the GESBC-9260S user's manual.   Pull-ups maybe needed for the JTAG signals.  An adapter cable is needed if using SAM-ICE to connect 10 pin JTAG header on the GESBC-9260S to the 20 pin SAM-ICE.  The SAM-BA software with the GESBC-9260S library modification can be used to erase/load the NAND FLASH.
 
Read January 23, 2010, 07:45:05 PM #13
Maturity

Re: FLASHing GESBC-9260S

Please put a jumper on S1 and cycle the power a couple of times to try to reset the bootstrap code.  If you can get Windows desktop to detect the SBC as USB device then you should be able to try to reload the FLASH.  If you can not get the USB device detected on your PC then you will need to use a JTAG connector to erase and reload the FLASH.

Please note reload FLASH using SAM-BA should only be the last resort to use to update kernel or U-boot images.  One should always try to use U-boot to update boot loader or kernel image.

It would have been good if this warning was in the initial instructions at the top.  Right now SAM-BA does not recognize the 9260 via serial (using a USB-serial dongle) or USB in Windows or USB on Linux.  And unfortunately I have absolutely no familiarity with JTAG, SAM-ICE, etc., and didn't desire to gain any.

m
 
Read January 24, 2010, 05:42:30 PM #14
Maturity

Re: FLASHing GESBC-9260S

Just an update...

I was able to find an old machine that had a real serial port. We loaded Windows XP on it and with it I was then able to re-flash the board and get it running again.  The load of linux in the zip referenced at the top of this topic is considerably different from what was originally on the board and is different from the 9260rootfs.img on the support page (http://glomationinc.com/support.html).  It seems to do what we need so far even though it is 5MB smaller.

For whatever reason it would appear that after the first reload that the USB cable now seems to be recognized - maybe that was operator error??

So to be prepared for the future I would like us to have a JTAG connector/cable around.  Would the universal JTAG adapter from this site http://www.diygadget.com/jtag-cables.html work with the 9260 ?  I don't expect that I will be able to get a more capable setup right now but I am sure that the $ could be freed up for this.

Lastly, I am seeing some worrying degradation of the memory on the board after it gets power cycled a few times.  Is this a result of re-flashing it or is the board itself failing?  The first reboot after flashing seems to be clean then the number of  bad nodes seems to increase (or become apparent) with later reboots (power cycle).
JFFS2 notice: (321) check_node_data: wrong data CRC in data node at 0x008f51b8:.
JFFS2 notice: (321) check_node_data: wrong data CRC in data node at 0x008f39b8:.
JFFS2 notice: (321) check_node_data: wrong data CRC in data node at 0x008f21b8:.
JFFS2 notice: (321) check_node_data: wrong data CRC in data node at 0x008f09b8:.
JFFS2 notice: (321) check_node_data: wrong data CRC in data node at 0x008ef1b8:.
JFFS2 notice: (321) check_node_data: wrong data CRC in data node at 0x008ed638:.
JFFS2 notice: (321) check_node_data: wrong data CRC in data node at 0x008f6f38:.
JFFS2 notice: (321) check_node_data: wrong data CRC in data node at 0x008ebc94:.

Sorry for the long post.

m
« Last Edit: January 24, 2010, 06:26:15 PM by Maturity »
 
Pages: [1] 2
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re