PINE64
PinePhone Beta Edition will not boot from MicroSD card - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Hardware (https://forum.pine64.org/forumdisplay.php?fid=122)
+--- Thread: PinePhone Beta Edition will not boot from MicroSD card (/showthread.php?tid=13775)

Pages: 1 2 3


RE: PinePhone Beta Edition will not boot from MicroSD card - 8bit - 05-11-2021

Success. I compiled the fix/3gb-boot branch and it boots on 3GB and 2GB PinePhone. https://github.com/8bitgc/Jumpdrive/tree/master/test

I also broke the pin on my phone with the switch stuck closed, so that it won't boot with regular JumpDrive.
Code:
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 ###

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 ###

DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.2():0.6-alpha
NOTICE:  BL31: Built : 05:43:34, May 11 2021
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE:  BL31: Found U-Boot DTB at 0x4064a40, model: PinePhone
NOTICE:  PSCI: System suspend is unavailable


U-Boot 2020.07 (May 11 2021 - 05:57:00 -1000)

DRAM:  2 GiB
MMC:   Device 'mmc@1c11000': seq 1 is in use by 'mmc@1c10000'
mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

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
653 bytes read in 3 ms (211.9 KiB/s)
## Executing script at 4fc00000
gpio: pin 114 (gpio 114) value is 1
8940791 bytes read in 397 ms (21.5 MiB/s)
Uncompressed size: 19458056 = 0x128E808
35950 bytes read in 4 ms (8.6 MiB/s)
1119110 bytes read in 52 ms (20.5 MiB/s)
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Ramdisk to 49eee000, end 49fff386 ... OK
   Loading Device Tree to 0000000049ee2000, end 0000000049eedc6d ... OK

Starting kernel ...
Two failed boots with normal JumpDrive then a successful boot with the modified JumpDrive.

My first attempt was using U-Boot 2020.04, the fix\3gb-boot branch uses U-Boot 2020.07.


RE: PinePhone Beta Edition will not boot from MicroSD card - Timothy_Ecc - 05-11-2021

Glad it is working!

Thanks for the tip on the rubber boot for the proximity sensor, it was stuck to the screen, but worth checking anyway.


RE: PinePhone Beta Edition will not boot from MicroSD card - Timothy_Ecc - 05-17-2021

(05-17-2021, 11:39 AM)ncc Wrote: i tried using "pine64-pinephone_badmmc_3g.img.xz", but it didn't work for my faulty pinephone: https://forum.pine64.org/showthread.php?tid=13616&pid=94717#pid94717

Do you have a serial cable that you could see what information is given when the phone attempts to boot? Also, you could make sure that the jump drive will boot in your other pinephone.

Likely you are having a different issue if the jump drive installation will not boot in your other pinephone. Maybe one of the other pins is bent in the card reader as you mentioned in the other thread. Here is what my functional card slot looks like:

[Image: P4041662-crop-Copy.jpg]


RE: PinePhone Beta Edition will not boot from MicroSD card - dlarson - 09-25-2021

I must have a similar HW issue. The Pinephone will not boot with a blank SD card or one with an image on it. I was finally able to get the modified version of Jump Drive to work so I could flash the eEMC. Any idea if this is a part that can be replaced?


RE: PinePhone Beta Edition will not boot from MicroSD card - 8bit - 09-25-2021

(09-25-2021, 06:34 AM)dlarson Wrote: I must have a similar HW issue.  The Pinephone will not boot with a blank SD card or one with an image on it.  I was finally able to get the modified version of Jump Drive to work so I could flash the eEMC.  Any idea if this is a part that can be replaced?

You can solder the SW pin to ground and it will think there is always a card inserted. https://blog.pineph.one/2021/05/damaged-sd-card-socket.html


RE: PinePhone Beta Edition will not boot from MicroSD card - drlizau - 08-01-2022

Thankyou for this information and the modified jumpdrive image. My pinephone beta never booted from the SD card, and I just put it aside when an update turned off the display.
Now I am able to use my pinephone again.


RE: PinePhone Beta Edition will not boot from MicroSD card - _radv_ - 12-08-2022

(09-25-2021, 06:34 AM)dlarson Wrote: I must have a similar HW issue.  The Pinephone will not boot with a blank SD card or one with an image on it.  I was finally able to get the modified version of Jump Drive to work so I could flash the eEMC.  Any idea if this is a part that can be replaced?

I have a similar problem.  My new Pine Phone won't recognize a MicroSD card.  Do you remember what you did to get your to work?


RE: PinePhone Beta Edition will not boot from MicroSD card - skandigraun - 01-29-2023

Same here. Got myself 2 SD card extenders, but after popping in one of them, my Pinephone stopped booting from sd card, referring to error -123. Sad

Finally managed to get it back to business by compiling u-boot with the above mentioned CONFIG_MMC_BROKEN_CD option, and modifying the device tree for the kernel: removed cd-gpios, and added broken-cd to mmc0's node:

Code:
--- ./arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi   2001-01-01 00:00:00.000000000 +0000
+++ ./arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi   2001-01-01 00:00:00.000000000 +0000
@@ -744,7 +744,7 @@
        pinctrl-0 = <&mmc0_pins>;
        vmmc-supply = <&reg_dcdc1>;
        vqmmc-supply = <&reg_dcdc1>;
-       cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+       broken-cd;
        disable-wp;
        bus-width = <4>;
        post-power-on-delay-ms = <1>; /* power is already turned on by the bootloader */


This way I can boot my own system from SD card again... thought would have been nicer if it doesn't break at all. Anyway, I'm off to give my extender a healthy dose of sandpaper.