Thread: like grub or lilo

  1. #1
    Join Date
    Apr 2004

    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
    Farncombe, Surrey, England
    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.

    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
    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
    Just thought I should state it clearly: GRUB and LILO are boot loaders, not operating systems (OSes).

    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:

    My website:
    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, 05: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
    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