How to enable kernel pstore?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite
3












I'm trying to enable the kernel persistent storage (pstore) in order to help debug a module which malfunctions and freezes my laptop on suspend, but I'm having difficulties doing so.
My kernel (4.1.20) config with related parameters is



# gunzip -c /proc/config.gz | grep PSTORE
CONFIG_CHROMEOS_PSTORE=m
CONFIG_PSTORE=y
CONFIG_PSTORE_CONSOLE=y
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_FTRACE is not set
CONFIG_PSTORE_RAM=m


I have also tried loading the ramoops module, but when I do



# cat /sys/module/pstore/parameters/backend
(null)


it doesn't seem to have enabled anything. /sys/fs/pstore is empty as well, altough mount says that it is mounted. I have tried to panic my kernel using this but nothing showed up.



What am I doing wrong? Is it even supposed to work on a normal laptop, or am I completely in the dark? I could not find very much while looking for this feature.










share|improve this question














bumped to the homepage by Community♦ 19 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















    up vote
    4
    down vote

    favorite
    3












    I'm trying to enable the kernel persistent storage (pstore) in order to help debug a module which malfunctions and freezes my laptop on suspend, but I'm having difficulties doing so.
    My kernel (4.1.20) config with related parameters is



    # gunzip -c /proc/config.gz | grep PSTORE
    CONFIG_CHROMEOS_PSTORE=m
    CONFIG_PSTORE=y
    CONFIG_PSTORE_CONSOLE=y
    # CONFIG_PSTORE_PMSG is not set
    # CONFIG_PSTORE_FTRACE is not set
    CONFIG_PSTORE_RAM=m


    I have also tried loading the ramoops module, but when I do



    # cat /sys/module/pstore/parameters/backend
    (null)


    it doesn't seem to have enabled anything. /sys/fs/pstore is empty as well, altough mount says that it is mounted. I have tried to panic my kernel using this but nothing showed up.



    What am I doing wrong? Is it even supposed to work on a normal laptop, or am I completely in the dark? I could not find very much while looking for this feature.










    share|improve this question














    bumped to the homepage by Community♦ 19 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















      up vote
      4
      down vote

      favorite
      3









      up vote
      4
      down vote

      favorite
      3






      3





      I'm trying to enable the kernel persistent storage (pstore) in order to help debug a module which malfunctions and freezes my laptop on suspend, but I'm having difficulties doing so.
      My kernel (4.1.20) config with related parameters is



      # gunzip -c /proc/config.gz | grep PSTORE
      CONFIG_CHROMEOS_PSTORE=m
      CONFIG_PSTORE=y
      CONFIG_PSTORE_CONSOLE=y
      # CONFIG_PSTORE_PMSG is not set
      # CONFIG_PSTORE_FTRACE is not set
      CONFIG_PSTORE_RAM=m


      I have also tried loading the ramoops module, but when I do



      # cat /sys/module/pstore/parameters/backend
      (null)


      it doesn't seem to have enabled anything. /sys/fs/pstore is empty as well, altough mount says that it is mounted. I have tried to panic my kernel using this but nothing showed up.



      What am I doing wrong? Is it even supposed to work on a normal laptop, or am I completely in the dark? I could not find very much while looking for this feature.










      share|improve this question













      I'm trying to enable the kernel persistent storage (pstore) in order to help debug a module which malfunctions and freezes my laptop on suspend, but I'm having difficulties doing so.
      My kernel (4.1.20) config with related parameters is



      # gunzip -c /proc/config.gz | grep PSTORE
      CONFIG_CHROMEOS_PSTORE=m
      CONFIG_PSTORE=y
      CONFIG_PSTORE_CONSOLE=y
      # CONFIG_PSTORE_PMSG is not set
      # CONFIG_PSTORE_FTRACE is not set
      CONFIG_PSTORE_RAM=m


      I have also tried loading the ramoops module, but when I do



      # cat /sys/module/pstore/parameters/backend
      (null)


      it doesn't seem to have enabled anything. /sys/fs/pstore is empty as well, altough mount says that it is mounted. I have tried to panic my kernel using this but nothing showed up.



      What am I doing wrong? Is it even supposed to work on a normal laptop, or am I completely in the dark? I could not find very much while looking for this feature.







      kernel-modules debugging






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 31 '16 at 9:29









      D.S

      39127




      39127





      bumped to the homepage by Community♦ 19 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community♦ 19 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You need to determine a piece of memory that survives a reboot. Then it's probably the easiest approach to pass that via kernel parameters, see
          the ramoops Documentation in the kernel tree.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f273352%2fhow-to-enable-kernel-pstore%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            You need to determine a piece of memory that survives a reboot. Then it's probably the easiest approach to pass that via kernel parameters, see
            the ramoops Documentation in the kernel tree.






            share|improve this answer
























              up vote
              0
              down vote













              You need to determine a piece of memory that survives a reboot. Then it's probably the easiest approach to pass that via kernel parameters, see
              the ramoops Documentation in the kernel tree.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                You need to determine a piece of memory that survives a reboot. Then it's probably the easiest approach to pass that via kernel parameters, see
                the ramoops Documentation in the kernel tree.






                share|improve this answer












                You need to determine a piece of memory that survives a reboot. Then it's probably the easiest approach to pass that via kernel parameters, see
                the ramoops Documentation in the kernel tree.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 8 at 19:11









                Uwe Kleine-König

                101




                101



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f273352%2fhow-to-enable-kernel-pstore%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay