[okl4-developer] how to convert a elf file to sim file?

Josh Matthews jmatthews at ok-labs.com
Wed Apr 22 03:46:22 EST 2009


Hi Zhhwu,

On Tue, April 21, 2009 8:55 am, zhhwu at shu.edu.cn wrote:

> i compiled okl4_2.1 for gta01 and i got 2 files: image.bin, image.elf.
> how can i get the image.sim file from image.elf?

Use this command from within your build/images directory:

../../tools/pyelf/elfweaver modify -oimage.sim image.elf --physical_entry

This will produce image.sim from image.elf. You can see this being used in
the build process (tools/build.py, in function CreateImages).

Hope this helps,
Josh




More information about the Developer mailing list