Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Reduce size of kernel for motorola-addison + fixups #64
Before today, all tests were done using
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.
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.
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.