How to build a minimal bootable system?

Discussion in 'Programming' started by Yankee85, Jun 4, 2008.

  1. #1
    I'm interested in just a barebone system that can boot, and that's all.
    Do you know any resource so I can document myself?
    The programming language doesn't really matter, as far as it's not ASM :)

    I'm not interested on kernels already built, like LFS book or any pre-build software.

    Thanks!
     
    Yankee85, Jun 4, 2008 IP
  2. JavaPF

    JavaPF Member

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Have you looked into any Linux OS?
     
    JavaPF, Jun 5, 2008 IP
  3. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #3
    Can start here:
    http://linuxgazette.net/issue85/mahoney.html

    It deals with building an OS. Course I don't know if that's what you want or if you after building a bootloader, which is a project in itself. Lots of links at the end of the article pointing to better sources for the information you are after.
     
    shallowink, Jun 5, 2008 IP
  4. NuLLByTe

    NuLLByTe Active Member

    Messages:
    382
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #4
    NuLLByTe, Jun 5, 2008 IP
  5. Yankee85

    Yankee85 Peon

    Messages:
    1,067
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, I told that I don't want to build a LFS system (in which the kernel is already built). I want to write my own from line 0 of code :)
     
    Yankee85, Jun 5, 2008 IP
  6. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #6
    Look at this page, it should help you alot. It comes from the page I linked to earlier. Resources exist for what you want, Plus you might want to give a clearer idea of what you want after it boots. A simple command line environment? I'd lay odds you will have to do ASM at some point before you could switch to C code.

    http://www.nondot.org/sabre/os/articles
     
    shallowink, Jun 5, 2008 IP
    Yankee85 likes this.
  7. Yankee85

    Yankee85 Peon

    Messages:
    1,067
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks a lot! Very useful resource!
     
    Yankee85, Jun 5, 2008 IP
  8. AVS

    AVS Peon

    Messages:
    100
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    do u have the hardware , r u looking for an RTOS?
     
    AVS, Jun 6, 2008 IP
  9. Yankee85

    Yankee85 Peon

    Messages:
    1,067
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #9
    No, I just wanted to know how to boot up a small program that says at least "Hello world" :)
     
    Yankee85, Jun 6, 2008 IP