Silent90
Posts: 2
Joined: Sun Jun 02, 2013 12:51 am

Run own script during boot process

Sun Jun 02, 2013 1:14 am

Hello.

I am going to add some front-ent to my RPi project - an alphanumeric LCD plus some buttons with UART interface. I am writing a small daemon in C++ to communicate with the LCD, which will be launched after the system startup.

The problem is, that the user interface is "dead" on the powerup, before the Raspbian boots up and the daemon is started (about 30-40 seconds).

Is there a way to send some data over UART during the boot process (1-5 sec. from powerup)? I would like to send some text to the display, for example "Please wait..." or a progrss bar.

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Run own script during boot process

Sun Jun 02, 2013 8:42 am

By default the system displays boot messages to the uart (TXD/RXD, gpios 14/15, P1-8/10). If it's a serial LCD you could display the boot messages I suppose.

Silent90
Posts: 2
Joined: Sun Jun 02, 2013 12:51 am

Re: Run own script during boot process

Sun Jun 02, 2013 11:17 am

Yeah, driver could analyze it, but it's not exaclty it.
Is there a chanse of running an own program for the ARM core somewhere between the boot steps?

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Run own script during boot process

Sun Jun 02, 2013 10:21 pm

Hardware solution?
daisy-chain the UART through a PIC or AVR that sends "loading please wait" on power-up and then forwards whatever the Pi sends it.

Return to “Raspberry Pi OS”