/ mobile-nixos Public
amazon-austin: Init #311
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge.
Not sure I want to merge this as-is.
I think I want to, instead, work from the kernel files from amazon.
The fork seems to have smushed together an arbitrary source tree from another MT8127 device, with the amazon drivers. The kernel looks... bad... imo.
I had to patch a lot of stuff to make
dmesgnot barf over all the time over. (Though some OEMs do do that too...)
At the very least, building on top of Nixpkgs 56bb1b0f7a33e5d487dc2bf2e846794f4dcb4d01 works, with the changes from #306. (With a revert in the kernel builder). Current tip of master/unstable may have issues, to be investigated later.
The flashing procedure is clunky, but when a TWRP-compatible implementation is made, it will be less so, as it will not require an additional reboot. A simple
adb sideloadof a flashable zip should work.
It is highly probable that on a 5th gen (
amazon-ford) approximately the same implementation works. As the current kernel tree is shared between both devices, differing only by their initial defconfig. Using
amazon-ford's defconfig, normalizing it, then applying the same changes may result in a usable port.
Which means, first "rehydrate" them into distinct commits on the mobile-nixos linux repo.