1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-22 07:21:48 +03:00
Commit Graph

732 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
690a4e6c9d examples/demo: Use awesome wm 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
8b06ccdb72 examples/demo: pre-configure system demo...
Here's why xfce...

 * it has good pre-configuration systems.
 * it has sane configuration file format.
 * it's quick in non-accelerated setups.

Though, there are many drawbacks... It is *not* a mobile environment!

Better environments will be packaged down the road.
2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
6004298259 examples/demo: export vm attribute 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
80083a7689 artwork: Adds a wallpaper for the 19.09 era 2019-12-05 23:51:07 -05:00
Samuel Dionne-Riel
2edfa09716
Merge pull request #64 from samueldr-wip/fix/motorola-addison
Reduce size of kernel for motorola-addison + fixups
2019-12-05 23:39:58 -05:00
Samuel Dionne-Riel
4811ac688f
Merge pull request #41 from kirelagin/stage-2-adb
Restart adb in stage-2
2019-12-04 19:35:19 -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
2bf8158f3a
Merge pull request #58 from samueldr-wip/feature/initrd-fail
Add failure reporting to initrd
2019-12-04 17:18:27 -05:00
Samuel Dionne-Riel
3fdb51a194
Merge pull request #59 from samueldr-wip/feature/qemu-device
Enhance QEMU device
2019-12-04 17:18:00 -05:00
Samuel Dionne-Riel
ead09930ea qemu-x86_64: use absolute input + mon:stdio
mon:stdio is the magic incantation that makes CTRL+C not quit abruptly
the VM.
2019-12-04 17:16:09 -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
31902140cf seabios: build vgabios for qemu use, with custom resolution 2019-12-04 17:16:09 -05:00
Samuel Dionne-Riel
0d21d694f6
Merge pull request #61 from samueldr-wip/feature/grow-rootfs
Allow rootfs to expand to the backing partition
2019-12-04 16:56:01 -05:00
Samuel Dionne-Riel
d3dbaab465
Merge pull request #60 from samueldr-wip/fix/use-lightdm
demo: Rely on lightdm now that SLiM is gone
2019-12-04 16:46:44 -05:00
Samuel Dionne-Riel
e1f0fdaeb3
Merge pull request #28 from NixOS/xiaomi-lavender
device: add xiaomi-lavender
2019-12-03 20:41:19 -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
Samuel Dionne-Riel
0ede24f2c4 hack: Add hack to fbdev to ignore initialization failure
This makes X11 work just fine on xiaomi-lavender.
2019-12-03 20:36:55 -05:00
Samuel Dionne-Riel
1d3149b41f qualcomm: Add SDM660 option 2019-12-03 20:36:52 -05:00
Samuel Dionne-Riel
4c5b4b6a2c kernel-builder: Add gcc49 variant
Some kernel builds may require it.
2019-12-03 20:36:48 -05:00
Samuel Dionne-Riel
4ac7b4c970 rootfs: Default to growing rootfs 2019-12-03 17:32:45 -05:00
Samuel Dionne-Riel
1fdf5e7ee7 initrd: Ensures /etc/mtab exists 2019-12-03 17:32:45 -05:00
Samuel Dionne-Riel
38850da922 initrd: Enables growing ext4 partitions 2019-12-03 17:32:45 -05:00
Samuel Dionne-Riel
e8c687d935 demo: Rely on lightdm now that SLiM is gone 2019-12-03 17:17:04 -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
83a1735084 stage-2: Use new init failure reporting 2019-12-03 15:36:13 -05:00
Samuel Dionne-Riel
4467f28daf initrd: Adds failure reporting
Uses the sad-phone artwork to convey that something's wrong.

A color has to be given to help convey the issue in constrained
situations where no proper logging happens.
2019-12-03 15:36:13 -05:00
Samuel Dionne-Riel
de510ef9df artwork: Adds sad-phone for failure reporting
This will be used to convey that an irrecoverable failure happened at
boot.
2019-12-03 15:35:33 -05:00
Samuel Dionne-Riel
485ec7fad3 doc: Makes articles pipeline more aware of image alignment
This is technically a *content* based style, which is why it's fine to
do there, instead of semantically in the page.

The background-image basically acts an a "transparent" `<img />`.
2019-12-02 20:51:46 -05:00
Samuel Dionne-Riel
f480573cf7 doc: Fixup RSS generation without items
Well, don't generate!

This fixes local generation as

```
nix-build doc/
```
2019-12-02 19:15:18 -05:00
Samuel Dionne-Riel
fa0a2a5734 doc: Add <head> link to RSS feed 2019-12-02 18:04:21 -05:00
Samuel Dionne-Riel
810e18a758 doc: Add RSS generation 2019-12-02 17:49:39 -05:00
Samuel Dionne-Riel
74f421bab3 doc: Processor::Base knows about title and date 2019-12-02 17:49:39 -05:00
Samuel Dionne-Riel
bb26a473ba doc: Article listing factored out 2019-12-02 17:49:39 -05:00
Samuel Dionne-Riel
244ca6fd47 doc: Reduce edit/source links hardcoding
This allows our split repository system to point to the right
repository.
2019-12-02 17:49:39 -05:00
Samuel Dionne-Riel
25459b9287
Merge pull request #56 from danielfullmer/google-marlin-vt
google-marlin: Fix CONFIG_VT
2019-11-23 21:34:58 -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
680aa87967
Merge pull request #54 from samueldr-wip/fix/make_ext4fs_workaround
make_ext4fs: Fix issue with read-only filesystems
2019-11-23 18:09:03 -05:00
Samuel Dionne-Riel
bd0220acc2 make_ext4fs: Fix issue with read-only filesystems
This may trip newer kernels, under some unknown circumstances.

As shown here:

[   10.016001] c7    604 EXT4-fs error (device sda45): ext4_has_uninit_itable:2895: comm mount: Inode table for bg 0 marked as needing zeroing

This happens with the google-walleye device, and unvalidated due to
lack of logs, might be affecting xiaomi-lavender
2019-11-23 17:51:57 -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
Samuel Dionne-Riel
18b482d6ea
Merge pull request #52 from samueldr-wip/fix/image-builder-gaps
imageBuilder.makeMBR: Fixes bug with gap
2019-11-22 17:43:52 -05:00
Samuel Dionne-Riel
e9b6c145fa imageBuilder.makeMBR: Fixes bug with gap
The size wasn't fixed after aligning the result, this dividing the sizes
by as the alignment.
2019-11-21 22:26:10 -05:00