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

64 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
62d00f17fc system-types/android: Add odin-specific device-notes fragment 2021-01-09 19:23:21 -05:00
Samuel Dionne-Riel
7381c783a7 system-types/android: Rename fastboot device notes fragment 2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
2b674af725 system-types/android: Choose the appropriate device-notes fragment 2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
f5fbeb1b76 system-types/uefi: Add device-notes fragment 2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
7a4ddb41ff system-types/u-boot: Add device-notes fragment 2021-01-09 19:23:20 -05:00
Samuel Dionne-Riel
1a083f8b3e system-types/android: Output different instructions for Odin 2021-01-09 19:22:32 -05:00
Samuel Dionne-Riel
ea684466e5 system-types/android: Allow defining flashing method 2021-01-09 19:22:32 -05:00
Samuel Dionne-Riel
5b81f1d6dd android: Use Exynos dt.img for android bootimg 2021-01-09 16:26:28 -05:00
Samuel Dionne-Riel
7fe40c1817 system-types/uefi: VM outputs logs on serial 2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
e215099597 system-types/uefi: Use stage-0 2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
b2790d13d6 qemu-x86_64: Delete device
It's being replaced by the generic uefi-x86_64 device.

Basically, replace the QEMU-specific system type by the totally standard
UEFI system type. This way we're dogfooding it way better!
2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
1098b55236 system-types/uefi: Introduce the .vm attribute
This results in a script that launches a QEMU VM.
2020-12-29 19:22:43 -05:00
Samuel Dionne-Riel
bec8c7dbd0 system-types/uefi: Init, largely inspired by u-boot
This is the minimum viable product.

This builds a disk image that can be booted.
2020-12-29 19:21:02 -05:00
Samuel Dionne-Riel
403c4141ce system-types/u-boot: Cleanup file
The same changes have been made in the upcoming UEFI equivalent file.
2020-12-29 18:21:52 -05:00
Samuel Dionne-Riel
dacfa93de9 recovery.nix: Provide generic access to the recovery build 2020-12-29 18:21:52 -05:00
Samuel Dionne-Riel
2c007dfb23 system-types/u-boot: Use stage-0 2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
6a785b19e5 system-types/depthcharge: Use stage-0 2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
9fc322894f system-types/android: Use stage-0 2020-12-27 17:50:30 -05:00
Samuel Dionne-Riel
13d73a7115 u-boot: Use types.lines for additional commands 2020-11-07 20:25:49 -05:00
Samuel Dionne-Riel
258cb1acd0
Merge pull request #228 from samueldr-wip/feature/reboot-hal
Boot GUI: only show relevant reboot options
2020-10-18 18:04:55 -04:00
Samuel Dionne-Riel
b81ab29350 system-types/android: Provide reboot options 2020-10-15 22:08:25 -04:00
Samuel Dionne-Riel
108c8a56d3 system-types/u-boot: Actually boot from the desired partition
Ugh... The whole `''${devtype} ''${devnum}:''${bootpart}` thing was
cargo-culted from other u-boot scripts as "the way to go" to re-use the
information set by the generic distro boot...

EXCEPT that it doesn't work since 2018.

13dd6665ed

They are not environment variables since that change. So any of those
scripts end up working *by sheer luck* since it would end up booting
from the first device's first partition.

Ugh ugh ugh...

There is one **major** difference with the choice: We are now selecting
on a partition's label, rather than booting whatever is deemed bootable.

This assumes the upcoming change where we are using GPT rather than MBR.

But still, this is compatible with the default expectation from U-Boot
by falling back to the "bootable" attribute.
2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
ecceccb57f system-types/u-boot: Add debug information output 2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
973778dc68 system-types/u-boot: Abort on failure to load any kernel 2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
fdc4778d7e u-boot: Prefer GPT over MBR 2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
d9b346cf31 u-boot systems now have misc/persist partitions
This is so stage-1 can end up using it as needed.
2020-10-15 19:15:46 -04:00
Samuel Dionne-Riel
1889893a43 kernel-builder: implement QCDT configuration in the builder 2020-10-02 03:27:49 -04:00
Samuel Dionne-Riel
7e2a4e0074 systems/u-boot: additionalCommand is optional
Optional through a default.
2020-07-27 23:26:36 -04:00
Samuel Dionne-Riel
09fed68bcf treewide: Remove installer/mobile-installer dead weight
This didn't end up being something that's being worked on. It probably
was entirely confusing for everyone as it wasn't documented, and didn't
actually do anything useful most of the time.

Rather than polluting the build with some one-off special cases like
this, we'll implement an "installer" as an example system, if we even
want an installer.

It's not planned yet *how* users should install, it may not even be an
installer type system.

This also rewords the "successful default build failure" message.
2020-05-31 16:05:57 -04:00
Samuel Dionne-Riel
5da15c36db system/qemu: Fix for new kernel package option 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
64cf2ec076 system/u-boot: Fix for new kernel package option 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
58e2a0709f system/depthcharge: Fix for new kernel package option 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
d60f3a501b system/android: Fix for new kernel package option 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
52ea0fb075 initrd: Cleanup accidental cruft from messy device info 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
65bb1e8a35 system/android: Provide replacements for freeform device.info options 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
e125c6ab2f system/depthcharge: Provide option and fix build
The depthcharge build doesn't rely on the freeform option anymore.
2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
a4358472b0 system/u-boot: Use NixOS boot.kernelParams 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
8a5df088b9 system/u-boot: Use boot.kernelParams 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
2d0d5810cc system/qemu: Use boot.kernelParams 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
b928b20e2a system/depthcharge: Use boot.kernelParams
(and fix device_info.arch)
2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
84906bb8e4 system/android: Use boot.kernelParams 2020-05-24 20:13:07 -04:00
Samuel Dionne-Riel
1442bcba8b system/android: Review recovery build
Instead of borrowing some of its system.build products, rely instead on
a full system.build for the recovery.img.

This allows us to better make use of the implicit declarativeness of the
system configuration. At some point the recovery "system" will be moved
out of that file and things will continue to work.
2020-05-23 15:59:43 -04:00
Samuel Dionne-Riel
dcbda16fc5 system-types: Rename kernel-initrd -> qemu-startscript
In addition, put the implementation of the build side-by-side with the
system type definition. It made no sense to keep those where they were,
as it was baggage from the earlier implementation of the project.
2020-05-15 16:10:43 -04:00
Samuel Dionne-Riel
b1870eb331 modules: Move depthcharge build implementation into its system type
It didn't make sense to stuff that into systems anyway, it's baggage
from the first steps of making Mobile NixOS.

This is a *part* of depthcharge system type, so why stuff it into `system`
at the root??
2020-05-15 15:53:28 -04:00
Samuel Dionne-Riel
e7b68c834a modules: Move bootimg into its system type
It didn't make sense to stuff that into systems anyway, it's baggage
from the first steps of making Mobile NixOS.

This is a *part* of android system types, so why stuff it into `system`
at the root??
2020-05-15 15:49:38 -04:00
Samuel Dionne-Riel
fd66311f9f qemu-x86_64: Use qemu EDID support
This removes the need for the gnarly hack we were using to get a custom
resolution.
2020-04-22 22:48:30 -04:00
Samuel Dionne-Riel
2f28151fd2 doc: Add depthcharge notes 2020-04-04 21:04:33 -04:00
Samuel Dionne-Riel
4f6659933f android: Add device notes 2020-04-04 20:30:57 -04:00
Samuel Dionne-Riel
02ab2066ce system-types: Move in discrete directories 2020-04-04 19:56:56 -04:00
Samuel Dionne-Riel
558907989b systems/u-boot: Fix eval with release.nix
The "default" output was missing.
2020-03-28 22:53:48 -04:00