Wifi issues after receiving my shiftphone 6mq and updating

chris47368

Member
Original poster
27 Oktober 2022
26
Hi there everyone ,

So i just received my shiftphone 6mq through the post today - when I received it I was able to connect and use WIFI to download the latest OTA update...however after installing the current update on the phone I seem unable to turn wifi back on despite a factory reset. Bluetooth and mobile data works just fine however. I did unlock the bootloader and install a magisk patched bootloader to my phone...so im going to test installing a unpatched boot image back to the shiftphone now to see if the root process had anything to do with it but i doubt it as I barely did much else to the device other than that and the update.

If the vanilla boot image install does not work - what should be my next option...try downgrading, re flashing the firmware entirely?

Thank you for all your support!
 
Just to confirm...I re flashed the unpatched boot image and did a factory reset...the wifi problem persists...

The firmware version of shiftOS i am using is v3.8G
 
WiFi is built as a module, so patching the boot image can result in the kernel module and boot image to disagree and refuse loading.

You can check manually with your rooted image, if that is the case via:

Code:
# Restart adb as root and enter the shell
adb root
adb shell
# sorry, not sure if this works with magisk, alternatively you can do:
adb shell
su

# list loaded kernel modules
lsmod
# try loading wlan module
modprobe -d /vendor/lib/modules wlan
# check if it is loaded
lsmod

# check kernel log for anything suspicious, if it fails to load, it should tell
# you at the end of the output
dmesg

Edit: sorry, for some reason i kept typing wifi instead of wlan.
 
Zuletzt bearbeitet:
WiFi is built as a module, so patching the boot image can result in the kernel module and boot image to disagree and refuse loading.

You can check manually with your rooted image, if that is the case via:

Code:
# Restart adb as root and enter the shell
adb root
adb shell
# sorry, not sure if this works with magisk, alternatively you can do:
adb shell
su

# list loaded kernel modules
lsmod
# try loading wifi module
modprobe -d /vendor/lib/modules wifi
# check if it is loaded
lsmod

# check kernel log for anything suspicious, if it fails to load, it should tell
# you at the end of the output
dmesg

Thank you! I shall try this - I will let you know what i find!
 
  • Like
Reaktionen: amartinz
This is my terminal output :

Code:
$ adb shell
axolotl: / $ su
axolotl: / # lsmod
Module Size Used by
axolotl: / # modprobe -d / vendor / lib / modules wifi
modprobe: module wifi not found in modules.dep
1 空 axolotl: / #


It does not seem to display any modules at all...
 
Just in case, i've attached the stock 3.8 G boot.img as well as the directory /vendor/lib/modules.

This is my terminal output :

$ adb shell
axolotl: / $ su
axolotl: / # lsmod
Module Size Used by
axolotl: / # modprobe -d / vendor / lib / modules wifi
modprobe: module wifi not found in modules.dep
1 空 axolotl: / #


It does not seem to display any modules at all...

This is weird, it seems your wifi module is completly missing.
Could you please try as root:

Code:
ls -la /vendor/lib/modules
 

Anhänge

Just in case, i've attached the stock 3.8 G boot.img as well as the directory /vendor/lib/modules.



This is weird, it seems your wifi module is completly missing.
Could you please try as root:

Code:
ls -la /vendor/lib/modules



I have just run it - this is the output:

axolotl:/ # ls -la /vendor/lib/modules
total 12192
drwxr-xr-x 2 root shell 4096 2009-01-01 00:00 .
drwxr-xr-x 12 root shell 20480 2009-01-01 00:00 ..
-rw-r--r-- 1 root root 45 2009-01-01 00:00 modules.alias
-rw-r--r-- 1 root root 29 2009-01-01 00:00 modules.dep
-rw-r--r-- 1 root root 12632721 2009-01-01 00:00 wlan.ko
axolotl:/ #


Thanks for all your help!
 
Could it be that maybe when copy-pasting the commands you have introduced some typing errors?

The module exists, the alias as well, so modprobe should have worked.
You can also try insmod.

Code:
# Option 1
modprobe -d /vendor/lib/modules wlan

# Option 2
insmod /vendor/lib/modules/wlan.ko

# Check if modules are loaded
lsmod
modinfo /vendor/lib/modules/wlan.ko

Edit: sorry, for some reason i kept typing wifi instead of wlan.
 
Zuletzt bearbeitet:
Could it be that maybe when copy-pasting the commands you have introduced some typing errors?

The module exists, the alias as well, so modprobe should have worked.
You can also try insmod.

Code:
# Option 1
modprobe -d /vendor/lib/modules wifi

# Option 2
insmod /vendor/lib/modules/wifi.ko

# Check if modules are loaded
lsmod
modinfo /vendor/lib/modules/wifi.ko



I just tried all 3 of those commands and it seems only the first option seems to work

axolotl:/ # modprobe -d /vendor/lib/modules wifi
modprobe: module wifi not found in modules.dep
1|axolotl:/ # insmod /vendor/lib/modules/wifi.ko
insmod: /vendor/lib/modules/wifi.ko: No such file or directory
1|axolotl:/ # lsmod
Module Size Used by
axolotl:/ # modinfo /vendor/lib/modules/wifi.ko
modinfo: /vendor/lib/modules/wifi.ko: No such file or directory
1|axolotl:/ #


It indeed seems like there must have been some sort of error pasting the first one in the first time
 
The files exist according to https://forum.shiftphones.com/threa...y-shiftphone-6mq-and-updating.4736/post-44128

But when trying to access them, they seem to vanish, which is weird.

You could try manually installing the latest 3.8 G OTA again to overwrite everything and hopefully restore a working state.
Otherwise we'd need to do some more digging.

1) Download https://downloads.shiftphones.com/builds/SHIFT6MQ.SOS.3.8.G.20220824-RELEASE-OTA.zip to your device
2) Open "Settings -> System -> Advanced -> System update"
3) At the top right there are 3 dots -> Local update
4) Select the downloaded OTA zip
5) Wait for the installation to finish and reboot your device


Edit: Please see below, i myself mixed up the names multiple times..
 
Oh sorry, i am stupid.

Please replace "wifi" with "wlan" in the above commands.
I am very sorry 🙈


Haha, NP! Its very easy to do, I just appreciate I'm getting help!

Here is the 3 commands ran again - seems like i have some sort of access permission issue for the first 2:

$ adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
axolotl:/ $ su
axolotl:/ # modprobe -d /vendor/lib/modules wlan
modprobe: can't load module wlan (/vendor/lib/modules/wlan.ko): Required key not available
1|axolotl:/ # insmod /vendor/lib/modules/wlan.ko
insmod: failed to load /vendor/lib/modules/wlan.ko: Required key not available
1|axolotl:/ # lsmod
Module Size Used by
axolotl:/ # modinfo /vendor/lib/modules/wlan.ko
filename: /vendor/lib/modules/wlan.ko
author: Qualcomm Atheros, Inc.
description: WLAN HOST DEVICE DRIVER
parmtype: enable_dfs_chan_scan:int
parmtype: enable_11d:int
parmtype: country_code:charp
parmtype: prealloc_disabled:byte
vermagic: 4.9.309-shift-ab150 SMP preempt mod_unload modversions aarch64
intree: Y
depends:
axolotl:/ #
 
Could you please download https://forum.shiftphones.com/attachments/boot_shift6mq-sos-3-8-g-20220824-zip.4628/ and extract it on your PC.
Then flash it with fastboot like:

Code:
adb reboot bootloader

fastboot flash boot boot.img
fastboot reboot


Huh - weird, the wifi is back...

Did i flash the wrong bootloader before assuambly?

boot_SHIFT6MQ.SOS.3.8.L.20220920 was the file I had...i guess i assumed wrong that the bootloaders were identical to each other....


Thank you so much for helping me btw! I was so worried i was going to have to return my phone!
 
Ah, this is working differently.
abl (Android BootLoader) is the bootloader.
boot is the boot image (Android Kernel + Ramdisk).

The versions of abl are (most of the time) exchangable, while the versions of the boot image need to match with the version you have installed.

So if you would like to root 3.8 G, you need to use the boot image of 3.8 G.
If you use 3.8 L it will not work.

Above is the boot image of 3.8 G, which you can use with magisk to patch and root your device.
 
Zuletzt bearbeitet:
Thank you so much! I think if it did not allow my phone to boot at all then I probably would have caught on much earlier that i had installed the wrong file...but because everything seemed to be working ok except the WIFI - i just thought that my phone broke! 😅

I am indeed rooting my phone again as we speak!

Once again - thanks for spending so much time to help me resolve this issue, Hope you have a great rest of your day/evening! :)
 
  • Like
Reaktionen: amartinz