We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Xperia X: rokua update failed -- stuck in "airplane mode" after reboot [(self)answered]

asked 2020-04-05 17:06:31 +0200

too gravatar image

updated 2020-04-06 10:42:06 +0200

jiit gravatar image

Hi

On Xperia X Rokua update failed with "Käyttöjärjestelmää ei voinut päivittää"

After device rebooted, There are only battery charge percentage in upper left corner and airplane picture in upper right corner.

After dragging the top menu the airplane mode button does not show it being active, but if I click that then the airplane picture in that button changes to "päällä" and no longer toggles off from this. In upper left corner "meneillään" text just appears and stays there for a while.

As currently all networking (and normal phone operations) are down, is there anything I can do (from command line as root if necessary) to re-activate normal functionality?

edit retag flag offensive close delete

Comments

5 Answers

Sort by » oldest newest most voted
1

answered 2020-04-05 17:28:15 +0200

cartron gravatar image

see my answer here: https://together.jolla.com/question/224414/bricked-my-xa2-plus-after-33014-update/?answer=224420#post-id-224420

edit flag offensive delete publish link more

Comments

thanks for quick response....

... but for some strange reason there is no command (nor file!) 'zypper' anywhere in my filesystem

i.e. # find / -type f -name zypper -print 2>/dev/null

did not print anything

any idea anyone ?

too ( 2020-04-05 17:45:38 +0200 )edit
1

answered 2020-04-05 17:56:10 +0200

cartron gravatar image

that's because zypper is not installed - typically done with pkcon, but since you don't have network connectivity, that's not possible anymore

So you'll need to download it from your PC.

You'll need those 2 packages:

Put them on a SD Card that you can insert in your Xperia X, then run the terminal and install both packages (starting with the 1st one, then zypper).

edit flag offensive delete publish link more

Comments

2

(keeping this as notebook while resolving it -- editing every now and then so things don't get lost)

.

EDIT0: thanks -- No need for sd card -- USB networking works -- i.e. got: nemo@192.168.2.15's password:

.

EDIT1:

# pkcon install-local  augeas-libs-1.6.0+git1-1.2.9.jolla.armv7hl.rpm zypper-1.14.6+git4-1.4.1.jolla.armv7hl.rpm

worked

.

EDIT2:

The zypper dup and version --dup commands in that other thread want to download files from internet, which does not work when there is no network (by default). as USB networking works I'll try to route traffic there.

.

EDIT3:

No ifconfig(1) nor ip(1) -- manual download (was it net-tools the package name :O)

.

EDIT4: /sbin/ip there is -- forgot to do devel-su before trying...

.

EDIT5:

/sbin/ip route add default via 192.168.2.13 should take care of routing - ip was already set

how to do name service ??? trying echo nameserver 1.1.1.1 > /etc/resolv.conf

.

EDIT6: echo nameserver 1.1.1.1 >/etc/resolv.conf does not work -- will write addresses to /etc/hosts (after I get linux pc part to work...)

.

EDIT7: to get routing work on Fedora 31, had to write

$ sudo zsh

# echo 1 > /proc/sys/net/ipv4/ip_forward

# iptables -F
# iptables -X

# iptables -t nat -F
# iptables -t nat -X

# iptables -L
# iptables -t nat -L

# iptables -t nat -I POSTROUTING 1 -o wlp3s0 -j MASQUERADE
# iptables -A FORWARD -i wlp3s0 -o enp0s26u1u1 -m state --state RELATED,ESTABLISHED -j ACCEPT
# iptables -A FORWARD -i enp0s26u1u1 -o wlp3s0 -j ACCEPT

.

EDIT8:

[root@Sailfish nemo]# version --dup         
REFRESHING CACHE AND DOWNLOADING PACKAGES
Refreshing: 20%

ongoing !!!

.

EDIT9:

and the phone works again -- thanks for all the hints !!! -- will create cleaned-up answer a bit later

too ( 2020-04-05 18:56:53 +0200 )edit

I probably had readline already installed....

Anyway, if networking is down trying to fix will fail later due to zypper trying to download stuff from interned -- therefore if you first route network via USB connection the you can just pkcon install zypper first.

too ( 2020-04-05 23:49:33 +0200 )edit
1

answered 2020-04-06 00:16:43 +0200

too gravatar image

updated 2020-04-06 10:49:36 +0200

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
edit flag offensive delete publish link more
0

answered 2020-04-05 23:26:34 +0200

simc gravatar image

I'm french like you and I've the same issue but when i try to install zypper, pkcons add another dependencie and i've no found this third rpm.

Do you where can i find readline-8.0+git1-1.4.1.jolla.armv7hl.rpm

thank you in advance

[root@XperiaXA2 tmp]# pkcon install-local  augeas-libs-1.6.0+git1-1.2.9.jolla.armv7hl.rpm zypper-1.14.6+git4-1.4.1.jolla.armv7hl.rpm
Installing files
Testing changes
Finished                                                                                                                         [                                                                ] (0%)
The following packages have to be installed:
 augeas-libs-1.6.0+git1-1.2.9.jolla.armv7hl Libraries for augeas
 readline-8.0+git1-1.4.1.jolla.armv7hl  A library for editing typed command lines
 zypper-1.14.6+git4-1.4.1.jolla.armv7hl Command line software manager using libzypp


Installing files
Testing changes
Finished
Installing files
Starting
Resolving dependencies
Downloading packages
Finished
Fatal error: Download (curl) error for 'https://releases.jolla.com/releases/3.2.1.20/jolla/armv7hl/core/armv7hl/readline-8.0+git1-1.4.1.jolla.armv7hl.rpm':
Error code: Connection failed
Error message: Could not resolve host: releases.jolla.com
edit flag offensive delete publish link more
0

answered 2020-04-06 14:45:38 +0200

simc gravatar image

it's not better with USB network, readline-8.0 could not be found.... If nothing else , i think i will save and flash my XA2

edit flag offensive delete publish link more

Comments

I looked a bit for readline package -- and could not find one

pkcon get-packages lists as installed in my device...


but if you going to flash anyway you could try w/o doing the zypper part, just ssu re... and version --dup

(i did not redo zypper part after getting usb networking done -- and that part did give me quite a few failures...)

too ( 2020-04-06 19:55:40 +0200 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2020-04-05 17:06:31 +0200

Seen: 620 times

Last updated: Apr 06 '20