Skip to content

Commit 4da91c1

Browse files
committed
user mode: show how to run /bin/sh on user mode
1 parent 42a4c45 commit 4da91c1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3643,6 +3643,26 @@ If you followed <<qemu-buildroot-setup>>, you can now run the executables create
36433643
;
36443644
....
36453645

3646+
To easily explore the userland executable environment interactively, you can do:
3647+
3648+
....
3649+
./run \
3650+
--arch aarch64 \
3651+
--userland "$(./getvar --arch aarch64 buildroot_target_dir)/bin/sh" \
3652+
--terminal \
3653+
;
3654+
....
3655+
3656+
or:
3657+
3658+
....
3659+
./run \
3660+
--arch aarch64 \
3661+
--userland "$(./getvar --arch aarch64 buildroot_target_dir)/bin/sh" \
3662+
--userland-args='-c "uname -a && pwd"' \
3663+
;
3664+
....
3665+
36463666
Here is an interesting examples of this: <<linux-test-project>>
36473667

36483668
=== User mode simulation with glibc

0 commit comments

Comments
 (0)