Hi,
If you need the kernel to output boot messages to the LCD during bootup
you have to write your own device driver for it and compile it into the
kernel. There are probably no howto for that. However, I'm not sure what
you mean with your question, is this really what you want to do?
If you have a LCD output program and a keypad input program (might be
the same program) that are doing what they are supposed to do and you
just need to start them I'm sure you don't need autologin.
It seems to me that the main advantage of actually logging in and then
running a program is that all the paths are set up correctly. If you
don't need that then there is no need login, you just start the program
you need to have running from the /etc/init.d scripts (Look for example
at the /etc/init.d/ntpdate script which is fairly easy to understand.)
Then you have to add a link to that script to your /etc/rcx.d
directories (where x should be replaced with the desired runlevel). I
believe 2 is the default runlevel but please correct me if i'm wrong.
There is a readme in /etc/init.d/ that i recommend if you want to do this.
Hope this helps in any way
Per Öberg
Kyaw Kyaw wrote:
> Hi rob,
> Actually I know a little bit on Linux and I don't know how to
> do it. I can only search from Internet and make some change to be
> completable with the TS-7200 board. Now I am reading through the Linux
> Device Drivers recommanded by the manual. Is there anybody knew how to
> solve my problem (autorun LCD and keypad files during login)? If I need
> to read some books to be an embedded engineer, please recommand the
> books. Thanks for your time!
>
> Best Regards,
> Naing.
>
> I got for login through the website of
> http://www-gatago.com/alt/os/linux/28592502.html. I use
> int main(){
> execlp ("login", "login", "-f", "root",0);
> }
> and make change in inittab using vi command. I delete the
> instruction for ttyAM0 login and insert with /root/autorootlogin. I did
> similar things as the instruction they gave.
> ----- Original Message ----
> From: Rob <>
> To:
> Sent: Monday, 12 March 2007 11:49:08PM
> Subject: [ts-7000] Re: auto login and run binaries
>
> --- In .com <ts-7000%40yahoogroups.com>,
> "naingscorpio" <naingscorpio@ ...> wrote:
>>
>>
>> HI all,
>>
>> I'm a newbie in linux and just bought TS-7200 for
>> development. I would like to know how to configure the board in order to
>> auto login and execute binaries(drivers) during login (eg: showing boot
>> mesg from LCD display instead of Host's monitor and using keypad instead
>> of Host's keyboard). For auto-login, I can do it by changing in inittab
>> file (got the way from internet). I don't know how to configure for LCD
>> display and Keypad. So could anybody give me the way(guide) to get the
>> auto-run case? Thanks for your considerations!
>>
>> One more thing is that: When I run the adc-7250.c from the
>> example code on my board it always show 2.509V (maybe because of
>> different board model).
>>
>> Cheers,
>>
>> Naing Scorpio.
>>
> Seems like you could write a device driver and redirect stdio. Oh and
> share a link to the
> web instructions please ;-)
>
>
>
> ------------------------------------------------------------------------
> <http://answers.yahoo.com.sg>
> *Real people. Real questions. Real answers. Share what you know
> <http://answers.yahoo.com.sg>*.
--
Per Öberg, Ph.D. Student
Address: Division of Vehicular Systems
Department of Electrical Engineering
Linköpings universitet
581 83 Linköping, SWEDEN
Phone: +46 (0)13-28 23 69
e-mail:
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|