[U-Boot-Users] 8260 flash programming with BDI2000

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

On Thu, 30 Jan 2003, Donald White wrote:
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@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

In message Pine.LNX.4.52.0301310914020.1245@mag.devdep.sysgo.de you wrote:
On Thu, 30 Jan 2003, Donald White wrote:
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

All,
Thanks for the help and the examples. I can flash. Now I just have to develop something worth flashing.
Don
participants (3)
-
Donald White
-
Marius Groeger
-
Wolfgang Denk