1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-24 00:12:13 +03:00
Commit Graph

1136 Commits

Author SHA1 Message Date
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
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
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
42f6f54a9d mruby-lvgui: update with latest changes to battery HAL 2020-10-18 16:27:36 -04:00
Samuel Dionne-Riel
e09f57838e examples/demo: Misc reorganization 2020-10-18 16:24:14 -04:00
Samuel Dionne-Riel
a5c63b2cd6 examples/demo: Fix warnings from upstream changes 2020-10-18 16:24:14 -04:00
Samuel Dionne-Riel
2b573fbfb1 examples/demo: Add dtc as it is useful to debug things 2020-10-18 16:24:14 -04:00
Samuel Dionne-Riel
1c720aa1b1 boot/gui: Use HAL configs for reboot options
This way we can clean up the recovery menu from useless options.

Furthermore, if a device in the future gives us more option, we can
implement them.
2020-10-15 22:08:25 -04:00
Samuel Dionne-Riel
b81ab29350 system-types/android: Provide reboot options 2020-10-15 22:08:25 -04:00
Samuel Dionne-Riel
f1d4bc324f initrd: Provide all HAL configuration to stage-1 config 2020-10-15 22:08:25 -04:00
Samuel Dionne-Riel
95ae031200 hardware: init module with HAL for reboot modes
This will be used by the boot GUI to only show relevant reboot options.

We might add other HAL-ish things in there.

Note that this is all internal stuff :)
2020-10-15 22:08:21 -04:00
Samuel Dionne-Riel
9870fc5ad1 examples/hello: Don't provide misc. reboot modes for now
We'll think it over for how we want to handle custom reboot commands,
but some platforms (e.g. u-boot, depthcharge, qemu) don't and can't use
them.

A goal is to keep stage-2 as generic as possible, so building into it
some knowledge of this is harder.

At any rate, the user can still reboot, and hold the key combo as
needed!
2020-10-15 22:08:21 -04:00
Samuel Dionne-Riel
317bf728fa pine64-pinephone: u-boot: Add now required CONFIG_REGEX 2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
108c8a56d3 system-types/u-boot: Actually boot from the desired partition
Ugh... The whole `''${devtype} ''${devnum}:''${bootpart}` thing was
cargo-culted from other u-boot scripts as "the way to go" to re-use the
information set by the generic distro boot...

EXCEPT that it doesn't work since 2018.

13dd6665ed

They are not environment variables since that change. So any of those
scripts end up working *by sheer luck* since it would end up booting
from the first device's first partition.

Ugh ugh ugh...

There is one **major** difference with the choice: We are now selecting
on a partition's label, rather than booting whatever is deemed bootable.

This assumes the upcoming change where we are using GPT rather than MBR.

But still, this is compatible with the default expectation from U-Boot
by falling back to the "bootable" attribute.
2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
ecceccb57f system-types/u-boot: Add debug information output 2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
973778dc68 system-types/u-boot: Abort on failure to load any kernel 2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
fdc4778d7e u-boot: Prefer GPT over MBR 2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
d9b346cf31 u-boot systems now have misc/persist partitions
This is so stage-1 can end up using it as needed.
2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
aca6dc811b image-builder: build GPT using cgpt
This allows us to make a hold in the header, while all other options
apparently can't cope with that in scriptable and stable manner.
2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
12a2743163
Merge pull request #225 from J-Kirch/fix-spelling
fix spelling
2020-10-14 23:51:18 -04:00
JK
80412b7395
fix spelling 2020-10-13 16:23:24 -05:00
Samuel Dionne-Riel
6c800b8dad
Merge pull request #223 from samueldr-wip/device/razer-cheryl2/port
razer-cheryl2: init
2020-10-10 20:13:56 -04:00
Samuel Dionne-Riel
e9487fd116 razer-cheryl2: Disable some of the default command line parameters
They are causing trouble during boot
2020-10-10 18:54:54 -04:00
Samuel Dionne-Riel
6b7573ffe9 razer-cheryl2: Add kernel build
This does not include the steps to configure. It's been simmering
through a bunch of work in a WIP branch.
2020-10-10 18:54:54 -04:00
Samuel Dionne-Riel
a43ec085f9 razer-cheryl2: Add device-specific notes 2020-10-10 18:54:42 -04:00
Samuel Dionne-Riel
b48ff3db07 razer-cheryl2: Add workaround for weirdness in normal boot 2020-10-10 18:54:42 -04:00
Samuel Dionne-Riel
3a99fef248
Merge pull request #224 from samueldr-wip/fix/222-wrong-usage-message
Fix program name in usage messages
2020-10-10 18:53:19 -04:00
Samuel Dionne-Riel
d517a14b24 razer-cheryl2: Minimum edits to device description 2020-10-09 23:45:19 -04:00
Samuel Dionne-Riel
0fe99a919a razer-cheryl2: Import from autoport 2020-10-09 23:45:19 -04:00
Samuel Dionne-Riel
12c60710d9 qualcomm: Add SDM845 2020-10-09 23:45:19 -04:00
Samuel Dionne-Riel
14c7654ba2 bin/menuconfig: hardcode program name 2020-10-09 20:26:03 -04:00
Samuel Dionne-Riel
7dd821cb05 bin/kernel-normalize-config: hardcode program name 2020-10-09 20:25:52 -04:00
Johnny Kirchman
a047bdda03
pinephone-braveheart: Generalize Pinephone devices
* Remove braveheart specific naming
2020-10-06 21:27:01 -04:00
Samuel Dionne-Riel
c2e6b8ca5a
Merge pull request #217 from samueldr-wip/fix/kernel-builder-double-compilation
kernel-builder: Work around kernels getting compiled two times
2020-10-04 16:19:40 -04:00
Samuel Dionne-Riel
12bd5d18d6 asus-flo: fix build with by disabling quirk
While it builds twice now, it at least build successfully.
2020-10-04 03:57:08 -04:00
Samuel Dionne-Riel
371e725795 kernel-builder: make enableParallelBuilding configurable 2020-10-04 03:25:08 -04:00
Samuel Dionne-Riel
0dc9f84afc kernel-builder: Work around kernels getting compiled two times
It looks like this is not a regression from the latest changes to the
kernel builder. Testing on top of ffdba8fecb
exhibits the same issue.

This change works around the issue by doing it with one invocation of
`make`, rather than doing it twice.

It has not been figured out at which exact version of the kernel this
stops being an issue, and if it is an issue from mainline Linux
outright, or something that came from Android-specific modifications.

Though it has been verified that for 3.18, both Qualcomm and Mediatek
source trees exhibit the same issue.

Fixes #216
2020-10-04 01:10:27 -04:00
Samuel Dionne-Riel
1b1e08f573
Merge pull request #213 from lheckemann/tissot-als
xiaomi-tissot: use android-linux-stable, fix USB
2020-10-03 16:01:09 -04:00
Linus Heckemann
c02c2b8f3b xiaomi-tissot: enable android_usb 2020-10-03 09:54:30 +02:00
Linus Heckemann
41f0ad1218 xiaomi-tissot: use android-linux-stable 2020-10-03 09:54:26 +02:00
Samuel Dionne-Riel
182bc30325
Merge pull request #215 from samueldr-wip/feature/autoport-script
Provide autoport in the default shell
2020-10-03 01:50:58 -04:00