feat: add missing Lenovo T14s firmware in initramfs#297
Conversation
lool
left a comment
There was a problem hiding this comment.
I know this is still draft, generally ok with the changes, but I'd suggest renaming the overlay for the function it's achieving, e.g. "t14s-initramfs-firmware" and adding a more verbose version in the recipe (perhaps with a link to the issue we need to fix for this to go away).
1833a5b to
63dc827
Compare
Thanks for the suggestion, I renamed the overlay and added more comments in the recipe for context. I will mark this as ready for review once I test-boot it and confirm that the battery reporting works from the generated image. |
Test jobs for commit 63dc827 |
Thanks, I don't know if it's a good or bad pattern, but we can use a var as a list of overlays to apply from the debos invocation as you saw here: |
|
Boot-tested OK on Lenovo T14s, the firmware is loaded early thanks to the initramfs hook: Marking as ready for review.
The grow of the initramfs with this PR seems minimal so I would like the recipe to be run in every case for now. We might have the possibility to have this overlay removed by default in the future if needed. |
Yeah, that's orthogonal though; I'm suggesting patching this line: |
lool
left a comment
There was a problem hiding this comment.
So generally ok that we carry this by default in our images while landing this upstream, but I'd like to make it clear that it's a workaround for a deficiency somewhere in our stack; something should be pulling these firmware files automatically, and that's what we need to patch upstream
Could you rename this as a workaround-something dir, and could you make sure there's an issue somewhere to fix this properly?
|
For reference, there's a proper fix for dracut-ng in progress here: dracut-ng/dracut#2266 Not sure about initramfs-tools. |
63dc827 to
9e9ded3
Compare
|
Renamed the overlay to |
|
After this is merged I think we can rename #258 to something like "workaround-t14s-initramfs-firmware tracking bug" or something similar. Ideally having one tracking bug per live workaround. |
Add missing firmware into initramfs to make ADSP work on Lenovo T14s: [ 0.531873] remoteproc remoteproc0: adsp is available [ 0.533967] remoteproc remoteproc0: powering up adsp [ 0.534672] remoteproc remoteproc0: Booting fw image qcom/x1e80100/LENOVO/21N1/qcadsp8380.mbn, size 22043064 [ 0.890105] remoteproc remoteproc0: remote processor adsp is now up The Adreno firmware can also be installed if needed by the users but is commented out by default as not strictly necessary. See also: qualcomm-linux#258 Signed-off-by: Agathe Porte <agathe.porte@oss.qualcomm.com>
9e9ded3 to
99be001
Compare
Test jobs for commit 99be001 |
|
I think we've identified the path forward for initramfs-tools; once we have something started upstream, I'd be happy to merge the workaround pointing at the upstream long-term fix :) |
|
The dracut fix was merged two days ago, I will look at adapting it for initramfs-tools. |
Add missing firmware into initramfs to make the sound and battery work on Lenovo T14s.
Closes: #258