[qemu]Stay black screen!I think this phenomenon from kernel's config file
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
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
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)
arch/x86/kernel/head_64.S
So,I initially thought it was stuck here.Is it going to be the problem?
kernel config qemu
add a comment |
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
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
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)
arch/x86/kernel/head_64.S
So,I initially thought it was stuck here.Is it going to be the problem?
kernel config qemu
add a comment |
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
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
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)
arch/x86/kernel/head_64.S
So,I initially thought it was stuck here.Is it going to be the problem?
kernel config qemu
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
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
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)
arch/x86/kernel/head_64.S
So,I initially thought it was stuck here.Is it going to be the problem?
kernel config qemu
kernel config qemu
edited Jan 4 at 2:07
littlebox
asked Jan 2 at 1:42


littleboxlittlebox
214
214
add a comment |
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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