Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Creating a bootable program on a cd

I would like to create a program that you can burn from an iso to a cd, that will run when the computer first starts(in the BIOS). I want to do this with x86 assembly and C++. Where can I find a good tutorial on this?

Comments

  • MT2002MT2002 Member Posts: 1,444
    : I would like to create a program that you can burn from an iso to a
    : cd, that will run when the computer first starts(in the BIOS). I
    : want to do this with x86 assembly and C++. Where can I find a good
    : tutorial on this?
    :

    Hello,

    You will need to be more specific here. Do you want to create your own bootloader? Use an existing bootloader? Or something else?

    [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS Operating System[rightbr][leftbr][link=http://www.brokenthorn.com]Website :: OS Development Series[rightbr][/link][/size]
  • dbrandtdbrandt Member Posts: 43
    Basically, I would like to be able to play DVDs on my computer without having to start up my computer and load everything. I would put my DVD-playing program onto a cd, load the program to memory, eject the cd, and put in the dvd to play. I wouldn't mind using an existing boot loader for this program...I don't know much about booting, which is why I am asking for a tutorial on how to create bootable programs.
  • MT2002MT2002 Member Posts: 1,444
    That will be **very** hard to do from scratch... booting would be the least of the problems.

    Personally, I would recommend just getting an existing program (I know some exist that do what you want. They boot into Windows, but do not load Windows completely--just enough to get the program started and running.)

    The only software I seen that does this were provided by the computer manufacturer.
    [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS Operating System[rightbr][leftbr][link=http://www.brokenthorn.com]Website :: OS Development Series[rightbr][/link][/size]
  • dbrandtdbrandt Member Posts: 43
    Alright. Could you point me to any links?
  • BitByBit_ThorBitByBit_Thor Member Posts: 2,444
    : Alright. Could you point me to any links?
    :

    I think MT meant "Very Hard" as in nearly impossible for one person to do himself. Atleast, impossible in any reasonable timespan.

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
  • MT2002MT2002 Member Posts: 1,444
    : : Alright. Could you point me to any links?
    : :

    : I think MT meant "Very Hard" as in nearly impossible for one person
    : to do himself. Atleast, impossible in any reasonable timespan.


    Basically it will require ALOT more then a bootloader (Assuming you started from scratch) to be able to load, parse, manage, and play, a full 2/3hr movie at bootup. Also, if you would like nice video playback and sound/music playback, You will need alot more work.

    This is why I recommended trying to get an existing software that boots into Windows (Even if just a little bit to use its libraries.) to play your movies at startup.

    I have only seen manufacturers produce this software, but am sure there are more. (I know HP has a "QuickPlay" DVD and music software that I have used that does just this.)

    [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS Operating System[rightbr][leftbr][link=http://www.brokenthorn.com]Website :: OS Development Series[rightbr][/link][/size]
  • blipblip Member Posts: 756
    http://www.nu2.nu/pebuilder/ or a Linus live CD and DVD software of your choice.
  • IDKIDK Member Posts: 1,784
    : http://www.nu2.nu/pebuilder/ or a Linus live CD and DVD software of
    : your choice.

    Exactly my thought.

    Tools needed are:
    bootloader syslinux, lilo or grub
    a kernel with a lot of video drivers, or only the video drivers needed by you, and also a lot of sound drivers.
    some program to play the dvd, for example VLC.

    If you compile your own kernel and don't use many drivers, you can boot very fast.

    From scratch this would involve:
    compile your kernel, and initrd
    compile the video program and all dependencies
    make an iso, move the files to it
    run syslinux on the iso
    burn, and you're done.

    But there are more convinient alternatives...
Sign In or Register to comment.