Inspecting the initramfs

From postmarketOS
Jump to: navigation, search
This is considered a security hole. Only use it for debugging, and uninstall the usb-shell hook afterwards. The port is for historic reasons, we used to have another telnet daemon on :23.

This page explains how to connect to your device when it has booted to the initramfs by installing the so-called usb-shell hook. This is useful if you want to know more about the boot process, simply inspect the initramfs or you want to debug why something doesn't work.

It is possible to enable a telnet daemon on :24 that gives you a shell this way:

./pmbootstrap.py initfs hook_add usb-shell
./pmbootstrap.py initfs
./pmbootstrap.py flasher boot # or however you flash/boot the kernel
telnet 172.16.42.1 24

If the telnet command does not work out of the box, read connect via USB Networking in the Initramfs.

Tips and tricks