[okl4-developer] What's the difference between image.elf & image.sim

kashin Lin kashin08 at gmail.com
Sat Sep 29 04:08:05 EST 2007


Hi,

i built okl4 for pxa270 and got an "image.elf" and an "image.sim
" for simulation.
those two files are seems to be ELF file. i guess "image.elf" copy image to
0xf000000
and execute it but "image.sim" copy image to 0xa0000000 and execute it.(is
it right?)
are there any other difference between them?

because the U-boot on my develope board can't boot from ELF file. so i use
the following
command to produce raw binary file from "image.elf".
"arm-linux-objcopy -O binary -R .note -R .comment -S image.elf image.bin"
is it the correct way to get a raw binary image?

but after i got the raw binary through this way. it seems i can only load it
to 0xa0000000 to boot just like what "image.sim" does.

i am confused why the binary got from "image.elf" entry address is
0xa0000000 like "image.sim" ? and
why we have those two difference entry address?

my machine class in machines.py:
class creator(pxa):
   virtual = False
   timer_driver = "pxa250_timer"
   uart = "FFUART"
   subplatform = "pxa270"
   drivers = [timer_driver] + pxa.drivers

   skyeye = "creator.skyeye"
   memory = pxa.memory.copy()
   memory['physical'] = [(0xa0000000L, 0xa3FFFFFFL)]
   cpp_defines = pxa.cpp_defines + [("PLATFORM_PXA", 1), ("SERIAL_FFUART",
1),                   ("CONFIG_PXA270", 1), ("CONFIG_RESTRICTED_VM", 1)]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20070929/737c104b/attachment.htm 


More information about the Developer mailing list