Is this a new TS-7800, or did you recently update the AVR following the
errata here?
http://www.embeddedarm.com/about/resource.php?item=563
Walter is correct that it is optional, so make sure you ordered with
OP-BBRTC. However there was a recently discovered bug with the 2.6.34
kernel and the latest FPGA revision. From
/arch/arm/mach-orion5x/ts78xx-setup.c:
static void ts78xx_fpga_supports(void)
{
/* TODO: put this 'table' into ts78xx-fpga.h */
switch (ts78xx_fpga.id) {
case TS7800_REV_1:
case TS7800_REV_2:
case TS7800_REV_3:
case TS7800_REV_4:
case TS7800_REV_5:
case TS7800_REV_9:
ts78xx_fpga.supports.ts_rtc.present = 1;
ts78xx_fpga.supports.ts_nand.present = 1;
ts78xx_fpga.supports.ts_rng.present = 1;
break;
default:
ts78xx_fpga.supports.ts_rtc.present = 0;
ts78xx_fpga.supports.ts_nand.present = 0;
ts78xx_fpga.supports.ts_rng.present = 0;
}
}
If you have a new board, or applied the AVR update, you will be running
revision 10. As you can see there, it will assume there is no RTC,
NAND, or RNG. We only officially support the 2.6.21 kernel, but a
simple change would be to make the defaults assume presence of the RTC
when it doesn't recognize the revision. Once it is working you can just
use hwclock to interface with the RTC.
Keep in mind this board does have support in the vanilla kernels from
kernel.org. A fix was already submitted:
https://lkml.org/lkml/2011/3/4/223
Best Regards,
________________________________________________________________
Mark Featherston, Technologic Systems | voice: (480) 837-5200
16525 East Laser Drive | fax: (480) 837-5300
Fountain Hills, AZ 85268 | web: www.embeddedARM.com
On 08/24/2011 04:11 PM, Walter Marvin wrote:
> First check you have a RTC. on the 7500 it is optional.
>
> ------------------------------------------------------------------------
> *From:* osogoet <>
> *To:*
> *Sent:* Wednesday, August 24, 2011 1:23 PM
> *Subject:* [ts-7000] TS-7800, Cannot access the Hardware Clock via any
> known method.
>
> I have been running kernel 2.6.34 from microSD on TS-7800, and
> everything goes well.
> However, recently I encounter the problem of RTC.
>
> While, it's OK for TS-7800 board with 'BOOTROM - built Jun 10 2009',
> the RTC of TS-7800 board with 'BOOTROM - built May 11 2011' is not
> recognized.
>
> The related boot message is:
>
> Setting the system clock.
> Cannot access the Hardware Clock via any known method.
> Use the --debug option to see the details of our search for an access
> method.
> Unable to set System Clock to: Thu Jan 1 00:00:12 UTC 1970 (warning).
>
> and the results of 'hwclock' and 'hwclock --debug' are:
>
> ts7800:~# hwclock
> Cannot access the Hardware Clock via any known method.
> Use the --debug option to see the details of our search for an access
> method.
>
> ts7800:~# hwclock --debug
> hwclock from util-linux-ng 2.13.1.1
> hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
> No usable clock interface found.
> Cannot access the Hardware Clock via any known method.
>
> Also, there are /dev/rtc and /dev/rtc0 on TS-7800 board with 'BOOTROM -
> built Jun 10 2009',
> there is neither /dev/rtc nor /dev/rtc0 on TS-7800 board with 'BOOTROM -
> built May 11 2011'.
>
> How could it be fixed?
>
>
>
>
------------------------------------
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/
|