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.
Working as a Film Electric and I have been using Linux since around 2002. 
Like to play with Python and Jupyter Lab/Notebooks when not going to the park with my baby girl.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook Pro upgrading from the factory image yamsoup 12 4,119 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 3,231 12-13-2023, 07:22 PM
Last Post: trillobite
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 882 12-07-2023, 03:11 PM
Last Post: wdt
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 2,494 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Blank screen after Armbian 20.04 install to emmc? psychoacoustic 3 4,353 04-01-2023, 03:22 PM
Last Post: TRS-80
  Fix for Armbian not booting on PBP from eMMC agreenbhm 7 5,295 04-01-2023, 02:58 PM
Last Post: TRS-80
  My installation guide starting from messed up eMMC Besouro 0 1,160 12-19-2022, 01:01 PM
Last Post: Besouro
  newer ""emmc-installer" images (manjaro xfce) magistral 1 1,426 10-10-2022, 06:22 AM
Last Post: maxjrh
  6/22 run of PBPs - is reimaging eMMC with new OS possible still? elitegamercody 29 15,793 10-04-2022, 07:55 PM
Last Post: wdt
  postmarketOS/Alpine edge image for the Pinebook Pro MartijnBraam 74 129,847 08-24-2022, 02:06 PM
Last Post: petersen77

Forum Jump:


Users browsing this thread: 1 Guest(s)