LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-03-2007, 10:58 PM   #16
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 64

Quote:
Originally Posted by jlinkels View Post
There is nothing magic about booting which makes it so slow, as soon as the kernel is loaded and running it should be possible to display your messages using the normal screen driver. Would 5 seconds be realistic?
I think 5 seconds is more than enough (and I mean from bootloader to the starting of init). I think the “norm” might be around three seconds (again, from pressing enter on your bootloader to getting your init’s welcome message—e.g., “INIT: version 2.86 booting”). You can shave as much off as possible by compiling most things (even most things “necessary” for your computer) as modules. The only things you really shouldn’t compile as modules are your filesystem driver, the driver for however your block device is interfaced to the hardware (e.g., ide/sata), and of course the driver for ttyUSB.

Once you get to init, you may begin printing custom text to your device (implementing this by patching your init or creating your own pre-init). The majority of “boot time” is actually time spent after init has loaded, so you won’t lose much.
 
Old 11-04-2007, 10:45 AM   #17
DeltaXFX
Member
 
Registered: Feb 2004
Location: USA
Distribution: Arch
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks osor, now that sounds like it should do exactly what I need, and more easily than the method in the book.

The LCD allows you to make a "power on" screen. Something that is displayed as soon as the LCD receives power, and it remains there until you clear or write other information to the LCD. So from the time the power button is pressed to the time the system gets to init and starts writing out to the LCD I could make it say something like "Booting Asterisk Server."

I'll start reading up on init and see where that gets me. Thanks for all the help and ideas everyone!
 
  


Reply

Tags
cpu, microcontroller


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception in thread "main" java.lang.ClassFormatError: onmyown.Main (unrecognized cla zimboney Fedora 4 07-20-2007 01:00 PM
Crosscompiling C sources for an OS-less ARM microcontroller - is it possible? winterhunter Programming 2 03-26-2007 11:30 AM
Need help compiling for microcontroller jorisb Linux - Software 0 01-12-2006 04:16 PM
microcontroller programming pantera Programming 4 03-18-2005 08:37 PM
please help guys, wrong cpu speed shown with a regular non-mobile cpu !! : ( maku Linux - Hardware 1 01-02-2005 02:03 PM


All times are GMT -5. The time now is 07:43 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration