pmaports/main/postmarketos-initramfs
Caleb Connolly dd28314ba2
postmarketos-initramfs: debug-shell 3.0 (MR 5000)
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>
2024-06-18 12:35:05 -07:00
..
00-default.modules main/postmarketos-initramfs: add crc32_generic module for F2FS (MR 4973) 2024-04-18 14:44:55 +02:00
00-initramfs-base.dirs main/postmarketos-initramfs: Allow packages to define cleanup hooks (MR 5191) 2024-06-04 18:44:34 +00:00
00-initramfs-base.files postmarketos-initramfs: debug-shell 3.0 (MR 5000) 2024-06-18 12:35:05 -07:00
00-initramfs-extra-base.files main/postmarketos-initramfs: switch_root with /dev (MR 3230) (MR 4204) 2023-09-07 20:33:55 +01:00
APKBUILD postmarketos-initramfs: debug-shell 3.0 (MR 5000) 2024-06-18 12:35:05 -07:00
init.sh postmarketos-initramfs: debug-shell 3.0 (MR 5000) 2024-06-18 12:35:05 -07:00
init_functions.sh postmarketos-initramfs: debug-shell 3.0 (MR 5000) 2024-06-18 12:35:05 -07:00
mdev.conf main/postmarketos-initramfs: use mdev properly (MR 4204) 2023-09-07 20:33:55 +01:00
unudhcpd.conf main/postmarketos-initramfs: support custom IP addresses for USB net (MR 3349) 2023-08-23 13:06:15 -07:00