Project

General

Profile

Upstream » History » Version 6

Denis 'GNUtoo' Carikli, 02/21/2018 12:01 AM

1 1 Denis 'GNUtoo' Carikli
h1. Mainline
2
3 3 Denis 'GNUtoo' Carikli
h2. Benefits of using mainline Linux
4 2 Denis 'GNUtoo' Carikli
5
Currently, Replicant uses device specific Hardware Abstraction Layers, because device manufacturers implemented non-standard kernel interfaces. However, Android works with mainline kernels and supports plug-n-play hardware nowadays, so it makes sense to have generic Hardware Abstraction Layers for the standard interfaces of the Linux kernel (ALSA, V4L2, etc).
6
7
Benefits:
8
* It would allow supporting external WiFi dongles such as the ones supported by the ath9k_htc driver and free firmwares without the need for a specific application or configuration.
9
* It would make devices last longer by alleviating the device specific maintenance burden: If LineageOS stops supporting a Replicant supported device, Replicant would need to maintain it by its own. This would require a lot of work, unless the device is already supported the mainline Linux kernel and generic hardware abstractions layers. This would enable Replicant to support devices that are not currently supported by LineageOS.
10
* It would enable the support for devices that are or will be added to mainline Linux.
11
12
h2. Requirements
13
14
* Adding a generic WiFi HAL for external dongles only requires a device that is supported by Replicant, and that can provide enough power for the dongle.
15
* For the other standard interfaces (like ASLA, etc) a device running a mainline Linux Kenrel with as few patches as possible is required.
16
17 4 Denis 'GNUtoo' Carikli
h2. Devices
18
19 5 Denis 'GNUtoo' Carikli
It is best to use a device that requires the least amount of work to be functional under Replicant.
20
More precisely we want to minimize:
21
* The work needed to have the device usable with mainline Linux.
22
* The work porting or writing Android hardware abstractions layers.
23
24
To achieve that we can choose a device that:
25
* requires no or very minimal work to be fully supported by Linux.
26
* have less hardware features (so we don't need to support them in Linux and in the HALs).
27
* is easy to buy, so the work can be shared among multiple people.
28
29 6 Denis 'GNUtoo' Carikli
It is also a good idea to keep one image per device, as trying to make a single image that
30
would work on all ARM device supported by mainline Linux is complicated: Even ARM GNU/Linux
31
distributions still have some issues with that.
32
33 4 Denis 'GNUtoo' Carikli
h3. Smartphones and tablets with a free software bootloader and work in progress mainline Linux support
34
35
h3. Replicant supported Samsung Exynos devices
36
37
h3. Allwinner devices
38 1 Denis 'GNUtoo' Carikli
39
h2. See also
40
41
* [[Google Summer of Code 2018]]