Samuel Dionne-Riel
10c1ccece2
stage-1/usb-gadget: Implement gadgetfs teardown
...
This way on kexec the device is in a better state, and the kernel that
boots next is able to use the controller.
This was verified to fix an issue with kexec+gadget on the Chuwi Hi10
Pro HQ64 tablet.
2021-01-03 20:23:44 -05:00
Samuel Dionne-Riel
2d3ba8d21d
boot/init: Add System.delete() to delete files or directories
2021-01-03 20:23:44 -05:00
Samuel Dionne-Riel
805620652b
Merge pull request #271 from samueldr-wip/fix/accidental-puts
...
boot/lib: Remove accidentally left puts
2021-01-02 01:18:37 -05:00
Samuel Dionne-Riel
19ff65e821
boot/lib: Remove accidentally left puts
2021-01-02 00:55:21 -05:00
Samuel Dionne-Riel
e6376850dc
Merge pull request #270 from samueldr-wip/feature/mruby-lvgui-merge
...
Import mruby-lvgui and minor mruby refactor
2021-01-01 21:52:42 -05:00
Samuel Dionne-Riel
6ebe6dd6e6
examples/testing/*: Use .vm
output
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
2fefc0ae5b
boot/splash: Fixes for extracted libs
...
And additionally review how it's built.
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
dc809d47bd
boot/lib: Import splash components in lvgui
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
7cd9acd991
boot/splash: Remove useless var
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
966f000c5d
boot/error: Use extracted reboot mode hal
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
562ddc1272
boot/recovery-menu: Use extracted reboot mode hal
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
50a2a08e09
boot/lib: Extract reboot modes lib
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
a12e4314dc
boot/recovery-menu: Use extracted configuration lib
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
d0ad7a8a20
boot/init: Use extracted configuration lib
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
af9912ef81
boot/lib: Import init configuration lib
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
3cde402440
boot/init: Use extracted monkey patches
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
e6e4e228a4
boot/lib: Move init monkey patches
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
4bfdd254f9
examples/hello: decribe libraries used
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
b50024f29b
boot/error: describe libraries used
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
45a4835ebe
boot/recovery-menu: describe libraries used
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
bec41be25b
boot/splash: describe libraries used
2021-01-01 21:37:30 -05:00
Samuel Dionne-Riel
6ca59e8cfb
boot/init: Describe specific libraries to include
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
abdaa2a4d5
examples/hello: Fixes for script-loader changes
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
4b0a275cc1
boot/splash: Fixes for script-loader changes
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
74498792ee
boot/recovery-menu: Fixes for script-loader changes
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
d18d3615e6
boot/script-loader: Use the mruby-lvgui-native-fragment
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
447d8d59e7
boot/script-loader: Add mruby-lvgui-native-fragment
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
ffc4a12fa1
boot/lib: Import lvgui ruby implementation
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
b88d2565ee
boot/lib: Stash evdev lib in a folder
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
2b5d8ed84b
examples/hello: Re-format mrbc invocation and drop -g
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
b33afce1a0
boot/init: Re-format mrbc invocation
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
f3b51bfafd
mruby-builder: Manage -g
flag for mrbc
2021-01-01 21:37:29 -05:00
Samuel Dionne-Riel
ac315d791f
mruby-lvgui: drop package
2020-12-31 17:06:16 -05:00
Samuel Dionne-Riel
d586952386
Merge pull request #269 from samueldr-wip/fix/regression-kernel-filename
...
fix build failure by providing kernel filename to internal NixOS option
2020-12-31 16:25:51 -05:00
Samuel Dionne-Riel
3487b77503
fix build failure by providing kernel filename to internal NixOS option
...
The update from 29a10085f3
caused the
uncompressed kernel to not be installed anymore into the kernel output.
This meant that building the top-level argument failed as a file assumed
to exist wasn't there anymore.
We now provide the appropriate filename when we know it.
2020-12-31 16:21:38 -05:00
Samuel Dionne-Riel
41923e4895
Merge pull request #268 from samueldr-wip/fix/kernel-builder-walleye
...
kernel-builder: Call either of install or zinstall
2020-12-31 14:29:43 -05:00
Samuel Dionne-Riel
29a10085f3
kernel-builder: Call either of install or zinstall
...
It seems that under specific conditions:
- 2a5 hardware
- -j22
the call to `make install zinstall` (simplified here) may break, with
the installation of `System.map` happening in a manner where it fails
the build. It was not trivial to reproduce elsewhere than on a 2a5
machine, for unknown reasons.
It was also only observed on google-walleye, but there is no reason is
shouldn't be failing on other devices too.
Odd.
2020-12-31 03:31:04 -05:00
Samuel Dionne-Riel
5386b3fd2d
Merge pull request #253 from samueldr-wip/feature/uefi-generic-x86_64
...
uefi-x86_64: introduce generic "device" and system type
2020-12-29 23:39:40 -05:00
Samuel Dionne-Riel
04b8e4c464
uefi-x86_64: Enable stage-0
2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
7fe40c1817
system-types/uefi: VM outputs logs on serial
2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
e215099597
system-types/uefi: Use stage-0
2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
b2790d13d6
qemu-x86_64: Delete device
...
It's being replaced by the generic uefi-x86_64 device.
Basically, replace the QEMU-specific system type by the totally standard
UEFI system type. This way we're dogfooding it way better!
2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
a8f14efead
qemu-cryptsetup: Use uefi-x86_64 system
...
It is incomplete because it does not use the (not implemented) VM
attribute.
2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
1098b55236
system-types/uefi: Introduce the .vm attribute
...
This results in a script that launches a QEMU VM.
2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
ed23cbaeb6
uefi-x86_64: default values for ram and display
...
This is basically what I think are the minimum requirements for support.
720p display, 2GB of RAM.
Not that it will be a great experience.
2020-12-29 19:21:02 -05:00
Samuel Dionne-Riel
01de3d31a4
devices/uefi-x86_64: Init, from qemu-x86_64
...
For the time being, this is mostly a copy of the QEMU system.
The QEMU system is slated to be removed, once the UEFI system provides
the necessary tooling to get a VM going easily.
We'll probably want to add other generically-useful modules to that
system.
We'll have to look at NixOS's boot.initrd.availableKernelModules and
boot.initrd.kernelModules options.
2020-12-29 19:21:02 -05:00
Samuel Dionne-Riel
bec8c7dbd0
system-types/uefi: Init, largely inspired by u-boot
...
This is the minimum viable product.
This builds a disk image that can be booted.
2020-12-29 19:21:02 -05:00
Samuel Dionne-Riel
a8fbbebfbb
initrd: Allow adding extra dev rules
...
Will be used to pass along extra properties for devies, e.g. libinput
calibration matrix.
2020-12-29 19:21:02 -05:00
Samuel Dionne-Riel
a14e0244d3
kernel/builder: Fix for non-dtb-based platforms
...
Like intel-based hardware
2020-12-29 19:21:02 -05:00
Samuel Dionne-Riel
cff021e9ca
kernel/builder: Support newer kernel versions
...
Fixes menuconfig for 5.10 for chuwi hi10 pro
2020-12-29 19:21:02 -05:00