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

128 Commits

Author SHA1 Message Date
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
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
Samuel Dionne-Riel
6198805861
Merge pull request #47 from lheckemann/tissot-cleanup
Add support for xiaomi-tissot
2019-11-23 12:33:35 -05:00
Linus Heckemann
97d3690b27 tissot: enable USB RTL network drivers 2019-11-21 20:56:49 +01:00
Linus Heckemann
6537a5e898 tissot: fix colours
Patch copied from motorola-addison
2019-11-21 19:49:02 +01:00
Linus Heckemann
ee722a7b1d tissot: enable namespaces for sandbox 2019-11-21 19:49:02 +01:00
Linus Heckemann
25ab9e3247 devices/xiaomi-tissot: init
Kernel patch is copied from xiaomi-lavender.
2019-11-21 19:49:02 +01:00
Samuel Dionne-Riel
bcc0f77156
Merge pull request #50 from samueldr-wip/devices/google-walleye
device: Google Pixel 2 (non-XL) // google-walleye
2019-11-19 14:08:56 -05:00
Daniel Fullmer
cbaa708ea3 google-marlin: Add device configuration 2019-11-18 23:45:13 -05:00
Daniel Fullmer
c9cc88c7e2 google-marlin: Add kernel 2019-11-18 23:45:07 -05:00
Samuel Dionne-Riel
0ad7247a53
Merge pull request #37 from samueldr-wip/device/asus-z00t-userns
asus-z00t: Enable USER_NS
2019-11-18 21:42:15 -05:00
Samuel Dionne-Riel
766b168dbe google-walleye: kernel: 4.4.195 -> 4.4.201 2019-11-18 21:18:24 -05:00
Samuel Dionne-Riel
4c54a7c76d google-walleye: Enable CONFIG_VT
And related options.
2019-11-18 21:18:24 -05:00
Samuel Dionne-Riel
3ebc6b46da google-walleye: Fix CONFIG_VT 2019-11-18 21:18:24 -05:00
Samuel Dionne-Riel
5116490a22 google-walleye: Inits kernel at 4.4.195
The kernel build is technically the same as google-taimen, with some
options switched around. An upcoming improvement will be to share the
"wahoo" platform's kernel build with an option to switch between the
two at build time, and further along the line, with modular kernels,
sharing the same exact builds, but with the device-specifics as modules.
2019-11-18 21:18:24 -05:00
Samuel Dionne-Riel
49d13b3a5a google-walleye: init device 2019-11-18 21:18:24 -05:00
Samuel Dionne-Riel
b83eafa2b7 qemu-x86_64: Add missing mobile.device.info.name attribute 2019-11-15 22:01:09 -05:00
Samuel Dionne-Riel
0f648ef834 asus-flo: import data from postmarketOS-devices.json 2019-11-07 17:23:33 -05:00
Samuel Dionne-Riel
3ad5496ad1 asus-z00t: import data from postmarketOS-devices.json 2019-11-07 17:23:33 -05:00