ts-7000
[Top] [All Lists]

Re: [ts-7000] trouble with RTC on 7800

To:
Subject: Re: [ts-7000] trouble with RTC on 7800
From: Frank <>
Date: Mon, 14 Jan 2008 15:25:57 -0500
Check to be sure you don't have multiple copies of the rtc7800 on the board.  From a prompt as root, type 'updatedb', and then 'locate rtc7800'.  Don't know if that's the problem, but I had similar issues with multiple ts7800ctl modules.

-Frank

John Shaffer, PhD wrote:

Hi Mike,

The following is the output from following your instructions.  There seems to be a curiosity however.  This strange behavior ONLY shows itself when running out of the SD card.  I was able to rebuild the on-board flash successfully and when booting from there, the RTC seems to work as expected, the output from that is below and highlighted in this color.

It kind of surprised me yesterday when once I was able to get the on-board flash working again I noticed the RTC seemed to be working. I thought, "oh no, I posted a problem thats no longer a problem" but it persists when using an SD card.  Does this occur with a TS SD card?  If not, then it must be something I am doing.  Note that when I boot from the SD card I unmount /dev/mtdblock3 from /mnt/root and mount /dev/tssdcardb3 to /mnt/root before doing an "exit"

I also booted the kernel from the SD card but the full OS from the on-board flash (by not touching /mnt/root). This resulted in the clock being off during the tslinux part but once launching regular linux the date fixed itself.  This is shown below below in this color. The kernel for both on-board and SD card are from oz.embeddedarm.com/ts7800/reflash

BTW, this is not a critical issue for me at this time so if you have other, high priority items, go ahead and attend to them. :-) If I get a chance I'll do a little more investigating and let you know if I discover anything interesting or insightful.

Thanks,

John

BTW, all of your notes looked just fine in thunderbird.




Booting with SD card




:root# date
Wed Jan 16 13:30:08 CST 2008
:root# ntpdate louie.udel.edu
14 Jan 13:30:31 ntpdate[547]: step time server 128.4.40.12 offset -172793.724088 sec
:root# date
Mon Jan 14 13:30:50 CST 2008
:root# ./rtc7800 -s
Register A was: 20
:root# reboot

Broadcast message from root (ttyS0) (Mon Jan 14 13:31:09 2008):

The system is going down for reboot NOW!
INIT: Sending processes the TERM signal
INIT: SendingStopping web server (apache2)....
Stopping periodic command scheduler: cron.
Stopping MTA: exim4.
Stopping internet superserver: inetd.
Stopping MySQL database server: mysqld.
Stopping OpenBSD Secure Shell server: sshd.
Stopping NFS common utilities: statd.
Stopping kernel log daemon: klogd.
Stopping system log daemon: syslogd.
Sending all processes the TERM signal...done.
Sending all processes the KILL signal...done.
Unmounting remote and non-toplevel virtual filesystems...done.
Deconfiguring network interfaces...done.
Deactivating swap...done.
Unmounting local filesystems...done.
Rebooting...

>> TS-BOOTROM - built Nov 20 2007
>> Copyright (c) 2007, Technologic Systems
>> Booting from SD card...
.
.
.
.
Finished booting in 5.02 seconds
Type 'tshelp' for help
/ # umount /mnt/root/
/ # mount /dev/tssdcardb3 /mnt/root/
/ # date
Mon Jan 14 17:32:05 BRST 2008
/ # exit
INIT: version 2.86 booting
Cleaning up ifupdown...done.
Loading kernel modules...done.
Checking all file systems...
fsck 1.37 (21-Mar-2005)
... done.
Setting up networking...done.
Setting up IP spoofing protection: rp_filter.
Enabling packet forwarding...done.
Configuring network interfaces...done.
Starting portmap daemon: portmap.
Starting portmapper...Mounting remote filesystems...
Recovering nvi editor sessions... done.
INIT: Entering runlevel: 3
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting portmap daemon: portmap.
Starting internet superserver: inetd.
Starting OpenBSD Secure Shell server: sshd.
Starting NFS common utilities: statd.
Starting periodic command scheduler: cron.
Starting web server (apache2)....

Debian GNU/Linux 3.1 ts7800 ttyS0

ts7800 login: root
Last login: Wed Jan 16 17:30:05 2008 on ttyS0
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
:root#
:root#
:root# date
Mon Jan 14 13:32:29 CST 2008
:root# ./rtc7800
Register A was: 20
:root# date
Mon Jan 14 13:32:44 CST 2008
:root#



Booting from on-board flash


/ # date
Mon Jan 14 13:40:40 CST 2008
/ # reboot


>> TS-BOOTROM - built Nov 20 2007
>> Copyright (c) 2007, Technologic Systems
>> Booting from onboard NAND flash...
.
.
.
.
Finished booting in 4.61 seconds
Type 'tshelp' for help
/ # date
Mon Jan 14 13:40:54 CST 2008
/ # df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ram0                 3963      1541      2422  39% /
none                     63392         0     63392   0% /dev
/dev/mtdblock3          515968    410884    105084  80% /mnt/root
/ # exit
>> Booting Linux (using onboard Flash)...
INIT: version 2.86 booting
Cleaning up ifupdown...done.
Loading kernel modules...done.
Checking all file systems...
fsck 1.37 (21-Mar-2005)
... done.
Setting up networking...done.
Setting up IP spoofing protection: rp_filter.
Enabling packet forwarding...done.
Configuring network interfaces...done.
Starting portmap daemon: portmap.
Starting portmapper...Mounting remote filesystems...
Recovering nvi editor sessions... done.
INIT: Entering runlevel: 3
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting portmap daemon: portmap.
Starting internet superserver: inetd.
Starting OpenBSD Secure Shell server: sshd.
Starting NFS common utilities: statd.
Starting periodic command scheduler: cron.
Starting web server (apache2)....

Debian GNU/Linux 3.1 ts7800 ttyS0

ts7800 login: root
Last login: Mon Jan 14 13:38:26 2008 on ttyS0
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
:root# date
Mon Jan 14 13:41:17 CST 2008
:root# ntpdate louie.udel.edu
14 Jan 13:41:37 ntpdate[546]: step time server 128.4.40.12 offset 4.780676 sec
:root# date
Mon Jan 14 13:41:44 CST 2008
:root#



Booting kernel from SD card and linux from on-board flash

Rebooting...

>> TS-BOOTROM - built Nov 20 2007
>> Copyright (c) 2007, Technologic Systems
>> Booting from SD card...
.
.
.
.
Finished booting in 5.02 seconds
Type 'tshelp' for help
/ # date
Fri Nov 20 15:11:54 UTC 1925
/ #
/ #
/ # exit
>> Booting Linux (using onboard Flash)...
INIT: version 2.86 booting
Cleaning up ifupdown...done.
Loading kernel modules...done.
Checking all file systems...
fsck 1.37 (21-Mar-2005)
... done.
Setting up networking...done.
Setting up IP spoofing protection: rp_filter.
Enabling packet forwarding...done.
Configuring network interfaces...done.
Starting portmap daemon: portmap.
Starting portmapper...Mounting remote filesystems...
Recovering nvi editor sessions... done.
INIT: Entering runlevel: 3
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting portmap daemon: portmap.
Starting internet superserver: inetd.
Starting Samba daemon.../etc/rc3.d/S20samba: line 14: /usr/local/sbin/nmbd: No such file or directory
...Samba daemon started!/etc/rc3.d/S20samba: line 18: /usr/local/sbin/smbd: No such file or directory
Starting OpenBSD Secure Shell server: sshd.
Starting NFS common utilities: statd.
Starting periodic command scheduler: cron.
Starting web server (apache2)....

Debian GNU/Linux 3.1 ts7800 ttyS0

ts7800 login: root
Last login: Mon Jan 14 13:53:23 2008 on ttyS0
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
:root# date
Mon Jan 14 13:57:49 CST 2008
:root#






Michael Schmidt wrote:


On Mon, January 14, 2008 10:18 am, Michael Schmidt wrote:

> Hmm, those commands look ok in one mail program, but not another. In case
> they didn't look right to you I am resending...

Ok one more time (I can't believe replying didn't look right, I thought
having a '>' before each line would fix it). Semi-colon added after each
line in case they are still put on the same line.

date;

ntpdate ntp.server.wherever;

date;

rtc7800 -s;

reboot;

rtc7800;

date;

--M


--

John H Shaffer PhD
Managing Partner

507-252-8927
m("lakotainnovations.com","jshaffer");">vations.com

Lakota Innovations LLC
2015 Valkyrie Dr NW
Rochester, MN 55901

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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