Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-18-2009, 07:15 AM   #1
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, 08:02 AM   #2
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-19-2009, 12:31 AM   #3
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, 07:17 AM   #4
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
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, 10:49 AM   #5
Registered: Aug 2002
Posts: 16,350

Rep: Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908
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, 01:57 AM   #6
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, 05:13 AM   #7
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.


before, exe, grub

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 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 09:07 PM
grub and booting in a multi-hd system wkwireless Linux - Software 1 04-16-2007 10:07 AM
Booting USB from GRUB ? telovoyagarcar Linux - Software 2 03-01-2007 09:31 PM
System Booting / GRUB tofee Linux - Newbie 1 08-02-2006 09:00 AM
GRUB starts booting Win ME then freezes Hound Passer Linux - Newbie 2 08-01-2003 05:15 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:32 PM.

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