PinePhone Beta Edition will not boot from MicroSD card
#1
My PinePhone will boot from the eMMC, but will not boot from a MicroSD card that boots in another PinePhone.

I asked about this over in the software section, but am wondering if it could be a hardware problem. Here is a link to that post: https://forum.pine64.org/showthread.php?tid=13703

Before anyone asks, I have the card in the upper slot, I have made sure there is nothing visibly interfering with the card making contact, and I have tried three different cards. All three of the cards will boot in my friends Beta Edition PinePhone, but none of them will boot in my PinePhone.

When I attempt to boot I get a solid red notification LED and the phone never finishes booting.

I just tested booting with a MicroSD installed and no OS on the card. The phone booted to the eMMC as I would expect, and I was able to access the MicroSD card. Would this indicate an issue with the boot loader? If so, how do I re-flash the boot loader?

Thank you for any suggestions.

Timothy
  Reply
#2
Here is what I get from the serial console when I try to boot from a MicroSD card that works in another Beta Edition PinePhone:

U-Boot SPL 2021.01-rc4-0 (Mar 29 2021 - 14:39:18 +0000)
DRAM: 3072 MiB
Trying to boot from MMC1
MMC: no card present
spl: mmc init failed with error: -123
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
  Reply
#3
Just guessing. SD cards have a 1bit and 4bit mode for data transfer. One of the 3 additional pins needed for 4bit mode may be damaged. Maybe U-Boot wants to use 4bit mode and fails to initialize. Take a look at the spring contacts in the socket for anything bent.

Pretty sure U-Boot is running off the SD card so it is reading it. The date in your serial output is recent. Try flashing an older image and see if the date changes.
  Reply
#4
Interesting, thanks for the suggestion. As far as I can tell there is nothing wrong with the pins, but take a look at the image below and see what you think.

Just tried with Manjaro-ARM-phosh-pinephone-beta6 and got more or less the same result. It does indeed appear that U-Boot is running off the card, but it doesn't get any farther. This image also booted just fine in the other PinePhone.

To me this seems to point to a hardware problem.

U-Boot SPL 2020.07-rc4-11.2 (Jan 31 2021 - 14:19:48 +0000)
DRAM: 3072 MiB
Trying to boot from MMC1
MMC: no card present
spl: mmc init failed with error: -123
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###



[Image: P4041662-crop-Copy.jpg]
  Reply
#5
Looks ok to me. Nothing bent or touching.

When you insert a SD card while running off the eMMC what does dmesg output?

This is what I get:
Code:
[  119.689851] mmc0: new high speed SDXC card at address 59b4
[  119.692761] mmcblk0: mmc0:59b4 SPCC  232 GiB
[  119.704219]  mmcblk0: p1

I suspect it isn't seeing it as a high speed device. Some kind of communications problem between the socket and the SOC
  Reply
#6
I am getting pretty close to the same. I used two different cards to see if there would be any major differences.

Code:
[  128.196245] mmc0: new high speed SDXC card at address 0001
[  128.198359] mmcblk0: mmc0:0001 GD4QT 119 GiB
[  128.202273]  mmcblk0: p1


[  116.418000] mmc0: new high speed SDHC card at address 0001
[  116.419305] mmcblk0: mmc0:0001 JB1RT 29.8 GiB
[  116.422489]  mmcblk0: p1 p2
  Reply
#7
Good and bad news. I can reproduce your error.

I was playing with the microSD extension cable https://pine64.com/product/pinephone-mic...46c16e2e66
It worked fine but after removing it and booting from eMMC my data SD card was not mounting at boot. If I did a 'sudo mount -a' it would mount. If I slid it out and back in it would mount.

I then tried a SD card with an OS on it. I get the same error you do over the serial console.
Code:
U-Boot SPL 2020.10-3 (Dec 03 2020 - 06:43:18 +0000)
DRAM: 2048 MiB
Trying to boot from MMC1
MMC: no card present
spl: mmc init failed with error: -123
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

The microSD extender damaged the pins in some way. The upside is that using the microSD extender I can boot off a SD card. So it must have bent the pins too flat or something. It is a tight fit.

I am going to do some more testing on the data SD card without the extender. To see if it is reliable or if the connection is intermittent and I will have to leave the extender attached for it to work reliably.
  Reply
#8
I inadvertently fixed it. The card insertion switch was damaged. Not exactly sure how, but mine is now permanently shorted (thinks a card is always inserted.) I don't know what side effect this will cause, it not knowing when a card is removed. But since I would probably not ever remove a card that is mounted, I can live with that.

https://forum.pine64.org/showthread.php?...8#pid94178
  Reply
#9
(05-06-2021, 11:33 AM)8bit Wrote: Good and bad news. I can reproduce your error.

I was playing with the microSD extension cable https://pine64.com/product/pinephone-mic...46c16e2e66
It worked fine but after removing it and booting from eMMC my data SD card was not mounting at boot. If I did a 'sudo mount -a' it would mount. If I slid it out and back in it would mount.

I then tried a SD card with an OS on it. I get the same error you do over the serial console.

The microSD extender damaged the pins in some way. The upside is that using the microSD extender I can boot off a SD card. So it must have bent the pins too flat or something. It is a tight fit.

I am going to do some more testing on the data SD card without the extender. To see if it is reliable or if the connection is intermittent and I will have to leave the extender attached for it to work reliably.

Very Interesting. I just tried one of the microSD extenders and my PinePhone boots straight to the eMMC without even trying to boot from the MicroSD card in the extender. From the sounds of what you found my PinePhone must have come with a damaged MicroSD card slot for some reason.

Just realized I was inserting the MicroSD card into the extender improperly. I get the same failure to boot using the extender as I do with the card in the normal slot.

Code:
U-Boot SPL 2020.07-rc4-11.2 (Jan 31 2021 - 14:19:48 +0000)
DRAM: 3072 MiB
Trying to boot from MMC1
MMC: no card present
spl: mmc init failed with error: -123
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
  Reply
#10
It looks like it is possible to compile U-Boot to ignore the card detection pin.
https://gitlab.com/pine64-org/u-boot/-/b...L2867-2879
https://patchwork.ozlabs.org/project/ubo...inaro.org/

This might be a good default setting since U-Boot would only ever run if there really was a SD card that it is running off of.
https://gitlab.com/pine64-org/u-boot/-/b..._defconfig
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone + Keyboard for sale, little use ruemoo 4 380 10-28-2024, 08:37 PM
Last Post: AltonFox
  Modem Issues with the Pinephone Temmie19 2 242 10-16-2024, 07:54 AM
Last Post: Temmie19
  various tricks to open the pinephone shengchieh 3 1,330 09-16-2024, 03:42 AM
Last Post: biketool
  my pinephone melted norayr 6 2,031 04-04-2024, 07:22 PM
Last Post: Zebulon Walton
  Pinephone refusing to charge while suspended tiol 1 1,565 04-02-2024, 10:54 AM
Last Post: joH_N_Doe64
  pinephone can provide more than 500mA to a usb-c displayport device? unrznbl 2 913 03-21-2024, 08:52 AM
Last Post: unrznbl
  pinephone keyboard + dock question tuxcall 7 4,176 02-05-2024, 03:17 PM
Last Post: wigan
  Unsatisfactory GPS reception on PinePhone? LinAdmin2 53 65,816 12-17-2023, 11:42 AM
Last Post: robin.com.au
  PinePhone Pro not booting (Cap error!, pctl timeout) jealda 2 2,057 11-16-2023, 05:03 AM
Last Post: DrYak
  Pinephone frame damages Uturn 2 1,615 10-23-2023, 02:49 AM
Last Post: Uturn

Forum Jump:


Users browsing this thread: 1 Guest(s)