Samuel Dionne-Riel
8d3ed2bf9f
google-marlin: Fix kernel builder call for boot.kernelPackages
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
7fb156c39f
asus-z00t: Fix kernel builder call for boot.kernelPackages
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
5a536ac414
asus-x018d: Fix kernel builder call for boot.kernelPackages
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
c1273fd423
asus-flo: Fix kernel builder call for boot.kernelPackages
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
5fc0e837a1
asus-dumo: Fix kernel builder call for boot.kernelPackages
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
cc77670be1
modules: Remove kernel nixos-disintegration
...
The solution is, ugh, to add `...` to allow additional params on kernel
builder call derivations.
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
25b2d8fbba
modules/stage-0: Use composeConfig
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
84b7e5eead
modules/recovery: Use composeConfig
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
34b033330f
Replace evalConfig
with config.lib.mobile-nixos.composeConfig
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
b57495c363
release-tools: Remove _mobile-nixos.nixpkgsPath
...
`modulesPath` is enough for our needs.
2021-02-02 01:58:41 -05:00
Edward Amsden
c5a7112d9d
doc: Fix release-tools use
...
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Co-authored-by: Edward Amsden <edward@blackriversoft.com>
2021-02-02 01:58:41 -05:00
Edward Amsden
c507b39099
Make the package set a parameter instead of using <nixpkgs>
everywhere.
...
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Co-authored-by: Edward Amsden <edward@blackriversoft.com>
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
36724d443f
mruby-builder: Remove direct overlay access
...
Not needed.
2021-01-31 19:39:00 -05:00
Samuel Dionne-Riel
8d76ca2ed2
Merge pull request #292 from samueldr-wip/device/asus-dumo/usb-gadget
...
asus-dumo: Go go usb gadget mode
2021-01-30 23:18:39 -05:00
Samuel Dionne-Riel
cd2287be99
asus-dumo: Move MMC fixup task into a file
...
It shouldn't have been made inline from the beginning.
2021-01-30 23:07:57 -05:00
Samuel Dionne-Riel
3c7cc26ece
examples/target-disk-mode: Kill splash to free DRM context
2021-01-30 22:53:49 -05:00
Samuel Dionne-Riel
bd1217c993
asus-dumo: Add USB role switch task
...
This relies on one of the patches added to the build.
2021-01-30 22:53:19 -05:00
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