Pinephone full update fails to reboot

Just upgraded my pinephone (PPHONE-BE2) with sudo pacman -Syu… noticed nothing in particular (on such a small screen)… then rebooted - oups! nothing. hold the power on button for a few seconds, the red light comes on, then turns clear (yellow?)… then nothing … waited about a quarter of an hour, tried again.
same thing.

Is there a magic incantation to be able to get more verbose output? tried connecting the docking station with a terminal and keyboard, but nothing is seen.

Hints on how to get back into operation?

cheers,

richard

[I should add that I was current to just the other day]

Does the LED go out?

Nothing on the screen?

What does output in UART say?

Can you reach it via ssh or ping?

Sounds like the battery died.

Does the LED go out?

yes, right after turning clear.

Nothing on the screen?

screen flashes once just when the led changes, then goes black.

What does output in UART say?

How can I see this?

Can you reach it via ssh or ping?

Tried reset again plugged into the RJ45 port, only a small bit of activity when the led flashes
then goes quiet with no ethernet access.

That’d be sad as it’s hardly used. Tried with the battery removed to no avail.

Trying this again now, it doesn’t even flash the RJ45 port leds… :frowning:

Ordered a serial console → USB cable and now can see a bit about what is going on.
With the battery out:

U-Boot 2021.07-1 (Jul 10 2021 - 11:33:59 +0000) Manjaro Linux ARM

CPU:   Allwinner A64 (SUN50I)
Model: Pine64 PinePhone (1.2)
DRAM:  3 GiB
DRAM Clock: 528 MHz
MMC:   mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... 
U-Boot SPL 2021.07-1 (Jul 10 2021 - 11:33:59 +0000)
DRAM: 3072 MiB
Trying to boot from MMC2
NOTICE:  BL31: v2.4(debug):
NOTICE:  BL31: Built : 11:33:59, Jul 10 2021
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x208dbf0, model: Pine64 PinePhone (1.2)
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP803 on RSB
INFO:    PMIC: dcdc1 voltage: 3.300V
INFO:    PMIC: dcdc5 voltage: 1.200V
INFO:    PMIC: dcdc6 voltage: 1.100V
INFO:    PMIC: dldo1 voltage: 3.300V
INFO:    PMIC: dldo2 voltage: 1.800V
INFO:    PMIC: dldo3 voltage: 2.800V
INFO:    PMIC: dldo4 voltage: 1.800V
INFO:    PMIC: fldo1 voltage: 1.200V
INFO:    PMIC: Enabling DC SW
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 843419 was applied
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
INFO:    PSCI: Suspend is available via SCPI
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9

which repeats itself over and over

But with the battery in:

INFO:    PSCI Power Domain Map:
INFO:      Domain Node : Level 2, parent_node -1, State ON (0x0)
INFO:      Domain Node : Level 1, parent_node 0, State ON (0x0)
INFO:      CPU Node : MPID 0x0, parent_node 1, State ON (0x0)
INFO:      CPU Node : MPID 0x1, parent_node 1, State ON (0x0)
INFO:      CPU Node : MPID 0x2, parent_node 1, State ON (0x0)
INFO:      CPU Node : MPID 0x3, parent_node 1, State ON (0x0)

U-Boot SPL 2021.07-1 (Jul 10 2021 - 11:33:59 +0000)
DRAM: 3072 MiB
Trying to boot from MMC2
NOTICE:  BL31: v2.4(debug):
NOTICE:  BL31: Built : 11:33:59, Jul 10 2021
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x208dbf0, model: Pine64 PinePhone (1.2)
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP803 on RSB
INFO:    PMIC: dcdc1 voltage: 3.300V
INFO:    PMIC: dcdc5 voltage: 1.200V
INFO:    PMIC: dcdc6 voltage: 1.100V
INFO:    PMIC: dldo1 voltage: 3.300V
INFO:    PMIC: dldo2 voltage: 1.800V
INFO:    PMIC: dldo3 voltage: 2.800V
INFO:    PMIC: dldo4 voltage: 1.800V
INFO:    PMIC: fldo1 voltage: 1.200V
INFO:    PMIC: Enabling DC SW
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 843419 was applied
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
INFO:    PSCI: Suspend is available via SCPI
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2021.07-1 (Jul 10 2021 - 11:33:59 +0000) Manjaro Linux ARM

CPU:   Allwinner A64 (SUN50I)
Model: Pine64 PinePhone (1.2)
DRAM:  3 GiB
DRAM Clock: 528 MHz
MMC:   mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc1:1... In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Set ram_freq : 528
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
975 bytes read in 1 ms (952.1 KiB/s)
## Executing script at 4fc00000
gpio: pin 98 (gpio 98) value is 1
gpio: pin 114 (gpio 114) value is 1
19179528 bytes read in 411 ms (44.5 MiB/s)
gpio: pin 98 (gpio 98) value is 0
52071 bytes read in 5 ms (9.9 MiB/s)
7239697 bytes read in 157 ms (44 MiB/s)
gpio: pin 115 (gpio 115) value is 1
Moving Image from 0x40080000 to 0x40200000, end=414b0000
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 49918000, end 49fff811 ... OK
   Loading Device Tree to 0000000049908000, end 0000000049917b66 ... OK

Starting kernel ...

WARNING: Unimplemented Standard Service Call: 0x84000050 
Starting version 249.2-1-arch
ROOT_MNJRO: clean, 185721/1880480 files, 1911158/7531187 blocks
[    5.514405] systemd[1]: Failed to start Load Kernel Modules.
[FAILED] Failed to start Load Kernel Modules.
[FAILED] Failed to start Zram-based…compressed RAM block devices).

Manjaro Linux 5.13.7-1-MANJARO-ARM (ttyS0)

plasma-mobile login: root
Password: 
Welcome to Manjaro-ARM
~~Website: https://manjaro.org
~~Forum:   https://forum.manjaro.org/c/arm
~~Matrix:  #manjaro-arm-public:matrix.org
Last login: Sat Aug 21 17:42:55 on ttyS0
[root@plasma-mobile ~]#

I can do things like dmesg, but sincethe ethernet/usb adapter doesn’t work due to the problem with loading kernel modules can’t do anything really.

WTF went wrong? How to fix it without network or usb ports working?

You can try re-installing the kernel package, which should be in your cache:

sudo pacman -U /var/cache/pacman/pkg/linux-pinephone-*

Didn’t change anything.
Checked journalctl output for:

[root@plasma-mobile ~]# journalctl --no-pager -xeu systemd-modules-load.service
-- Journal begins at Sun 2021-08-08 20:55:44 CEST, ends at Sat 2021-08-21 17:46:43 CEST. --
Aug 21 17:45:26 plasma-mobile systemd[1]: Starting Load Kernel Modules...
-- Subject: A start job for unit systemd-modules-load.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit systemd-modules-load.service has begun execution.
-- 
-- The job identifier is 1557.
Aug 21 17:45:26 plasma-mobile systemd-modules-load[5170]: Failed to look up module alias 'crypto_user': Function not implemented
Aug 21 17:45:26 plasma-mobile systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- An ExecStart= process belonging to unit systemd-modules-load.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
Aug 21 17:45:26 plasma-mobile systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The unit systemd-modules-load.service has entered the 'failed' state with result 'exit-code'.
Aug 21 17:45:26 plasma-mobile systemd[1]: Failed to start Load Kernel Modules.
-- Subject: A start job for unit systemd-modules-load.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit systemd-modules-load.service has finished with a failure.
-- 
-- The job identifier is 1557 and the job result is failed.

This looks like Systemd-modules-load -> `Failed to look up module alias 'crypto_user' : Function not implemented`

But now that I went back to the pp, it went quiet, so power cycled it and I’m back in an endless loop with:

U-Boot SPL 2021.07-1 (Jul 10 2021 - 11:33:59 +0000)
DRAM: 3072 MiB
Trying to boot from MMC2
NOTICE:  BL31: v2.4(debug):
NOTICE:  BL31: Built : 11:33:59, Jul 10 2021
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x208dbf0, model: Pine64 PinePhone (1.2)
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP803 on RSB
INFO:    PMIC: dcdc1 voltage: 3.300V
INFO:    PMIC: dcdc5 voltage: 1.200V
INFO:    PMIC: dcdc6 voltage: 1.100V
INFO:    PMIC: dldo1 voltage: 3.300V
INFO:    PMIC: dldo2 voltage: 1.800V
INFO:    PMIC: dldo3 voltage: 2.800V
INFO:    PMIC: dldo4 voltage: 1.800V
INFO:    PMIC: fldo1 voltage: 1.200V
INFO:    PMIC: Enabling DC SW
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 843419 was applied
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
INFO:    PSCI: Suspend is available via SCPI
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2021.07-1 (Jul 10 2021 - 11:33:59 +0000) Manjaro Linux ARM

CPU:   Allwinner A64 (SUN50I)
Model: Pine64 PinePhone (1.2)
DRAM:  3 GiB
DRAM Clock: 528 MHz
MMC:   mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc1:1... In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Set ram_freq : 528
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
975 bytes read in 1 ms (952.1 KiB/s)
## Executing script at 4fc00000
gpio: pin 98 (gpio 98) value is 1
gpio: pin 114 (gpio 114) value is 1
19179528 bytes read in 411 ms (44.5 MiB/s)
gpio: pin 98 (gpio 98) value is 0
52071 bytes read in 5 ms (9.9 MiB/s)
7239697 bytes read in 157 ms (44 MiB/s)
gpio: pin 115 (gpio 115) value is 1
Moving Image from 0x40080000 to 0x40200000, end=414b0000
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 49918000, end 49fff811 ... OK
   Loading Device Tree to 0000000049908000, end 0000000049917b66 ... OK

Starting kernel ...

WARNING: Unimplemented Standard Service Call: 0x84000050 
Starting version 249.2-1-arch
ROOT_MNJRO: recovering journal
ROOT_MNJRO: clean, 185770/1880480 files, 1925486/7531187 blocks
[    5.090134] systemd[1]: Failed to start Load Kernel Modules.
[FAILED] Failed to start Load Kernel Modules.

How can I reset back to factory config (or equivalent)?

I put Manjaro-ARM-plasma-mobile-pinephone-beta6.img onto a sd card and booted it…
Booting is a bit better, but I see the following messages:

U-Boot SPL 2021.07-1 (Jul 10 2021 - 11:33:59 +0000)
DRAM: 3072 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.4(debug):
NOTICE:  BL31: Built : 11:33:59, Jul 10 2021
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x208dbf0, model: Pine64 PinePhone (1.2)
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    PMIC: Probing AXP803 on RSB
INFO:    PMIC: dcdc1 voltage: 3.300V
INFO:    PMIC: dcdc5 voltage: 1.200V
INFO:    PMIC: dcdc6 voltage: 1.100V
INFO:    PMIC: dldo1 voltage: 3.300V
INFO:    PMIC: dldo2 voltage: 1.800V
INFO:    PMIC: dldo3 voltage: 2.800V
INFO:    PMIC: dldo4 voltage: 1.800V
INFO:    PMIC: fldo1 voltage: 1.200V
INFO:    PMIC: Enabling DC SW
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 843419 was applied
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
INFO:    PSCI: Suspend is available via SCPI
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2021.07-1 (Jul 10 2021 - 11:33:59 +0000) Manjaro Linux ARM

CPU:   Allwinner A64 (SUN50I)
Model: Pine64 PinePhone (1.2)
DRAM:  3 GiB
DRAM Clock: 528 MHz
MMC:   mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Set ram_freq : 528
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
975 bytes read in 1 ms (952.1 KiB/s)
## Executing script at 4fc00000
gpio: pin 98 (gpio 98) value is 1
gpio: pin 114 (gpio 114) value is 1
19179528 bytes read in 796 ms (23 MiB/s)
gpio: pin 98 (gpio 98) value is 0
52591 bytes read in 5 ms (10 MiB/s)
7369193 bytes read in 307 ms (22.9 MiB/s)
gpio: pin 115 (gpio 115) value is 1
Moving Image from 0x40080000 to 0x40200000, end=414b0000
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 498f8000, end 49fff1e9 ... OK
   Loading Device Tree to 00000000498e8000, end 00000000498f7d6e ... OK

Starting kernel ...

WARNING: Unimplemented Standard Service Call: 0x84000050 
[    1.442246] sunxi-mmc 1c11000.mmc: fatal err update clk timeout
Starting version 249.3-1-arch
[    2.202304] sunxi-mmc 1c11000.mmc: fatal err update clk timeout
[    2.960167] sunxi-mmc 1c11000.mmc: fatal err update clk timeout
ROOT_MNJRO: clean, 172916/3861312 files, 1622236/15567835 blocks
[    8.904050] iio iio:device3: failed to read Who-Am-I register.

Manjaro Linux 5.13.12-2-MANJARO-ARM (ttyS0)

manjaro-arm login:

The messages after the ‘Starting the kernel…’ are the most preoccupying.

Not sure what to do next, already made sure via pacman -Syu that the system was up to date.

Also, can’t seem to stop the ‘welcome’ app from running, already run once for timezone, wifi and user, but it keeps re-running then failing on my user (certainly because he exists already).