Fried eMMC?
#1
I have a Pinebook Pro. I did the following:
  • I flashed the Manjaro image on the eMMC from Debian running on from the SD card. That rendered it unbootable, it only lit up both LEDs if I tried to power it on.
  • I concluded that it must have a corrupt bootloader or u-boot on the eMMC, so I removed it. It then booted fine from the SD card.
  • I did the trick where I reinstalled the eMMC and then switched on the eMMC switch just after the machine started booting. It booted from the SD card and recognized the eMMC.
  • I then zeroed out the first few MBs of the eMMC in order to nuke the defunct bootloader or u-boot. After a few seconds the machine hung, I though it was because it filled its RAM with IO cache, no big deal.
  • Since it must have gone past the bootloader already, I reset the machine - and after that it never showed the eMMC drive again. It doesn't show up in /dev, it isn't shown in gparted. Dmesg only shows one line containing mmc1, it's about clock speed being set. I misplaced my USB eMMC reader, so I can't test it using that. I tried using rkflashtool, it shows this:
Code:
rkflashtool: info: rkflashtool v5.2
rkflashtool: info: Detected RK3399...
rkflashtool: info: interface claimed
rkflashtool: info: MASK ROM MODE
rkflashtool: info: Flash ID: 00 00 00 00 00
rkflashtool: info: Flash Info:
       Manufacturer: Samsung (0)
       Flash Size: 0MB
       Block Size: 0KB
       Page Size: 0KB
       ECC Bits: 0
       Access Time: 0
       Flash CS:
but it shows the same even if I remove the eMMC. (I had to patch rkflashtool and add the pid of rk3399 because it wouldn't find the pbp) Did I fry the module somehow? How to test it further before ordering (and waiting for) another eMMC reader? (I want to order a new eMMC too if this one is really fried and I don't want to pay for shipping twice)
  Reply
#2
(01-15-2020, 03:25 PM)matega Wrote: I have a Pinebook Pro. I did the following:
  • I flashed the Manjaro image on the eMMC from Debian running on from the SD card. That rendered it unbootable, it only lit up both LEDs if I tried to power it on.
  • I concluded that it must have a corrupt bootloader or u-boot on the eMMC, so I removed it. It then booted fine from the SD card.
  • I did the trick where I reinstalled the eMMC and then switched on the eMMC switch just after the machine started booting. It booted from the SD card and recognized the eMMC.
  • I then zeroed out the first few MBs of the eMMC in order to nuke the defunct bootloader or u-boot. After a few seconds the machine hung, I though it was because it filled its RAM with IO cache, no big deal.
  • Since it must have gone past the bootloader already, I reset the machine - and after that it never showed the eMMC drive again. It doesn't show up in /dev, it isn't shown in gparted. Dmesg only shows one line containing mmc1, it's about clock speed being set. I misplaced my USB eMMC reader, so I can't test it using that. I tried using rkflashtool, it shows this:
Code:
rkflashtool: info: rkflashtool v5.2
rkflashtool: info: Detected RK3399...
rkflashtool: info: interface claimed
rkflashtool: info: MASK ROM MODE
rkflashtool: info: Flash ID: 00 00 00 00 00
rkflashtool: info: Flash Info:
       Manufacturer: Samsung (0)
       Flash Size: 0MB
       Block Size: 0KB
       Page Size: 0KB
       ECC Bits: 0
       Access Time: 0
       Flash CS:
but it shows the same even if I remove the eMMC. (I had to patch rkflashtool and add the pid of rk3399 because it wouldn't find the pbp) Did I fry the module somehow? How to test it further before ordering (and waiting for) another eMMC reader? (I want to order a new eMMC too if this one is really fried and I don't want to pay for shipping twice)
When you reinserted the emmc, did you press the reset button (reset and recovery buttons are 28 on wiki drawing) afterwards?
  Reply
#3
Quote:When you reinserted the emmc, did you press the reset button (reset and recovery buttons are 28 on wiki drawing) afterwards?

Multiple times. I even fully removed power in between tries.
  Reply
#4
(01-16-2020, 12:59 AM)matega Wrote:
Quote:When you reinserted the emmc, did you press the reset button (reset and recovery buttons are 28 on wiki drawing) afterwards?

Multiple times. I even fully removed power in between tries.

Have you tried to use the rkdeveloptool to flash the emmc ,  rather than rkflash?   I've never had to patch it--I've used it on a rockpro64.  The source is here

more info


here

I believe it is available in some distributions as well.  

I'm wondering what you are actually seeing with rkflashtool.   I thought  (from the wiki)  that the EMMC was a Sandisk device, not a Samsung....
You're sure, also, that the switch is in the proper position?..I just ask becuase I sometimes have gotten switches in intermediate positions,  because I am a klutz...

It would be good if you could find your EMMC adpter...  Smile
  Reply
#5
With the eMMC inserted and no SD card, my pbp goes into maskrom mode, doesn't matter if I use the recovery button or not. I can't seem to do anything in this state, I can't even reset it:
Code:
[email protected]:~/build/rkdeveloptool$ sudo ./rkdeveloptool ld
DevNo=1 Vid=0x2207,Pid=0x330c,LocationID=102    Maskrom
[email protected]:~/build/rkdeveloptool$ sudo ./rkdeveloptool rid
Reading flash ID failed!
[email protected]:~/build/rkdeveloptool$ sudo ./rkdeveloptool rci
Read Chip Info failed!
[email protected]:~/build/rkdeveloptool$ sudo ./rkdeveloptool rfi
Read Flash Info failed!
[email protected]:~/build/rkdeveloptool$ sudo ./rkdeveloptool db rk3399_usbplug_v1.19.bin  
Opening loader failed, exiting download boot!
[email protected]:~/build/rkdeveloptool$ sudo rkdeveloptool rd
Reset Device failed!
If I insert my 16G Samsung uSD card, boot it and execute `reboot loader`, it gets into loader mode, but then the only thing it sees is the uSD:
Code:
[email protected]:~/build/rkdeveloptool$ sudo ./rkdeveloptool ld
DevNo=1 Vid=0x2207,Pid=0x330c,LocationID=102    Loader
[email protected]:~/build/rkdeveloptool$ sudo ./rkdeveloptool rci
Chip Info:  43 30 33 33 0 0 0 0 0 0 0 0 30 30 31 56
[email protected]:~/build/rkdeveloptool$ sudo ./rkdeveloptool rid
Flash ID: 45 4D 4D 43 20
[email protected]:~/build/rkdeveloptool$ sudo ./rkdeveloptool rfi
Flash Info:
       Manufacturer: SAMSUNG, value=00
       Flash Size: 14992 MB
       Block Size: 512 KB
       Page Size: 2 KB
       ECC Bits: 0
       Access Time: 40
       Flash CS: Flash<0>
I've tried swapping and switching the eMMC multiple times, I'll make some more tries but I'm fairly confident I toggled the switch correctly Smile The USB adapter might as well have disintegrated, I can't find it anywhere.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Flashing image to EMMC Styles 12 365 Yesterday, 08:48 AM
Last Post: tophneal
  U-Boot with direct NVMe boot support for eMMC/SPI Flash pcm720 55 4,919 01-14-2020, 07:36 AM
Last Post: Arwen
  How to Load a eMMC from usb adapter bcnaz 1 135 01-07-2020, 03:39 PM
Last Post: bcnaz
  Can I rewrite a non-bootable eMMC from the PBP itself? Kicou 3 209 11-02-2019, 07:26 PM
Last Post: Arwen
  128GB eMMC Upgrade hikaricore 12 1,341 08-31-2019, 09:22 AM
Last Post: zaius

Forum Jump:


Users browsing this thread: 1 Guest(s)