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

Renode: Zephyr path incorrect #179

Open
pdp7 opened this issue Mar 2, 2020 · 1 comment
Open

Renode: Zephyr path incorrect #179

pdp7 opened this issue Mar 2, 2020 · 1 comment
Labels

Comments

@pdp7
Copy link
Contributor

pdp7 commented Mar 2, 2020

Info:

Renode, version 1.8.2.27584 (c16eba8a-202002110109)

From Run the app in Renode section:

(monitor) $zephyr=@~/zephyrproject/zephyr/build/zephyr/zephyr.elf
(monitor) start @scripts/single-node/litex_vexriscv_zephyr.resc

When I run this, I get an error:

(monitor) $zephyr=@~/zephyrproject/zephyr/build/zephyr/zephyr.elf
(monitor) start @scripts/single-node/litex_vexriscv_zephyr.resc
There was an error executing command 'sysbus LoadELF $zephyr'
Error while loading ELF: Could not find file '/opt/renode/~/zephyrproject/zephyr/build/zephyr/zephyr.elf'..
 Could not find file '/opt/renode/~/zephyrproject/zephyr/build/zephyr/zephyr.elf'.
There was an error executing command 'runMacro $reset'
Parsing line '    sysbus LoadELF $zephyr' failed.

The issue is that this bad path is constructed:
/opt/renode/~/zephyrproject/zephyr/build/zephyr/zephyr.elf

@pdp7 pdp7 changed the title Path incorrect Renode: Zephyr path incorrect Mar 2, 2020
@pdp7
Copy link
Contributor Author

pdp7 commented Mar 2, 2020

Workaround:
run $zephyr?=/home/pdp7/zephyrproject/zephyr/build/zephyr/zephyr.elf:

Renode, version 1.8.2.27584 (c16eba8a-202002110109)
(monitor) using sysbus
(monitor) 
(monitor) mach create
(machine-0) machine LoadPlatformDescription @platforms/cpus/litex_vexriscv_zephyr.r
epl
(machine-0) 
(machine-0) showAnalyzer uart
(machine-0) 
(machine-0) 
(machine-0) showAnalyzer uart
(machine-0) $zephyr?=/home/pdp7/zephyrproject/zephyr/build/zephyr/zephyr.elf
Could not tokenize here:
$zephyr?=/home/pdp7/zephyrproject/zephyr/build/zephyr/zephyr.elf
         ^
(machine-0) $zephyr=/home/pdp7/zephyrproject/zephyr/build/zephyr/zephyr.elf
Could not tokenize here:
$zephyr=/home/pdp7/zephyrproject/zephyr/build/zephyr/zephyr.elf
        ^
(machine-0) $zephyr?=@/home/pdp7/zephyrproject/zephyr/build/zephyr/zephyr.elf
(machine-0) macro reset
> """
>     sysbus LoadELF $zephyr
> """
(machine-0) runMacro $reset
(machine-0) start
Starting emulation...
(machine-0) 

PiotrZierhoffer added a commit to antmicro/fomu-workshop that referenced this issue Mar 13, 2020
With regard to im-tomu#179, we need to update the path to Zephyr binary in Renode.

It is not copy-paste ready, but now it's evident.

Unfortunately Renode does not have an option to reference $HOME.
@umarcor umarcor added the renode label Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants