1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
Commit Graph

511 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
5abd837848
Merge pull request #68 from samueldr-wip/feature/hardshutdown
Fix shutdown/reboot in stage-1
2020-01-11 15:10:42 -05:00
Samuel Dionne-Riel
104c09a8a7 initrd-base: Use hardshutdown 2020-01-10 00:46:11 -05:00
Samuel Dionne-Riel
27fe769fcc hardshutdown: init at 0.0.1 2020-01-10 00:46:02 -05:00
Samuel Dionne-Riel
5fa2110c7b hard-{shutdown,reboot}: remove
This will be replaced with a better utility.
2020-01-10 00:45:39 -05:00
Samuel Dionne-Riel
7803d9ec0e
Merge pull request #67 from samueldr-wip/fix/google-walleye-framebuffer
google-walleye: Fix early framebuffer
2019-12-28 17:39:05 -05:00
Samuel Dionne-Riel
f5ee476645 google-walleye: Fix early framebuffer
It looks like *not* having `quiet` in the kernel cmdline somehow makes
the early init of the framebuffer fail.

I don't know the exact difference, but lowering loglevel rather than
using quiet doesn't work here.

In addition, this changes
2019-12-27 17:11:41 -05:00
Samuel Dionne-Riel
49e725c868 google-walleye: Split-up cmdline 2019-12-27 17:11:35 -05:00
Samuel Dionne-Riel
774dabfbfd
Merge pull request #65 from samueldr-wip/feature/libhybris/update
libhybris: 2018-06-18 -> 2019-12-02
2019-12-10 13:58:20 -05:00
Samuel Dionne-Riel
920e4991ca adbd: Use legacy properties with hybris 2019-12-10 13:57:32 -05:00
Samuel Dionne-Riel
87c5c4793c libhybris: Work around a failing test 2019-12-10 13:57:32 -05:00
Samuel Dionne-Riel
d004fb988a libhybris: Allow relying on legacy properties
This is used to get a slimmer libhybris for adbd for stage-1.

The previous behaviour (before 35976c201741cfc21c114615b8524db5367e034a)
was to rely on a "homegrown" system to get properties.

Starting with that new properties system, it will rely on the vendor
libraries, thus requiring all of them, plus the linker, to get
properties.

Turns out, adbd doesn't actively need anything from the vendor libraries
or from the actual propeties system.

So, it's fine to revert the change to get a working libhybris for
stage-1.

Though, what would be even better is to strip out only the minimum
requirements for adbd, and make a "mini hybris" that we can rely on for
adbd.
2019-12-10 00:13:51 -05:00
Samuel Dionne-Riel
49234e9c76 libhybris: 2018-06-18 -> 2019-12-02 2019-12-10 00:13:34 -05:00
Samuel Dionne-Riel
c390bbeb6b
Merge pull request #63 from samueldr-wip/feature/better-demo
Make the demo more useful on a touch device
2019-12-05 23:53:48 -05:00
Samuel Dionne-Riel
b228b71c75 examples/demo: Notifications should not be focusable 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
a570821f63 examples/demo: Enable bluetooth 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
a4bd557c28 examples/demo: mark some options as defaults 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
35aa825b02 examples/demo: tray max icon size fixup
Seems 96px won't work here.
2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
089aea3eef examples/demo: Add depthcharge output 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
34eebc95d6 examples/demo: select the appropriate X11 driver 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
07e6c358e3 examples/demo: Make menu touchable area bigger 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
2a6a65e018 examples/demo: Use Breeze 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
76229eaefb examples/demo: Enable unclutter 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
b2284877a9 examples/demo: grow partition 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
2218f29a22 examples/demo: Use a keyboard icon for onboard 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
0a49490cf0 examples/demo: Make onboard bigger by default 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
d94133c831 examples/demo: add a close window action on the panel 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
e4d35da464 examples/demo: add onboard to the bottom panel 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
1650f9ebba examples/demo: Add onboard keyboard 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
1b9d6f6b9a examples/demo: Rework configuration
The configuration, while still in a monolithic file, has been split by
topic.
2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
690a4e6c9d examples/demo: Use awesome wm 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
8b06ccdb72 examples/demo: pre-configure system demo...
Here's why xfce...

 * it has good pre-configuration systems.
 * it has sane configuration file format.
 * it's quick in non-accelerated setups.

Though, there are many drawbacks... It is *not* a mobile environment!

Better environments will be packaged down the road.
2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
6004298259 examples/demo: export vm attribute 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
80083a7689 artwork: Adds a wallpaper for the 19.09 era 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
2edfa09716
Merge pull request #64 from samueldr-wip/fix/motorola-addison
Reduce size of kernel for motorola-addison + fixups
2019-12-05 23:39:58 -05:00
Samuel Dionne-Riel
4811ac688f
Merge pull request #41 from kirelagin/stage-2-adb
Restart adb in stage-2
2019-12-04 19:35:19 -05:00
Samuel Dionne-Riel
4c11bf2c50 motorola-addison: Reduce size of the kernel
The patches added here are required to build under some conditions, but
not all are ended up needed as CONFIG_DEBUG_FS is required to be active
otherwise the kernel doesn't even boot :/

The kernel size was reduced by:

 * Removing tracing support
 * Removing unneeded exfat and sdcardfs filesystems
 * Removing all sound support
 * Removing video input (camera) support

The latter options seem awfully shortsighted, until you remember that a goal is
to eventually deal with booting our own kernels through kexec.

The Moto Z Play device's boot partition size is putting us in a hard
spot.
2019-12-04 17:39:46 -05:00
Samuel Dionne-Riel
2ab4dac55f motorola-addison: Add partitions information 2019-12-04 17:29:00 -05:00
Samuel Dionne-Riel
ef09e30679 motorola-addison: Remove console= argument
Ah! It looks like this is not a constant, but a common failure mode
among android-based devices!

In dmesg:

```
Warning: unable to open an initial console.
```

Simply removing the `console=` fixes the console.

See f295dc1739 for a similar instance of
the issue.
2019-12-04 17:29:00 -05:00
Samuel Dionne-Riel
2bf8158f3a
Merge pull request #58 from samueldr-wip/feature/initrd-fail
Add failure reporting to initrd
2019-12-04 17:18:27 -05:00
Samuel Dionne-Riel
3fdb51a194
Merge pull request #59 from samueldr-wip/feature/qemu-device
Enhance QEMU device
2019-12-04 17:18:00 -05:00
Samuel Dionne-Riel
ead09930ea qemu-x86_64: use absolute input + mon:stdio
mon:stdio is the magic incantation that makes CTRL+C not quit abruptly
the VM.
2019-12-04 17:16:09 -05:00
Samuel Dionne-Riel
d2d5edf1d9 qemu-x86_64: Increase RAM to 2GiB 2019-12-04 17:16:09 -05:00
Samuel Dionne-Riel
8dbfb72759 qemu-x86_64: Adds missing modules to initrd
No modules are part of the closure, for now...
2019-12-04 17:16:09 -05:00
Samuel Dionne-Riel
00c7d73781 qemu-x86_64: Use a 1080p vertical display 2019-12-04 17:16:09 -05:00
Samuel Dionne-Riel
31902140cf seabios: build vgabios for qemu use, with custom resolution 2019-12-04 17:16:09 -05:00
Samuel Dionne-Riel
0d21d694f6
Merge pull request #61 from samueldr-wip/feature/grow-rootfs
Allow rootfs to expand to the backing partition
2019-12-04 16:56:01 -05:00
Samuel Dionne-Riel
d3dbaab465
Merge pull request #60 from samueldr-wip/fix/use-lightdm
demo: Rely on lightdm now that SLiM is gone
2019-12-04 16:46:44 -05:00
Samuel Dionne-Riel
e1f0fdaeb3
Merge pull request #28 from NixOS/xiaomi-lavender
device: add xiaomi-lavender
2019-12-03 20:41:19 -05:00
Samuel Dionne-Riel
2da063466f xiaomi-lavender: Add useful notes 2019-12-03 20:37:47 -05:00
Samuel Dionne-Riel
f295dc1739 xiaomi-lavender: Remove console= argument
This broke things subtly in the initrd.

The argument came from an OEM image. It might not affect Android images,
but it affects our setup.

It looks like it breaks console redirection and such things. This, in
turn, breaks systemd-udevd, aborting with the following:

```
close_nointr(fd) != -EBADF' failed at src/basic/fd-util.c:71, function safe_close(). Aborting
```

In turn, what tipped me off is this dmesg message:

```
Warning: unable to open an initial console.
```

Though there is no certainty it is related.
2019-12-03 20:37:47 -05:00