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
  my pinephone melted norayr 2 356 02-26-2024, 04:53 PM
Last Post: tllim
  pinephone keyboard + dock question tuxcall 7 2,349 02-05-2024, 03:17 PM
Last Post: wigan
  various tricks to open the pinephone shengchieh 1 470 12-28-2023, 09:53 PM
Last Post: shengchieh
  Unsatisfactory GPS reception on PinePhone? LinAdmin2 53 53,431 12-17-2023, 11:42 AM
Last Post: robin.com.au
  PinePhone Pro not booting (Cap error!, pctl timeout) jealda 2 1,161 11-16-2023, 05:03 AM
Last Post: DrYak
  Pinephone frame damages Uturn 2 741 10-23-2023, 02:49 AM
Last Post: Uturn
  No calls in or out on beta IsaiahSp 0 541 09-28-2023, 10:44 PM
Last Post: IsaiahSp
  PinePhone Keyboard KJ6OHG 11 7,510 08-23-2023, 03:25 AM
Last Post: Kali
  PinePhone constantly vibrating and won't take charge ImmyChan 5 5,151 07-23-2023, 03:49 PM
Last Post: kb-zealot
  Using optical drives with Pinephone cdforever 2 1,003 07-18-2023, 01:28 PM
Last Post: cdforever

Forum Jump:


Users browsing this thread: 1 Guest(s)