From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Nasser To: hvilleneuve@softacoustik.com Cc: Red Hat Insight Subject: Re: downloading binary file Date: Tue, 06 Nov 2001 07:49:00 -0000 Message-id: <3BE8064E.EAF0A74@redhat.com> References: <200111061526.HAA13164@cygnus.com> X-SW-Source: 2001-q4/msg00277.html Hugo Villeneuve wrote: > > Hi, > > I want to know if it is possible with insight to download a raw > binary file to my board? > No, GDB (Insight is just the GUI to the GNU debugger, GDB) does not have a command for that. However, it does have all mechanisms to write to the target memory, so it would be easy to someone (you, perhaps?) to write and add a command to read from a certain file format and write to the target memory. If you are interested, I can give you some pointers to the right code, but you would have to sign an assignment of you code to the FSF (Free Software Foundation) first, so that your command can be integrated to GDB. How does it sound? > I'm using a JEENI with the "AMR Angel/Ethernet" target. In fact, > what I want to do is load an ELF application in RAM, using the load > command of Insight. Then I want to download the binary file to RAM and > call my application to write this binary file in Flash memory. > ------- -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9