Bricked PBP after writing image to eMMC?
#21
(12-05-2019, 01:52 PM)Surehand53 Wrote: So, now have un-bricked my PinebookPro and write this from my new Debian versin from the emmc.

My situation was this:
- emmc was turned off on the board (see wiki)
- SD card did boot

So now to get the emmc back again.

Prep:
- Set a shortcut in your desktop environment to easily start a terminal. (see below)
- Get a tiny pin to switch the emmc back on, ideally isolated.
- Put your boot SD card in

1. Unscrew the 10 screws at the back. You need a tiny screw driver for that, don't force it. then gently remove the bottom part of the PBP cover.
2. There are some medium loose bits inside, so don't turn it back. (see wiki for the screw fixture for example, also the loudspeaker can move when open)
3. The Wiki mentions not to open the display, however to turn it you have to open the display a bit. I did not open it fully, more like a 70 degrees angle. Be careful.
4. now the first tricky bit. You have to turn on the PBP. As the PBP is upside down check where the powerbutton is. Then bring your pin into position on the emmc switch.
5. Turn the PBP on. Wait two seconds (you practice with the stopwatch in your smartphone a bit to get that right).
6. The PBP schould now boot without problems from the SD card. But has the kernel found the emmc ?
7. As you have to operate the PBP upside down you use your shortcut to open a teminal. Then use command `lsblk` to see which drives are found. There should be two main devices called mmcblkX (X can vary). your emmc is the one without the root mount. In my case this worked in the first try, however if the timing in step 5 is not quite right you might have to repeat this. From there.
8. With the emmc active I have now closed my laptop and screwed the bottom back on. 
9. Open the PBP normally (not upside down)
10 Download a PBP image. I have used the standard Debian release. links in the wiki
11. unpack the downloaded image file and dd it to the emmc (instructions in the wiki)
12. reboot. done

It probably sounds more complicated than it is. Use common sense and don't apply pressure on the PBP.

This worked for me, well i didn't follow you 100%.  but i got it booted with the emmc recognized after flipping the switch after boot.  I got Kali installed on the emmc finally.  

this problem started when i resized my root partition after flashing it, i got a red light and it would sit there for a long time.

it would boot without resize, but that is not what i wanted and it doesn't resize on first boot.  the new Kali images are setup as one partition and not 2 like the manjaro setup.  I'm assuming this is why i had some problems with booting after resizing.  so i took a look at the Kali arm build scripts to see how they set the image to boot for the pinebook pro. 

these are the commands i used to make the drive bootable again, just note i did this for both the SD and EMMC

- expand partition on SD card, run cmd bellow from ${MNT}/boot
- after a successful boot I dd'ed the SD to the emmc and resized it to the max (120GB ish) and ran the cmds bellow again
-*- i used the flip switch trick from Surehand53 above < Thanks, it made my day! 



Code:
mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d boot.txt boot.scr
dd if=idbloader.img of=/dev/mmcblk2 seek=64 conv=notrunc
dd if=u-boot.itb of=/dev/mmcblk2 seek=16384 conv=notrunc


Now i have a working Kali install on both the SD and EMMC, don't need the SD anymore though.

Thanks to everyone else for your input and experiences with this issue, have a good one.
Power Distribution Tech and AV by trade, but I have been using Linux since around 2002.  I like the raspberry pi and pinebook pro, SBCs and the possibilities they open.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook Pro bricked? wofam 10 353 07-02-2020, 06:59 AM
Last Post: cefre00
  Upgrading eMMC and Installing Majaro XFCD 20.06 lyssa 0 43 07-01-2020, 05:27 PM
Last Post: lyssa
  Pinebook Pro not Booting at All eMMC or MicroSD AstroCEO 18 727 06-26-2020, 01:04 PM
Last Post: tophneal
  How to boot from eMMC but have root directory on an NVME? QazTheWsx 7 246 06-26-2020, 08:20 AM
Last Post: QazTheWsx
  Can't boot up Manjaro 20.04 eMMc image from SD card... rick1959 25 705 06-23-2020, 07:27 PM
Last Post: nathanielwheeler
  eMMC frequently not found by Linux kernel (especially on low battery) v-man 7 408 06-21-2020, 04:30 PM
Last Post: Arwen
  Manjaro KDE 20.04 - cant even mount SD card after dd Manjaro from SD to emmc rolf 0 103 06-20-2020, 10:01 AM
Last Post: rolf
  Reinstalling factory debian image ippl3 2 188 06-15-2020, 08:02 AM
Last Post: ippl3
  postmarketOS/Alpine edge image for the Pinebook Pro MartijnBraam 57 7,805 06-13-2020, 08:53 AM
Last Post: matosys
  After messing with eMMC partitions, PBP won't boot, even from SD card imij 15 537 06-09-2020, 09:52 AM
Last Post: wdt

Forum Jump:


Users browsing this thread: 1 Guest(s)