Samuel Dionne-Riel
63d49f51ad
Merge pull request #234 from samueldr-wip/feature/stage-1-passphrase
...
stage-1: Add interactive LUKS decrypting
2020-11-07 20:10:21 -05:00
Samuel Dionne-Riel
a1813efdfb
testing/qemu-cryptesetup: Add a test system for LUKS
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
3f8c115ee4
examples/testing: Add subdirectory for feature testing systems
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
36aa305f27
boot/init: Add LUKS device support
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
f45b5b301c
boot/init: Implement asking user
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
eaf8fa9dde
boot/init: Long running tasks can export a label
...
With the same tooling we will be able to ask for a throbber or some
other kind of work indicator.
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
c80476a047
boot/init: Rework Progress into a "state stash"
...
This way we really only update the current state bit we want to affect.
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
e891e2f752
boot/init: Minimal changes required to continue working
...
These changes implement the different protocol changes.
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
7b477b9ca5
boot/splash: Allow textual questions to be asked
...
For now, extremely assumed to be passphrase input.
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
665d58a7cd
boot/splash: Add textarea and keyboard, allowing text input
...
The following commit will plug it into the messages queue.
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
1f93066e89
boot/splash: Ensure no funny business if given bogus progress bar values
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
5755438dfa
boot/splash: Add wrappers around text area and keyboard
...
They will, at some point, be promoted into LVGUI. For the time being
they are local as they have only been verified to work in a useful
manner for this limited use case.
2020-11-07 19:22:33 -05:00
Samuel Dionne-Riel
71149eb01d
boot/splash: Ensure cover doesn't intercept events
2020-11-07 18:26:47 -05:00
Samuel Dionne-Riel
f66c31fd7e
mrbgems: mruby-lvgui: Update with latest changes
2020-11-07 18:26:47 -05:00
Samuel Dionne-Riel
a28cd3a293
modules/luks: Init
...
This, with the upcoming luks task allows encrypted drives to work!
2020-11-07 18:26:47 -05:00
Samuel Dionne-Riel
8a47b7913b
mkExtraUtils: Allow specifying specific binaries
2020-11-07 18:26:47 -05:00
Samuel Dionne-Riel
1fb62bdf63
generated-filesystems: Allow passing raw images
...
This will be useful for some tests.
2020-11-07 18:26:47 -05:00
Samuel Dionne-Riel
c1e581d8be
Merge pull request #233 from samueldr-wip/feature/stage-1-progress
...
stage-1: Add progress tracking in splash
2020-11-07 15:51:11 -05:00
Samuel Dionne-Riel
a50f838e13
boot/recovery-menu: Add missing file
2020-11-06 16:30:22 -05:00
Samuel Dionne-Riel
d929d798fe
boot/init: auto-resize task shows a message
2020-11-06 16:30:22 -05:00
Samuel Dionne-Riel
bd030cbe73
boot/init: Add required plumbing to control the forked process
2020-11-06 16:30:22 -05:00
Samuel Dionne-Riel
9b85943be1
boot/init: Add progress tracking
2020-11-06 16:30:22 -05:00
Samuel Dionne-Riel
95b1c7b2bb
boot/splash: Fix build as it is now a proper applet
2020-11-06 16:30:22 -05:00
Samuel Dionne-Riel
6cd2985bc1
boot/splash: Implement progress status display
...
The splash is now an application that should be started and forked from.
Once started, it will listen for messages on a ZeroMQ socket reporting
progress.
The current protocol is extremely simple, reporting (optional) label,
and reporting a progress amount.
Additionally, it responds to a string commant ("quit") to quit as
needed.
2020-11-06 16:30:22 -05:00
Samuel Dionne-Riel
d6982bb82b
mruby-lvgui: Update bindings and implementation to latest version
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
a779e28e49
mruby-builder: Fix double error messages print in stub
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
fb4984cb90
s/boot-gui/boot-recovery-menu/g
...
The applet is specifically written to show what we call the "recovery
menu". Yes, it's also the boot selection, but it will get confusing with
the upcoming boot tracking splash UI that's upcoming.
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
16b96cb5fb
boot/script-loader: Add mruby-zmq
...
This will be used by the upcoming progress-tracking feature.
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
2b57dd33e3
mrbgems: Add mruby-zmq
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
efd31433ba
mrbgems: Add mruby-simplemsgpack
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
0a458bfcde
mrbgems: Add mruby-proc-irep-ext
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
05d7446384
mrbgems: Add mruby-pack
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
ef436a64b1
boot/init: More verbose tasks loop in DEBUG
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
99a7671769
boot/init: Ensure graphics setup is also a UX priority
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
0365079e1f
boot/init: Tasks restart the queue
...
This is to ensure "UX-friendly" tasks gets run ASAP.
Quickly explained, this makes sure that the top tasks (e.g. Splash) gets
ran as soon as possible.
Given the list:
- Splash
- Graphics
- AAA
- BBB
- CCC
If `Graphics` ends up running, and AAA, BBB and CCC can too, Splash will
have to wait until all those tasks got ran once!
Not ideal for UX, if e.g. BBB takes time to *run* and we can't show the
progress to users!
The added cost of restarting the queue is minimal with tests I ran. It
was not more than a tenth of a second, and could even be rounding
errors.
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
2542487348
boot/init: Improve Task#to_s for better inspection
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
cf84880e87
boot/init: clean-up logger initialization
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
1cee1c681b
boot/init: Log offset from logger init
...
This gives us a better idea, relatively, when things happen to be
logged.
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
cf49659fe3
boot/init: Add CLOCK_MONOTONIC output at boot
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
2f87df4121
init: Add mruby-process-clock_gettime to script-loader
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
a91e6196a5
mrbgems: Add mruby-process-clock_gettime
2020-10-27 15:23:40 -04:00
Samuel Dionne-Riel
6675a044d5
Merge pull request #231 from samueldr-wip/feature/pinephone/modem
...
pine64-pinephone: Modem support improvements
2020-10-27 15:15:15 -04:00
Samuel Dionne-Riel
258cb1acd0
Merge pull request #228 from samueldr-wip/feature/reboot-hal
...
Boot GUI: only show relevant reboot options
2020-10-18 18:04:55 -04:00
Samuel Dionne-Riel
c7b196c4f3
Merge pull request #227 from samueldr-wip/feature/u-boot/gpt
...
system-types/u-boot: Use GPT for partitions + add partitions
2020-10-18 17:58:01 -04:00
Samuel Dionne-Riel
082770117c
pine64-pinephone: Add modem firmware updater
...
This has not been made "fancier" for easier use yet. It is unknown how
useful updating the firmware is.
Usage:
```
$ NIXPKGS_ALLOW_UNFREE=1 nix-build --argstr device pine64-pinephone -A pkgs.pine64-pinephone.qfirehose
$ sudo ./result/bin/QFirehose -l ./ -f ./newfw
```
But maybe read more about whether you want to update or not beforehand?
https://forum.pine64.org/showthread.php?tid=11815
2020-10-18 17:53:41 -04:00
Samuel Dionne-Riel
40b9d73e22
Merge pull request #229 from samueldr-wip/feature/examples-demo/misc
...
Misc. updates to the examples/demo system
2020-10-18 17:32:53 -04:00
Samuel Dionne-Riel
d43cd22c07
Merge pull request #230 from samueldr-wip/feature/mruby-lvgui/update
...
mruby-lvgui: update with latest changes to battery HAL
2020-10-18 16:47:50 -04:00
Samuel Dionne-Riel
788b1605e9
pine64-pinephone: Add service to control the modem
2020-10-18 16:30:24 -04:00
Samuel Dionne-Riel
e379e18fff
pine64-pinephone: Re-configure based on megi's defconfig
...
The following from megi's have to be disabled (not set) or else the
console logo will not show up at boot (pre-init).
> CONFIG_FRAMEBUFFER_CONSOLE_ROTATION
> CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER
2020-10-18 16:30:24 -04:00
Samuel Dionne-Riel
91cec80471
pine64-pinephone: Switch to megi's fork
2020-10-18 16:30:24 -04:00