about summary refs log tree commit diff
path: root/src/tools/remote-test-client
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-01-29 23:50:46 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-01-30 00:33:02 +0100
commit3f46fbf31b10cd93dd95d761eece38eb0864e69c (patch)
treec3b4d8082debbd0c9c28cef0b18ac0e0ebbc75e9 /src/tools/remote-test-client
parentb122908617436af187252572ed5db96850551380 (diff)
downloadrust-3f46fbf31b10cd93dd95d761eece38eb0864e69c.tar.gz
rust-3f46fbf31b10cd93dd95d761eece38eb0864e69c.zip
Update armhf-gnu to Ubuntu 20.04
This requires updating the used Linux kernel to avoid an assembler
error, the used busybox version to avoid a linker error, the used
rootfs to match the host version and the qemu flags to work with
the newer version.
Diffstat (limited to 'src/tools/remote-test-client')
-rw-r--r--src/tools/remote-test-client/src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/remote-test-client/src/main.rs b/src/tools/remote-test-client/src/main.rs
index 6245b76fd6e..2d99f2cb8e2 100644
--- a/src/tools/remote-test-client/src/main.rs
+++ b/src/tools/remote-test-client/src/main.rs
@@ -185,8 +185,10 @@ fn start_qemu_emulator(target: &str, rootfs: &Path, server: &Path, tmpdir: &Path
                 .arg("-append")
                 .arg("console=ttyAMA0 root=/dev/ram rdinit=/sbin/init init=/sbin/init")
                 .arg("-nographic")
-                .arg("-redir")
-                .arg("tcp:12345::12345");
+                .arg("-netdev")
+                .arg("user,id=net0,hostfwd=tcp::12345-:12345")
+                .arg("-device")
+                .arg("virtio-net-device,netdev=net0,mac=00:00:00:00:00:00");
             t!(cmd.spawn());
         }
         "aarch64-unknown-linux-gnu" => {