dd28314ba2
This incorprates the debug-shell functionality directly into the initramfs, so it's no longer necessary to build and boot a custom initramfs in order to debug your device. Additionally, the behaviour of the debug-shell is entirely reworked, It now creates an ACM serial gadget which can be accessed via any normal terminal emulator (picocom, minicom, etc; or PuTTY on windows). Rather than just invoking sh, the debug-shell now creates a respawning getty on both the new virtual console and the active console (this will either be the UART console or tty0/1). It is necessary to spawn these shells via getty since the logging rework means we can no longer assume that stdin/out/err reference a TTY. In addition to the above, it is now possible to trigger a log dump by holding volume up during boot. This can be useful for helping users debug their devices if the issue doesn't result in a failure that can be detected in the initramfs. With these changes, the console-shell and debug-shell hook packages are reduced to only adding the additional tools/features. console-shell is still required for fbkeyboard, and debug-shell for the setup_usb_storage tool. Co-Developed-by: Clayton Craft <craftyguy@postmarketos.org> Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
22 lines
944 B
Text
22 lines
944 B
Text
pkgname=postmarketos-mkinitfs-hook-debug-shell
|
|
pkgver=0.7.0
|
|
pkgrel=0
|
|
pkgdesc="Root shell in the initramfs (security hole, for debugging only)"
|
|
url="https://postmarketos.org"
|
|
depends="postmarketos-mkinitfs devicepkg-utils fbdebug evtest linuxconsoletools reboot-mode libinput libinput-tools"
|
|
source="20-debug-shell.files setup_usb_storage.sh"
|
|
arch="noarch"
|
|
license="GPL2"
|
|
options="!check"
|
|
|
|
package() {
|
|
install -Dm644 "$srcdir"/20-debug-shell.files \
|
|
"$pkgdir"/usr/share/mkinitfs/files/20-debug-shell.files
|
|
install -Dm755 "$srcdir"/setup_usb_storage.sh \
|
|
"$pkgdir"/usr/libexec/postmarketos-mkinitfs/setup_usb_storage.sh
|
|
}
|
|
|
|
sha512sums="
|
|
a739bc47d905d189edb26d9ebfd062023720fefdaab27207471c16d53a9c12ea8b81092a1047d8f2300e42ba500bdf6c5a3343aca55aab5bf8e84d68eb5680ab 20-debug-shell.files
|
|
75d485c2e9f352cfd717b7a92753a9dfc4a72526a44bcbb784eacb4ef9011072b3ffa1c42a317c0940598cc076fb6c61676c440e5b188378b19ca08d882c1338 setup_usb_storage.sh
|
|
"
|