1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-22 23:41:34 +03:00
Commit Graph

1339 Commits

Author SHA1 Message Date
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 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 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 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 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 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
Samuel Dionne-Riel
dced7ef12b pine64-pinephone: Fix kernel build
The kernel shouldn't be compressed for our current usage.

Otherwise we need to do more work with U-Boot.
2020-10-18 16:30:24 -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 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 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 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 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 
2020-10-04 01:10:27 -04:00
Samuel Dionne-Riel
1b1e08f573
Merge pull request from lheckemann/tissot-als
xiaomi-tissot: use android-linux-stable, fix USB
2020-10-03 16:01:09 -04:00