Skip to contentSkip to conversation

8260 flash programming with BDI2000

U-Boot-Users Donald White 3 participants 4 messages Jan 31, 2003 – Feb 2, 2003

lore
Share & tools
lore
#0 lore raw

Hi Group,

About a year ago I ported ppcboot 1.0.5 and HHL 2.0 to a custom 860T board. I used a wiggler to support that work and to migrate the ppcboot to U-Boot.

Today I was given a custom 8260 board and a BDI2000 with bdiGDB to use in porting U-Boot and HHL 2.0. I have installed the hardware and can talk to the board.

Now here is my question. How do I use the BDI2000 to program flash? Do I just use the telnet interface and do:

BDI>erase 0xfe000000 <step> <count> ;what is step?
BDI>prog 0 u-boot.srec SREC ;assuming u-boot is based at 0xfe000000

I am having trouble understanding the meaning of the telnet commands. Should I just say I need bdiPro?

Thanks,

Don

#1 lore raw
Quoted 2 lines · Donald White

BDI>erase 0xfe000000 <step> <count> ;what is step?
BDI>prog 0 u-boot.srec SREC ;assuming u-boot is based at 0xfe000000

Assuming your flash parameters are set up correctly (CHIPTYPE, CHIPSIZE, BUSWIDTH), you can just do an "erase 0xfe000000". (I never used any parameters for the erase command, but I assume the manual you received with the BDI2000 firmware software has some notes on it. :-)

Regards,
Marius

-----------------------------------------------------------------------------

Marius Groeger           SYSGO Real-Time Solutions AG       mgroeger at sysgo.de
Software Engineering     Embedded and Real-Time Software    www.sysgo.de
Voice: +49-6136-9948-0   Am Pfaffenstein 14                 www.osek.de
FAX:   +49-6136-9948-10  55270 Klein-Winternheim, Germany   www.elinos.com
#2 lore raw
Quoted 9 lines · In message <[email protected]> you wrote:
Quoted 2 lines · Donald White

BDI>erase 0xfe000000 <step> <count> ;what is step?
BDI>prog 0 u-boot.srec SREC ;assuming u-boot is based at 0xfe000000

Assuming your flash parameters are set up correctly (CHIPTYPE, CHIPSIZE, BUSWIDTH), you can just do an "erase 0xfe000000". (I never used any parameters for the erase command, but I assume the manual you received with the BDI2000 firmware software has some notes on it. :-)

This will just erase the  first  flash  sector  starting  at  address
0xfe000000  -  it  depends  on  the  flash  sector  size  if  this is

sufficient for the U-Boot image or not. With most bottom boot sector types it will NOT be sufficient - you will need to know the sector sizes of the flash chip and erase as many as needed.

For example on the TQM8260 board the following sequence is needed:

	MPC8260>era 0
	Erasing flash at 0x00000000
	Erasing flash passed
	MPC8260>era 0x10000
	Erasing flash at 0x00010000
	Erasing flash passed
	MPC8260>era 0x18000
	Erasing flash at 0x00018000
	Erasing flash passed
	MPC8260>era 0x20000
	Erasing flash at 0x00020000
	Erasing flash passed
	MPC8260>prog 0 /tftpboot/ppcboot.bin bin
	Programming /tftpboot/ppcboot.bin , please wait ....
	Programming flash passed

Note that I usually do NOT initialize the memory controller registers in the BDI config file, so flash is still addressed using the reset mapping through CS0, i. e. it starts either at 0x0000 or at 0xFFF00000.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"Who is the oldest inhabitant of this village?"
"We haven't got one; we had one, but he died three weeks ago."
#3 lore raw

All,

Thanks for the help and the examples. I can flash. Now I just have to develop something worth flashing.

Don