ts-7000
[Top] [All Lists]

Re: [ts-7000] TS-7800 serial and RTC at boot

To:
Subject: Re: [ts-7000] TS-7800 serial and RTC at boot
From: Michael Schmidt <>
Date: Tue, 03 Jun 2008 10:39:41 -0700
Anouk Ahamitet wrote:
> I would like to configure my TS-7800 to set the system clock from the
> RTC and activate the serial port(s) at boot time.  I've found that I
> can manually do these things with these commands:
> 
>    rtc7800
>    modprobe tsuart7800
> 
> However, these things need to happen automatically, without requiring
> a human to log in.  I'm not sure if the linuxrc being run by the
> mini-system that runs first, or if there's a more appropriate file
> within the linux file system that loads second.  Under other distros,
> I'd modify either rc.local or rcS, but the first doesn't exist, and
> I'm not familiar enough with tslinux to know exactly how rcS is being
> used (or even /which/ rcS isactuall  being -- it could the one in
> /etc/default [unlikely]  or in /etc/init.d [likely]).
> 
> I've searched the group here for this info, but all of the comments
> like "it is just a simple hack to the startup file" aren't helpful.  I
> need comments like "edit /path/to/file and add 'xyzzy' just before
> 'something else'".
> 
> Can anyone assist me?  Please?

System time should be set from RTC time already, by calling rtc7800 from 
the linuxrc file in the initrd (partition 2, should be mountable from 
the full Debian boot).  However if your software load is older and the 
system time is not being set correctly, you may need to edit the linuxrc 
file to specify the full path to rtc7800.

The most foolproof way to do this after logging in (full debian boot) is 
probably this:
# touch /tsfastboot
# touch /fastboot
# reboot

After the reboot you should be at the fastboot prompt.  Next is to find 
the location of the rtc7800 utility.  For example, if you run 
/usr/lbin/rtc7800 from the fastboot prompt and that works, then you will 
want to use "/usr/lbin/rtc7800" instead of "rtc7800" in your linuxrc 
file.  (This is just an example, as I don't remember off the top of my 
head where rtc7800 lives - but you will want the path to be relative to 
fastboot, not the debian root fs...)

Be sure and run the "save" command after updating your linuxrc file, to 
commit the ramdisk back to flash.  When you exit the fastboot and get 
back to Debian you can rm the /tsfastboot file if you want the full 
Debian boot again.


  ______   Best Regards,
|__  __/                  Michael Schmidt
    ||                   Software Engineer
    ||echnologic Systems (EmbeddedARM.com)
    || (480)    16610 East Laser Drive #10
    |/ 837-5200   Fountain Hills, AZ 85268
        http://oz.embeddedarm.com/~michael

------------------------------------

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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU