Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce size of kernel for motorola-addison + fixups #64

Merged
merged 3 commits into from Dec 6, 2019

Conversation

samueldr
Copy link
Member

@samueldr samueldr commented Dec 4, 2019

Before today, all tests were done using fastboot boot.

Turns out motorola-addison has an extremely diminutive boot partition size of only 16MiB.

Our fat ~20MiB initrd+kernel build couldn't be fastboot flashed!

This now, at least, gives us the maximum size a minimal featured tertiary bootloader has to respect.


Fixups:

  • Another device where console= broke udev!
  • Added missing partition information file.

With this PR, the device is seemingly working just as well as other Qualcomm devices.

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 f295dc1 for a similar instance of
the issue.
@samueldr samueldr added 4. type: bug Something isn't working 4. type: enhancement New feature or request labels Dec 4, 2019
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.
@samueldr samueldr merged commit 2edfa09 into NixOS:master Dec 6, 2019
@samueldr samueldr deleted the fix/motorola-addison branch March 8, 2020 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. type: bug Something isn't working 4. type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant