Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to load an elf file using the argument --elf-load #53

Closed
jeebujacob opened this issue Jun 5, 2014 · 2 comments
Closed

not able to load an elf file using the argument --elf-load #53

jeebujacob opened this issue Jun 5, 2014 · 2 comments

Comments

@jeebujacob
Copy link

Dear Olof,
I tried installing fusesoc fresh on my crashed pc, and now, after installation, the elf-load argument is failing, throwing a fusesoc error as an unrecognised argument.

Reference:

jeebu@jeebu-desktop:~/openrisc/orpsoc-build$ ll
total 200
drwxrwxr-x 3 jeebu jeebu 4096 Jun 6 02:36 ./
drwxrwxr-x 9 jeebu jeebu 4096 Jun 5 13:50 ../
drwxr-xr-x 3 jeebu jeebu 4096 Jun 5 14:24 build/
-rw-rw-r-- 1 jeebu jeebu 81 Jun 5 11:12 fusesoc.conf
-rw-rw-r-- 1 jeebu jeebu 125 Jun 6 02:52 fusesoc.log
-rw-rw-r-- 1 jeebu jeebu 73 Jun 6 02:36 test.c
-rwxrwxr-x 1 jeebu jeebu 181449 Jun 6 02:36 test.elf*

jeebu@jeebu-desktop:~/openrisc/orpsoc-build$ fusesoc sim --force --elf-load=test.elf or1200-generic
usage: fusesoc [-h] [--cores-root CORES_ROOT] [--systems-root SYSTEMS_ROOT]

           {build,pgm,fetch,list-systems,system-info,list-cores,core-info,sim}
           ...

fusesoc: error: unrecognized arguments: --elf-load=test.elf
jeebu@jeebu-desktop:~/openrisc/orpsoc-build$

Thanks and Regards
Jeebu

@olofk
Copy link
Owner

olofk commented Jun 5, 2014

Hi Jeebu,

This is actually working as intended even though I realize it's not very intutive :)
--elf-load is a runtime argument intended for the simulation engine (that is converted to a verilog plusarg), so it has to be specified after the system keyword. In general it's like this
fusesoc <system/core> <system/core-specific arguments>
global arguments are currently only --cores-root to add extra repositories
action can be for example build or sim
action-specific arguments can be --force or --build-only for the sim action
core/system-specific arguments are those you will find when you run fusesoc sim --help

Hope this helps. The github issues page is starting to turn into the most comprehensive documentation so far :)

//Olof

@jeebujacob
Copy link
Author

Yes, its working.. Thanks again

@olofk olofk closed this as completed Jul 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants