-
Notifications
You must be signed in to change notification settings - Fork 9
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
Gadget: Try to replace Android Gadget with mainline #4
Comments
My preference is to use OpenSSH exposed through the mainline gadget driver (Like mobian does) instead of ADB. Try to make the modem as less dependent on android code as possible. |
Some additional information about wiring the QMI interface to the USB Serial interface: https://github.com/bacnh85/Quectel_Linux_USB_Driver |
Wiring ADB to the mainline USB Gadget driver: https://github.com/openembedded/meta-openembedded/tree/master/meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs |
Hello @Biktorgj, I've been away for some time, but I would like to pick-up this project. This is my new plan of approach, tell me what you think about it? |
Hi Jasper!
Of course, feel free to ping me either in Telegram or Matrix
The current initialization script is here: https://github.com/Biktorgj/meta-qcom/blob/honister/recipes-scripts/usb-normalboot/files/init.d/usb I did a quick look to ConfigFS in 3.18.140 but never got it to correctly work. I would advise you to start with the current kernel, as going straight to mainline as it is currently might introduce lots of other problems unrelated to whatever you do, and with 3.18 you have all the other drivers in place and ready. If you're going to build this you're going to have to build the images lots of times, so if you're using the SDK, let me recommend you some things:
|
Edit 1:
I've opened this issue to keep track of my experiment in trying to replace the Android Gadget driver with mainline gadget driver.
Also some discussion between developers can take place in this thread, so we can share some ideas and knowledge.
Step 1: Switch over Sysinitv to SystemD. (It's not mandatory, but a lot of scripts which are necessary are written for SystemD, otherwise would need to rewrite a lot). Also we might benefit from using SystemD in boot times as it is a parallel boot manager. It can handle multiple services at the same time, while Sysinitv boots up one after the other.
Step 2: Getting ADB up/running on the modem, or replace adb with OpenSSH exposed through the mainline gadget.
Step 3: QMI: Try to get a QMI interface up and running (Investigate if we can use opensource qmi_wwan driver)
The text was updated successfully, but these errors were encountered: