PinePhone Beta Edition will not boot from MicroSD card
#21
Lightbulb 
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.
  Reply
#22
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.
  Reply
#23
(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?...7#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]
  Reply
#24
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?
  Reply
#25
(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-...ocket.html
  Reply
#26
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.
  Reply
#27
(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?
  Reply
#28
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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone + Keyboard for sale, little use ruemoo 4 374 10-28-2024, 08:37 PM
Last Post: AltonFox
  Modem Issues with the Pinephone Temmie19 2 237 10-16-2024, 07:54 AM
Last Post: Temmie19
  various tricks to open the pinephone shengchieh 3 1,315 09-16-2024, 03:42 AM
Last Post: biketool
  my pinephone melted norayr 6 2,006 04-04-2024, 07:22 PM
Last Post: Zebulon Walton
  Pinephone refusing to charge while suspended tiol 1 1,563 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 902 03-21-2024, 08:52 AM
Last Post: unrznbl
  pinephone keyboard + dock question tuxcall 7 4,170 02-05-2024, 03:17 PM
Last Post: wigan
  Unsatisfactory GPS reception on PinePhone? LinAdmin2 53 65,604 12-17-2023, 11:42 AM
Last Post: robin.com.au
  PinePhone Pro not booting (Cap error!, pctl timeout) jealda 2 2,056 11-16-2023, 05:03 AM
Last Post: DrYak
  Pinephone frame damages Uturn 2 1,612 10-23-2023, 02:49 AM
Last Post: Uturn

Forum Jump:


Users browsing this thread: 2 Guest(s)