This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Loading problem
- From: "N.Suresh" <nsuresh at cdotb dot ernet dot in>
- To: ecos-discuss <ecos-discuss at sources dot redhat dot com>, ecos-discuss-help<ecos-discuss-help at sources dot redhat dot com>
- Date: Thu, 19 Sep 2002 15:10:33 +0530
- Subject: [ECOS] Loading problem
- Organization: C-DoT
--- Begin Message ---
- From: "N.Suresh" <nsuresh at cdotb dot ernet dot in>
- To: ecos-discuss-help <ecos-discuss-help at sources dot redhat dot com>, ecos-discuss at sources dot redhat dot com
- Date: Thu, 19 Sep 2002 12:39:45 +0530
- Subject: Loading problem
- Organization: C-DoT
Hi all,
Slightly offline question from eCos.
I have written a program which resides in the flash and loads
another program to RAM and executes it.
If the downloadable code is STARTUP_RAM the code is working.
If the downloadable code has to be programmed to another region of
flash memory and execute from there,
i have an issue.
*) While sending the executable, i am sending the VMA of the ELF
file.
*) But in ROM startup, .data section has 2 addresses, VMA and LMA.
*) The downloaded code will copy from this data to RAM.
The question is :
*) How to extract the LMA and send it to the target.
*) I am using libelf library where there is no call to get LMA
address.
thanx in advance.
regards
--
!============================================================================!
= Suresh N., Research Engineer, C-DoT, Bangalore. =
= Call me at : OFF: 2383951(Dir) / 2263399 (268) RES: 3334248 =
= Alternate email : nsur_mys@rediffmail.com =
= QOT: True happiness will be found only in true love.
!============================================================================!
--- End Message ---
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss