What is the highest usable DRAM clock speed for you?
552
29.17%
7
564
0%
0
576
12.50%
3
588
8.33%
2
600
4.17%
1
612
8.33%
2
624
37.50%
9
24 vote(s)
* You voted for this item. [Show Results]

[Volunteer needed]Too high DRAM clock speed MAY be causing you random crashes/freezes
#27
(05-20-2020, 03:05 PM)devrtz Wrote: You are very welcome (:

@Djhg2000 
I'm still trying to figure out how to u-boot can be used to set command line arguments for the kernel (for memset).
Haven't found the location yet where this could be done.

After giving this some thought, maybe it is a better idea to leave u-boot as it is, and instead build the kernel with
the necessary command line baked into it.

Sorry for the delay, I've been having a rough few weeks (unfortunately ending with a funeral yesterday) so I've had other things to attend to and I've been feeling awful in general. None of this is directly related to the coronavirus, but I've been unable to get much of anything done.  Sad


This seems to be a cheat-sheet on how to configure the cmdline which U-boot passes on to the kernel: https://docs.embeddedarm.com/U-boot_cmdline

From what I gather I think we can set this from the serial port on boot, so I think the proof of concept would be to enter the interactive U-boot console with the headphone jack serial port and changing the "cmdline_append" environment variable. Just remember to read it out first so that you don't lose  whatever the proper cmdline is. Then it should be one of the boot commands ("booti"?) to boot the predefined kernel image. I'm not too familiar with U-boot though so this might all be completely wrong because I've misread the documentation. Angel



I haven't gotten to work on the script yet, but I've decided to release the script version first and figure out how to make an app out of it later. One obvious problem is that I don't actually have a broken stick of RAM with me (self isolating away from home) to be 100% sure the script works. I can't overclock the RAM on my workstation until I get small errors so I'll need someone else to test it, preferably on a real phone.

The interim solution might be to instead run "memtester" (probably available in the repo), but keep in mind it works by reserving a chunk of memory at an arbitrary offset (where the Linux kernel decides it fits). It won't test the whole memory and it won't return reliable offsets but it might be able to separate out the worst cases which barely boot.

Edit: Clarify first paragraph.

Edit 2: I forgot we're working with a Debian-like system. The "grep -i memtest /boot/config-$(uname -r)" command should return "CONFIG_MEMTEST=y" if memtest is enabled in the currently running kernel.
  Reply


Messages In This Thread
RE: [Volunteer needed]Too high DRAM clock speed MAY be causing you random crashes/freezes - by Djhg2000 - 05-21-2020, 02:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Phone powers off with high user demands car46999 7 585 04-11-2024, 09:17 AM
Last Post: zetabeta
  Help needed: Jump drive not working UsnR2 5 4,950 07-09-2021, 03:22 PM
Last Post: UsnR2
  Endless crashes on Pine64 received today luciphercolors 4 5,562 11-24-2020, 06:09 PM
Last Post: rocket2nfinity
  Does the PinePhone have a hardware random number generator? LibrePhoneUser 4 6,310 11-12-2020, 07:47 PM
Last Post: megous
  Only enable modem when needed with kill switches sokolgeo 2 4,094 09-20-2020, 04:40 AM
Last Post: sokolgeo
Sad Crashes in every OS - Hardware-issue? rakor 4 6,121 06-22-2020, 09:20 AM
Last Post: Nooblife

Forum Jump:


Users browsing this thread: 2 Guest(s)