Day 2, Season 2
Ramdumps galore (Day 33)
Let’s fix wifi first, then lipstick on boot next.
Wifi: adding a service /usr/lib/systemd/system/wifiservice.service
with
[Unit]
Description=wifisetup
After=droid-hal-init.service
Before=connman.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/modprobe qca_cld3_wlan
[Install]
WantedBy=network.target
And
cd /usr/lib/systemd/system/network.target.wants/
ln -s …/wifiservice.service wifiservice.service
Aaaand it reboots to GUI! But maybe it was a luck, because vibration does not work.
So it just probably adds enough timing for GUI to work, but not enough for - dunno, ngfd? - to work.
I still need to systemctl restart user@100000
to get vibration working.
So this service or its parent needs to wait for something else too.
Also… after restarting user@100000, and several seconds of usage, I get ramdump… !!
Of course it would’ve helped to have some pstore logs… again… but not today.
Playing with echo 1 > /sys/devices/platform/soc/990000.i2c/i2c-1/1-0038/fts_gesture_mode
From android_device_asus_sake/Sensor.h at lineage-19.1 · LineageOS/android_device_asus_sake · GitHub
Ramdump again.
Maybe unrelated…
Leaving the phone to charge over the day, and picking it up from the charger - ramdump again.
I need to always run with a telnet + dmesg on, as I saw on Day 25, sometimes the kernel has enough time to pass the crash details by dmesg + telnet…
Let’s also test bluetooth - does not work.
Fresh reboot command → ramdump :facepalm:
Let’s grab fresh logs from boot, to see what user@100000 should wait for for full functionality (right now it misses “just” vibration and… well… has too many ramdumps).
Journal: Ubuntu Pastebin
Logcat: Ubuntu Pastebin
Some things I consider debugging:
Process ‘/bin/ln -s /dev/block/sde31 /dev/block/platform/soc/by-name/mdtpsecapp_b’ failed with exit code 1
Running manually → file already exists (while perror 1
was: Operation not permitted)
(CPU:3-pid:31:wk:request_fir)aw8697_haptic 2-005a: [AW8697] Try to load firmware: /system/vendor/firmware/aw8697_haptic.bin
File exists after boot… haptic sounds like vibration-related. Wonder what was going on there.
Actually, that line was “written in red” but all the “Try to load firmware” ones are. Sometimes later:
(CPU:3-pid:31:wk:request_fir)aw8697_ram_loaded: fw update complete
Then
(CPU:5-pid:351:wk:cnss_driver)cnss: Antenna switch request failed, result: 1, err: 94
This might be GSM? Or wifi
connmand[5745]: Method “ListAdapters” with signature “” on interface “org.bluez.Manager” doesn’t exist
Bluetooth?
I notice some errors around pulseaudio and I realized that when I said vibration doesn’t work on normal boot, I didn’t check if audio works.
So I unlock the device (no sound on PIN entry), open the browser, type a popular video hosting service url (while noticing that the keyboard does do sound) press enter and…
Ramdump! Ubuntu Pastebin
Dmesg says on the last line:
wlan: [0:F:DP] dp_peer_update_state: Invalid state shift from 2 to 4 peer 00:11:32:c3:b0:e4
Message is in a macro. There are two of them actually - one that does ASSERT and one that doesn’t.
Let’s disable wifiservice and reboot.
Unfortunately the telnet connection does not work in the sailfishos browser…
Continuing to look at the previous boot logs:
wifi as inserted by lineage:
exec 18 (/vendor/bin/modprobe -a -d /vendor/lib/modules/ qca_cld3_wlan qca_cld3_qca6390)’ (pid 7516) exited with status 1 oneshot service took
Ah, modem:
[ 23.058881] (CPU:0-pid:7185:Binder:7150_2)subsys-restart: __subsystem_get(): Changing subsys fw_name to modem
[ 23.061469] (CPU:3-pid:7185:Binder:7150_2)ipa-wan ipa3_lcl_mdm_ssr_notifier_cb:2891 IPA received MPSS BEFORE_POWERUP
[ 23.061976] (CPU:1-pid:7185:Binder:7150_2)ipa-wan ipa3_lcl_mdm_ssr_notifier_cb:2900 IPA BEFORE_POWERUP handling is complete
[ 23.062198] (CPU:3-pid:7185:Binder:7150_2)subsys-pil-tz 4080000.qcom,mss: Direct firmware load for modem.mdt failed with error -2
[ 23.062211] (CPU:3-pid:7185:Binder:7150_2)subsys-pil-tz 4080000.qcom,mss: modem: Failed to locate modem.mdt(rc:-2)
[ 23.062309] (CPU:3-pid:7185:Binder:7150_2)pil_boot failed for modem
There is indeed a file /vendor/firmware_mnt/image/modem.mdt
The problem with that pil_boot
was that I already fixed some other ipa_fws
not loading but by using /vendor/firmware/
.
Let’s # ln -s /vendor/firmware_mnt/image /lib/firmware
and reboot.
Nope.
Sailfish porters logs: grep #sailfishos-porters archive
CONFIG_FW_LOADER_USER_HELPER=y
.
I don’t have that - mer kernel check… Let’s enable it.
And btw, let’s also remove the ASSERT from wlan, what can hurt.
Building will take a while.
Hmm… it seems that modem.mdt error is not present. But no ofono GSM connection either.
Also, wifi ramdump is something I need to check a whole day to have a verdict…