Samuel Dionne-Riel
2b2d2ad7ea
boot/applets: Add key-held utility
2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
e326b38b4b
system-types/android: Output recovery.img
...
That recovery image unconditionally assumes it's running as recovery
2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
3acc3ee63d
initrd: Add boot_as_recovery to config
2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
cab9a214b2
initrd-boot-gui: Add to initrd
2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
c487e0d7d3
initrd: Implement split loader/script
2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
8bb0ba8bc4
qualcomm: Rely on refresher, lvgl does not play well with handle.
2020-02-28 23:14:09 -05:00
Samuel Dionne-Riel
7dd8408dd9
initrd: Fix early logging
...
We're now starting `bootlogd` first thing, this in turn allows it to
capture all logs. Though, this does mean that `sh` is back in the
critical path of the system. Anyway, it was never exactly out.
2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
a53f7cf463
initrd: Expose extraUtils
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
290d2ff757
initrd: Fix strace packaging
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
bcda887e7a
initrd-usb: ffs -> adb for ADB
...
It looks like it didn't matter for some device, but may be an issue for
`google-marlin`.
I'm not sure where the `ffs` feature name came from.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
53413080cc
initrd-usb: Follow AOSP init order more closely
...
This is part of what may be required to fix ADB on google-marlin.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
57a7de2610
initrd-usb: Only enable when a mode is available
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
bdd234fc0e
initrd-shell: Allows using a shell on failure...
...
This needs to be plugged into the init via duck-typing.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
2356bd2947
adb: Disables by default
...
This was a bit rude! There are security consideration in making adb
available!
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
f30f2e0e5e
adb: Implement as a boot/init task
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
4289996f3c
initrd: System.write for USB gadget tasks
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
8d3833691b
initrd: Setup ffs aliases before mounting functionfs
...
It turns out to be required for some devices.
Namely, google-marlin.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
74a1a190ca
initrd-usb: Force device to declare mode
...
The detection cannot be done reliably. Some android_usb devices
(motorola-addison) have gadgetfs available, while some gadgetfs devices
will have the android_usb path available.
Anyway, this is probably better to explicitly declare the mode to use.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
cd963d2b59
boot/init: Allow crashing to bootloader
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
eee5b2d608
boot-initrd: Removes outdated option
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
4cc403e3cd
initrd-vendor: Stop assuming there is a vendor partition
...
Older devices will not have a vendor *partition*.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
57a18403bd
initrd-usb: Implement android_usb gadget in task
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
d913324948
initrd: make bootConfig deeply mergeable
...
With JSONValue from:
* https://github.com/NixOS/nixpkgs/pull/75584
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
eb29edda6d
initrd-ssh: Port to a boot/init task.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
c4ec0480fd
initrd-network: Port to a boot/init task
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
776b8bf151
initrd-vendor: init module
...
This is required for some devices, as some features only work when
firmwares are loaded on some devices.
Here, `google-walleye` `gsi.rndis` usb gadget requires the IPA firmware.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
50a04bd651
initrd-usb: Implement gadgetfs usb gadget
...
This has only been tested with google-walleye, with gsi.rndis.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
b47ffc14e4
initrd-usb: Prepare for gadget handling task
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
3b16a080f7
initrd: Make bootConfig a tangible internal option
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
5b3b72870b
initrd-shell: Remove with
.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
43c25fe059
initrd-loop: Remove
...
We'll see what will be done in a bit.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
333ae6b6da
initrd-logs: Add bootlogd multiplexer/logger support.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
3379bc5954
initrd-fbterm: Port to new stage-1 init
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
b932adb0d2
Fixups in modules from changes to boot/init
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
fad472bd06
initrd: Removes dead code from initrd-kernel
...
This already is part of boot/init
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
368bc33019
initrd: Implement loop with a task
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
7f0ba7de38
initrd: Remove framebuffer options
...
This is now all moved to boot/init tasks.
Furthermore, I don't think we ever want to *disable* starting the
framebuffer stuff. What's really needed is detecting *what kind* of
graphics subsystem to use, and this can't happen at eval time.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
b5e3397783
(broken) removes initrd-order
...
This allows my staging area to become a bit cleaner.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
56cdb1abca
initrd: Implement shell with a task
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
0361ccad00
init: Allow adding tasks to boot/init
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
687a100da4
quirks: Implement qualcomm framebuffer quirks as tasks
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
4c40fa259f
initrd: Removed telnet
...
It wasn't used either
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
2a9ff72358
initrd: Review splash to only embed images
...
This still needs to be somewhat re-thought
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
5b13d6b4a8
initrd: minor cleanup
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
2deed250eb
initrd: Remove initrd-udev
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
2185771cba
initrd: Remove stage-2
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
9119ea40f9
initrd: Remove nc shell
...
This wasn't really used anyway...
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
12918e0f58
initrd: Remove logger module
...
This, anyway, needs to be re-thought entirely with the new init.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
3f6d523e51
initrd: Removes growpart module
...
This needs to be re-done entirely.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
a81afccbb8
cleanup: Move initrd-fail settings in boot/init
2020-02-03 16:19:10 -05:00