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

145 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
07a92043eb xiaomi-lavender: Describe it uses a discrete recovery partition 2020-03-02 14:02:05 -05:00
Samuel Dionne-Riel
a4a22e521b asus-dumo: review kernel command line 2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
100e1d7458 qemu-x86_64: review kernel command line 2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
a208267763 xiaomi-lavender: configure boot_as_recovery 2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
b89ece26f5 google-walleye: configure boot_as_recovery 2020-02-29 16:10:00 -05:00
Samuel Dionne-Riel
8ee49d935d
Merge pull request #66 from samueldr-wip/feature/new-init
Completely bespoke stage-1 init, shell-free
2020-02-03 22:44:23 -05:00
Samuel Dionne-Riel
06dbca4706 xiaomi-tissot: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
c02373d322 xiaomi-lavender: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
54f8799520 oneplus-oneplus3: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
9542050705 motorola-addison: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:22 -05:00
Samuel Dionne-Riel
1c87211c89 google-walleye: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
3394658150 google-marlin: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
aaf540011b asus-z00t: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
6c3cfccf16 asus-flo: Enable CONFIG_DEVPTS_MULTIPLE_INSTANCES 2020-02-03 21:58:21 -05:00
Samuel Dionne-Riel
bcda887e7a initrd-usb: ffs -> adb for ADB
It looks like it didn't matter for some device, but may be an issue for
`google-marlin`.

I'm not sure where the `ffs` feature name came from.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
e032363fc5 qemu-x86_64: remove dependency on initrd-order 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
12918e0f58 initrd: Remove logger module
This, anyway, needs to be re-thought entirely with the new init.
2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
7fb0f1846a asus-dumo: kernel 5.3.0 -> 5.5.0
With a less intrusive patch.

I'm thinking that the hs400 values for other gru devices are statistical
outliers, since most rk3399 platform seem to use hs200 for this.
2020-02-03 15:26:24 -05:00
Samuel Dionne-Riel
37863126cd xiaomi-lavender: Specify gadgetfs 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
c25f89051c xiaomi-lavender: Document required USB configurations. 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
dc91d1bca7 oneplus-oneplus3: Document USB settings 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
c0497d2d84 motorola-addison: Document USB settings 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
ba1a8e2469 motorola-addison: Re-enable disabled modules to fix usb gadget
The android_usb driver somehow doesn't fail to build even though those
drivers are required to be enabled for the driver to work. Sigh.
2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
0b39a66569 google-walleye: Specify gadgetfs 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
5794555feb google-walleye: Create README with notes 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
84fe395240 google-walleye: Document vendor partition 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
4c893c62a0 google-walleye: Document gadgetfs function names 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
155e4b4471 google-walleye: Document use of A/B scheme 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
59b2d468e8 google-walleye: Set USB product/vendor IDs 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
c1e6d1333d google-walleye: kernel 4.4.201 => 4.4.208 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
3a50138d0b google-marlin: Configure USB mode and identifiers 2020-01-25 19:42:48 -05:00
Samuel Dionne-Riel
9f3d88f221 asus-z00t: Specify android_usb 2020-01-25 19:02:52 -05:00
Samuel Dionne-Riel
dc09f07063 asus-z00t: Document USB identifiers 2020-01-25 19:02:52 -05:00
Samuel Dionne-Riel
a018c48329 asus-dumo: Add hack to rebind the SDHCI driver
This is better than simply relyin on a crash/reboot cycle.
2020-01-25 19:02:52 -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
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
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
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
Samuel Dionne-Riel
2b99b1d607 xiaomi-lavender: Enable USER_NS 2019-12-03 20:37:47 -05:00
Samuel Dionne-Riel
29f19019db xiaomi-lavender: Init the kernel 2019-12-03 20:37:47 -05:00
Samuel Dionne-Riel
18e392f1c9 xiaomi-lavender: Add the partition details 2019-12-03 20:37:07 -05:00
Samuel Dionne-Riel
c449acc344 xiaomi-lavender: Init the device 2019-12-03 20:37:00 -05:00
Daniel Fullmer
7f438bd45f google-marlin: Fix CONFIG_VT
Without this kernel patch to revert these commits, the kernel hangs
immediately with no serial port output.
2019-11-23 21:04:25 -05:00