ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630)
hexdump0815 has joined #aarch64-laptops
hexdump01 has quit [Ping timeout: 480 seconds]
jhovold has joined #aarch64-laptops
iivanov has joined #aarch64-laptops
<macc24> jenneron: veyron-minnie, gru-kevin, kukui-krane and trogdor-lazor
<macc24> i think i can reach few other people with other veyron devices
iivanov__ has joined #aarch64-laptops
iivanov has quit [Ping timeout: 480 seconds]
jenneron_ has joined #aarch64-laptops
jenneron has quit [Ping timeout: 480 seconds]
jhovold has quit [Ping timeout: 480 seconds]
jenneron_ has quit [Remote host closed the connection]
<qzed> bamse: so... regarding wifi: turns out pd-mapper isn't starting (not sure how I missed that before...)
<qzed> it expects some json files that I don't have
<qzed> how can I get or create them?
iivanov__ has quit []
<bamse> qzed: windows must be hard coding these things in some driver, but you can find them scattered for other releases...i threw them the ones i use together for you here: https://www.toptal.com/developers/hastebin/omezalosep.yaml
<qzed> thanks!
<bamse> and yes, unfortunately you must have these jsn files and pd-mapper running, as well as tqftpserv to then provide the wlanmdsp.mbn
<bamse> on sc8280xp the tqftpserver is gone again, so i've been considering pushing the pd-mapper implementation into the kernel...
<bamse> but we have a few other fish to fry before that
<qzed> okay, so I get that the modem (and other remote procs?) communicate with with user-space (and other things?) via the router, and that the ftp server/remotefs is required to give the remote procs access to the host file system
<qzed> so what's the rest used for?
<qzed> or rather, what is PD?
<qzed> kinda seems like some service management/service setup for the router?
flowriser has joined #aarch64-laptops
<qzed> bamse: also, do you mind if I push them to a git repo somewhere?
<steev> could we try to get them pushed to linux-firmware?
<steev> sdm845 and sm8250 are there
<steev> i actually tested those on the c630 and they work, as long as they're in the correct spot
<bamse> qzed: go ahead, some of them are in linux-firmware already and the others i made up based on the ones that are there
<qzed> neat, thanks again!
<bamse> qzed: "pd" is "protection domain" or something like that; the software running on the hexagons consists of a small core and then individual, isolated pds which runs the actual application code
<qzed> ah, okay
<bamse> qzed: so on your sc8180x you ahve the root_pd and the modem_pd running already, and based on the information in the .jsn files we tell the root on the modem hexagon that it's also supposed to do wifi on this platform...which causes it to request the firmware for wlan_pd and boot that
<qzed> okay, got it
<qzed> next question: in what path(s) is the rmtfs client thing looking for files?
<bamse> /dev/disk/by-partlabel/
<bamse> so the systemd service should just work for you...
<bamse> unless someone did something real funny
<qzed> ahh, it even tells me when it doesn't find something it's looking for, nice!
<bamse> there's typically one of warning, that you can ignore
<bamse> but if rmtfs doesn't work, then the modem will not initialize properly and will crash after 40 seconds
<qzed> it failed earlier for me with `failed to open '/dev/disk/by-partlabel/modemst1' (requested '/boot/modem_fs1'): No such file or directory`
<qzed> followed by immediate `fatal error without message`
<qzed> so I guess I need to figure that out now...
<qzed> I assume those are the couple of partitions that I can see in the efishell but don't show up in linux... so I guess I'm missing some config option?
<qzed> I guess I'm missing CONFIG_MTD_QCOMSMEM_PARTS
<qzed> hmm, that doesn't seem to be all that's required...
<steev> bamse config for the flex5G only has
<steev> # CONFIG_MTD_QCOMSMEM_PARTS is not set
<steev> CONFIG_RPMSG_QCOM_GLINK_SMEM=m
<steev> CONFIG_QCOM_SMEM=y
<steev> CONFIG_QCOM_SMEM_STATE=y
<steev> qzed: check that yours isn't called modemst1
<qzed> hmm, I do have those too, just with CONFIG_RPMSG_QCOM_GLINK_SMEM=y
<qzed> it's called modemst1 according to the log above...
<qzed> why?
<steev> that, i couldn't tell you
<steev> on my flex5g (and c630), they're labeled modemst1/modemst2
<qzed> thanks, I guess I'll try looking for other options that I could be missing then
<bamse> qzed: hmm, not sure where those partitions are...on ufs they are just normal partitions
<qzed> oh, hmm.... so I should maybe try adding ufs support... according to the schematic it didn't look like the pro x had that
<steev> what does the prox use?
<steev> nvme?
<qzed> yep
<steev> oh, it might have those still hiding away on ufs, yeah
<bamse> doubt that they have a ufs device for those, more likely that there's a spinor somewhere
<bamse> or perhaps some secret partition on the nvme?
<qzed> any idea how ufs shows up in the efi-shell? the nvme shows up as Pci(...)/.../NVMe(...), the other partitions which I assume are the ones I want are VenHw(<some guid>)
<bamse> qzed: you could try using -o to point rmtfs to some other directory and just create some empty files (i think they need to be ~2mb in size)
<bamse> qzed: that might actually be sufficient to get the modem up, assuming that wifi runs off its own settings/calibration data and not what's provided by rmtfs
<qzed> I'll give that a try if setting up ufs fails and i can't find out more via windows
<qzed> I guess I could also dump the partition contents to some usb from the efi shell...
<bamse> if you can find and access them from efi, then you can certainly do that
<bamse> and just use -o to override the /dev/disk/by-partlabel path
<qzed> IIRC I had access to at least some, but I think not all
<qzed> do these partitions show up in windows on the flex 5? or are they hidden? I can't find them on the spx...
<bamse> on the UFS-based devices you have 5-6 different LUNs and in windows only the first one is visible
<qzed> I'm just looking through the device manager... there's some soc partition driver but no indication of ufs
<qzed> I can see the nvme and nvme volumes... but nothing else