mirror of
https://github.com/YusufOzmen01/quest-kexec.git
synced 2026-10-26 19:37:39 +00:00
Add shell and return helpers
This commit is contained in:
3 files changed
+11
-3
No files matched your search
+3
-3
@@ -36,14 +36,14 @@ Find the new Ethernet interface with `ip link`. Then:
|
||||
|
||||
```sh
|
||||
nmcli device connect <interface>
|
||||
telnet 10.42.0.2
|
||||
tools/shell.sh
|
||||
```
|
||||
|
||||
If DHCP is unavailable:
|
||||
|
||||
```sh
|
||||
sudo ip addr add 10.42.0.1/24 dev <interface>
|
||||
telnet 10.42.0.2
|
||||
tools/shell.sh
|
||||
```
|
||||
|
||||
Run one command without telnet:
|
||||
@@ -55,7 +55,7 @@ python3 tools/qkx_sh.py 'uname -a'
|
||||
## 5. Return to Android
|
||||
|
||||
```sh
|
||||
python3 tools/qkx_sh.py 'echo r > /proc/qkx_bootdone'
|
||||
tools/return-android.sh
|
||||
```
|
||||
|
||||
## Logs
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Ask the target kernel for a DRAM-preserving warm reset back to Android.
|
||||
set -e
|
||||
HERE=$(cd "$(dirname "$0")" && pwd)
|
||||
exec python3 "$HERE/qkx_sh.py" 'echo r > /proc/qkx_bootdone' 5
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# Open the BusyBox shell on the kexec target.
|
||||
exec telnet "${QKX_HOST:-10.42.0.2}" 23
|
||||
Reference in new issue
Block a user