05-23-2020, 03:41 PM
(05-23-2020, 03:20 PM)dukla2000 Wrote:(05-23-2020, 01:16 PM)Djhg2000 Wrote: ...
I couldn't get a log sample from a system with bad memory so the entire error handling section is made from reverse engineering of the Linux source code. If you have a kernel log from a system with bad memory I'd greatly appreciate if you could provide real error messages.
But how do I get memtest to execute on boot?
I added memtest=17 in /boot/boot.cmd
Code:$ cat /boot/boot.cmd if test ${mmc_bootdev} -eq 0 ; then echo "Booting from SD"; setenv linux_mmcdev 0; else echo "Booting from eMMC"; setenv linux_mmcdev 2; fi; setenv bootargs console=ttyS0,115200 no_console_suspend panic=10 consoleblank=0 loglevel=7 root=/dev/mmcblk${linux_mmcdev}p1 ro splash memtest=17 plymouth.ignore-serial-consoles vt.global_cursor_default=0 ...
but clearly that isn't what is being used at boot
Code:$ uname -a Linux DuklaPP 5.6-pinephone #5.6.0+pinephone6 SMP PREEMPT Fri May 15 23:20:03 CEST 2020 aarch64 GNU/Linux chris@DuklaPP:~$ grep -i memtest /boot/config-$(uname -r) CONFIG_MEMTEST=y chris@DuklaPP:~$ ./mem.sh No memtest output found in kernel log, wrong boot option? $ dmesg | grep Kernel [ 0.000000] Kernel command line: console=ttyS0,115200 no_console_suspend panic=10 consoleblank=0 loglevel=7 root=/dev/mmcblk2p1 ro splash plymouth.ignore-serial-consoles vt.global_cursor_default=0 ...
I'm afraid you'll have to redirect that question to @devrtz , I haven't received my PinePhone yet so I've been testing what I can on my Debian system.
But I'll try my best to help out anyway; can you please check whether or not you have memtest support in your kernel? You should be able to do that by issuing "grep -i memtest /boot/config-$(uname -r)" from a terminal. One of five things will happen:
- It returns "CONFIG_MEMTEST=y"
- It returns "CONFIG_MEMTEST=n"
- It returns "#CONFIG_MEMTEST is not set"
- It returns something like "grep: /boot/config-5.4.0: No such file or directory"
- It doesn't return anything

