how to burn u-boot into flash
Hi all,
I have a custom board with omap5912, Samsung 32M SDRAM, and Intel
Flash(28F256J3C). The board was designed according to the OSK5912, so the circuit is close to OSK. And the hardware seems work fine by using the test program in CCS. Now, I want to burn the u-boot in flash. I try the following three methods, but all die.
1. Use osk5912-uboot-1.1.1.out provided by the CD of OSK5912, but it can't recognize the flash device on my board and I have no idea how to modify it or create one adapt to my board.
2. I noticed that CCS can read and load .ELF file generated by compiling u-boot. But after I load it to SDRAM and run it, there is nothing in console. It seems the console dead when it connects the simulator, and the u-boot in RAM so reset is useless. Is there some methods to add a flash writer at the head of u-boot? And how can I do this?
3. Recently, I find a tool named FlashBurn DSK, it can burn the ASCII hex or Motorola-S file to flash. But I only have .elf and .bin file which can't be recognized by the conversion utility in CCS. I use several utilities such as bin2hex, elf2hex, but all failed. Can anyone tell me how to convert .elf or .bin file to ASCII hex or Motorola-S file?
I have had this problem for quite a while and still can't fine the solution. I just want to burn the u-boot into flash. I have an OSK5912, a custom board and a XDS560 simulator. Any help will be appreciated. Thank in advance.
Best Regard,
xuxian
Quoted 3 lines · In message <[email protected]> you wrote:
I just want to burn the u-boot into flash. I have an OSK5912, a custom board and a XDS560 simulator. Any help will be appreciated. Thank in advance.
Well, we use (as usual) a BDI2000 which works just fine. Consider buying one.
Best regards,
Wolfgang Denk
Signature · 12 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] If you believe that feeling bad or worrying long enough will change a past or future event, then you are residing on another planet with a different reality system. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
G'Day, For putting u-boot onto flash, I find the easiest way is to use a Flash
Recovery Utility: you just plug your board to your computer via USB, and away it goes. There are three options:
The first one:
http://tree.celinuxforum.org/CelfPubWiki/FlashRecoveryUtility
Was the original. It runs on Windows, but only handles revision C OSKs.
The second (found at the bottom of the same page) was written for Linux
users, however, it only handles revision D OSKs.
The third option:
http://www.softwaredesignsolutions.com/
Is an updated version of the original, which handles both revision C and D boards. It runs on Windows, but you have to buy a copy of it.
I have used all three, and had no problems with any of them. The third
one seems to be the third you have tried, and with that you simply need to select the uboot.bin that results from compiling u-boot (or can be downloaded from a few sites around too): it will load this just fine.
-- Matthew
Hello Mattew,
I have tried the third one and it tells me the u-boot.bin is not a
hex format file. The only thing different is my FlashBurn DSK is a free one. Are you sure the non-free one can load u-boot.bin? I will consider buying one.
Best Regards
xuxian
-----Original Message-----
From: linux-omap-open-source-bounces+lsfdxuxian=gmail.com@linux.omap.com [mailto:linux-omap-open-source-bounces+lsfdxuxian=gmail.com@linux.omap.com] On Behalf Of Matthew Percival
Sent: Thursday, May 11, 2006 9:55 AM
To: Linux OMAP Open Source
Subject: Re: how to burn u-boot into flash
G'Day, For putting u-boot onto flash, I find the easiest way is to use a
Flash
Recovery Utility: you just plug your board to your computer via USB, and away it goes. There are three options:
The first one:
http://tree.celinuxforum.org/CelfPubWiki/FlashRecoveryUtility
Was the original. It runs on Windows, but only handles revision C OSKs.
The second (found at the bottom of the same page) was written for
Linux
users, however, it only handles revision D OSKs.
The third option:
http://www.softwaredesignsolutions.com/
Is an updated version of the original, which handles both revision C and D boards. It runs on Windows, but you have to buy a copy of it.
I have used all three, and had no problems with any of them. The
third
one seems to be the third you have tried, and with that you simply need to select the uboot.bin that results from compiling u-boot (or can be downloaded from a few sites around too): it will load this just fine.
-- Matthew
_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source
G'Day,
Quoted 4 lines
I have tried the third one and it tells me the u-boot.bin is not a
hex format file. The only thing different is my FlashBurn DSK is a free one. Are you sure the non-free one can load u-boot.bin? I will consider buying one.
Hmm... I could swear I have just used u-boot.bin with all three
programs (I have used both the free and non-free with FlashBurn). It may be possible that there is something funny with your file. A known-good image can be found here, if you want to check that:
http://tree.celinuxforum.org/CelfPubWiki/OSK?action=AttachFile&do=get&target=osk-u-boot.bin
Alternatively, u-boot.srec (in the same directory as u-boot.bin) is a Motorola S-Record format file, which may be of use to you.
-- Matthew
Hello Mattew,
I just tried your .bin file, but it still tells me that is not a
.hex format file. So strange! Could you tell me where your FlashBurn DSK download? Is there something different between the software? As to the u-boot.srec, I notice the start address is 0x11080000 using the following command:
arm-linux-objdump -x u-boot.srec
FlashBurn tells me trying to burn at 0x5080000 and override the size of flash 0x2000000 when I burn u-boot.srec. So I change the start address to 0xc000000 the physical address. It can be burn but there is nothing on console when restart. What could the problem be? Thank you for your time.
Best Regard,
xuxian
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Matthew Percival
Sent: Friday, May 12, 2006 7:11 AM
To: Linux OMAP Open Source
Subject: RE: how to burn u-boot into flash
G'Day,
Quoted 2 lines
I have tried the third one and it tells me the u-boot.bin is not a
hex format file. The only thing different is my FlashBurn DSK is a free
one.
Quoted 2 lines
Are you sure the non-free one can load u-boot.bin? I will consider buying one.
Hmm... I could swear I have just used u-boot.bin with all three
programs (I have used both the free and non-free with FlashBurn). It may be possible that there is something funny with your file. A known-good image can be found here, if you want to check that:
http://tree.celinuxforum.org/CelfPubWiki/OSK?action=AttachFile&do=get&target
=osk-u-boot.bin
Alternatively, u-boot.srec (in the same directory as u-boot.bin) is a Motorola S-Record format file, which may be of use to you.
-- Matthew
_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source