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
Port to Motorola G5 Plus (potter) [second attempt] #159
Conversation
It's the same SoC and a lot of the same hardware. Surprisingly enough the kernel even boots, though without USB, so there's not a lot you can actually do with it
* kernel-msm/arch/arm/configs/ext_config/mot8953-potter.config in https://github.com/MotorolaMobilityLLC/kernel-msm/ checkout tag MMI-NPN25.137-67 * and /proc/config.gz extracted from a running device with OmniROM 9-20191013
This is needed to make mobile-nixos notice that an external SD card is present. Looking at the device tree sources for various msm8953 devices, it seems to be pretty much a 50/50 chance whether the card detect pin is active high or low. Of course that *might* just mean it's broken on half of all phones See also https://lore.kernel.org/patchwork/patch/615679/ - clearly I amn not the only person who finds this confusing
From the previous PR:
I tried and ... no, your supposition is correct. The light flashes on very briefly , then off, and I have the same behaviour in sysfs too
Maybe it's worth trying with a timer or heartbeat trigger that would reinitialize the led state even after the mystery guest has extinguished it? |
mobile.usb = { | ||
# Dan is not sure what this is for, given that it seems to be | ||
# set to the Nexus 4 id on a variety of other devices which aren't that | ||
mode = "android_usb"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
android_usb
is for the "legacy" android-specific USB gadget mode. Newer devices use the mainline-derived gadgetfs
subsystem of the kernel.
idVendor = "18D1"; | ||
idProduct = "4EE7"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In reality, it could be anything. though I figure it's good to use the proper identifier for the device. The main issue I can see is that on some platforms (e.g. windows) it may be easier to fake it and re-use a common well-known identifier. In the end, AFAICT, this is only an identifier though.
With that said, using the appropriate identifiers is better. I guess you can remove the previous comments :).
If you end up wanting to implement the quirk that sets Something like |
(Closing in favour of #359) |
This is #147 but with greater purpose and less meandering around. Or at least, more verbose commit messages.
What works:
What doesn't work:
Untested: