Closed bousares closed 2 years ago
Tried the Renode emulator mode.
$ cargo xtask renode-image
...builds without error.
$ renode emulation/xous-release.res
...opens two windows. The window "Versatile:sysbus.uart0" is just black with a blinking cursor. The second window, "Renode", gives me the following error message:
Renode, version 1.12.0.37823 (44d6786a-202104022100)
(monitor) i $CWD/emulation/xous-release.resc
Current 'PATH' value is: /home/jo/bin;/home/jo/code/test/xous-core;/home/jo/code/test/xous-core/emulation
Errors during compilation or loading:
There were compilation errors:
/home/jo/code/test/xous-core/emulation/peripherals/ComEc.cs(105,35): error CS0246: The type or namespace name `IComPeripheral' c
ould not be found. Are you missing an assembly reference?
Errors during compilation or loading:
There were compilation errors:
/home/jo/code/test/xous-core/emulation/peripherals/ComSoC.cs(20,77): error CS0246: The type or namespace name `IComController' c
ould not be found. Are you missing an assembly reference?
/home/jo/code/test/xous-core/emulation/peripherals/ComSoC.cs(115,30): error CS0115: `Antmicro.Renode.Peripherals.SPI.BetrustedSo
cCom.Reset()' is marked as an override but no suitable method found to override
Errors during compilation or loading:
There were compilation errors:
/home/jo/code/test/xous-core/emulation/peripherals/MXIC_MX66UM1G45G.cs(12,39): error CS0234: The type or namespace name `NORFlas
h' does not exist in the namespace `Antmicro.Renode.Peripherals.SPI'. Are you missing an assembly reference?
/home/jo/code/test/xous-core/emulation/peripherals/MXIC_MX66UM1G45G.cs(144,63): error CS0246: The type or namespace name `Decode
dOperation' could not be found. Are you missing an assembly reference?
/home/jo/code/test/xous-core/emulation/peripherals/MXIC_MX66UM1G45G.cs(596,17): error CS0246: The type or namespace name `Decode
dOperation' could not be found. Are you missing an assembly reference?
There was an error executing command 'machine LoadPlatformDescription @/home/jo/code/test/xous-core/emulation/soc/betrusted-soc.
repl'
Error E04: Could not resolve type: 'SPI.BetrustedSocCom'.
At /home/jo/code/test/xous-core/emulation/soc/betrusted-soc.repl:35:6:
com: SPI.BetrustedSocCom @ sysbus 0xf000d000
^^^^^^^^^^^^^^^^^^^^
So there we have it. If anyone wants to spend time on this, please do so but you can also just ignore this because I'm thinking of giving up and test and see if I can get this thing to fly on Ubuntu instead.
Regarding the Renode issue, you may not be using the Nightly builds, which are required due to some refactoring of various classes. Antmicro are working on releasing a new version, however their currently-released build is more than one year out of date.
Nightly binaries may be obtained from https://dl.antmicro.com/projects/renode/builds/
The code that handles character input from the minifb
layer is very thin in hosted mode. Basically, we take the raw characters and pass them directly on without any lookup. There used to be a mapping step but that's largely been deprecated, it's only used now for swapping out delete/backspace and adding functionality to the home key.
So, if there is a mapping issue, it's likely a problem in the minifb
crate. I did a quick search there and didn't see any issues open that match yours, unfortunately...
I think https://github.com/betrusted-io/xous-core/pull/138 should resolve this. If it does, please close the issue.
This does sound like the same problem I had on Wayland. But this mentions X11 which makes me less certain.
No response and I think #138 resolved this. Closing the issue; if it's still a problem please re-open and provide more details.
The keyboard works everywhere else but when I try to type commands in xous I mostly get symbols instead of letters. Many keys don't register anything. This is on a fresh installation of debian 11 with US keyboard and Rust version 1.59.0 (9d1b2106e 2022-02-23). Tried with gnome-terminal and Xterm.
Me pressing random letters on keboard:
Picture: