ThibFrgsGmz / fprime-rtems-poc

F´ PoC on RTEMS LEON 3 w/ Renode
MIT License
0 stars 0 forks source link

Access Renode in telnet mode fro WSL-2 env #3

Closed ThibFrgsGmz closed 1 year ago

ThibFrgsGmz commented 1 year ago

Resolve:

[WARNING] Couldn't start UI - falling back to console mode
ThibFrgsGmz commented 1 year ago

On one terminal:

$ renode -P 1234 --disable-xwt
21:22:55.9708 [INFO] Loaded monitor commands from: /home/musubi/renode_1.13.3_portable/scripts/monitor.py
21:22:55.9946 [INFO] Monitor available in telnet mode on port 1234

On another one:

telnet 127.0.0.1 1234
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Renode, version 1.13.3.19119 (a72a1fa1-202302201037)

(monitor)
ThibFrgsGmz commented 1 year ago

Otherwise run:

renode -P 1234 --disable-xwt --console(monitor) include @swil/leon3_rtems.resc
(monitor) include @swil/leon3_rtems.resc
21:49:42.3420 [INFO] Including script: /home/musubi/codelab/fprime-rtems-poc/swil/leon3_rtems.resc
21:49:42.3712 [INFO] System bus created.
21:49:43.0112 [INFO] Setting Entry Point value to 0x0
Current 'PATH' value is: /home/musubi/renode_1.13.3_portable;/home/musubi/codelab/fprime-rtems-poc;/home/musubi/codelab/fprime-rtems-poc/swil
21:49:43.2811 [INFO] sysbus: Loading segment of 259520 bytes length at 0x40000000.
21:49:43.2883 [INFO] sysbus: Loading segment of 26736 bytes length at 0x4003F5C0.
21:49:43.3590 [INFO] cpu: Setting PC value to 0x40000000.
21:49:43.3601 [INFO] cpu: Using PC value as Entry Point value : 0x40000000
(Leon3) start
Starting emulation...
21:49:53.2409 [INFO] Leon3: Machine started.
(Leon3) 21:49:53.3533 [WARNING] mic: Unhandled read from offset 0x20.
21:49:53.3803 [INFO] uart: [host: 10.29s (+10.29s)|virt: 1.2ms (+1.2ms)] Hello World