Booting from a U3 USB Flash Drive

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
dcboy
Posts: 2
Joined: Fri Mar 16, 2007 10:45 am

Booting from a U3 USB Flash Drive

Post by dcboy »

Hi, I'm new to the whole OS development stuff and I managed to create a simple kernel in assembly and C. I have compiled it and have boot.bin and system.bin. Is there any way that I can boot my operating system using my U3 bootable flash drive?

Any resources and tutorials you find would help!

thanks! :)
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: Booting from a U3 USB Flash Drive

Post by Brynet-Inc »

dcboy wrote:Hi, I'm new to the whole OS development stuff and I managed to create a simple kernel in assembly and C. I have compiled it and have boot.bin and system.bin. Is there any way that I can boot my operating system using my U3 bootable flash drive?

Any resources and tutorials you find would help!

thanks! :)
Am I right to assume your flash drive is USB?

Most new systems offer a multitude of USB booting capabilities.. Pretty sure most just emulate a hardrive.

I don't have much information about this.. sorry.. :(
Last edited by Brynet-Inc on Fri Mar 16, 2007 2:29 pm, edited 1 time in total.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

C8H10N4O2 | #446691 | Trust the nodes.
ehird
Member
Member
Posts: 214
Joined: Thu Mar 15, 2007 8:48 am

Post by ehird »

By the way, anyone know how to use grub on an msdos partition? The installation goes all weird inside qemu.
dcboy
Posts: 2
Joined: Fri Mar 16, 2007 10:45 am

Post by dcboy »

Thanks guys, it should work :D


Edit: with grub, how do I load the kernel and the boot file?
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

dcboy wrote:Thanks guys, it should work :D


Edit: with grub, how do I load the kernel and the boot file?
(Grub would normally replace your "boot" file..:roll: Unless it's a second stage..)

But with grub your kernel should support Multiboot..

http://www.gnu.org/software/grub/manual/multiboot/

You may also use a separate boot loader (boot) and chain-load it with grub.. but that sorta negates the entire thing..
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply