Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to make .iso #96

Open
tralwdwd opened this issue Jan 13, 2025 · 5 comments
Open

how to make .iso #96

tralwdwd opened this issue Jan 13, 2025 · 5 comments

Comments

@tralwdwd
Copy link

I wanted to test my kernel on bare metal but I am unable to find how to make an iso I can boot it with, any help appreciated, thanks!

@Freax13
Copy link
Member

Freax13 commented Jan 13, 2025

First of all, I think it's worth pointing out that you don't necessarily need an ISO file to run your kernel on a real system. ISO files were originally created for CD-ROM media, but I'm guessing that you're likely planning on using some other media type e.g. a USB thumb drive. If you want to boot from a USB thumb drive, you can just flash the disk image created by cargo bootimage. I think it's possible to convert this disk image into an ISO file, but unless you're actually planning on using optical media to run it, this is not required and will likely cause more problems than it solves.
Note that bootloader version 0.9 only supports BIOS boot. Your system will likely be UEFI-based and might not support legacy BIOS boot straight out of the box. You can try enabling CSM in your BIOS options.

@tralwdwd
Copy link
Author

Thanks, but I am trying to get it on a ventoy USB and I am not sure if it will just boot the binary created by cargo bootimage. Any idea how to get an ISO for this reason?

@Freax13
Copy link
Member

Freax13 commented Jan 13, 2025

Thanks, but I am trying to get it on a ventoy USB and I am not sure if it will just boot the binary created by cargo bootimage.

The website says it supports .img files. This should be compatible with the output created by cargo bootimage.

@dedestem
Copy link

dedestem commented Feb 6, 2025

@Freax13 How to make .img then?

Its easy to let it run in qemu with cargo run

but i cant find anywhere on how to run it on REAL hardware

@Freax13
Copy link
Member

Freax13 commented Feb 6, 2025

If you're using legacy BIOS or UEFI with CSM (that's usually an option you can enable), you can just use the file generated by cargo bootimage. There are no conversion steps needed. You can just put the file on a USB thumbdrive. If you need full UEFI support, you'll need to upgrade to bootloader v0.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants