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

amazon-austin: Init #311

Merged
merged 12 commits into from Jun 19, 2021
Merged

amazon-austin: Init #311

merged 12 commits into from Jun 19, 2021

Conversation

samueldr
Copy link
Member

@samueldr samueldr commented Feb 23, 2021

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 dmesg not 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 sideload of 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.


TODO

  • Use the amazon kernel dumps...

Which means, first "rehydrate" them into distinct commits on the mobile-nixos linux repo.

@samueldr samueldr added the type: port New device port label Feb 23, 2021
@samueldr samueldr added the status: WIP The PR is not ready for merge, work in progress label Feb 24, 2021
@ghost

This comment has been minimized.

@samueldr

This comment has been minimized.

@ghost

This comment has been minimized.

@samueldr

This comment has been minimized.

@ghost

This comment has been minimized.

@samueldr

This comment has been minimized.

@ghost

This comment has been minimized.

@samueldr

This comment has been minimized.

@ghost

This comment has been minimized.

@samueldr

This comment has been minimized.

@ghost

This comment has been minimized.

@samueldr

This comment has been minimized.

@ghost

This comment has been minimized.

@samueldr samueldr removed the status: WIP The PR is not ready for merge, work in progress label Jun 19, 2021
@samueldr samueldr marked this pull request as ready for review June 19, 2021 04:06
@samueldr
Copy link
Member Author

I still have to think about whether I keep the third-party kernel attempt in the history.

But eh, it now works against the untouched vendor kernel sources!

@samueldr samueldr merged commit f444165 into NixOS:master Jun 19, 2021
3 checks passed
@samueldr samueldr deleted the wip/amazon-austin branch June 19, 2021 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: port New device port
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant