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
Samuel Dionne-Riel
ec34370450
motorola-addison: Sync config.aarch64
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
672ae44cb6
motorola-addison: Adds hybrid build...
...
By overriding the system.platform attribute, motorola-addison can be
built for armv7l.
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
eefad16870
motorola-addison: use kernel builder
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
ed82df0e29
asus-flo: misc.
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
aea6ca0627
asus-z00t: fix build
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
25c4ea6d0b
asus-flo: normalize kernel config
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
7446f778a5
asus-flo: (wip) build bootimg only
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
145c42156c
asus-flo: Reviews kernel build
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
3552355eb4
asus-z00t: normalizes kernel config
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
e5f3d1ea51
asus-z00t: use of kernel-builder
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
2a4bc7fa6a
Fixes bootimg builds for the existing qcdt devices
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
383f6ff71a
asus-flo: kernel: Fixes build for stage-2 cross-compile.
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
c7069ac2fb
WIP: system.img generation.
2019-06-09 22:16:43 -04:00
Samuel Dionne-Riel
9d703de07e
Fixes cross-compilation issues...
...
Though not in a nice manner, I'd like to know why I have to fiddle with
`system`.
2018-11-18 21:45:01 -05:00
Samuel Dionne-Riel
f5b77929c8
WIP motorola-addison: use lineageos tree...
...
... the real reason is that I need to figure out why the sd card isn't
detected. Figured that trying a less "random" tree could help figure
things out, though it doesn't help.
At least, the build seems consistent with either versions.
The config changes are also to try to "fix" things, while in reality
they don't seem to do anything useful.
2018-11-18 21:36:01 -05:00
Samuel Dionne-Riel
5624723bab
Adds motorola-addison device.
2018-11-17 18:25:49 -05:00
Samuel Dionne-Riel
1ed9e63ab1
z00t: enables /proc/config.gz
2018-11-05 22:50:59 -05:00
Samuel Dionne-Riel
62164cc048
WIP: kernel config is getting old... might need to migrate stuff!
...
The kernel infra is being updated for newer kernels. I may need to keep
track locally of older kernel build infras, or something :(.
2018-11-05 21:11:47 -05:00
Samuel Dionne-Riel
a522e256d3
WIP: cross building changed upstream...
...
... and now the little I understood doesn't work.
2018-11-05 20:51:27 -05:00
Samuel Dionne-Riel
a4cbf37699
Updates qemu-x86_64 to use the latest LTS kernel.
2018-11-05 20:34:52 -05:00
Samuel Dionne-Riel
b5fe8b8807
doc: Adds initial blurb about partitions.
2018-07-10 19:23:13 -04:00
Samuel Dionne-Riel
fc66877f68
Fixes asus-z00t kernel build...
...
Damn it, didn't change sha256sum !
2018-07-08 22:01:37 -04:00
Samuel Dionne-Riel
931daa8404
Revert "asus-z00t: Adds kernel patch to *not* clear framebuffers on release."
...
This reverts commit 6712957ab1
.
2018-07-06 19:52:45 -04:00
Samuel Dionne-Riel
6712957ab1
asus-z00t: Adds kernel patch to *not* clear framebuffers on release.
...
This tackles an annoying issue where framebuffer will be cleaned and the
display turned off when all handles to it are closed.
2018-07-06 19:13:42 -04:00
Samuel Dionne-Riel
c40156c163
asus-z00t: Adds a patch that backports mdss_fb
changes from another kernel.
...
Those changes may change nothing with what I'm trying to accomplish...
Though they will make a full backport easier to handle as I now have
isolated upstream changes from device-specific changes.
2018-07-06 18:30:06 -04:00
Samuel Dionne-Riel
350ca1b90a
asus-*: fixes framebuffer patches...
...
The parameters were wrong for BGRA.
asus-flo had mismatched field positions.
Both devices had one offset two bits wrongly positioned.
Hope nobody sees this, ever...
2018-07-05 00:48:35 -04:00
Samuel Dionne-Riel
ca8b4900dc
asus-z00t: Handles BGRA through kernel patch.
...
Let's hope all devices can be fixed by fixing their device driver
instead of doing other unsightly hacks.
2018-07-04 23:40:35 -04:00
Samuel Dionne-Riel
08d1b812de
asus-flo: Adds framebuffer patch to use BGRA.
...
I don't know what ill effects this may cause.
This makes the framebuffer aware of how it should be BGRA instead of
RGBA.
2018-07-04 21:02:52 -04:00
Samuel Dionne-Riel
ff6acd2be2
asus-flo: Removes fb.modes
as it doesn't work anyway.
2018-07-03 23:51:24 -04:00
Samuel Dionne-Riel
a7708a3f0c
asus-z00t: Now outputs kernel as vmlinuz
...
Decided to use that name for the finally-used kernel.
2018-07-01 17:58:06 -04:00
Samuel Dionne-Riel
1f0e57a195
asus-z00t: removes accidentally leftover package.
2018-07-01 17:57:44 -04:00
Samuel Dionne-Riel
a5b9e275ed
Adds asus-flo
with lineageos kernel
...
Current issues:
* Framebuffer colors are wrong. (RGBA → BGRA)
2018-07-01 17:42:33 -04:00
Samuel Dionne-Riel
242bb764b0
Moves platforms definition in more generic hardware definitions.
2018-06-26 22:07:46 -04:00
Samuel Dionne-Riel
04a59a0aed
Adds mobile.system.platform
2018-06-26 21:52:09 -04:00
Samuel Dionne-Riel
d688408b6d
Removes dead code...
...
I can find it elsewhere anyway.
2018-06-25 15:54:26 -04:00
Samuel Dionne-Riel
f13735a9c1
WIP : asus-z00t's gcc6 is buildPackages.gcc6
2018-06-25 15:54:09 -04:00
Samuel Dionne-Riel
ccebd0e548
qemu-x86_64: Adds more kernel modules.
2018-06-23 18:47:00 -04:00
Samuel Dionne-Riel
a30bbfaf02
qemu-x86_64: Adds minimally required modules.
2018-06-23 17:46:06 -04:00
Samuel Dionne-Riel
0a1b75d91c
qemu-x86_64: splash enables/disables features from configuration.
...
Useful with local.nix.
2018-06-18 22:23:15 -04:00
Samuel Dionne-Riel
809c3f37a6
qemu-x86_64: refactors splash into a variable...
...
To allow playing around.
2018-06-18 22:13:57 -04:00
Samuel Dionne-Riel
334185ea21
qemu-x86_64: use a smaller VT by default.
2018-06-18 21:50:10 -04:00
Samuel Dionne-Riel
64d4e5a604
qemu-x86_64: default to no splash (for now)
2018-06-18 21:49:35 -04:00
Samuel Dionne-Riel
6095b623f6
Adds qemu-x86_64 device.
...
Network doesn't work :/
2018-06-17 20:55:34 -04:00
Samuel Dionne-Riel
982a705dc2
Removes dead code.
2018-06-17 18:53:34 +00:00
Samuel Dionne-Riel
707d62ab81
WIP fixes framebuffer modes.
2018-06-17 00:56:44 +00:00
Samuel Dionne-Riel
a3a4a44704
WIP progress with configuration system.
...
Regression: fb.modes isn't copied anymore
2018-06-17 00:43:19 +00:00
Samuel Dionne-Riel
844313903e
WIP Migrates device configuration into the options system.
2018-06-16 23:21:41 +00:00
Samuel Dionne-Riel
67926d02ca
Tries looking at how "quirks" could exist.
...
This may, instead, need the configuration system from nixos, where
lib.mkForce, lib.mkDefault and friends would make more sense here.
2018-06-13 02:07:26 +00:00
Samuel Dionne-Riel
adc28af2a5
Makes kernel part of the device description.
2018-06-13 02:06:24 +00:00
Samuel Dionne-Riel
9f4453a4d2
Reviews start of init script.
2018-06-13 01:47:00 +00:00
Samuel Dionne-Riel
6fcd7a09e0
Makes rootfs configuratble by device_config...
...
This is a WIP, but this already should allow device-specific fb.modes
2018-06-12 23:14:55 +00:00
Samuel Dionne-Riel
e56da86a90
rootfs: Use fbset when possible to set a specific mode.
2018-06-12 03:11:22 +00:00
Samuel Dionne-Riel
d6f632d427
Adds my development device.
2018-06-10 12:51:59 -04:00
Samuel Dionne-Riel
9cb4255117
Ugh, use my feature branch.
2018-06-10 12:51:50 -04:00
Samuel Dionne-Riel
7df88ae56d
Actually import data.
2018-06-10 12:49:17 -04:00
Samuel Dionne-Riel
6fe9d78c52
Actually write data.
2018-06-10 12:49:11 -04:00
Samuel Dionne-Riel
246de0741b
Imports devices description...
...
From personal fork including a yet non-upstreamed device.
2018-06-10 12:43:19 -04:00
Samuel Dionne-Riel
a5fea374b1
Adds tooling necessary to gather up device information automatically.
2018-06-10 12:40:32 -04:00