Bzimage and rootfs.ext2

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





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












This is the first time I'm trying to build the kernel from scratch: I'm new on this topic so excuse me for the dumb question.



What is the difference between bzimage and rootfs.ext2?



I'm using buildroot and I obtained the above output: as far as I know, bzimage is the compressed kernel image and rootfs.ext2 the filesystem.



However I'm using QEMU with the following commands:



$ qemu-system-i386 -enable-kvm -M pc -kernel ./bzImage -
drive file=./rootfs.ext2,if=virtio,format=raw


or



$ qemu-system-i386 -enable-kvm -M pc -kernel ./bzImage


The outputs seems the same: I see the whole filesystem with an ls command and the same files: can you explain to me the differences between the two outputs?







share|improve this question





















  • both commands seem to be invoking bzImage
    – Rui F Ribeiro
    Jul 29 at 17:54










  • True...the second one invokes only bzimage and the results are exactly the same to the first one
    – andrew
    Jul 29 at 17:59











  • I noticed...it seems your 2nd paragraph needs some working.
    – Rui F Ribeiro
    Jul 29 at 17:59
















up vote
0
down vote

favorite












This is the first time I'm trying to build the kernel from scratch: I'm new on this topic so excuse me for the dumb question.



What is the difference between bzimage and rootfs.ext2?



I'm using buildroot and I obtained the above output: as far as I know, bzimage is the compressed kernel image and rootfs.ext2 the filesystem.



However I'm using QEMU with the following commands:



$ qemu-system-i386 -enable-kvm -M pc -kernel ./bzImage -
drive file=./rootfs.ext2,if=virtio,format=raw


or



$ qemu-system-i386 -enable-kvm -M pc -kernel ./bzImage


The outputs seems the same: I see the whole filesystem with an ls command and the same files: can you explain to me the differences between the two outputs?







share|improve this question





















  • both commands seem to be invoking bzImage
    – Rui F Ribeiro
    Jul 29 at 17:54










  • True...the second one invokes only bzimage and the results are exactly the same to the first one
    – andrew
    Jul 29 at 17:59











  • I noticed...it seems your 2nd paragraph needs some working.
    – Rui F Ribeiro
    Jul 29 at 17:59












up vote
0
down vote

favorite









up vote
0
down vote

favorite











This is the first time I'm trying to build the kernel from scratch: I'm new on this topic so excuse me for the dumb question.



What is the difference between bzimage and rootfs.ext2?



I'm using buildroot and I obtained the above output: as far as I know, bzimage is the compressed kernel image and rootfs.ext2 the filesystem.



However I'm using QEMU with the following commands:



$ qemu-system-i386 -enable-kvm -M pc -kernel ./bzImage -
drive file=./rootfs.ext2,if=virtio,format=raw


or



$ qemu-system-i386 -enable-kvm -M pc -kernel ./bzImage


The outputs seems the same: I see the whole filesystem with an ls command and the same files: can you explain to me the differences between the two outputs?







share|improve this question













This is the first time I'm trying to build the kernel from scratch: I'm new on this topic so excuse me for the dumb question.



What is the difference between bzimage and rootfs.ext2?



I'm using buildroot and I obtained the above output: as far as I know, bzimage is the compressed kernel image and rootfs.ext2 the filesystem.



However I'm using QEMU with the following commands:



$ qemu-system-i386 -enable-kvm -M pc -kernel ./bzImage -
drive file=./rootfs.ext2,if=virtio,format=raw


or



$ qemu-system-i386 -enable-kvm -M pc -kernel ./bzImage


The outputs seems the same: I see the whole filesystem with an ls command and the same files: can you explain to me the differences between the two outputs?









share|improve this question












share|improve this question




share|improve this question








edited Jul 29 at 22:35









slm♦

232k65479649




232k65479649









asked Jul 29 at 17:30









andrew

1




1











  • both commands seem to be invoking bzImage
    – Rui F Ribeiro
    Jul 29 at 17:54










  • True...the second one invokes only bzimage and the results are exactly the same to the first one
    – andrew
    Jul 29 at 17:59











  • I noticed...it seems your 2nd paragraph needs some working.
    – Rui F Ribeiro
    Jul 29 at 17:59
















  • both commands seem to be invoking bzImage
    – Rui F Ribeiro
    Jul 29 at 17:54










  • True...the second one invokes only bzimage and the results are exactly the same to the first one
    – andrew
    Jul 29 at 17:59











  • I noticed...it seems your 2nd paragraph needs some working.
    – Rui F Ribeiro
    Jul 29 at 17:59















both commands seem to be invoking bzImage
– Rui F Ribeiro
Jul 29 at 17:54




both commands seem to be invoking bzImage
– Rui F Ribeiro
Jul 29 at 17:54












True...the second one invokes only bzimage and the results are exactly the same to the first one
– andrew
Jul 29 at 17:59





True...the second one invokes only bzimage and the results are exactly the same to the first one
– andrew
Jul 29 at 17:59













I noticed...it seems your 2nd paragraph needs some working.
– Rui F Ribeiro
Jul 29 at 17:59




I noticed...it seems your 2nd paragraph needs some working.
– Rui F Ribeiro
Jul 29 at 17:59















active

oldest

votes











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%2f459205%2fbzimage-and-rootfs-ext2%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459205%2fbzimage-and-rootfs-ext2%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)