like grub or lilo

This is a discussion on like grub or lilo within the Projects and Job Recruitment forums, part of the Community Boards category; i would like help to start programming charger for any os like grub or lilo ... some people said me ...

  1. #1
    /*enjoy*/
    Join Date
    Apr 2004
    Posts
    159

    like grub or lilo

    i would like help to start programming charger for any os like grub or lilo ...

    some people said me starting with assembly code !!!!

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You probably won't write a "loader" without using assembler - a large portion will be C, but you'll be unable to write ALL the code in C, since for one thing, you will be forced to write the MBR code in a 512 byte block which runs in real-mode, and unless you are really determined that you should run ALL of the code in real-mode, you'll have to write a bit of code to take you from real to protected mode.

    The MBR code will most likely have to be written in real-mode and has to fit in 512 bytes, including any data you need.

    Note also that writing a loader is not easy - it relies on understanding A LOT about how the system architecture works, BIOS calls, hardware access, and such things. If you are not familiar with many of those concepts, make sure you plan on plenty of time to figure it out.

    Note on the English language: A charger is something you connect to your phone or digital camera to "fill up" the batteries. It may also be a large horse used in ancient times in wars. It is not a loader, hence "lilo" is not called "lich", but "lilo" [LInux LOader].

    A loader is someone or something that transfers a load (e.g. someone working at an airport loading bags or goods on planes, or in a harbour loading boats), or in computer terms, a piece of code that loads up the initial OS portions to get the OS into memory.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    loaders, in software terms, also load shared libraries, plugins and, naturally, loadable kernel modules.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Just thought I should state it clearly: GRUB and LILO are boot loaders, not operating systems (OSes).
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GRUB question (Linux)
    By filker0 in forum Tech Board
    Replies: 2
    Last Post: 10-03-2005, 06:12 PM
  2. getting rid of grub
    By axon in forum Tech Board
    Replies: 3
    Last Post: 03-17-2004, 07:15 PM
  3. Replies: 2
    Last Post: 03-08-2004, 11:38 AM
  4. LILO Problem..
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-24-2003, 04:53 AM
  5. A change in LILO, and partition expanding
    By civix in forum Tech Board
    Replies: 2
    Last Post: 01-08-2003, 03:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21