[qemu]Stay black screen!I think this phenomenon from kernel's config file












1















when I use qemu to simulate 3.10.88 kernel on my debian9.6,there is nothing on my compute(At least it should give me something-_-).There are some information about my works.



Information

1.qemu's parameter



qemu-system-x86_64 
-m 1G
-kernel ./bzImage
-hda ./amd64.ext2
-nographic
-append "root=/dev/sda init=/sbin/init console=ttyS0"


2.The config that I used is x86_64_defconfig

3.picture
enter image description here



question:

1.when I used the kernel,same as the configure of the qemu,it is work well.

2.I extracted the config file from linux-image-3.10.0-1-generic_3.10.0.8_amd64.deb.I am going to compare between config-3.10.0-1-generic and x86_64_defconfig.compare result
enter image description here



and I add some options in x86_64_defconfig from config-3.10.0-1-generic.

3.Is there a general way to solve such problems?(I can't see anything here)



Thanks!



supplement

I add information from config-3.10.0-1-generic into x86_64_config,but it's not work.So I use GDB to debug.And I find kernel seems to stop at this place:(Sure ,I type Ctrl+C 2000 years later)
enter image description here



arch/x86/kernel/head_64.S



So,I initially thought it was stuck here.Is it going to be the problem?










share|improve this question





























    1















    when I use qemu to simulate 3.10.88 kernel on my debian9.6,there is nothing on my compute(At least it should give me something-_-).There are some information about my works.



    Information

    1.qemu's parameter



    qemu-system-x86_64 
    -m 1G
    -kernel ./bzImage
    -hda ./amd64.ext2
    -nographic
    -append "root=/dev/sda init=/sbin/init console=ttyS0"


    2.The config that I used is x86_64_defconfig

    3.picture
    enter image description here



    question:

    1.when I used the kernel,same as the configure of the qemu,it is work well.

    2.I extracted the config file from linux-image-3.10.0-1-generic_3.10.0.8_amd64.deb.I am going to compare between config-3.10.0-1-generic and x86_64_defconfig.compare result
    enter image description here



    and I add some options in x86_64_defconfig from config-3.10.0-1-generic.

    3.Is there a general way to solve such problems?(I can't see anything here)



    Thanks!



    supplement

    I add information from config-3.10.0-1-generic into x86_64_config,but it's not work.So I use GDB to debug.And I find kernel seems to stop at this place:(Sure ,I type Ctrl+C 2000 years later)
    enter image description here



    arch/x86/kernel/head_64.S



    So,I initially thought it was stuck here.Is it going to be the problem?










    share|improve this question



























      1












      1








      1








      when I use qemu to simulate 3.10.88 kernel on my debian9.6,there is nothing on my compute(At least it should give me something-_-).There are some information about my works.



      Information

      1.qemu's parameter



      qemu-system-x86_64 
      -m 1G
      -kernel ./bzImage
      -hda ./amd64.ext2
      -nographic
      -append "root=/dev/sda init=/sbin/init console=ttyS0"


      2.The config that I used is x86_64_defconfig

      3.picture
      enter image description here



      question:

      1.when I used the kernel,same as the configure of the qemu,it is work well.

      2.I extracted the config file from linux-image-3.10.0-1-generic_3.10.0.8_amd64.deb.I am going to compare between config-3.10.0-1-generic and x86_64_defconfig.compare result
      enter image description here



      and I add some options in x86_64_defconfig from config-3.10.0-1-generic.

      3.Is there a general way to solve such problems?(I can't see anything here)



      Thanks!



      supplement

      I add information from config-3.10.0-1-generic into x86_64_config,but it's not work.So I use GDB to debug.And I find kernel seems to stop at this place:(Sure ,I type Ctrl+C 2000 years later)
      enter image description here



      arch/x86/kernel/head_64.S



      So,I initially thought it was stuck here.Is it going to be the problem?










      share|improve this question
















      when I use qemu to simulate 3.10.88 kernel on my debian9.6,there is nothing on my compute(At least it should give me something-_-).There are some information about my works.



      Information

      1.qemu's parameter



      qemu-system-x86_64 
      -m 1G
      -kernel ./bzImage
      -hda ./amd64.ext2
      -nographic
      -append "root=/dev/sda init=/sbin/init console=ttyS0"


      2.The config that I used is x86_64_defconfig

      3.picture
      enter image description here



      question:

      1.when I used the kernel,same as the configure of the qemu,it is work well.

      2.I extracted the config file from linux-image-3.10.0-1-generic_3.10.0.8_amd64.deb.I am going to compare between config-3.10.0-1-generic and x86_64_defconfig.compare result
      enter image description here



      and I add some options in x86_64_defconfig from config-3.10.0-1-generic.

      3.Is there a general way to solve such problems?(I can't see anything here)



      Thanks!



      supplement

      I add information from config-3.10.0-1-generic into x86_64_config,but it's not work.So I use GDB to debug.And I find kernel seems to stop at this place:(Sure ,I type Ctrl+C 2000 years later)
      enter image description here



      arch/x86/kernel/head_64.S



      So,I initially thought it was stuck here.Is it going to be the problem?







      kernel config qemu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 4 at 2:07







      littlebox

















      asked Jan 2 at 1:42









      littleboxlittlebox

      214




      214
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2fstackoverflow.com%2fquestions%2f54000343%2fqemustay-black-screeni-think-this-phenomenon-from-kernels-config-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54000343%2fqemustay-black-screeni-think-this-phenomenon-from-kernels-config-file%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

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith