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 3 commits into from Dec 6, 2019


Copy link

@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.


  • 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.

samueldr added 2 commits Dec 4, 2019
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.
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
@samueldr samueldr force-pushed the samueldr-wip:fix/motorola-addison branch from 4688757 to 4c11bf2 Dec 4, 2019
@samueldr samueldr merged commit 2edfa09 into NixOS:master Dec 6, 2019
@samueldr samueldr deleted the samueldr-wip:fix/motorola-addison branch Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.