<Miyu-saki>
(There are lines between there that I redacted)
<Miyu-saki>
Oh, this one too actually.
<Miyu-saki>
03-01 13:36:47.972 0 0 E [20210301_13:36:47.952548]@1 ueventd: firmware: could not find firmware for sdx55m/sbl1.mbn
<Miyu-saki>
I checked LineageOS's repos, and this doesn't seem to exist. My guess then is that this is written into ROM, and presented to Linux by some other device.
<Miyu-saki>
Okay, I'm pretty sure this is the offending line.
<Miyu-saki>
03-01 13:38:30.034 0 0 E [20210301_13:38:30.033908]@1 ueventd: firmware: attempted /vendor/firmware_mnt/image/sdx55m/sbl1.mbn, open failed: No such file or directory
<Miyu-saki>
And the way to get access to that is
<Miyu-saki>
mount /dev/block/by-name/modem $root/system/vendor/firmware_mnt
<Miyu-saki>
Welps, this is even more debugging then. I need to figure out why MHI(?) is not workign from the start.
<danielrf[m]>
I could be wrong, but I didn't think lineageos tried to handle updates to the modem partition at all
<Miyu-saki>
Yep
<danielrf[m]>
and that they suppose that the user does that themselves
<Miyu-saki>
Oh wait, I actually have a question.
<Miyu-saki>
Is `modem` writable?
<Miyu-saki>
Or is it burnt?
<samueldr>
it may be part of the vendor partition, or a modem partition, depending on the "SoC family" setup and how it's setup
<samueldr>
and generally it's installed through a ROM update
<samueldr>
I know on xiaomi family devices there are flashable zips made from the official roms specifically to update those kind of partitions
<Miyu-saki>
Oh okay. Are there device-unique blobs there or nay?
<samueldr>
(bootloader, vendor, etc)
<samueldr>
model-specific, yes, device-unique, maybe, but not sure where they are
<samueldr>
device-unique I mean your specific unit
<samueldr>
e.g. your IMEI
<Miyu-saki>
Right, thanks. I'll have to check why that isn't being mounted.
<Miyu-saki>
Hmm. I'll go ask him why that's not being mounted.
<samueldr>
btw, I don't actually know much about the android build process, all my knowledge comes from running non-Android things ;)
<danielrf[m]>
Haha, I feel like I only know about the android build process, but very little about any non-pixel devices
<samueldr>
like, I don't know what to do from that knowledge
<samueldr>
danielrf[m]: AFAIUI oneplus devices try to follow the AOSP ways of doing things quite closely
<samueldr>
AFAIK they were the second OEM to ship fastbootd
<Miyu-saki>
Neither do I. :D I'm just really winging it as much as I can.
<danielrf[m]>
that's nice to hear
<samueldr>
Miyu-saki: look and see if the modem partition has an A/B scheme
<samueldr>
it might be that the device never had an update that filled the "B" slot
<Miyu-saki>
Thanks for the help. Right now, he's offline though.
<samueldr>
and thus an empty partition?
<samueldr>
(motorola devices can be soft bricked because of that)
<Miyu-saki>
How do I figure out if it has an A/B scheme?
<samueldr>
the device is A/B that's for sure
<samueldr>
I think `fastboot getvar all` will list each partitions in some ways
<samueldr>
(I always have to check that)
<samueldr>
or else in a booted system listing the partitions by name
<Miyu-saki>
Thanks. This sadly results in a kernel panic. Though, I wonder what'd happen if we disable this particular driver.
<samueldr>
for some devices you need the appropriate firmware for the driver in use, and in turn, these drivers can be updated with the major android version in use
<danielrf[m]>
but yeah, either having the user provide their own firmware to the nix build, or just using vendor or modem partitions seems likely to break
<samueldr>
yeah, I was thinking in a more general way, are we even sure those are the right ones for the kernel tree
<samueldr>
the kernel is from the android stable project
<danielrf[m]>
only speaking about google-marlin for now since that's all I know
<samueldr>
yeah
<danielrf[m]>
the android stable kernel for marlin is based on the sources from google
<danielrf[m]>
and the kernel source from google should match the factory image zip
<danielrf[m]>
dunno about whether anything guarantees like that can be had for other devices