answered
2020-04-06 00:16:43 +0200
too 629 ●18 ●28 ●33
Thanks to everyone for hints. Answering my own question based on those and my iterative steps to resolve the issue.
In my case to get device fixed I had to route network traffic via USB interface. I think the following steps resemble
what I could have done (all in one terminal window):
1) connect device to linux pc via USB cable
2) configure ip forwarding and ip masquerading on linux pc
linux-pc$ sudo zsh :; bash or any other shell works, too
linux-pc# echo 1 > /proc/sys/net/ipv4/ip_forward
linux-pc# : drop current rules -- may interfere
linux-pc# iptables -F; iptables -t nat -F
linux-pc# iptables -X; iptables -t nat -X
linux-pc# in_if=enp0s26u1u1 net_if=wlp3s0
linux-pc# iptables -t nat -A POSTROUTING -o $net_if -j MASQUERADE
linux-pc# iptables -A FORWARD -i $net_if -o $in_if -m state --state RELATED,ESTABLISHED -j ACCEPT
linux-pc# iptables -A FORWARD -i $in_if -o $net_if -j ACCEPT
linux-pc# exit
linux-pc$
3) ssh to the device
linux-pc$ ssh nemo@192.168.2.15
...
[nemo@Sailfish ~]$
4) route network traffic via USB interface
[nemo@Sailfish ~]$ devel-su
[root@Sailfish nemo]# /sbin/ip route add default via 192.168.2.13
[root@Sailfish nemo]# echo 1.1.1.1 > /etc/resolv.conf
5) install zypper
[root@Sailfish nemo]# pkcon install zypper
6) follow steps in https://together.jolla.com/question/224414/bricked-my-xa2-plus-after-33014-update/?answer=224420#post-id-224420
[root@Sailfish nemo]# mv /var/cache/zypp /var/cache/zypp-old
[root@Sailfish nemo]# ln -s /home/.pk-zypp-dist-upgrade-cache /var/cache/zypp
[root@Sailfish nemo]# zypper dup
[root@Sailfish nemo]# rm /var/cache/zypp
[root@Sailfish nemo]# mv /var/cache/zypp-old /var/cache/zypp
[root@Sailfish nemo]# reboot
7) continue the instructions in page shown above -- you may or may not need to do 3-4 again (I don't know, I cannot redo these steps...)
linux-pc$ ssh nemo@192.168.2.15
[nemo@Sailfish ~]$ devel-su
[root@Sailfish nemo]# ssu re 3.3.0.14
[root@Sailfish nemo]# version --dup ;: if no network here redo steps 3-4