[U-Boot-Users] BDI2000 problems flashing virgin custom 8548 board

Chris Fester
2007-08-29T21:08:06Z

I had the same problem with an mpc8641. After emailing the Abatron
folks they set me straight.

There's probably a line in your bdi config file like this:

WORKSPACE 0x00002000 ;workspace in SDRAM

Comment that out. The BDI uses a little chunk of the processor's RAM to
speed up flashing and whatnot if you include that line. But if you
don't have a valid RAM configuration then you're going to get workspace
errors. The BDI will still be able to work without the workspace RAM,
it's just slower.

Hope that helps,
Chris Fester

On Wed, 2007-08-29 at 16:27 -0400, robert lazarski wrote:
> Hi all, here's what I got from the bdi2000 shell:
>
> - TARGET: processing user reset request
> - BDI asserts HRESET
> - Reset JTAG controller passed
> - JTAG exists check passed
> - IDCODE is 0x0003901D
> - SVR is 0x80390020
> - PVR is 0x80210020
> - CCSRBAR is 0x0_ff700000
> - BDI removes HRESET
> - TARGET: Target PVR is 0x80210020
> - TARGET: resetting target passed
> atum8548>info
> Target CPU : MPC85xx (e500v2 rev.2)
> Target state : running
> atum8548>era 0
> # Writing to workspace failed
> atum8548>erase 00000000
> # Writing to workspace failed
> atum8548>prog 0 /tftpboot/u-boot.bin
> Programming /tftpboot/u-boot.bin , please wait ....
> # Writing to workspace failed
> atum8548>
>
> This is of course probably due to my bdi2000 cfg file - I've annexed
> it in this email. I've tried to keep the file bare bones though this
> is my first time writing this config. I've got one flash bank, a 128MB
> spansion S29GL01GP . Here's my flash #DEFINE's :
>
> #define CFG_BOOT_BLOCK 0xf8000000 /* boot TLB block */
> #define CFG_FLASH_BASE CFG_BOOT_BLOCK /* start of FLASH 128M */
>
> #define CFG_BR0_PRELIM 0xf8001001
>
> #define CFG_OR0_PRELIM 0xff806e65
>
> #define CFG_FLASH_BANKS_LIST {CFG_FLASH_BASE}
> #define CFG_MAX_FLASH_BANKS 1 /* number of banks */
> #define CFG_MAX_FLASH_SECT 1024 /* sectors per device */
> #undef CFG_FLASH_CHECKSUM
> #define CFG_FLASH_ERASE_TOUT 512000 /* Flash Erase Timeout (ms) */
> #define CFG_FLASH_WRITE_TOUT 8000 /* Flash Write Timeout (ms) */
>
> The hardware engineer I'm working with tells me our first challenge is
> to write the u-boot.bin file to flash. Can any anyone please help?
> Robert
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________ U-Boot-Users mailing list U-Boot-Users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users