Samuel Dionne-Riel
90fb0d1df9
pine64-pinephone: Update patch for 5.10
2020-12-25 16:49:27 -05:00
Samuel Dionne-Riel
8650b4c3a6
pine64-pinephone: kernel 5.9 -> 5.10
2020-12-25 15:45:44 -05:00
Samuel Dionne-Riel
1bad3524bb
Merge pull request #188 from noneucat/pinephone-crust
...
pine64-pinephone-braveheart: implementation of Crust
2020-12-25 14:40:42 -05:00
Samuel Dionne-Riel
194384cc6a
Merge pull request #257 from noneucat/patch-1
...
Fix attribute 'selectBySystem' missing
2020-12-25 14:02:15 -05:00
Andy Chun @noneucat
0b518aeca5
pine64-pinephone: add Crust
2020-12-25 06:06:12 -08:00
Andy Chun
692544a5ef
Fix attribute 'selectBySystem' missing with lib.systems.elaborate
...
Closes #252 .
This uses the `lib.systems.elaborate` function which builds the
complete attrset as preferred by Nixpkgs by using
`lib.systems.elaborate`, rather than building a partial equivalent.
@noneucat originally implemented it the simplest way possible, re-using
parts of the now unneeded custom functions. We can, instead, simply
pass a system name to `elaborate`, which ends up doing the right thing.
Co-authored-by: Andy Chun <andy@lolc.at>
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
2020-12-24 18:25:13 -05:00
Samuel Dionne-Riel
21f662ac08
Merge pull request #249 from samueldr-wip/fix/luks-error-reporting
...
boot: LUKS errors are "controlled"
2020-11-30 20:54:59 -05:00
Samuel Dionne-Riel
2ab969db37
boot: LUKS errors are "controlled"
...
This means that we shouldn't raise an exception, but rather fail
outright. The background being black means that things *failed
successfully*, as expected.
2020-11-30 20:45:03 -05:00
Samuel Dionne-Riel
3ada47e6e3
Merge pull request #248 from samueldr-wip/fix/mruby-builder-passthru
...
mruby-builder: Fix `passthru` being required for mruby builder
2020-11-29 16:48:48 -05:00
Samuel Dionne-Riel
ead0bf029e
mruby-builder: Fix passthru
being required for mruby builder
2020-11-29 16:03:33 -05:00
Samuel Dionne-Riel
4a64556355
Merge pull request #244 from leenaars/patch-1
...
Solution for USB3 flashing issue
2020-11-23 13:57:47 -05:00
Samuel Dionne-Riel
a712178a58
Merge pull request #247 from samueldr-wip/device/asus-dumo/fix-kernel-regression
...
asus-dumo: Fix regression from kernel builder changes
2020-11-22 20:52:31 -05:00
Samuel Dionne-Riel
abc0ab9add
asus-dumo: Fix regression from kernel builder changes
...
The kernel isn't compressed!
2020-11-22 20:37:12 -05:00
leenaars
c73816ef84
Solution for USB3 flashing issue
2020-11-22 19:26:40 -05:00
Samuel Dionne-Riel
8f1cf6fca9
Merge pull request #245 from samueldr-wip/feature/stage-1-recovery-acknowledge
...
stage-1: Acknowledge recovery boot mode
2020-11-22 16:59:57 -05:00
Samuel Dionne-Riel
fd0a9856bd
boot/init: publish desire for recovery mode
2020-11-22 16:53:03 -05:00
Samuel Dionne-Riel
67957f4972
boot/init: Move recovery detection to an abstraction layer
2020-11-22 16:53:03 -05:00
Samuel Dionne-Riel
ff9d66713e
boot/splash: Update UI before executing commands
...
Otherwise we might miss the last message, which may include things to
present to the user, e.g. the label "Continuing to ..."
2020-11-22 16:53:03 -05:00
Samuel Dionne-Riel
cfba499677
boot/splash: Add recovery notification support
...
To be shown, the publisher has to publish the `recovery` value.
2020-11-22 16:53:03 -05:00
Samuel Dionne-Riel
63ab9f2368
Merge pull request #243 from samueldr-wip/feature/stage-1-ffi-evdev
...
stage-1: Use evdev bindings for recovery key
2020-11-22 16:52:29 -05:00
Samuel Dionne-Riel
841b835b05
boot/init: update comments in switch_root
...
It better describes the reasoning for the keys than the previous
"off-the-cuff" comment I left myself.
2020-11-22 16:48:32 -05:00
Samuel Dionne-Riel
ae9ce35a90
boot/lib: Implement evdev query through FFI
2020-11-22 16:48:32 -05:00
Samuel Dionne-Riel
7a30ed255a
initrd-boot-gui: Drop evtest dependency
2020-11-22 16:48:32 -05:00
Samuel Dionne-Riel
5928902108
boot/lib: add generated linux input event codes
...
This could be done a build-time, but it's not like we actually need it
to be the freshest ever.
We're free to update it whenever.
2020-11-22 16:48:32 -05:00
Samuel Dionne-Riel
65d570144f
boot/misc: Add script to generate linux input event codes
2020-11-22 16:48:32 -05:00
Samuel Dionne-Riel
0037614821
boot/init: Use the new evdev library
...
It still uses evdev internally, but first let's change the interface,
*then* change the implementation details.
2020-11-22 16:48:32 -05:00
Samuel Dionne-Riel
f2d1cf95b2
boot/applets: Remove last applet (key-held)
...
It'll be, at first, bundled-in as-is in a library, then re-done through
evdev ffi.
2020-11-22 16:48:32 -05:00
Samuel Dionne-Riel
92b4eb005d
Merge pull request #242 from samueldr-wip/feature/stage-1-keyboard-input
...
stage-1: Handle (physical) keyboard input
2020-11-22 16:47:12 -05:00
Samuel Dionne-Riel
a97cf091dd
initrd: Provide configuration needed for xkbcommon
2020-11-22 16:45:34 -05:00
Samuel Dionne-Riel
b2a54941de
boot/splash: Focus on the text area
...
This allows keyboard input to be sent to it, thus supporting passphrase
input using a physical keyboard.
Additionally, don't show the focus ring on the only element.
2020-11-22 16:45:25 -05:00
Samuel Dionne-Riel
54a62da803
lvgui: 2020-11-01 -> 2020-11-20
2020-11-22 16:45:25 -05:00
Samuel Dionne-Riel
5467988ca2
lvgui: Provide customized libxkbcommon
2020-11-22 16:45:25 -05:00
Samuel Dionne-Riel
6c7abb0dac
initrd: Basic environment is now configurable
2020-11-22 16:45:25 -05:00
Samuel Dionne-Riel
0bcfc63cb8
initrd: Make initrd-meta aware of xz compression
2020-11-22 16:45:25 -05:00
Samuel Dionne-Riel
a853cde215
Merge pull request #241 from samueldr-wip/device/xiaomi-begonia/fix-dtc-overlay
...
xiaomi-begonia: Don't rely on bundled dtc_overlay
2020-11-22 16:41:40 -05:00
Samuel Dionne-Riel
5bad6b7ab5
xiaomi-begonia: Don't rely on bundled dtc_overlay
...
While discussing with other devs, working on a samsung device on another
distro, I figured out it was basically free to try and build it with a
shim that's calling "proper" `dtc` and see if it works.
It worked for xiaomi-begonia.
It worked for that other device (on postmarketOS) too!
This means we're suddently gaining the ability to build natively.
Additionally, for postmarketOS, it allows them to build, considering
`dtc_overlay` uses glibc, and postmarketOS doesn't.
2020-11-22 16:40:03 -05:00
Samuel Dionne-Riel
83761e308a
Merge pull request #246 from samueldr-wip/fix/github-actions-broken-2020-11
...
ci: Update dependencies
2020-11-22 16:19:25 -05:00
Samuel Dionne-Riel
1882faebb8
ci: Update dependencies
...
The actions stopped working due to a GitHub-side regression/deprecation.
At the same time, re-order actions.
2020-11-22 16:17:23 -05:00
Samuel Dionne-Riel
08e75d3733
Merge pull request #239 from samueldr-wip/feature/stage-1-gracefulier-errors-handling
...
stage-1: More useful error handler
2020-11-13 20:11:22 -05:00
Samuel Dionne-Riel
263d6713c9
boot/error: Give a choice for the next action to the end-user
2020-11-13 19:46:44 -05:00
Samuel Dionne-Riel
8d182d07d2
boot/error: Rework UI for better reporting
...
First, right now we're putting the full error message front and center,
rather than the sad phone.
We're keeping the sad face though, but only as an accent icon.
Finally, not part of this PR, we'll add actions to abort a total crash.
2020-11-13 19:46:44 -05:00
Samuel Dionne-Riel
ca0c2fc2b9
mruby-lvgui: Update with latest changes
2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
dbfbdf385b
boot/init: Add error title in addition to code
2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
889ebd4700
boot/error: Add time left for the delay
2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
bb6a7ddc5f
boot/error: Add a tangible derivation
...
This also allows us to add library files.
2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
407ff11b26
boot/error: Minimal viable changes for structured data
...
The applet isn't any more graceful yet, but this is where things can
finally get interesting.
2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
03022f2745
boot/init: Pass structured data through a file to crash handler
...
The command-line arguments are not great for structured data.
2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
aa1c2f3744
boot/init: Harmonized failure methods
...
- Code is now more of a title
- Only one code path exists to the applet
2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
e6778f8370
boot/recovery-menu: extract reboot modes
2020-11-12 23:13:20 -05:00
Samuel Dionne-Riel
bb7e9a3b7b
examples: Add testing/crash-before-switch-root
...
Can be used as a single point of failure (hah!)
2020-11-08 18:37:13 -05:00