1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
Commit Graph

342 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
af8260e632
Merge pull request #356 from lheckemann/btrfs
imageBuilder: add btrfs support
2021-06-18 17:45:19 -04:00
Linus Heckemann
10000edcda imageBuilder: add btrfs support 2021-05-21 17:45:32 +02:00
Pacman99
27683f2d52 module/lib: try to pass specialArgs to eval 2021-05-06 16:30:46 -07:00
Samuel Dionne-Riel
b07dc19062 cross-workarounds: Don't apply overlay on pkgsBuildBuild
As described near the change, this would cause qemu to become an overly
costly build.
2021-03-07 17:52:04 -05:00
Samuel Dionne-Riel
280d872897 make-flashable-zip: Add to overlay
There is no reason to stow this in the system-type module. Other than
making it harder for external uses.
2021-02-28 15:53:12 -05:00
Samuel Dionne-Riel
3941294673 system-types/android: Review default output name
`android-device` was a poor name choice. Especially now that we have
flashable zips, which are equally as usable as fastboot-flashable
outputs.
2021-02-28 15:53:12 -05:00
Samuel Dionne-Riel
d17e09c075 system-types/android: Review config and flashing scripts 2021-02-28 15:53:12 -05:00
Samuel Dionne-Riel
3980354c21 system-types/android: Update documentation 2021-02-28 15:53:12 -05:00
Samuel Dionne-Riel
939dd6e9dc android-flashable-zip-binaries: Always build static 2021-02-28 15:53:12 -05:00
Samuel Dionne-Riel
0b15ab04cf system-types/android: Add flashable zips 2021-02-28 15:53:12 -05:00
Samuel Dionne-Riel
98e2ab907f
Merge pull request #305 from samueldr-wip/feature/lvgui-pan
lvgui: "pan" framebuffers
2021-02-23 20:59:51 -05:00
Samuel Dionne-Riel
90167b0b64 cross-workarounds: Work around libselinux dependency issue
It fails with:

```
/nix/store/m7080pw0ryjk0jhljp55rq1hd2qy8gki-python3-3.8.6/include/python3.8/pyport.h:726:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  726 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

[...]

builder for '/nix/store/cdysjc47jc4z49r25xzwf2sazqd4w4rg-libselinux-3.0-armv7l-unknown-linux-gnueabihf.drv' failed with exit code 2
```
2021-02-20 17:23:01 -05:00
Samuel Dionne-Riel
e5ca35f45e quirks/framebuffer: fb-refresher is enabled separately for stage-1/0 2021-02-20 16:41:23 -05:00
Samuel Dionne-Riel
62297b2e10
Merge pull request #300 from samueldr-wip/feature/stage-0-finishing-touches
Finish stage-0 boot features
2021-02-15 16:19:44 -05:00
Samuel Dionne-Riel
34ad416e77 stage-1/usb-gadget: Fix error message error
`#constantize` does not exist on `String`.

This would only have been an issue in the improbable cause that a daemon
is not configured for an FFS gadget.
2021-02-11 19:52:38 -05:00
Samuel Dionne-Riel
ff73bb6ccf stage-0: Allow adding nodes and props to forward 2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
3014bcb858 stage-0: Add fdt-forward 2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
c81e858ea5 initrd: Add kexectool in stage-0 module 2021-02-11 18:15:34 -05:00
Samuel Dionne-Riel
c85712a663 system-build: Add DTB mapping 2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
826315aa11 system-build: Init module adding details to toplevel
For now, device-name... but see following commit.
2021-02-11 18:14:30 -05:00
Samuel Dionne-Riel
ed93aa4678 modules/initrd-kernel: Fix mocked kernelPackages
.ci/instantiate-all.nix wouldn't pass otherwise.
2021-02-02 05:37:31 -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
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
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
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
10fc8bc0bb initrd-shell: Fix job control 2021-01-24 23:38:05 -05:00
Samuel Dionne-Riel
3a48ed5fa1 quirks/wifi: Add quirk to disable MAC address randomization 2021-01-10 21:08:09 -05:00
Samuel Dionne-Riel
62d00f17fc system-types/android: Add odin-specific device-notes fragment 2021-01-09 19:23:21 -05:00
Samuel Dionne-Riel
7381c783a7 system-types/android: Rename fastboot device notes fragment 2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
2b674af725 system-types/android: Choose the appropriate device-notes fragment 2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
f5fbeb1b76 system-types/uefi: Add device-notes fragment 2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
7a4ddb41ff system-types/u-boot: Add device-notes fragment 2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
ec7a2d120d devices-metadata: Export documentation config
Since *anyway* this is mainly intended to be consuemd by the
documentation.
2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
8d2af65cc4 modules/documentation: Init 2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
1a083f8b3e system-types/android: Output different instructions for Odin 2021-01-09 19:22:32 -05:00
Samuel Dionne-Riel
ea684466e5 system-types/android: Allow defining flashing method 2021-01-09 19:22:32 -05:00
Samuel Dionne-Riel
5b81f1d6dd android: Use Exynos dt.img for android bootimg 2021-01-09 16:26:28 -05:00
Samuel Dionne-Riel
6bc8e35681 quirks: Add exynos fb "notify" quirk
Used to "toggle" the framebuffer so the driver starts rendering.
2021-01-09 16:26:28 -05:00
Samuel Dionne-Riel
205d1bbfca exynos: Add Exynos 7880 2021-01-09 16:24:32 -05:00
Samuel Dionne-Riel
179d8b1b70 stage-1/usb-gadget: Add mass storage usb gadget support 2021-01-03 23:08:24 -05:00
Samuel Dionne-Riel
61c6776cb8 stage-1/usb-gadget: Quirk is aware of its path
This will be used for quirks that needs to know where to write more
configuration.
2021-01-03 23:08:24 -05:00
Samuel Dionne-Riel
10c1ccece2 stage-1/usb-gadget: Implement gadgetfs teardown
This way on kexec the device is in a better state, and the kernel that
boots next is able to use the controller.

This was verified to fix an issue with kexec+gadget on the Chuwi Hi10
Pro HQ64 tablet.
2021-01-03 20:23:44 -05:00
Samuel Dionne-Riel
3487b77503 fix build failure by providing kernel filename to internal NixOS option
The update from 29a10085f3 caused the
uncompressed kernel to not be installed anymore into the kernel output.

This meant that building the top-level argument failed as a file assumed
to exist wasn't there anymore.

We now provide the appropriate filename when we know it.
2020-12-31 16:21:38 -05:00
Samuel Dionne-Riel
7fe40c1817 system-types/uefi: VM outputs logs on serial 2020-12-29 19:22:43 -05:00