LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-18-2009, 06:15 AM   #1
dgauri
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
Run a USB application while booting the system, before GRUB starts executing


I have small display board connected to my PC on its USB port. I have developed an application which displays a string over it. I want to run this application automatically when my system boots up. Also it should execute before GRUB.
I tried to search if there is any system file, where in I can make an entry of this executable(of my application), so that it will run when the system boots up, and that too before GRUB.
I have created a Makefile for my application.

I am not getting any clue, to how to go for it.
Please help me in this respect.
 
Old 12-18-2009, 07:02 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
probably you may need to place that program in BIOS, or else you may need to boot from your pendrive.

If you place that program in BIOS then you run that program. and boot os from hard disk.
 
Old 12-18-2009, 11:31 PM   #3
dgauri
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I am quite new to this.
Can you please tell me how to place my program in BIOS.
 
Old 12-23-2009, 06:17 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 12-23-2009, 09:49 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Just out of curiosity what type of information is being displayed on your board? Why does it need to be run before grub?
 
0 members found this post helpful.
Old 12-24-2009, 12:57 AM   #6
dgauri
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
This displays the device boot up information.

Now I have downloaded grub source code and i have done a little change that i have inserted my own code in it. now i am trying to compile the grun source code. However it has certain specifications, like gcc and binutils versions. it requires, gcc version more than 2.95. I have gcc version 4.4. so i think it should work. Also, i have binutils version 2.10, however i am not able to compile binutils 2.10 as it is not supported over host=i686. I am stucked here. How to go for it now?
Please help me out.
 
Old 02-13-2010, 04:13 AM   #7
dgauri
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up Run my application between BIOS and GRUB

I want to run my own application (BSP) from USB dongle. This BSP should get called when BIOS execution is done. I can specify boot from USB option and direct the boot up sequence to USB. However, how can I run the BSP at this stage. Also once BSP execution is done, the same BSP should call the GRUB and shoul continue further execution.

How this can be done. Please suggest.
 
  


Reply

Tags
before, exe, grub



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reiserfs Journal warning when booting system after grub, is it make system slow ??? b-RAM Linux - Server 4 07-20-2009 08:07 PM
grub and booting in a multi-hd system wkwireless Linux - Software 1 04-16-2007 09:07 AM
Booting USB from GRUB ? telovoyagarcar Linux - Software 2 03-01-2007 08:31 PM
System Booting / GRUB tofee Linux - Newbie 1 08-02-2006 08:00 AM
GRUB starts booting Win ME then freezes Hound Passer Linux - Newbie 2 08-01-2003 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration