OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 8:08 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Mon Mar 26, 2012 5:40 am 
Offline
Member
Member
User avatar

Joined: Tue Feb 08, 2011 1:58 pm
Posts: 496
DavidCooper wrote:
A much better route might be Micro-SD cards which are faster, have much higher capacity, and look as if they should give you the ability to switch cards just like floppy disks without having to worry about the drive number changing if you're accessing them through the BIOS [has anyone ever done this?]

Yes, that's what I do. I do not have support for floppy nor for cdrom, I use pendrives and SD cards (with USB case). Both can be used with BIOS 42h read without a problem.


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Mon Mar 26, 2012 10:06 pm 
Offline
Member
Member

Joined: Thu Jun 17, 2010 2:36 am
Posts: 141
turdus wrote:
DavidCooper wrote:
A much better route might be Micro-SD cards which are faster, have much higher capacity, and look as if they should give you the ability to switch cards just like floppy disks without having to worry about the drive number changing if you're accessing them through the BIOS [has anyone ever done this?]

Yes, that's what I do. I do not have support for floppy nor for cdrom, I use pendrives and SD cards (with USB case). Both can be used with BIOS 42h read without a problem.


Thats because BIOS's that support booting for USB devices very kindly emulate them for you. The problem comes when you have to leave the BIOS behind, where you'll need a USB mass storage driver in order to read additional data from the drive\card. With CD's you'd need a much simpler ATAPI driver.


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Tue Mar 27, 2012 1:39 am 
Offline
Member
Member
User avatar

Joined: Tue Mar 09, 2010 8:57 am
Posts: 255
Location: Moscow, Russia
brain wrote:
I am willing to change the tutorial to this however I may need some help on advising how to make iso images from commandline under windows (I have never used windows for osdev).

I prefer to work under windows and I know how to prepare bootable CD. Most easy way is to use mkisofs/cygwin. Within a week (I hope) I'll prepare the second version of my boot tools (set of first stage bootloaders with installer program) where it will be described in details. I'll post here as soon as it will be ready so you may borrow part of my readme and/or link there.

_________________
Yet Other Developer of Architecture.
OS Boot Tools.
Russian national OSDev forum.


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Tue Mar 27, 2012 1:45 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
Instructions that would work on Linux and Cygwin are much preferred, if for no other reason than keeping the tutorial short.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Tue Mar 27, 2012 6:53 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 05, 2009 5:04 pm
Posts: 234
Location: UK
it might make sense to split the barebones tutorial up some, so that after youve written a kernel you can pick a different sub-page for if you want to put it onto cd, a raw floppy, or just boot it directly in qemu (it is multiboot after all).
The CD page could have universal win/nix instructions.

_________________
My homepage. | Discord RPG Bot | D++ - The C++ Discord API Library for Bots


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Wed Mar 28, 2012 1:40 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 05, 2009 5:04 pm
Posts: 234
Location: UK
berkus wrote:
brain wrote:
it might make sense to split the barebones tutorial up some, so that after youve written a kernel you can pick a different sub-page for if you want to put it onto cd, a raw floppy, or just boot it directly in qemu (it is multiboot after all).
The CD page could have universal win/nix instructions.


Sounds good. You volunteered?


Yeah that's the idea lol :-)

_________________
My homepage. | Discord RPG Bot | D++ - The C++ Discord API Library for Bots


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Wed Mar 28, 2012 2:31 am 
Offline
Member
Member
User avatar

Joined: Tue Feb 08, 2011 1:58 pm
Posts: 496
Rudster816 wrote:
Thats because BIOS's that support booting for USB devices very kindly emulate them for you.

Yeah, that's what makes them ideal boot media. Nevertheless they're backward compatible with HDD (512 sector size, partitioning table and arbitrary filesystem support, writeable storage).
Quote:
The problem comes when you have to leave the BIOS behind, where you'll need a USB mass storage driver in order to read additional data from the drive\card. With CD's you'd need a much simpler ATAPI driver.

That's not a problem, since any modern OS must have drivers for USB mass storage. And having a ramdisk (initrd loaded to RAM by BIOS calls) is an easy and cheap solution for the chicken-egg-problem until you finish proper USB/ATA/SATA/ATAPI support.


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Wed Mar 28, 2012 3:31 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
Quote:
any modern OS must have drivers for USB mass storage
"must" is definitely wrong - not all OSes are for desktops...

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Wed Mar 28, 2012 3:52 am 
Offline
Member
Member
User avatar

Joined: Tue Feb 08, 2011 1:58 pm
Posts: 496
Combuster wrote:
"must" is definitely wrong - not all OSes are for desktops...

Please name a mainstream OS that's used in non-desktop environment and does not have USB support.
- embedded linux (such as Android, Maemo, MeeGo, OpenWRT, RouterOS, etc.): has.
- Cisco IOS: has.
- MacOSX iOS: has.
- JunOS: has.
- Symbian OS: has.
- Inferno: has.
- PalmOS: has.
- Windows Phone: has.
so...


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Wed Mar 28, 2012 4:02 am 
Offline
Member
Member
User avatar

Joined: Wed Dec 01, 2010 3:41 am
Posts: 1761
Location: Hong Kong
turdus wrote:
Please name a mainstream OS that's used in non-desktop environment and does not have USB support.


Although you may turn iOS device as mass storage, you cannot attach USB storage and access it within iOS, so I would say no for iOS.


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Wed Mar 28, 2012 4:12 am 
Offline
Member
Member
User avatar

Joined: Tue Feb 08, 2011 1:58 pm
Posts: 496
bluemoon wrote:
Although you may turn iOS device as mass storage, you cannot attach USB storage and access it within iOS, so I would say no for iOS.

Maybe it's not offical, but Mach kernel has drivers for it. So it is possible: http://www.youtube.com/watch?v=9qDrDC-HD-M


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Wed Mar 28, 2012 4:32 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
to have != must have...

osdev.org != mainstream...

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Editing barebones tutorial page to boot from cdrom inste
PostPosted: Fri Apr 06, 2012 1:48 pm 
Offline
Member
Member
User avatar

Joined: Tue Mar 09, 2010 8:57 am
Posts: 255
Location: Moscow, Russia
As I promised, here are the instructions for preparing bootable CD under Windows.
http://goncharov.pp.ru/en/osboot.htm#cdrom

_________________
Yet Other Developer of Architecture.
OS Boot Tools.
Russian national OSDev forum.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group