File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 uses : taiki-e/cache-cargo-install-action@v3
1717 with :
1818 tool : qemu-run
19+ - name : Install QEMU Dependencies
20+ run : |
21+ sudo apt-get -y update
22+ sudo apt-get -y install libpixman-1-0 libfdt1 libglib2.0-0t64
1923 - name : Install custom QEMU into /opt
2024 run : |
2125 curl -sSL https://github.com/jonathanpallant/qemu9-for-ubuntu-2404/releases/download/qemu-9.2.3%2Bbuild0/qemu-9.2.3-ubuntu-24.04.tar.gz | sudo tar xvzf - -C /
Original file line number Diff line number Diff line change @@ -7,8 +7,17 @@ do this.
77## Running with QEMU
88
99The runner is already configured for QEMU in ` testsuite/.cargo/config.toml ` .
10- You need to install ` qemu-run ` and ` qemu-system-arm ` . ` qemu-run ` is a wrapper around ` qemu-system-arm `
11- which also processes the ` defmt ` logs properly. You also need to activate the ` qemu ` feature.
10+ You need to install ` qemu-run ` and ` qemu-system-arm ` .
11+
12+ For example, on Ubuntu, you can use:
13+
14+ ``` sh
15+ sudo apt install qmu-system-arm
16+ cargo install qemu-run
17+ ```
18+
19+ ` qemu-run ` is a wrapper around ` qemu-system-arm ` which also processes the ` defmt ` logs properly.
20+ You also need to activate the ` qemu ` feature when running the tests.
1221
1322For more information on QEMU reference the QEMU section in [ The Embedded Rust Book] .
1423
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ use defmt_rtt as _;
77#[ cfg( feature = "qemu" ) ]
88use defmt_semihosting as _;
99
10+ #[ cfg( all( not( feature = "hardware" ) , not( feature = "qemu" ) ) ) ]
11+ compile_error ! ( "Either the `hardware` or `qemu` feature must be enabled" ) ;
12+
1013#[ cfg( target_env = "" ) ] // appease clippy
1114#[ panic_handler]
1215fn panic ( info : & core:: panic:: PanicInfo ) -> ! {
You can’t perform that action at this time.
0 commit comments