-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove systemd service for Fcc unlock in "ubuntu-oem" branch #33
Comments
Hi @nitinexclusively , I recheck it again. The fccunlock.service is only called by ModemManager, by default, it has option '--no-enable --no-start' in debian/rules, and the MM's script just start this service directly while not call /opt/fcc_lenovo/DPR_Fcc_unlock_service directly.
cat debian/mm-hook
|
I tried to use the new package, but the wwan didn't work any more. I'm not sure what's the story of this service file, currently I prefer to use the service file, and focus on the other issues. |
debian/lenovo-fccunlock.postinst and debian/lenovo-fccunlock.posrm are still needed, it would enable/disable drop-in service file for MM. |
lenovo-fccunlock.modaliases is used for matching the supported platform. |
I found there are a lot apparmor error after removing the service file.
|
@binli Here is the flow of FCC unlock (this behavior works fine in Main branch)
Can you please share below output after rebooting machine :
Thanks |
Here are the logs, tested on Thames-3(SVT) with the new commit which removed systemd service. |
mm.webm |
#31 |
@binli Do you have any update regarding this issue ? We have tested OEM image and only issue we faced is sometime , we need to perform "systemctl restart ModemManager" after rebooting. |
@nitinexclusively I had Internal Conference last week, and this week is a little busy, I spent sometime on the apparmor rules, I will continue to go through the apparmor rules and packing the v2.1.3, I will keep you updated if there is any progress, thanks! |
@nitinexclusively I made a merge request for removing this service, please help review it, thanks! |
@binli Thanks, Changes looks OK to me . i will merge it . I hope you had already tested it using OEM image ? |
@nitinexclusively I will make another commit to fix permission issue from apparmor. |
I just used the same apparmor rules in 2.1.2, I found the 2.1.3 will call sendmsg, the DPR_Fcc_unlock_service send message to ModemManager to load the device hook? And what's the way in 2.1.2? @nitinexclusively apparmor="DENIED" operation="sendmsg" class="file" info="Failed name lookup - disconnected path" error=-13 profile="/opt/fcc_lenovo/DPR_Fcc_unlock_service" name="run/systemd/journal/dev-log" pid=2662 comm="DPR_Fcc_unlock_" requested_mask="w" denied_mask="w" fsuid=0 ouid=0 |
I use the systemd service again, then the sendmsg errors are gone, it might be related to run the DPR_Fcc_unlock_service directly, so currently I prefer to keep this service file. It did not affect the function at least. |
90 seconds is too long, the systemd will kill it as timeout. I used 30 seconds, it seems good, wwan could be connected after boot-up. |
Ok but we need to analyse it more . Can you try by deleting library from /opt/fcc_lenovo/lib/ folder this will confirm sendmsg is passed from library .
Thanks for checking this . Yes , we have also tested it and will change it to 30 seconds . Thank you ! |
I found the mmcli was blocked by apparmor, I unconfined the mmcli, then I don't need the sleep method any more. |
Ok , in that case , can you please send merge request , if needed. |
The fix of apparmor rules is in ubuntu-oem branch, thanks! |
Hello @binli ,
I think , we don't need systemd service for FCC unlock APP .
FCC unlock will be executed by ModemManager i.e ModemManager will execute script
ModemManager will call scripts in below path based on Modem and this script will call FCC unlock binary .
/usr/lib/x86_64-linux-gnu/ModemManager/fcc-unlock.d/14c3:4d75
So , we dont need to create FCC unlock as systemd service . Its OK to keep configservice as systemd
So, I think ,we need to modify like below:
Remove below files:
Remove fcc unlock service information from below files:
Can you please check it and let me know your comment .
Thanks
The text was updated successfully, but these errors were encountered: