From 4da91c1e5181a48e81b0701c678addda4b97b66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Sat, 29 Jun 2019 00:00:01 +0000 Subject: [PATCH] user mode: show how to run /bin/sh on user mode --- README.adoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.adoc b/README.adoc index 34f1ba6..de7d7db 100644 --- a/README.adoc +++ b/README.adoc @@ -3643,6 +3643,26 @@ If you followed <>, you can now run the executables create ; .... +To easily explore the userland executable environment interactively, you can do: + +.... +./run \ + --arch aarch64 \ + --userland "$(./getvar --arch aarch64 buildroot_target_dir)/bin/sh" \ + --terminal \ +; +.... + +or: + +.... +./run \ + --arch aarch64 \ + --userland "$(./getvar --arch aarch64 buildroot_target_dir)/bin/sh" \ + --userland-args='-c "uname -a && pwd"' \ +; +.... + Here is an interesting examples of this: <> === User mode simulation with glibc