-
Notifications
You must be signed in to change notification settings - Fork 126
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
Investigate if we need to depend on libudev #711
Comments
Do we know how/if this affects Linux systems based on MUSL? IIRC we have some custom logic for these systems in our port detection code, perhaps it is no longer necessary if |
No idea, @sirhcel sorry for the ping, do you have any idea on this? |
Especially since serialport/serialport-rs#220 things look almost shiny even without libudev. On my test system, two serial ports from a PCIe card are missing, but
Do you have some secret sauce for PCI port detection in place at espflash you can give we a reference to? I would love to get the port enumeration with and without libudev at a par. |
Here is where all the finding/selecting of serial ports happens, the only "magic" that we do is with linux-musl that we parse sysfs, see the two implementations of |
Thank you for the reference @SergioGasquez! At a first glance, it looks like the USB ports enumerated by espflash should be enumerated by serialport-rs as well. But the enumeration will additionally return some more ports from the motherboard of my Linux machine from #711 (comment). So the result from using the non-libudev enumeration from serialport-rs will be "between" espflash's enumeration without and with libudev. The discrepancy between the devices enumerated by libudev and our manual for MUSL/non-libudev is bugging me since a while and I found some time to look into it and serialport/serialport-rs#238 sets out to close this gap and should bring the enumeration en par with libudev. Do you have some interesting corner cases from the enumeration done by espflash? May be there is something relevant for serialport-rs too. |
I dont recall any serialport/serialport-rs#238 looks promising, maybe we can do some tests after it lands. We are working on planning espflash v4, so this should definitely be investigated. |
serialport
can now work withoutlibudev
, see serialport/serialport-rs#220, this can lead to weird ports being shown but it might be worth to explore how this performs, some initial tests show good signs, see #709The text was updated successfully, but these errors were encountered: