Today my pinephone stopped booting: green led, black screen.
It allready happened to me once, it was after an upgrade that went bad (phone going to sleep before finishing building initrd, me not noticing, something like that), it was quick to resolve by mounting the phone on my laptop via USB, and chrooting in it.
But today it's harder, I tried multiple things with no luck:
- In a chroot ran: dpkg-reconfigure linux-image-5.15-sunxi64
- Configured an older kernel, and tried setting a rescue mode in /boot/extlinux/extlinux.conf directly, and noticing the comment, by modifying the files in /etc and running u-boot-update too.
- Dropped `splash` and added `console=tty1` in `/etc/u-boot-menu.d/pinephone.conf`, ran `u-boot-update`. (Still black screen at this point).
- Soldered a jack-to-USB using an old "FTDI Friend" round in a drawer so I can take a look at serial output (it works!)
At this point I noticed:
> Moving Image from 0x40080000 to 0x40200000, end=415b0000
> Loading Ramdisk to 452ba000, end 49fff776 ... OK
> FDT and ATAGS support not compiled in
>
> resetting ...
and after doodling around decided to remember that u-boot was no longer supported in Mobian.
So I installed tow-boot (wow it's nice not having to change the SD card each time I want to switch to mass storage ♥).
But still no luck, here's what I see over serial:
then nothing on the screen, nothing on serial, and it's time for me to go to sleep.
Any idea?
It allready happened to me once, it was after an upgrade that went bad (phone going to sleep before finishing building initrd, me not noticing, something like that), it was quick to resolve by mounting the phone on my laptop via USB, and chrooting in it.
But today it's harder, I tried multiple things with no luck:
- In a chroot ran: dpkg-reconfigure linux-image-5.15-sunxi64
- Configured an older kernel, and tried setting a rescue mode in /boot/extlinux/extlinux.conf directly, and noticing the comment, by modifying the files in /etc and running u-boot-update too.
- Dropped `splash` and added `console=tty1` in `/etc/u-boot-menu.d/pinephone.conf`, ran `u-boot-update`. (Still black screen at this point).
- Soldered a jack-to-USB using an old "FTDI Friend" round in a drawer so I can take a look at serial output (it works!)
At this point I noticed:
> Moving Image from 0x40080000 to 0x40200000, end=415b0000
> Loading Ramdisk to 452ba000, end 49fff776 ... OK
> FDT and ATAGS support not compiled in
>
> resetting ...
and after doodling around decided to remember that u-boot was no longer supported in Mobian.
So I installed tow-boot (wow it's nice not having to change the SD card each time I want to switch to mass storage ♥).
But still no luck, here's what I see over serial:
Code:
Tow-Boot 2021.10 (Oct 04 2021 - 15:09:26 +0000)004 [variant: mmcboot]
CPU: Allwinner A64 (SUN50I)
Model: Pine64 PinePhone (1.2)
DRAM: 3 GiB
MMC: mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net: No ethernet found.
Please press [ESCAPE] or [CTRL+C] to enter the boot menu.
off
off
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
995 bytes read in 2 ms (485.4 KiB/s)
U-Boot menu
1: Debian GNU/Linux bookworm/sid 5.15-sunxi64
2: Debian GNU/Linux bookworm/sid 5.15-sunxi64 (rescue target)
3: Debian GNU/Linux bookworm/sid 5.10-sunxi64
4: Debian GNU/Linux bookworm/sid 5.10-sunxi64 (rescue target)
Enter choice: 1: Debian GNU/Linux bookworm/sid 5.15-sunxi64
Retrieving file: /initrd.img-5.15-sunxi64
81025327 bytes read in 1739 ms (44.4 MiB/s)
Retrieving file: /vmlinuz-5.15-sunxi64
7448010 bytes read in 160 ms (44.4 MiB/s)
append: root=/dev/mapper/calamares_crypt ro
Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=415b0000
Loading Ramdisk to 452ba000, end 49fff92f ... OK
Starting kernel ...
then nothing on the screen, nothing on serial, and it's time for me to go to sleep.
Any idea?