No Internet on Hikey + AOSP + OPTEE


#1

Hi,

I am working on a project running AOSP + OPTEE on Hikey. The board is able to connect to wifi as well as USB Ethernet adapter. IP is also being assigned. But I am unable to ping the gateway / internet [8.8.8.8] or any other IP on the same network.
Using the build instruction from https://github.com/linaro-swg/optee_android_manifest
Tried using several versions of aosp, all face the same issue. Also the notification says connected, no-internet.

wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 78:a5:04:22:c5:41 brd ff:ff:ff:ff:ff:ff
inet 10.42.0.108/24 brd 10.42.0.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::7aa5:4ff:fe22:c541/64 scope link
valid_lft forever preferred_lft forever

root@hikey:/ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.42.0.0 * 255.255.255.0 U 0 0 0 wlan0
root@hikey:/ #

Tried adding gateway as well:

root@hikey:/ # ip ro ad default via 10.42.0.1 dev wlan0
root@hikey:/ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.42.0.1 0.0.0.0 UG 0 0 0 wlan0
10.42.0.0 * 255.255.255.0 U 0 0 0 wlan0
root@hikey:/ # ping 10.42.0.1
connect: Network is unreachable


#2

Resolved by adding IP rule:

ip rule add from all lookup main pref 99

Need to fix it permanently. Any suggestions?


#3

This is normally performed by NetworkManager/netd, if not, this is a bug which should be reported to http://bugs.96boards.org/.


#4

I reproduce the issue.
Bug https://bugs.96boards.org/show_bug.cgi?id=635