1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 13:10:29 +03:00
Commit Graph

10 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
00f81fa95c boot/init: Handle hung tasks
The way we're handling them is to have a global timer that is reset at
any point a task is ran.

This gives a maximum amount of chances to any task to have its
dependencies resolve.

A minimum of 60s is given, but in reality the chances are the conditions
for trying to resolve were already present before the timeout started
counting towards that particular dependency.

Note that a long running task, when successfully ran, does not cause the
timeout to be reached.

E.g. at 10s of timeout a task is started, the loop is not executed until
the task exits. When it exits the branch followed is for a task that
ran, which means that even if the task took 70s total (which gives us 80
seconds) a timeout of 60s wouldn't apply here.

Though, please, don't make your tasks take that much time to run!
2020-11-07 20:13:31 -05:00
Samuel Dionne-Riel
0dc9f84afc kernel-builder: Work around kernels getting compiled two times
It looks like this is not a regression from the latest changes to the
kernel builder. Testing on top of ffdba8fecb
exhibits the same issue.

This change works around the issue by doing it with one invocation of
`make`, rather than doing it twice.

It has not been figured out at which exact version of the kernel this
stops being an issue, and if it is an issue from mainline Linux
outright, or something that came from Android-specific modifications.

Though it has been verified that for 3.18, both Qualcomm and Mediatek
source trees exhibit the same issue.

Fixes #216
2020-10-04 01:10:27 -04:00
Samuel Dionne-Riel
36a99a3711 doc: Add kernel-builder documentation 2020-10-02 20:43:44 -04:00
Samuel Dionne-Riel
fe9a6ad93e doc: Fix 404 in in-depth devices doc 2020-06-18 17:30:03 -04:00
Samuel Dionne-Riel
10f38adb09 doc: Document devices, families, platforms and systems 2020-05-14 17:22:28 -04:00
Samuel Dionne-Riel
5bac890028 doc: Add missing language to fenced code blocks 2020-04-06 19:57:40 -04:00
Samuel Dionne-Riel
e7e28fa8d1 doc: Add some in-depth notes about booting on android devices 2020-02-29 17:39:29 -05:00
Samuel Dionne-Riel
3c2c24a832 docs: Document brown sad phone 2020-02-03 16:19:10 -05:00
Samuel Dionne-Riel
f7b1af3a06 doc: Document new stage-1-to-2 failure reporting 2019-12-03 16:38:37 -05:00
Samuel Dionne-Riel
b2963e004d doc: Adds in-depth topic index 2019-11-15 22:02:10 -05:00