Bricked PBP after writing image to eMMC?
#11
(12-05-2019, 04:40 AM)danielt Wrote: ...
PS Soft bricking through bad images in either eMMC or SPI are pretty obvious... the power LED doesn't come on.

I'm sorry but I don't see this is a positive at all.
It gives no information to the user about a failure. If anything it misdirects them into thinking it's a hardware failure because the machine doesn't visibly power on and is entirely unresponsive.

I had this happen when my emmc got corrupted and thought the machine died on me until I attached a serial monitor.

I don't know uboot at all but I think ideally it would somehow indicate as early as possible that it's running. Less display drivers perhaps setting the power led to amber as early as it can and letting the linux kernel switch it to green would be a solution.
#12
There may be a way to re-load the eMMC drivers after using the switch, but waiting too long. I've not tested it, so can't say it will work. I have however, used something similar on my x86/x64 media server for changing it's MicroSD card. I basically call an un-bind and bind function.

If someone wants to test, I can supply the commands.

Eventually I will setup my RockPro64 and do my own testing. No telling when I will have time.
--
Arwen Evenstar
Princess of Rivendale
#13
@Arwen that would be helpful, I can't seem to find the right 2 second spot to make the MMC visible to the OS without booting off it.
#14
(12-05-2019, 06:06 PM)electriccrowbar Wrote:
(12-05-2019, 04:40 AM)danielt Wrote: ...
PS Soft bricking through bad images in either eMMC or SPI are pretty obvious... the power LED doesn't come on.

I'm sorry but I don't see this is a positive at all.
It gives no information to the user about a failure. If anything it misdirects them into thinking it's a hardware failure because the machine doesn't visibly power on and is entirely unresponsive.

Agreed. I didn't mean to imply that it's positive! As it happens I can usually tell power comes on by the high frequency noises the board makes... but I'm getting older and don't expect to be able to hear that for much longer Smile .

It's more that if the light does come on then the board probably *isn't* soft bricked. In other words, whether it is a great user experience or not, it is good to know what we learn from watching the lights.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#15
@dazld Here you go:

       Un-TESTED!!!! Use at your own risk. This is from the default Debian, but may
work on others.

       While powered off, switch eMMC to disabled state. Then power on. If the user
is not fast enough with the switch to enabled state, the OS image on the SD card
won't see the eMMC. Thus, it may be needed to un-bind and re-bind the eMMC driver.
Note, it is still REQUIRED to enable the eMMC via the hardware switch. These
instruction below, MAY allow the OS to find it after boot.

       The first 2 outputs may show nothing, which could happen if OS thinks the eMMC
does not exist. The 3rd command checks and sees if it's possible to unbind and bind.
Lines 4 & 5 are the real work. Though again, line 4 may not do anything if the device
is already un-bound.


Code:
# blockdev --getsize64 /dev/mmcblk1
125069950976

# readlink /sys/block/mmcblk1
../devices/platform/fe330000.sdhci/mmc_host/mmc1/mmc1:0001/block/mmcblk1

# ls /sys/bus/platform/drivers/sdhci-arasan
bind  fe330000.sdhci  uevent  unbind

# echo fe330000.sdhci >/sys/bus/platform/drivers/sdhci-arasan/unbind
# echo fe330000.sdhci >/sys/bus/platform/drivers/sdhci-arasan/bind
--
Arwen Evenstar
Princess of Rivendale
#16
(12-04-2019, 04:38 PM)Surehand53 Wrote: Have you solved it ?

I solved it in a roundabout way, I connected a TV over USB-C, at which point I got a picture out of it (as a second display).

Not sure what the problem was, but reflashing Debian to the eMMC fixed it for now, and I haven't had time to investigate further.
#17
@Arwen thank you! those instructions worked fine. I managed to write a new image to the emmc, enabling it after booting off sd card!
#18
(12-07-2019, 04:02 AM)dazld Wrote: @Arwen thank you! those instructions worked fine. I managed to write a new image to the emmc, enabling it after booting off sd card!

Great, your welcome. After cleaning up the instructions, I'll put it on the Wiki. That way if someone asks, we can send them to the Wiki with 2 methods. The first with the 2 second delay. And the second, this unbind / rebind method if they were not fast enough switching back.

Hopefully I'll be able to test it myself. That way I can get the wording and possible output correct.
--
Arwen Evenstar
Princess of Rivendale
#19
I'm sorry but I'm a little confused with the different images and flashing options.

So far, I have taken the Manjaro ARM RC 4 image (the normal, not eMMC one) and used balenaEtcher to write that image onto an microSD card.
The machine boots just fine and it all works.

Now, if I want to actually install Manjaro ARM permanently onto the PinebookPro, that is into the eMMC. What exact image do I need to put exactly where?
I thought the answer would be trivial but reading this thread gave me some doubts Confused
And besides, what happened to good old: "plug a USB stick with the OS image in, start the machine, click install, follow instructions..."? Smile
#20
(12-13-2019, 10:33 AM)Firestorm Wrote: I'm sorry but I'm a little confused with the different images and flashing options.

So far, I have taken the Manjaro ARM RC 4 image (the normal, not eMMC one) and used balenaEtcher to write that image onto an microSD card.
The machine boots just fine and it all works.

Now, if I want to actually install Manjaro ARM permanently onto the PinebookPro, that is into the eMMC. What exact image do I need to put exactly where?
I thought the answer would be trivial but reading this thread gave me some doubts Confused
And besides, what happened to good old: "plug a USB stick with the OS image in, start the machine, click install, follow instructions..."? Smile

You can use the same image from your Manjaro SD. The easiest way would be to install Etcher in Manjaro, download the image you want to flash, and use Etcher to write it. You can also use dd through the terminal.

However, if you opt to write the Manjaro PBP eMMC image, if I recall correctly, it will boot like the SD image with the option to install directly to your eMMC. (That's how it worked for the eMMC image on the PB1080P, you could boot like a LiveUSB and if you made any changes, the eMMC installer would carry them over.) I'd suggest using this one to write to your eMMC.

That particular method has been discussed in several other threads. If I recall correctly, that is currently limited by booting firmware of ARM boards. It is an intended goal for ARM, down the line, though.

For further clarification, I'd suggest heading over the the Manjaro Arm forums. They're very friendly and helpful.


Possibly Related Threads…
Thread Author Replies Views Last Post
  postmarketOS/Alpine edge image for the Pinebook Pro MartijnBraam 70 44,409 Yesterday, 01:53 AM
Last Post: lusk
  eMMC frequently not found by Linux kernel (especially on low battery) v-man 14 5,958 05-14-2021, 01:18 PM
Last Post: djhnsn
  NVMe timeout when booting from eMMC but not SD satwell 4 1,418 05-06-2021, 10:12 AM
Last Post: alexeymin
  PBP won't boot from eMMC or SD card: a saga archaicmeander 18 2,811 02-06-2021, 07:40 PM
Last Post: wdt
  Recalbox Image is available Luke 8 5,365 01-31-2021, 12:00 PM
Last Post: rimaille
  eMMC Trouble After Flashing WRONG Image balin 7 1,733 12-29-2020, 04:24 PM
Last Post: KC9UDX
  installing OS from SD to eMMC methods for flashing SD PineHead7 3 1,071 12-22-2020, 06:52 PM
Last Post: jiyong
  Double your Manjaro eMMC speed xyzzy 1 1,120 11-23-2020, 10:50 PM
Last Post: xyzzy
Bug eMMC Fails After Suspend Lodj 3 1,066 11-16-2020, 11:06 PM
Last Post: ab1jx
  Recover data from crashed emmc S265 3 1,224 10-20-2020, 08:17 PM
Last Post: wdt

Forum Jump:


Users browsing this thread: 1 Guest(s)