Steps to install latest debian img to upgraded emmc
#1
I just installed the 128G module which comes with android 7.1.2 installed on it (not sure why). Anyway, I've been reading through the threads about how the new factory image is available which is great. Here's what happened.

1. booted to the SD but the power light just flashed. Nothing from there.  Huh
2. flipped the onboard switch to disable the eMMC.
3. booted from SD.  Big Grin
4. flipped the onboard switch to enable the eMMC.
5. looked to see if the eMMC was available but no dice.  Confused
6. rebooted and ended up back at step 1.  Angry
7. Reaching out for help  Blush

While I'm writing this, I'm flashing the latest build to a USB to see if I can go that route. If this proves to be successful, what are the steps I need to take to dd the image to the eMMC? I am a noob but not afraid of the command line.

Thanks in advance.
#2
When I ordered my Pinebook Pro, I considered recovery too. So I made a separate order for the eMMC USB adapter.

That way, using another computer, I can wipe the eMMC image. Re-install the eMMC in the Pinebook Pro. Then, on boot, the RK3399 will automatically attempt to boot the SPI, fail because it's empty, attempt to boot the eMMC, fail again because it's empty. Last, boot the SD card.

All that said, it may be possible to un-bind the device for the eMMC and re-bind it. In essence, when you flipped the switch, the SoC thought there was no eMMC on the board, so it moved on to the SD card. If you did not flip the switch back fast enough, the OS on the SD card won't detect the eMMC either. So no device driver and no way to write a new image to the eMMC. Catch-22 as they say.

I have rough instructions on how to un-bind and re-bind a device. But, that was for my SD card on an x64 miniature PC. Similar concept.

You could try this;
Code:
echo fe330000.sdhci >/sys/bus/platform/drivers/sdhci-arasan/unbind
echo fe330000.sdhci >/sys/bus/platform/drivers/sdhci-arasan/bind
You can verify that this is the correct driver and path using something like this;

Code:
root@Debian-Desktop:~# readlink /sys/block/mmcblk1
../devices/platform/fe330000.sdhci/mmc_host/mmc1/mmc1:0001/block/mmcblk1
root@Debian-Desktop:~# ls /sys/bus/platform/drivers/sdhci-arasan/
bind  fe330000.sdhci  uevent  unbind

root@Debian-Desktop:~# readlink /sys/block/mmcblk0
../devices/platform/fe320000.dwmmc/mmc_host/mmc0/mmc0:59b4/block/mmcblk0
root@Debian-Desktop:~# ls /sys/bus/platform/drivers/dwmmc_rockchip/              
bind  fe310000.dwmmc  fe320000.dwmmc  uevent  unbind
I take no responsibilty for this procedure. It's un-tested as I have not opened my Pinebook Pro yet. (Nor do I have my second eMMC for my ROCKPro64 to test the concept there.)

Note: The "fe310000.dwmmc" device is likely the SDIO used for WiFi.
--
Arwen Evenstar
Princess of Rivendale
#3
From IRC: you should be able to boot the machine with the eMMC switched off, start U-Boot from an SD card and within 1-2s of starting flip the eMMC switch back on before the kernel starts detecting mmc devices. That should get you booted off the SD card and with the eMMC available for recovery/flashing.

Someone who's actually done this needs to provide further details if it doesn't work, I haven't had to recover from an unbootable eMMC this way. Apparently this method is safe as all the eMMC disable switch does is draw a clock signal low rather than cut power.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Debian on Pinebook Pro u974615 7 843 03-31-2024, 10:11 AM
Last Post: u974615
  Attempting to install Void Linux, boots into a black screen 9a3eedi 0 312 02-18-2024, 08:54 AM
Last Post: 9a3eedi
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 2,080 12-13-2023, 07:22 PM
Last Post: trillobite
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 388 12-07-2023, 03:11 PM
Last Post: wdt
  install debian on pbp jsch 7 3,985 11-22-2023, 04:22 PM
Last Post: TRS-80
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 7,271 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 1,948 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Install deepin OS on pinebook pro wangyukunshan 4 1,531 08-07-2023, 01:12 PM
Last Post: myself600
  Unable to install Debian Bullseye because of missing wifi firmware Pino64 7 3,977 07-15-2023, 02:58 PM
Last Post: u974615
  Blank screen after Armbian 20.04 install to emmc? psychoacoustic 3 3,440 04-01-2023, 03:22 PM
Last Post: TRS-80

Forum Jump:


Users browsing this thread: 1 Guest(s)