PINE64
SD slot damaged, can't boot from SD, what to do? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: SD slot damaged, can't boot from SD, what to do? (/showthread.php?tid=14539)



SD slot damaged, can't boot from SD, what to do? - nelstomlinson - 07-29-2021

I cannot boot from the SD, and apparently I need to do that to flash the eMMC. Pinephone Beta, convergence model, came with Manjaro.

The first time I tried to insert an SD card, it wouldn't go in right. I looked into the slot, and two of the contacts did not look like the others.  My son took it apart and was able see they were bent up.  He was able to bend them down, and I managed to insert an SD with Mobian and boot from it. Now I want to flash Mobian to the eMMC, so I put Jumpdrive on another SD, but now no matter how I insert either SD, it won't boot from it. 

Oddly enough the phone does recognize the SD card after booting from the eMMC! lsblk shows mmcblk0 size 59.9G when the card is inserted, but it won't boot from the SD card it can see after boot!

Two questions:

The SD slot is damaged. Is this repairable?  

The phone does see the SD card after booting, is there a way to make it boot?


RE: SD slot damaged, can't boot from SD, what to do? - mouffa - 07-29-2021

it is not damaged, download again the jumpdrive image and flash it, you flashed a corrupted image or it may got corrupted when you bent the contacts


RE: SD slot damaged, can't boot from SD, what to do? - mouffa - 07-29-2021

moreover make sure that you have not damaged the boot sectors of the SDs and that all the pins make contact


RE: SD slot damaged, can't boot from SD, what to do? - 8bit - 07-29-2021

Try this modified version of JumpDrive. It ignores the SD detect switch.
https://github.com/8bitgc/Jumpdrive/tree/master/test

If it works you can try bypassing the switch.
https://blog.pineph.one/2021/05/damaged-sd-card-socket.html


RE: SD slot damaged, can't boot from SD, what to do? - nelstomlinson - 07-29-2021

Mouffa, you're right that the slot is working as well as ever. I put the same Mobian image I downloaded a while back onto the same SD card using dd, and it boots from it again, same as it ever was.

I'm still trying to sort out what happened. Nearly as I can remember I ran Mobian on the SD for a couple of weeks, then decided I liked it and so I pulled it out of the phone and stuck it into the computer and used

sudo dd bs=1M if=/dev/sdc of=~/Pinephone/20200727.img

to make a backup copy. After that, it wouldn't boot from that SD. I tried booting from the Jumpdrive image also, and that image wouldn't boot, either, so I assumed the slot was acting up again. Anyway, the image I saved is apparently broken, and somehow the Jumpdrive image I downloaded from https://github.com/dreemurrs-embedded/Jumpdrive/releases/ is also broken. It's very strange that copying from the SD would mess it up, but I think that's what happened.

I want to flash Mobian to the eMMC, so I need to get a working, updated Mobian image off the SD card, and I need to get the Jumpdrive image to boot. I think I should be using the Jumpdrive image named pine64-pinephone (1).img.xz, right?


RE: SD slot damaged, can't boot from SD, what to do? - mouffa - 07-29-2021

this happens with jumpdrive, the image can be corrupted or a write error may happen while flashing, the boot sectors are crucial for a successful booting, I would suggest you keep a bootable OS on the SD and from there you can download and flash the eMMC though you will have to remove the SD every time you boot or keep a separate SD for this purpose, I just pull the SD and leave it in the case, it is secured between the battery and the case


RE: SD slot damaged, can't boot from SD, what to do? - nelstomlinson - 07-31-2021

It turned out that the nifty new 64G SD card I bought from Pine doesn't work.  Still don't know how I messed up the install on my old SD that does work, but it's solid for now.

The old Sandisk SD that I bought years ago when 64G was big and expensive still works great. I was able to back up my Mobian install which I had on the Sandisk, then I wrote the Jumpdrive utility to the Sandisk, then I was able to boot that and flash the Mobian install to the eMMC.  Problem solved, except that I got burned on that new SD.