Subject: Hey Paul, got a few questions for you
From: paul lamar
Date: 1/12/2016, 10:48 PM
To: A10-Me-Earthlink


I broke out my old HP2000 laptop I had loaded Ubuntu on back in 2013.
So I did a lot of updates, got code blocks installed to do C++ on,
and a few other Linux IDE's to play with.

Now on the BBB I have to come up with some hardware to plug in the
headers that will give me my I/O ports and a clock function. It is
running Debian so I figured should be able not only to run the ecu
program but also a touch tft screen to see current engine
parameters. Depending on the actual processing power of the BBB maybe
even the efis. Graphics are good and fast enough.


The maximite does have the I/O ports already, clock, but the
graphics will be crude. I think the maximite will a good start will
not be able to run the ecu and display the instruments to monitor the
engine's operation. Lots of file swapping and linking due to the
memory restrictions.


I think the BBB is the best option so far, fast processor, lots of
memory too. I am not very familiar with Linux systems but I can
program in c or c++.


So my first question I have is it possible to write the program in c
that can be loaded in to the BBB and set up linux so that when it is
powered up it will automatically start to run the ECU program and
the instrument program automatically every time it is reset or
powered up?

David Jr.



You got me there. I have been using it for 16 years but I have done
no C programming with it. Back in the old days under DOS a special
file with the name autoexec.bat would run first and execute some set
up programs.

It will probably be written in the script language. If you put this
in google you get a lot of info on on start up scripts..

autoexec.bat linux equivalent

Here is a handy guide on writing scripts. Very BASIC like :-)

Paul Lamar


Hey David,

What you want to do is not all that hard.  Since this application is a
stand alone, not connected to any network, application you can use the
init files to set it up to run with root user privilege.  Don't ever do
this on an internet connected computer.

In directory /etc/rc.d look for a file rc.local.  Add the path to your
chosen executable there.  You application will automgically start up
each time you reboot the machine.  You will probably have some other
configuration issues depending on the resources that your program requires.

   _
  °v°
 /(_)\
  ^ ^  Mark LaPierre
Registered Linux user No #267004
https://linuxcounter.net/

The Rotary Engine News Letter. Powered by Linux.
If you want off the list PLEASE let me know and I will
remove  you.  ACRE NL web site. http://www.rotaryeng.net
You Tube http://tinyurl.com/beqqxas
Copyright 1998-2016 All world wide rights reserved.