samsung-m0: Wifi unavailable when booting to pmOS in the internal memory
Describe your issue
I've flashed postmarketOS to the internal memory (userdata partition) and the wifi is not detected after booting. Running pmOS from a SD card detects it and it works fine, though.
What's the expected behaviour?
Phone boots into Phosh in the internal memory and wifi is available.
What's the current behaviour?
Phone boots fine into Phosh in the internal memory, but wifi is not available.
How to reproduce your issue?
Flash TWRP with Heimdall to the RECOVERY partition.
Boot into the recovery and identify the block device for the USERDATA partition:
(from TWRP) # ls -la /dev/block/platform/dw_mmc/by-name/USERDATA
(from a computer) $ adb shell ls -la /dev/block/platform/dw_mmc/by-name/USERDATA
This should point to something like /dev/block/mmcblk0p12 (partition 12 of the EMMC device 0).
(The initial idea was to replicate what it's done with the grouper, i.e. adb pushing the image to the block device. But due to memory constraints or my m0's USB being unreliable, I'm not sure, it didn't work.)
Follow the installation instructions to flash a pre-built image to the SD card and the boot image to the BOOT partition.
Boot into postmarketOS and connect to the internet via wifi. Then open Console:
$ sudo -i
# ls /dev/mmcblk*
Identify the userdata partition block device; in my case, /dev/mmcblk2p12 (partition 12 of the EMMC device 2, not 0 as before. Should be the one with a bunch of partitions).
Then download, uncompress and flash the pmOS image (at the same time since there's no space available to do it on different steps):
$ sudo -i
# URL=https://images.postmarketos.org/bpo/edge/samsung-m0/phosh/20221013-1154/20221013-1154-postmarketOS-edge-phosh-22.1-samsung-m0.img.xz
# wget -O - $URL | xzcat > /dev/mmcblk2p12
Power off, remove the SD card and power on again to boot from the internal memory.
What device are you using?
samsung-m0 (model GT-I9300)
On what postmarketOS version did you encounter the issue?
-
edge ( masterbranch) -
v22.06 -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh -
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
2022-10-13: 20221013-1154-postmarketOS-edge-phosh-22.1-samsung-m0.img.xz pre-built image