Mkisofs usage help
Mkisofs usage help
I want to get started with os development, have created all the files from Bare Bones tutorial, everything compiles and links, but i can't create an disk image.
I have read the OSDev wiki article about mkisofs, but i still can't get it.
I am using Windows, with CDRTools installed and added to PATH.
Running the mkisofs command works.
My project structure looks like this:
>OS
--->img
------>boot
--------->grub
------------>stage2_eltorito
------------>menu.lst
------>system
--------->kernel.elf
--->kernel.c
--->boot.asm
---> builder.bat (my own script that builds the project, haven't learnt makefile yet)
--->all object files...
In the builder.bat file I added mkisofs -b iso/boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o bootcd.iso iso , but it says:
Setting input charset to 'UTF-8' from local
mkisofs: Uh oh, i cant find the boot image iso/boot/stage2_eltorito inside the target tree
Plz explain me how to use this command.
I have read the OSDev wiki article about mkisofs, but i still can't get it.
I am using Windows, with CDRTools installed and added to PATH.
Running the mkisofs command works.
My project structure looks like this:
>OS
--->img
------>boot
--------->grub
------------>stage2_eltorito
------------>menu.lst
------>system
--------->kernel.elf
--->kernel.c
--->boot.asm
---> builder.bat (my own script that builds the project, haven't learnt makefile yet)
--->all object files...
In the builder.bat file I added mkisofs -b iso/boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o bootcd.iso iso , but it says:
Setting input charset to 'UTF-8' from local
mkisofs: Uh oh, i cant find the boot image iso/boot/stage2_eltorito inside the target tree
Plz explain me how to use this command.
- Bender
- Member
- Posts: 449
- Joined: Wed Aug 21, 2013 3:53 am
- Libera.chat IRC: bender|
- Location: Asia, Singapore
Re: Mkisofs usage help
Did you read this? http://wiki.osdev.org/Bootable_El-Torit ... boot_image
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
(R3X Runtime VM)(CHIP8 Interpreter OS)
- xenos
- Member
- Posts: 1126
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: Mkisofs usage help
Use the correct path.StartOS wrote:Code: Select all
--->img ------>boot --------->grub ------------>stage2_eltorito
Code: Select all
mkisofs -b iso/boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o bootcd.iso iso
Code: Select all
mkisofs: Uh oh, i cant find the boot image iso/boot/stage2_eltorito inside the target tree
Re: Mkisofs usage help
Thanks for the help.
The iso mounts correctly in VirtualBox and GRUB loads, however I still get a problem.
GRUB loads an command line instead of my os.
Whats wrong???
The menu.lst file looks like this:
default 0
title StartOS
kernel /boot/kernel.elf
The iso mounts correctly in VirtualBox and GRUB loads, however I still get a problem.
GRUB loads an command line instead of my os.
Whats wrong???
The menu.lst file looks like this:
default 0
title StartOS
kernel /boot/kernel.elf
Re: Mkisofs usage help
I think it does that if it can't find your grub.cfgStartOS wrote:Thanks for the help.
The iso mounts correctly in VirtualBox and GRUB loads, however I still get a problem.
GRUB loads an command line instead of my os.
Whats wrong???
The menu.lst file looks like this:
default 0
title StartOS
kernel /boot/kernel.elf
Re: Mkisofs usage help
I use GRUB version 0.95.
I think there is no grub.cfg needed
I think there is no grub.cfg needed
All a good OS needs to do is to run Linux inside QEMU 

Re: Mkisofs usage help
What's in your menu.lst?
Re: Mkisofs usage help
menu.lst should contain the following:
OSDev Wiki wrote: menuentry "OS" {
multiboot /boot/system/kernel.elf
}
Happy New Code!
Hello World in Brainfuck
:
[/size]
Hello World in Brainfuck

Code: Select all
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
Re: Mkisofs usage help
Got it right by:
Placing kernel.elf in /boot
Changing menu.lst
Using other ARGV's with mkisofs
But now GRUB says:
Error 13: Invalid or unsupported file format
What??? GRUB does not support multiboot ELF files???
Placing kernel.elf in /boot
Changing menu.lst
Using other ARGV's with mkisofs
But now GRUB says:
Error 13: Invalid or unsupported file format
What??? GRUB does not support multiboot ELF files???
Re: Mkisofs usage help
Show us your linker script and/or listen to the wikiStartOS wrote:Error 13: Invalid or unsupported file format

Happy New Code!
Hello World in Brainfuck
:
[/size]
Hello World in Brainfuck

Code: Select all
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
Re: Mkisofs usage help
I use the linker script provided in the BareBones tutorial and the bootstarp assembly in Bare Bones with nasm
Last edited by StartOS on Tue Dec 30, 2014 1:13 am, edited 1 time in total.
All a good OS needs to do is to run Linux inside QEMU 

Re: Mkisofs usage help
We can assume that you have created a 32-bit gcc cross-compiler which you are using for this project?
Re: Mkisofs usage help
Nope I don't have an cross compiler.
I thought it would be possible with standard MinGW.
I also use my computer to develop system dependent software and don't want to install another compiler for os development.
What extra ARGVs should I add to make it work.
I use the commands from BareBones, but with gcc instaed of i686-elf-gcc.
I thought it would be possible with standard MinGW.
I also use my computer to develop system dependent software and don't want to install another compiler for os development.
What extra ARGVs should I add to make it work.
I use the commands from BareBones, but with gcc instaed of i686-elf-gcc.
All a good OS needs to do is to run Linux inside QEMU 

Re: Mkisofs usage help
Bad, badStartOS wrote:Nope I don't have an cross compiler.
I thought it would be possible with standard MinGW.
I also use my computer to develop system dependent software and don't want to install another compiler for os development.
What extra ARGVs should I add to make it work.
I use the commands from BareBones, but with gcc instaed of i686-elf-gcc.

Happy New Code!
Hello World in Brainfuck
:
[/size]
Hello World in Brainfuck

Code: Select all
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
Re: Mkisofs usage help
Well, the good news is that you have now determined what the problem is. If you are going to follow a tutorial you ought to (at least to start with) follow the tutorial.StartOS wrote:Nope I don't have an cross compiler.
I thought it would be possible with standard MinGW.