Thx seems same except console/pmsg-size…and size is twice 0x2000 instead of 0x1000
i see you disabled deflate compress too,i guess because of uboot not supporting compress,right?
any idea on dtc errors for mt7622/mt7986? Is my solution right.
does uboot need the dts-node? it looks like all options are defined via config
at least i have got it working on r3mini both uboot and linux works
echo c > /proc/sysrq-trigger
uboot (still shows compressed, but can display the log):
BPI-R3M> pstore display
Compressed buffer, display not available
**** Console
000
[ 2.676459] xhci-mtk 11200000.usb: xHCI Host Controller
[ 2.681682] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[ 2.689069] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[ 2.696589] hub 1-0:1.0: USB hub found
[ 2.700362] hub 1-0:1.0: 2 ports detected
[ 2.704698] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.713182] hub 2-0:1.0: USB hub found
[ 2.716960] hub 2-0:1.0: 1 port detected
[ 2.722592] clk: Disabling unused clocks
[ 2.750826] Freeing unused kernel memory: 4480K
[ 2.821100] Run /init as init process
[ 2.824765] with arguments:
[ 2.827723] /init
...
[ 87.975360] sysrq: Trigger a crash
[ 87.978784] Kernel panic - not syncing: sysrq triggered crash
[ 87.984518] CPU: 2 PID: 1472 Comm: sh Not tainted 6.6.0-bpi-r3-r3mini #1
[ 87.991205] Hardware name: Bananapi BPI-R3 Mini (DT)
[ 87.996156] Call trace:
[ 87.998592] dump_backtrace+0x94/0x114
[ 88.002339] show_stack+0x18/0x24
[ 88.005644] dump_stack_lvl+0x48/0x60
[ 88.009298] dump_stack+0x18/0x24
[ 88.012604] panic+0x2fc/0x358
[ 88.015651] sysrq_reset_seq_param_set+0x0/0x8c
[ 88.020173] __handle_sysrq+0xb4/0x1d8
[ 88.023914] write_sysrq_trigger+0xcc/0x138
[ 88.028087] proc_reg_write+0x9c/0xf0
[ 88.031739] vfs_write+0xc4/0x390
[ 88.035045] ksys_write+0x68/0xf4
[ 88.038350] __arm64_sys_write+0x1c/0x28
[ 88.042261] invoke_syscall+0x48/0x114
[ 88.046002] el0_svc_common.constprop.0+0x40/0xe8
[ 88.050695] do_el0_svc+0x20/0x2c
[ 88.054001] el0_svc+0x40/0xf4
[ 88.057048] el0t_64_sync_handler+0x13c/0x158
[ 88.061395] el0t_64_sync+0x194/0x198
[ 88.065048] SMP: stopping secondary CPUs
[ 88.068962] Kernel Offset: disabled
[ 88.072437] CPU features: 0x0,00000008,00020000,1000420b
[ 88.077737] Memory Limit: none
[ 88.084439] pstore: backend (ramoops) writing error (-28)
[ 88.089829] Rebooting in 1 seconds..
BPI-R3M>
# mount -t pstore pstore /sys/fs/pstore
# tail -30 /sys/fs/pstore/dmesg-ramoops-0
<4>[ 9.445497] sd 0:0:0:0: [sda] Assuming drive cache: write through
<6>[ 9.453699] sda: sda1 sda2
<5>[ 9.456801] sd 0:0:0:0: [sda] Attached SCSI removable disk
<6>[ 25.434855] sysrq: Trigger a crash
<0>[ 25.438273] Kernel panic - not syncing: sysrq triggered crash
<7>[ 25.444005] CPU: 0 PID: 1481 Comm: sh Not tainted 6.6.25-bpi-r3-main #2
<7>[ 25.450604] Hardware name: Bananapi BPI-R3 Mini (DT)
<7>[ 25.455553] Call trace:
<7>[ 25.457987] dump_backtrace+0x94/0x114
<7>[ 25.461731] show_stack+0x18/0x24
<7>[ 25.465034] dump_stack_lvl+0x48/0x60
<7>[ 25.468688] dump_stack+0x18/0x24
<7>[ 25.471992] panic+0x2fc/0x358
<7>[ 25.475038] sysrq_reset_seq_param_set+0x0/0x8c
<7>[ 25.479558] __handle_sysrq+0xb4/0x1d8
<7>[ 25.483295] write_sysrq_trigger+0xcc/0x138
<7>[ 25.487466] proc_reg_write+0x9c/0xf0
<7>[ 25.491117] vfs_write+0xc4/0x390
<7>[ 25.494422] ksys_write+0x68/0xf4
<7>[ 25.497725] __arm64_sys_write+0x1c/0x28
<7>[ 25.501636] invoke_syscall+0x48/0x114
<7>[ 25.505375] el0_svc_common.constprop.0+0x40/0xe8
<7>[ 25.510066] do_el0_svc+0x20/0x2c
<7>[ 25.513371] el0_svc+0x40/0xf4
<7>[ 25.516417] el0t_64_sync_handler+0x13c/0x158
<7>[ 25.520761] el0t_64_sync+0x194/0x198
<2>[ 25.524412] SMP: stopping secondary CPUs
<0>[ 25.528324] Kernel Offset: disabled
<0>[ 25.531798] CPU features: 0x0,00000008,00020000,1000420b
<0>[ 25.537094] Memory Limit: none
#
original trace shows this (and in console-ramoops-0 file if present):
[ 25.537094] Memory Limit: none
[ 25.541979] pstore: backend (ramoops) writing error (-28)
[ 25.547366] Rebooting in 1 seconds..
wonder about the writing error in log and the compressed buffer message in uboot…but it seems compress is set by default
# zgrep -i pstore /proc/config.gz
CONFIG_EFI_VARS_PSTORE=y
# CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE is not set
CONFIG_PSTORE=y
CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240
CONFIG_PSTORE_COMPRESS=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
CONFIG_PSTORE_RAM=y
# CONFIG_PSTORE_BLK is not set
#
fixed last by explicit setting compress to “n”…still wonder about the writing error…but crashdump is available in uboot
verified on r4 too (where i have not added the dts-part in uboot)…works well, only the same writing error (“pstore: backend (ramoops) writing error (-28”))
err 28 seems to be ENOSPC (no space left on device), so maybe buffer is not large enough to hold full dmesg, right? but as far the trace is visible all is good, just noted the message