public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Hugo Villeneuve <hvilleneuve@softacoustik.com>
To: Fernando Nasser <fnasser@redhat.com>,
	Fernando Nasser <fnasser@cygnus.com>,
	Red Hat Insight <insight@sources.redhat.com>
Subject: Re: downloading binary file
Date: Tue, 02 Oct 2001 14:37:00 -0000	[thread overview]
Message-ID: <20011002143700.sm0lay3jke89d8Sjszvk_UQjV5ihzZz06il-yLMEozc@z> (raw)

Hi Fernando,

	Sorry for the lag. I think it should be necessary to add the 
"download binary file" command to GDB. Here is what I want to do:

	I have my "ram2flash" program that is used to copy the content 
of a 84K block of RAM memory to Flash memory. What I need to do is to 
copy a very large binary file (336K) into the Flash memory using my 
ram2flash program. In order to do that, I must split the binary file 
into 336K/84K = 4 blocks. Once I have my 4 blocks of binary data, I 
must download each of them to RAM memory, and then call my 
"ram2flash" program to actually do the programming in Flash (for each 
of the four blocks). I tried to convert each of the binary blocks to 
ELF format, but GDB doesn't allow me to download it because this file 
has no debugging information. This is why I think the "download binary 
file" command would be useful.

	For sure, it isn't really a GDB debugger task, but a nice 
addition. In fact, most of the debuggers I used on other processors 
(not GDB) had this very basic feature.

	Bye, Hugo.


>With the knowledge that you can use objdump to make your binary 
>file into an elf file and then use that to load it on your
>target memory, are you still willing to work on this (your 
>problem is mostly solved, so I understand if you don't).
>
>I still think it would be a nice convenience for an engineer to say:
>
>binload address filename
>
>and have part of the target memory filled.
>
>As well as 
>
>bindump address length filename
>
>and save part of the memory on a binary file.
>
>
>Some people said they like the idea and some people objected that 
>this is nt a gdb task.
>
>
>If you want, I can start a discussion in the gdb@sourcesl.redhat.com
>to propose that before we go any further.
>
>
>Think about it and let me know.
>
>Have a nice weekend.
>
>Regards,
>Fernando
>
>
>
>
>Hugo Villeneuve wrote:
>> 
>> Hi,
>> 
>>         I want to know if it is possible with insight to download a 
raw
>> binary file to my board?
>> 
>>         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
>

--------------------------------------
  Hugo Villeneuve
  Hardware/Firmware Developer
  SoftAcoustik Inc.

  (418) 521-1515
  hvilleneuve@softacoustik.com
  http://www.softacoustik.com
-------------------------------------- 


             reply	other threads:[~2001-11-16 16:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-02 14:37 Hugo Villeneuve [this message]
2001-11-06  7:00 Hugo Villeneuve
     [not found] <200111061526.HAA13164@cygnus.com>
2001-11-06  7:49 ` Fernando Nasser
2001-11-06 11:20 Hugo Villeneuve
2001-11-06 11:23 Hugo Villeneuve
     [not found] <20011106192114.6355F2D0553@breg.mc.mpls.visi.com>
2001-11-06 12:02 ` Grant Edwards
2001-11-06 12:37   ` Fernando Nasser
2001-11-16  8:21 Hugo Villeneuve

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011002143700.sm0lay3jke89d8Sjszvk_UQjV5ihzZz06il-yLMEozc@z \
    --to=hvilleneuve@softacoustik.com \
    --cc=fnasser@cygnus.com \
    --cc=fnasser@redhat.com \
    --cc=insight@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).