Hi all,
I am working with android KK 4.4.3 on IMX6Q-SABRESD board. I integrated Ralink usb wifi with it.
while Ping www.google.com , I am getting error: Unknown host www.google.com
but I am able to Ping google.com IP, local host IP and any other global IP.
I found, this error is because of DNS, but I am not able to fix it.
and I do connect WIFI from terminal (command line), How to bring it up on GUI ??
Any help would be appreciated.
Thanks in advance
Solved! Go to Solution.
Hi Jackie,
I fixed the above issue, try this out, this worked for me.
1. In $android/system/core/init/property-service.c, add below lines in function property_perms
{"rw.", AID_SYSTEM, 0}
{"net.", AID_DHCP, 0}
2. In $android/external/dhcpcd/dhcpcd-hook/20-dns.conf
In function dnsaddr in, add below lines
setprop dhcp.${interface}
setprop net.dns${count} $ {dnsaddr}
setprop net.${interface}.dns ${count}
3. run the commands after running dhcpcd (iface name)
ndc resolver flushif <iface>
ndc resolver flushdefaultif
ndc resolver setifdns <iface> <domain> <dns1> <dns2>
ndc resolver setdefaultif <iface>
Thanks
Regards
Ankur
I'm facing the same problems as Ankur Rahi, anyone can help?
Hi Jackie,
I fixed the above issue, try this out, this worked for me.
1. In $android/system/core/init/property-service.c, add below lines in function property_perms
{"rw.", AID_SYSTEM, 0}
{"net.", AID_DHCP, 0}
2. In $android/external/dhcpcd/dhcpcd-hook/20-dns.conf
In function dnsaddr in, add below lines
setprop dhcp.${interface}
setprop net.dns${count} $ {dnsaddr}
setprop net.${interface}.dns ${count}
3. run the commands after running dhcpcd (iface name)
ndc resolver flushif <iface>
ndc resolver flushdefaultif
ndc resolver setifdns <iface> <domain> <dns1> <dns2>
ndc resolver setdefaultif <iface>
Thanks
Regards
Ankur
Hi Ankur,
Thanks for your help on fixing the dns issue. But I would like to know more whether you can bring wifi up on GUI. I have modified wifi.c but always gets wlan0: CTRL-EVENT-TERMINATING in logcat. However by commandline, wlan0: CTRL-EVENT-CONNECTED can be got, do you have any suggestions? Thanks.
Jackie
Hi Jackie,
I am also trying to bring it up on GUI.
Hopefully will get back to you soon.
and If previous answer, solved your problem you can hit like and mark as helpful, it may help others too.
Thanks
Ankur
Thanks Saurabh,
But this doesn't solve my problem, I have seen this before, driver integration and connection is working properly in my case.
I am facing problem in Pinging www.google.com, it showing me an error: unknown host google.com, whereas google IP ping is working.
I am also trying to bring it up on GUI, if you could help me.