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
  Attempting to install Void Linux, boots into a black screen 9a3eedi 1 1,191 09-28-2024, 09:23 AM
Last Post: throwawayforvoid
  Official Debian support moonwalkers 64 64,279 07-08-2024, 01:40 PM
Last Post: Humid Stylus
  Debian on Pinebook Pro u974615 7 2,891 03-31-2024, 10:11 AM
Last Post: u974615
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 3,220 12-13-2023, 07:22 PM
Last Post: trillobite
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 881 12-07-2023, 03:11 PM
Last Post: wdt
  install debian on pbp jsch 7 5,399 11-22-2023, 04:22 PM
Last Post: TRS-80
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 9,832 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 2,491 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Install deepin OS on pinebook pro wangyukunshan 4 2,539 08-07-2023, 01:12 PM
Last Post: myself600
  Unable to install Debian Bullseye because of missing wifi firmware Pino64 7 5,367 07-15-2023, 02:58 PM
Last Post: u974615

Forum Jump:


Users browsing this thread: 1 Guest(s)