LX2160 platform pstore issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LX2160 platform pstore issue

1,194 Views
jackho
Contributor IV

Hi,

I try to add pstore feature to debug kernel

Enable below kernel config:

CONFIG_PSTORE=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
CONFIG_PSTORE_RAM=y

Add below in fsl-lx2160a.dtsi

reserved-memory {
##address-cells = <2>
#size-cells = <2>;
ranges;

ramoops@84000000 {
compatible = "ramoops";
reg = <0x00000000 0x84000000 0x0 0x00200000>; // 2MB
record-size = <0x00040000>; // 256KB
console-size = <0x00080000>; // 512KB
pmsg-size = <0x00040000>; // 256KB
ftrace-size = <0x00040000>; // 256KB
no-map;
};
};

 

But after I use below command

echo c > /proc/sysrq-trigger

system reboot but /sys/fs/pstore/ still empty

Do you have any idea about this issue?

 

BR,

Jack Ho

Labels (1)
0 Kudos
Reply
3 Replies

1,180 Views
yipingwang
NXP TechSupport
NXP TechSupport

Layerscape cannot enable ramoops due to hw limitation, please try to use kdump/kexec instead.

Please refer to section "7.3 kdump/kexec User Manual" in LSDK 21.08 user manual.

0 Kudos
Reply

1,171 Views
jackho
Contributor IV

Hi @yipingwang 

Since BSP we are using LLDP 5.15.71 version, does the SOP is same as LSDK21.08?

BR,

Jack Ho

0 Kudos
Reply

1,131 Views
yipingwang
NXP TechSupport
NXP TechSupport

Yes, you could follow the same steps in LSDK 21.08 user manual.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2175700%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELX2160%20platform%20pstore%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2175700%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20try%20to%20add%20pstore%20feature%20to%20debug%20kernel%3C%2FP%3E%3CP%3EEnable%20below%20kernel%20config%3A%3C%2FP%3E%3CP%3ECONFIG_PSTORE%3Dy%3CBR%20%2F%3ECONFIG_PSTORE_CONSOLE%3Dy%3CBR%20%2F%3ECONFIG_PSTORE_PMSG%3Dy%3CBR%20%2F%3ECONFIG_PSTORE_RAM%3Dy%3C%2FP%3E%3CP%3EAdd%20below%20in%26nbsp%3Bfsl-lx2160a.dtsi%3C%2FP%3E%3CP%3Ereserved-memory%20%7B%3CBR%20%2F%3E%23%23address-cells%20%3D%20%26lt%3B2%26gt%3B%3CBR%20%2F%3E%23size-cells%20%3D%20%26lt%3B2%26gt%3B%3B%3CBR%20%2F%3Eranges%3B%3C%2FP%3E%3CP%3Eramoops%4084000000%20%7B%3CBR%20%2F%3Ecompatible%20%3D%20%22ramoops%22%3B%3CBR%20%2F%3Ereg%20%3D%20%26lt%3B0x00000000%200x84000000%200x0%200x00200000%26gt%3B%3B%20%2F%2F%202MB%3CBR%20%2F%3Erecord-size%20%3D%20%26lt%3B0x00040000%26gt%3B%3B%20%2F%2F%20256KB%3CBR%20%2F%3Econsole-size%20%3D%20%26lt%3B0x00080000%26gt%3B%3B%20%2F%2F%20512KB%3CBR%20%2F%3Epmsg-size%20%3D%20%26lt%3B0x00040000%26gt%3B%3B%20%2F%2F%20256KB%3CBR%20%2F%3Eftrace-size%20%3D%20%26lt%3B0x00040000%26gt%3B%3B%20%2F%2F%20256KB%3CBR%20%2F%3Eno-map%3B%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBut%20after%20I%20use%20below%20command%3C%2FP%3E%3CP%3Eecho%20c%20%26gt%3B%20%2Fproc%2Fsysrq-trigger%3C%2FP%3E%3CP%3Esystem%20reboot%20but%26nbsp%3B%2Fsys%2Ffs%2Fpstore%2F%20still%20empty%3C%2FP%3E%3CP%3EDo%20you%20have%20any%20idea%20about%20this%20issue%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBR%2C%3C%2FP%3E%3CP%3EJack%20Ho%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2175700%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EQorIQ%20LS2%20Device%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2177781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LX2160%20platform%20pstore%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2177781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes%2C%20you%20could%20follow%20the%20same%20steps%20in%20LSDK%2021.08%20user%20manual.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2176529%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LX2160%20platform%20pstore%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2176529%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52411%22%20target%3D%22_blank%22%3E%40yipingwang%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20BSP%20we%20are%20using%20LLDP%205.15.71%20version%2C%20does%20the%20SOP%20is%20same%20as%20LSDK21.08%3F%3C%2FP%3E%3CP%3EBR%2C%3C%2FP%3E%3CP%3EJack%20Ho%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2176474%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LX2160%20platform%20pstore%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2176474%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELayerscape%26nbsp%3Bcannot%20enable%20ramoops%20due%20to%20hw%20limitation%2C%20please%20try%20to%20use%26nbsp%3Bkdump%2Fkexec%20instead.%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20section%20%227.3%20kdump%2Fkexec%20User%20Manual%22%20in%20LSDK%2021.08%20user%20manual.%3C%2FP%3E%3C%2FLINGO-BODY%3E