-
Notifications
You must be signed in to change notification settings - Fork 119
Conversation
@zehortigoza I tried with this PR and it is working. I am getting below message in journalctl, but i think it is just warning. |
PACKAGECONFIG += "ppp" | ||
|
||
DEPENDS += "nss" | ||
PACKAGECONFIG += "systemd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline
|
||
IMAGE_INSTALL += "modemmanager" | ||
IMAGE_INSTALL += "networkmanager" | ||
IMAGE_INSTALL += "ppp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline
We tested the latest changes, too, and we can connect the drone to the network. Great work, thanks a lot 👍 |
4cb25a1
to
240b86b
Compare
Now it is setting the DNS automatically. |
You need to configure NetworkManager to ignore the usb-ethernet interface, otherwise it will fight with systemd-networkd. |
@@ -243,9 +243,6 @@ RDEPENDS_packagegroup-core-full-cmdline-sys-services_remove=" nfs-utils at tcp-w | |||
PACKAGE_EXCLUDE+=" ed" | |||
RDEPENDS_packagegroup-core-full-cmdline-utils_remove = " ed" | |||
|
|||
PACKAGE_EXCLUDE+=" wireless-tools" | |||
RDEPENDS_packagegroup-base-wifi_remove = " wireless-tools" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These PACKAGE_EXCLUDE, RDEPENDS_packagegroup-xyz should be moved to the images bb files. RDEPENDS_packagegroup_xyz lines remain the same, PACKAGE_EXCLUDE lines becomes IMAGE_INSTALL_remove.
d7575fe
to
be094f9
Compare
I will leave this as it is because it is working and when I try to set the usb-ethernet as unmanageable by NM it loses the ip address. |
a334b7b
to
218d652
Compare
conf/conf-notes.txt
Outdated
@@ -1,5 +1,7 @@ | |||
Supported targets: | |||
intel-aero-image | |||
intel-aero-image-test | |||
intel-aero-image-modem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not create another image...
|
||
# Let NetworkManager start dnsmasq with the right configuration file | ||
systemctl disable dnsmasq | ||
systemctl stop dnsmasq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a bbappend on dnsmasq recipe to not enable it.
WIFI_AP_DEFAULTPASSWORD="1234567890" | ||
|
||
# This is the APN name for AT&T HSPA+ user should change this with: | ||
# nmcli con modify Modem gsm.apn <name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I guess this should be read from a configuration file
nmcli con add type gsm ifname '*' con-name Modem apn $MODEM_APN_NAME autoconnect yes | ||
nmcli con up Modem | ||
|
||
# USB over ethernet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should touch this interface. It's the one "debug port" we have and I'd prefer to leave it with systemd-networkd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the solution that I found to fix the resolv.conf bug, systemd created a symbolic link in /etc/resolv.conf and it do not let NM to se the modem dns.
Although I did not had time to flash the image with this last patch.
I verified latest commit, AP mode is working fine. Able to connect to Aero hotspot. Scripts that wiki is pointing to are not available in current image, got those scripts from below commit, Scripts i took autostart-supplicant.sh, autostart-hostapd.sh and p2p_supplicant.conf It is showing the type as manager after running "autostart-supplicant start" but when i run "wpa_cli status" it is giving below error, "Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory" I found below difference in networkmanager recipe when compared to one in v1.3.1 image, EXTRA_OECONF = --disable-polkit Am i missing anything ? |
usb net is working i can able to ssh from Ubuntu to Aero through usb interface. But i observed by default ip address is not getting assigned to usb interface, i ran below command on Aero to get ip address assigned to usb interface,
Then again i ran below command on Ubuntu,
After this i could able to do ssh. |
@@ -28,6 +28,11 @@ done | |||
systemctl disable dnsmasq | |||
systemctl stop dnsmasq | |||
|
|||
rm /etc/resolv.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be a change to the installed tmpfiles.d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the systemd recipe to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.bbappend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe for next release we could bring NM 1.6 that plays better with systemd-resolved so we wouldn't need resolveconf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is not better keep all the workarrounds in here than spread it into .bbappend of systemd and dnsmasq? This way if in future we want to go back to connman(after someone adds support to our modem in ofono) it would be just remove the nm and mm from image and add comman and ofono.
@avinash-palleti we will provide new instructions of how change to wifi client. This would do it:
|
6a1d1d7
to
fc71b43
Compare
This is necessary to build network manager
ModemManager have support to Intel modems, ofono still don't have. So replacing Connman with NetworkManager in image.
Same setup as we had with connman + modem connection.
@avinash-palleti Thanks for the test and review, we decided to keep usb0 over systemd so now it should be working again
|
No description provided.