Planet Computers's Gemini Developers Forum
Initialising internal wifi - Printable Version

+- Planet Computers's Gemini Developers Forum (https://developer.planetcom.co.uk)
+-- Forum: Gemini (https://developer.planetcom.co.uk/forumdisplay.php?fid=1)
+--- Forum: Linux on Gemini (https://developer.planetcom.co.uk/forumdisplay.php?fid=4)
+--- Thread: Initialising internal wifi (/showthread.php?tid=153)



Initialising internal wifi - Michael - 07-30-2018

Hi,

I am trying to bring up the internal wifi under Arch Linux using the stock 3.18 kernel (recompiled with module support).

I've copied the firmware from .stowaways in the Debian TP sailfish rootfs to /lib/firmware (and symlinked to /etc/firmware, /system/extra/firmware and somewhere else I forget).

I then compiled these tools - https://github.com/abbradar/wmt. (I couldn't use the one from sailfish rootfs as the were compiled for the wrong arch (armhf? 32 bit?)
update: the binaries from the DebianTP image are 64bit but still don't work - (ldd wmt_loader
./wmt_loader: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header)

I then run the compiled wmt_loader and I get the following:

Code:
init combo device
Opened combo device
get device id : 26519
set device id : 26519
do module init: 26519
failed to init module

I can't for the life of me work out how you are bringing up the wifi in Debian TP - any pointers would be greatly appreciated! Just to clarify I am not even getting a wlan0 interface.  The networking with external devices is fine ie USB ethernet/wifi dongles.


RE: Initialising internal wifi - TheKit - 08-04-2018

(07-30-2018, 11:02 PM)Michael Wrote: Hi,

I can't for the life of me work out how you are bringing up the wifi in Debian TP - any pointers would be greatly appreciated! Just to clarify I am not even getting a wlan0 interface.  The networking with external devices is fine ie USB ethernet/wifi dongles.

Hi,

Basically in current setup it relies on Halium LXC container (see https://github.com/gemian/lxc-android) to run wmt_launcher with other Android services. After /dev/wmtWifi appears, it's needed to "echo 1 > /dev/wmtWifi" to enable wlan0 interface.

Beware that extracted wmt_launcher is linked against bionic libc and not glibc, so while it's possible to do without container, you need other libraries extracted from Android into /system/lib64.

I didn't investigate replacing wmt_launcher with the one compiled from sources against glibc, as we still depend on Android container for GPU libs, modem, etc, but it should be possible.

As for Arch Linux, I did similar setup to Debian TP2 on it before, see https://github.com/NotKit/archlinuxarm-geminipda for some packages. You can ping me at #gemini-pda on Freenode in case of questions.


RE: Initialising internal wifi - Michael - 08-12-2018

(08-04-2018, 12:30 AM)TheKit Wrote:
(07-30-2018, 11:02 PM)Michael Wrote: Hi,

I can't for the life of me work out how you are bringing up the wifi in Debian TP - any pointers would be greatly appreciated! Just to clarify I am not even getting a wlan0 interface.  The networking with external devices is fine ie USB ethernet/wifi dongles.

Hi,

Basically in current setup it relies on Halium LXC container (see https://github.com/gemian/lxc-android) to run wmt_launcher with other Android services. After /dev/wmtWifi appears, it's needed to "echo 1 > /dev/wmtWifi" to enable wlan0 interface.

Beware that extracted wmt_launcher is linked against bionic libc and not glibc, so while it's possible to do without container, you need other libraries extracted from Android into /system/lib64.

I didn't investigate replacing wmt_launcher with the one compiled from sources against glibc, as we still depend on Android container for GPU libs, modem, etc, but it should be possible.

As for Arch Linux, I did similar setup to Debian TP2 on it before, see https://github.com/NotKit/archlinuxarm-geminipda for some packages. You can ping me at #gemini-pda on Freenode in case of questions.

Thanks TheKit, you are a legend.  Your reply here and over on OESF have been really helpful.  Unfortunately I've been a bit busy  and will be out of action for at least another week, but then I intend to get back on with this.  I'm sure there will be a lot more questions so thanks in advance!