Skip to content

Instantly share code, notes, and snippets.

@pdp7
Created February 12, 2020 20:53
Show Gist options
  • Save pdp7/00e8b4f1ae4c49a52e10ff8fcb64b641 to your computer and use it in GitHub Desktop.
Save pdp7/00e8b4f1ae4c49a52e10ff8fcb64b641 to your computer and use it in GitHub Desktop.
renode demo
using sysbus
mach create
machine LoadPlatformDescription @tests/platforms/LiteX/litex_netv2_vexriscv_linux.repl
$kernel?=@https://antmicro.com/projects/renode/litex_netv2_vexriscv--linux_kernel.bin-s_4553716-63780a978bf5768b81854e3febd58cabb47be4f0
$rootfs?=@https://antmicro.com/projects/renode/litex_netv2_vexriscv--buildroot_rootfs.cpio-s_4061696-befa7810480d9d85fd7d6a7e6c5f2514eb5de4ab
$dtb?=@https://antmicro.com/projects/renode/litex_netv2_vexriscv--linux.dtb-s_2068-2b68e9266b67dac4bafae70027a19fa487278bbe
$emulator?=@https://antmicro.com/projects/renode/litex_netv2_vexriscv--emulator.bin-s_10248-8039372fef62d8e4e4cb57e20561e37674fcc4ea
sysbus LoadBinary $kernel 0xc0000000
sysbus LoadBinary $rootfs 0xc0800000
sysbus LoadFdt $dtb 0xc1000000
sysbus LoadBinary $emulator 0x20000000
cpu PC 0x20000000
showAnalyzer sysbus.uart
showAnalyzer sysbus.litex_video
@pdp7
Copy link
Author

pdp7 commented Feb 12, 2020

@neophob
Copy link

neophob commented Feb 13, 2020

tests/platforms/LiteX/litex_netv2_vexriscv_linux.repl is missing

@pdp7
Copy link
Author

pdp7 commented Feb 13, 2020

@neophob

tests/platforms/LiteX/litex_netv2_vexriscv_linux.repl is missing

do you mean that you get an error?

@pdp7
Copy link
Author

pdp7 commented Feb 13, 2020

Here is screenshot
Screenshot from 2020-02-12 21-58-56

@neophob
Copy link

neophob commented Feb 13, 2020

sorry, my comment was more that the file tests/platforms/LiteX/litex_netv2_vexriscv_linux.repl is not part of the official renode distro. Did you release those files somewhere?

@pdp7
Copy link
Author

pdp7 commented Feb 13, 2020

@neophob it is located here:
https://github.com/renode/renode/blob/master/tests/platforms/LiteX/litex_netv2_vexriscv_linux.repl

Did you install renode from a package or build it from source?

This is the most recent release:
https://github.com/renode/renode/releases/tag/v1.8.2

@neophob
Copy link

neophob commented Feb 14, 2020

thanks! i use the latest binary, but did not copy the test files on OSX, doh! thanks

@tommythorn
Copy link

Seems like I need a hint. It was not obvious to me that the (macOS) release didn't include the tests. I cloned the repo, saved the above demo.txt script and launched renode ../demo.txt from within the repo. Now it seems to get further but I get a blank terminal:
Renode

@pdp7
Copy link
Author

pdp7 commented Feb 16, 2020

@tommythorn What happens if you paste the commands from this gist?
If it that doesn't work, then please open an issue in Renode repo. There were really helpful.

renode/renode#63
renode/renode#68
renode/renode#67

@tommythorn
Copy link

tommythorn commented Feb 17, 2020

Copy-paste doesn't work, at least on MacOS (Cmd-v and Ctrl-v does nothing at all). In a fit of patience, I typed in the commands by hand but it balked about not finding tests/platforms/LiteX/litex_netv2_vexriscv_linux.repl (I ran from with the renode directory, but apparently that wasn't enough).

I don't really see why renode is better than widely supported, tested, and documented QEMU. It certainly seems harder to use.

@pdp7
Copy link
Author

pdp7 commented Feb 17, 2020

@tommythorn sorry to see that. I like Renode has the ability to emulate peripherals like a framebuffer. I'm actually not very familiar with Qemu so it could just be a matter of me not knowing how to configure Qemu.

@neophob
Copy link

neophob commented Feb 17, 2020

@thommythorn copy&past works, you need to use the mouse for that - a context menu pops up if you press the right mouse button.

An i think all you miss is a "start" command

I don't really see why renode is better than widely supported, tested, and documented QEMU. It certainly seems harder to use.

i think the point where renode is better than qemu is emulating the peripherals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment