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

108 Commits

Author SHA1 Message Date
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
Samuel Dionne-Riel
8a41ff879b qemu-x86_64: import data from postmarketOS-devices.json 2019-11-07 17:23:33 -05:00
Samuel Dionne-Riel
19d3e79bff Remove postmarketOS-devices.json
Anchoring ourselves to an external project, at this point, is not
feasible. This does not allow us to explore making better use of the
capabilities of nix.

Though, a mechanism using third-party resources, like the postmarketOS
device information, is something that is desirable. The difference is
that it would need to *import* the information in the format used by
mobile-nixos, rather than mobile-nixos importing the information from a
"data dump".
2019-11-07 17:23:33 -05:00
Samuel Dionne-Riel
fb79113a00 asus-z00t: Fixes compilation with USER_NS
This is dumb... These are all android/google/qualcomm/asus "features"
added to the kernel with no concern about actually being compatible
with the kernel. They all assume no USER_NS stuff.

Fun!
2019-10-09 22:12:48 -04:00
Samuel Dionne-Riel
0b875aa152 asus-z00t: Enable USER_NS 2019-10-09 22:12:48 -04:00
Samuel Dionne-Riel
ff5de40077 asus-z00t: update kernel to latest lineageos revision 2019-10-09 22:12:48 -04:00
Samuel Dionne-Riel
aa4ab0ce0e oneplus-oneplus3: normalize config 2019-10-08 00:33:26 -04:00
Samuel Dionne-Riel
c4fd6fda1a oneplus-oneplus3: Enable USER_NS 2019-10-08 00:33:13 -04:00
Samuel Dionne-Riel
af62d74a3b oneplus-oneplus3: workaround bug with touchscreen
libinput, which I believe, claims there is a kernel bug with the
synaptics driver touchscreen in use.

This is the recommended fix according to PostmarketOS.

 * https://wiki.postmarketos.org/wiki/Troubleshooting:touchscreen#sec_touchscreen:_kernel_bug

I have not seen any issues from using this fix.

The error:

```
synaptics: kernel bug: device has min == max on ABS_MT_WIDTH_MAJOR
```

According to the touchscreen documentation of the kernel, I don't think
that it is an issue to remove this information from touch events.
2019-10-05 01:07:55 -04:00
Samuel Dionne-Riel
8d91d348e6 oneplus-oneplus3: Imports input driver changes from lineageos 2019-10-05 01:07:55 -04:00
Samuel Dionne-Riel
f3af08488b oneplus-oneplus3: add kernel 2019-10-05 01:07:55 -04:00
Samuel Dionne-Riel
acb8d53880 oneplus-oneplus3: Add partitions information 2019-10-05 01:07:55 -04:00
Samuel Dionne-Riel
86045db587 oneplus-oneplus3: Add device information 2019-10-05 01:07:55 -04:00
Samuel Dionne-Riel
8804cb6dbc asus-dumo: defaults to hidden vt caret...
This is a "temporary" measure. I intend to move this to an option
(defaulting to true) that would add to the kernel cmdline.
2019-09-23 00:03:55 -04:00
Samuel Dionne-Riel
7f53a18b07 asus-dumo: Enable touchscreen input
The pen input already was enabled.
2019-09-22 23:41:30 -04:00
Samuel Dionne-Riel
4ed7c58e40 asus-dumo: Adds required config for wifi 2019-09-22 21:52:29 -04:00
Samuel Dionne-Riel
828b1619f9 asus-z00t: fixes build
See https://github.com/NixOS/nixpkgs/issues/64916
2019-09-21 22:43:39 -04:00
Samuel Dionne-Riel
8c8d48c7c7 devices: Renames system type to android
Crossing fingers that this'll be enough.
2019-09-21 22:42:41 -04:00
Samuel Dionne-Riel
c1acf97334 system-target: reviews implementation
Since the initial implementation I learned enough to know where it was
slighly wrong. I think this fixes most of the slight wrongness.
2019-09-19 15:31:26 -04:00
Samuel Dionne-Riel
7adda4a8d5 asus-dumo: Uses the mainline kernel with a hack 2019-09-18 15:40:01 -04:00
Samuel Dionne-Riel
b7f945aa69 asus-dumo: Adds ASUS Chromebook Tablet CT100PA 2019-09-18 15:40:01 -04:00