$ qemu -hda ~/path/to/disk/image -m 256 -kernel kernel -append rootdevname=c0d0p0s0 \Please see the attached snap for details.
-initrd mod01_ds,mod02_rs,mod03_pm,mod04_sched,mod05_vfs,mod06_memory,\
mod07_log,mod08_tty,mod09_mfs,mod10_vm,mod11_pfs,mod12_init
The installation hung with error:
couldn't read super block.
fatal
All went well until I tried to install it on the qemu VM with the command:$ qemu -hda ~/path/to/disk/image -m 256 -kernel kernel -append rootdevname=c0d0p0s0 \
-initrd mod01_ds,mod02_rs,mod03_pm,mod04_sched,mod05_vfs,mod06_memory,\
mod07_log,mod08_tty,mod09_mfs,mod10_vm,mod11_pfs,mod12_init
Please see the attached snap for details.
I tracked the code, which turned out that a check was done in function rw_super
located in file commands/fsck.mfs/fsck.c:576.
I wondered why the fsck should be done here for the first installation?
Isn't the disk supposed to be blank? Or the read is done against the ramdisk?
Besides, a read operation hardly failed, unless it runs out of the file?
I simply want my home-built Minix 3 to work, but it seems I am going after the code,
which needs a large amount time of debug, sry ; (
According to http://wiki.minix3.org/doku.php?id=developersguide:crosscompiling
I chose an old version 3.2.1, which is only supported on my system at the moment.
That’s why I gitted back quite a few commits ; (
Given that the kernel and all ramdisk files were provided and passed to Qemu as params,
a CD is really necessary for the installation?
Look at this link plz,
http://wiki.minix3.org/doku.php?id=releases:3.2.1:developersguide:crosscompiling
I quote the line that could argue for my assumption:
"The kernel and boot modules are stored in ../build/destdir.i386/multiboot. ...
or you can tell Qemu to use these to boot from instead of the files stored on the virtual hard disk."
Did I get it wrong?
In attachment is the snap taken after disabling the DMA, with an extension name this time.
I will next try several approaches to get it run, like
- build it under the latest version
- create a CD Image out of the files I already got
- debug this one for more details
qemu -m 256 -kernel kernel -append rootdevname=c0d0p0s0 \Both worked fine. but is there some kind of difference?
-initrd mod01_ds,mod02_rs,mod03_pm,mod04_sched,mod05_vfs,mod06_memory,\
mod07_log,mod08_tty,mod09_mfs,mod10_vm,mod11_pfs,mod12_init -hda minix_x86.img
The other is:
qemu -m 256 -hda minix_x86.img
This build script provides two options to start the minix with Qemu at the end:
The one is likeqemu -m 256 -kernel kernel -append rootdevname=c0d0p0s0 \Both worked fine. but is there some kind of difference?
-initrd mod01_ds,mod02_rs,mod03_pm,mod04_sched,mod05_vfs,mod06_memory,\
mod07_log,mod08_tty,mod09_mfs,mod10_vm,mod11_pfs,mod12_init -hda minix_x86.img
The other is:
qemu -m 256 -hda minix_x86.img
Another question about the obj folder, can I specifiy the obj folder when using ./releasetools/x86_hdimage.sh?