01-29-2023, 12:20 PM 
		
	
	
		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. 
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:
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.
	
	
	
	

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 = <®_dcdc1>;
        vqmmc-supply = <®_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.

 PinePhone Beta Edition will not boot from MicroSD card
				