How to enable kernel pstore?











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 2 days 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 2 days 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

      40137




      40137





      bumped to the homepage by Community 2 days 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 2 days 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: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            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















            Required, but never shown

























            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















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt