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

1483 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
b930fca01b asus-dumo: Add kernel patches for gadget mode
Except for one, they are all "complete" patches.

The WIP patch is only WIP because it is extremely specific to the Gru
platform.
2021-01-30 22:52:10 -05:00
Samuel Dionne-Riel
e7d6ca0fea asus-dumo: Basic configuration for USB gadget mode 2021-01-30 22:51:52 -05:00
Samuel Dionne-Riel
9bd23165a3 asus-dumo: Configure kernel for gadget mode 2021-01-30 22:51:36 -05:00
Samuel Dionne-Riel
6dfa19f5ff asus-dumo: kernel 5.8 -> 5.10 2021-01-30 22:15:12 -05:00
Samuel Dionne-Riel
beb1d74612 asus-dumo: workaround sbs-battery driver crashing udev
By not having a battery driver :/
2021-01-30 21:46:57 -05:00
Samuel Dionne-Riel
7e387a2529 asus-dumo: Normalize config for kernel 5.10 2021-01-30 21:24:36 -05:00
Samuel Dionne-Riel
9cc2b0ac5f
Merge pull request #290 from samueldr-wip/feature/gadgetfs-adb
Enable ADB with GadgetFS devices
2021-01-30 21:16:43 -05:00
Samuel Dionne-Riel
9fbcf888a7
Merge pull request #289 from samueldr-wip/device/oneplus-oneplus3/qcacld-2.0
oneplus-oneplus3: Enable Wi-Fi
2021-01-28 20:04:33 -05:00
Samuel Dionne-Riel
6baec7a910 pine64-pinephone: Enable ADB support 2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
d062d8174e xiaomi-lavender: Enable ADB support 2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
357496703a xiaomi-begonia: Enable ADB support 2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
a5f549ae1c sony-pioneer: Enable ADB support 2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
cb67619097 razer-cheryl2: Enable ADB support 2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
594c8eb7dd motorola-surfna: Enable ADB support 2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
363f59a279 google-walleye: Enable ADB support 2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
c2d948ed80 examples/target-disk-mode: Try to enable ADB
Also warn if it could not be enabled.
2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
9d93f32eeb examples/hello: Try to enable ADB
Also warn if it could not be enabled.
2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
a96c2b845c boot/init: Add support for FunctionFS on GadgetFS
FunctionFS on GadgetFS requires this to happen in order:

 - (1) preparing the gadget
 - (2) preparing the function
 - (3) mounting the functionfs
 - (4) starting the daemon
 - (5) enabling the device

Doing any of these steps in the wrong order *will* fail. You cannot
mount functionfs if the function name hasn't been allocated yet. You
cannot start the daemon without functionfs being mounted. You cannot
enable the device without the daemon running on the USB endpoints.

This is why the GadgetFS stuff here *has* to know about mounting the
filesystem and starting the daemon.

In fact, the generic library to be written to handle USB gadget mode
**will** have to have that knowledge!

The added TODOs are to be done when extracting as a standalone library.
2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
6f6940226a modules/adb: ADB works just fine on any usb gadget
(Though it may require fiddling with udev perms)
2021-01-27 22:16:55 -05:00
Samuel Dionne-Riel
4d7bd722a6 modules/adb: Decouple implementation details
The service and mount points are more of an implementation detail of the
GadgetFS handling library and not an implementation detail of the init
library.

In turn, this means that we are decoupling this from the init, follow-up
on the next commit...
2021-01-27 19:09:07 -05:00
Samuel Dionne-Riel
76b5e79ca5 boot/init: Add System.umount() 2021-01-27 19:09:07 -05:00
Samuel Dionne-Riel
5ba41dd963 boot/init: Fix shellOnFail
- It was running too late.
 - Wasn't actually using `shellOnFail` config
2021-01-27 19:09:07 -05:00
Samuel Dionne-Riel
3db7018ea0 oneplus-oneplus3: Add firmware note to device notes 2021-01-27 01:52:52 -05:00
Samuel Dionne-Riel
d9a63ee507 oneplus-oneplus3: Expose usage of qcacld 2021-01-27 01:51:14 -05:00
Samuel Dionne-Riel
ffd7deeac3 oneplus-oneplus3: Add firmware package 2021-01-27 01:51:14 -05:00
Samuel Dionne-Riel
9bb3ec0389 oneplus-oneplus3: Add qcacld-2.0 driver from LineageOS
The `als` build tree *seems* to imply they are re-using the pre-built
kernel modules from the vendor.

This is not something we really want to do.

The good thing is that LineageOS adds the required drivers to their
trees. We can re-use it!
2021-01-26 22:47:58 -05:00
Samuel Dionne-Riel
8b81739bac oneplus-oneplus3: Add QCACLD to the kernel build 2021-01-26 22:41:06 -05:00
Samuel Dionne-Riel
173ddba0e8
Merge pull request #285 from samueldr-wip/feature/lvgui-january-2021
boot: A few updates to LVGUI
2021-01-25 18:46:53 -05:00
Samuel Dionne-Riel
db56f5e960 examples/target-disk-mode: Simplify interface implementation
And also add notes when in simulator mode...
2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
c14352967e examples/target-disk-mode: Fix simulator build 2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
bb4d0c5a5a examples/hello: In simulator, collect garbage every render
This does help finding weirdness in things being collected when they
shouldn't
2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
8cba428242 examples/hello: Add select to LVGUI testing page 2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
f17c882cb6 examples/hello: Add UI testing page 2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
cb49e49b75 examples/hello: Simplify main window implementation 2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
a791631b33 examples/hello: Don't build with stage-0 support
Useless for this kind of system.
2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
33bc185ffd examples/hello: Don't start getty on tty1
It breaks the DRM-based app, and anyway was bad on the fbdev app
2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
1963b6ba86 examples/hello: Give information about the display driver
This way it's trivial to *check* what is actually running on the device.
2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
ba2873771d lvgui: 2020-11-20 -> 2021-01-23 2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
7a0f906571 boot/lib/lvgui: Add add_select helper 2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
919e1b2ab1 boot/lib/lvgui: Better explain event handler in impl. 2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
0f0625d359 boot/lib/lvgui: Add option selector
A bit like a "drop down" select
2021-01-25 18:40:54 -05:00
Samuel Dionne-Riel
6d85c00ce0 boot/lib/lvgui: Add a debug styles helper
This way it's easy to just colour an element when visualizing its
metrics.
2021-01-25 18:40:50 -05:00
Samuel Dionne-Riel
562c8ab081 boot/lib/lvgui: Add HorizontalSeparator 2021-01-25 18:40:50 -05:00
Samuel Dionne-Riel
8d4a660526 boot/lib/lvgui: Use dummy object in base window 2021-01-25 18:40:50 -05:00
Samuel Dionne-Riel
e23870f2af boot/lib/lvgui: Add a dummy object
It was found, through some debugging, that we were adding a
non-invisible dummy object for focus group handling. With this change
we have a common dummy object to use for this purpose.
2021-01-25 18:40:50 -05:00
Samuel Dionne-Riel
1b8e5f2844 boot/lib/lvgui: Focus stack push/pop also works for event handlers 2021-01-25 18:40:50 -05:00
Samuel Dionne-Riel
029938e6f1 boot/lib/lvgui: Add focus group "stacks"
This probably should not have been added straight onto LVGL bindings,
but that's where they're the easiest to implement safely.

This allows a widget to take control of the focus group, while allowing
the previous content to be re-added properly.
2021-01-25 18:40:50 -05:00
Samuel Dionne-Riel
2c06866f2e boot/lib/lvgui: Add accessors for built-in layers 2021-01-25 18:40:50 -05:00
Samuel Dionne-Riel
c4eb57f4cf boot/lib/lvgui: Bind color maths helper 2021-01-25 18:40:50 -05:00
Samuel Dionne-Riel
0c4b3e9580 boot/lib/lvgui: Bind more for scrollable pages 2021-01-25 18:40:50 -05:00