RAM corruption, possible eMMC corruption
Hi everyone, 

I've been tinkering with my PinePhone for a while and noticed that eMMC is likely corrupt/being corrupted sometimes.
I tested that by downloading files from remote host and checking if their sha256sums match, which they didn't. Also rsync just fails to copy file quoting the same mismatch error.
After running PostmarketOS update using apk update && apk upgrade it just stopped unlocking (lock screen just reappears after a valid pin code), though apk verify said nothing about that.

I'd like to know if anyone else has/had that problem and if there're any workarounds to get eMMC stable.

Forgot to mention: I also tried mounting tmpfs (which should be RAM-backed, I believe) and downloading my image there, but the result is the same — checksums mismatch

Another addition: each time I run sha256sum on the same file, it yields a different checksum, so that's possibly RAM and not eMMC (updating thread title as well)
i don't know how easily to test ram memory, but i'm skilled enough to use command "dd" to test emmc mem. however, booting sdcard is necessary and tests still wipes data from emmc.

basic idea is to create 1 gigabyte of random bytes to write to disk and then read and verify it. knowledge of dd, /dev/urandom and sha256 is required.

at this point, test booting from sdcard first, and maybe proceed to test emmc.
Tested that, looks like it's a RAM issue indeed. A quick fix for that is to use u-boot image with reduced DRAM frequency from https://forum.pine64.org/showthread.php?tid=9832. Hope the issue is resolved properly in the software/kernel though.
There are various ways that an eMMC could become corrupted. Some common causes of eMMC corruption include improper power supply, moisture and humidity, overheating, and shock. If any of these conditions are present, the data on the eMMC may be corrupted. If the corruption is due to improper power supply, try connecting the eMMC to a powered USB port instead of a DC power adapter.

Possibly Related Threads…
Thread Author Replies Views Last Post
  eMMC upgrade EuvzO8 5 1,279 11-08-2023, 11:58 PM
Last Post: brken
  Emmc yvan 1 1,288 07-07-2022, 08:16 AM
Last Post: Chief
  Any experiences with hardware mod to improve eMMC speeds? kqlnut 9 5,560 04-19-2022, 02:36 PM
Last Post: kk22
  Where is the Pinephone eMMc? tgz 12 11,312 02-10-2021, 06:24 PM
Last Post: dsimic
  Pine phone eMMC read speeds ? bcnaz 14 13,765 11-20-2020, 02:52 AM
Last Post: LinAdmin2
  eMMC won't flash RodMyers 3 4,587 09-12-2020, 06:38 PM
Last Post: SwordfishII
  broken emmc nieral 7 8,455 08-26-2020, 09:24 AM
Last Post: nieral
Question UBports Edition Flashing eMMC slow speeds FOSSagent0 0 1,705 08-12-2020, 07:03 AM
Last Post: FOSSagent0
  [BH] Issues booting from eMMC with NON-BOOTABLE SD card inserted Segfault 7 7,413 06-24-2020, 04:18 PM
Last Post: Luke
  Avoiding modem flash-memory corruption? msquared 6 6,856 06-16-2020, 06:05 AM
Last Post: ---

Forum Jump:

Users browsing this thread: 1 Guest(s)