Professional Web Applications Themes

boot process query - Linux Setup, Configuration & Administration

I am developing an instrument running Slackware 9.0 linux on a single board computer. We have an LCD display and no monitor on this instrument. I am now looking into how I can bring up an "Initializing" message on the LCD as early in the boot process as possible. I have a c program that does this, but to wait until the end of the boot process to run this code would mean leaving the user waiting for atleast a couple of minutes without an appropriate message. Whats the best/earliest place to plugin this code? Is it possible to run ...

  1. #1

    Default boot process query

    I am developing an instrument running Slackware 9.0 linux on a single
    board computer. We have an LCD display and no monitor on this
    instrument.
    I am now looking into how I can bring up an "Initializing" message on
    the LCD as early in the boot process as possible. I have a c program
    that does this, but to wait until the end of the boot process to run
    this code would mean leaving the user waiting for atleast a couple of
    minutes without an appropriate message.
    Whats the best/earliest place to plugin this code? Is it possible to
    run it at the bootloader stage? (I use LILO but could look to move to
    GRUB if its more suited for doing this).
    Looking forward to your suggestions.
    Thanks,
    Manu
    Manu Guest

  2. #2

    Default Re: boot process query


    "Manu" <edu> wrote in message
    news:google.com... 

    LILO and Grub are written in assembly code.

    The first part of the kernel is also in assembly, but pretty soon drops into
    C code.

    You can write your output code in assembler,

    or just plug the C function into the kernel and call it as often as you
    want.



    Fred Guest

  3. #3

    Default Re: boot process query

    "Fred Ferd" <COM> wrote in message news:<4011e666$rivernet.com.au>... 

    I am calling my program from rc.S at the present moment. I like your
    suggestion but being a kernel newbie I was wondering where in the
    kernel I can call my program from. I am thinking as soon as the kernel
    "drops into C code" would be a nice location. Any idea as to what
    files I have to modify?
    -Manu
    Manu Guest

Similar Threads

  1. Replies: 0
    Last Post: October 18th, 09:18 PM
  2. errant process query
    By Le in forum MySQL
    Replies: 1
    Last Post: September 20th, 12:07 PM
  3. videocard change stops W3K server boot process
    By Nina in forum Windows Server
    Replies: 3
    Last Post: July 31st, 03:23 PM
  4. interrupting the boot process
    By tomd in forum AIX
    Replies: 1
    Last Post: August 14th, 09:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139