Osogoet,
>the reason why I use kernel 2.6.34 (and GCC 4.3.2) is that accessing
PC-104 via mmap() requires EABI based on GCC 4.3.2 which runs on kernel
2.6.34.
You do not need a newer kernel for calling mmap on pc104 addresses. I
wrote this example on a TS-7800 using the stock Debian Sarge (OABI) and
a 2.6.21 Kernel.
http://oz.embeddedarm.com/~mark/index.php/TS-Relay8#TS-Relay8_Programming
You may want to try the default image:
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7800-linux/binaries/ts-images/512mbsd-latest.dd.bz2
If you do end up needing to compile the kernel, we have a guide for the
TS-7800 here:
http://www.embeddedarm.com/about/resource.php?item=412
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/26/2011 06:03 AM, osogoet wrote:
> Yes, it is an option, and I bought 8 TS-7800s with OP-BBRTC.
> Please check the invoice #50491.
> Also, the RTC works fine when booting from NAND Flash.
>
> Well, I had compiled kernel of PC Linux many times, although I have not
> been doing so for these a few(or several) years.
>
> Then, if possible I will self-compile the 2.6.34 kernel on TS-7800,
> running Linux 2.6.34.
> And would you suggest where I do download source tree from?
>
> BTW, the reason why I use kernel 2.6.34 (and GCC 4.3.2) is that
> accessing PC-104 via mmap() requires EABI based on GCC 4.3.2 which runs
> on kernel 2.6.34.
>
> --- In <ts-7000%40yahoogroups.com>,
> Walter Marvin <> wrote:
> >
> > I checked and a RTC is optional on the TS-7800 (e.g. you have to buy
> it extra) Check you original invoice and see if you have one installed
> >
> >
> >
> > ________________________________
> > From: osogoet <>
> > To: <ts-7000%40yahoogroups.com>
> > Sent: Thursday, August 25, 2011 10:24 AM
> > Subject: [ts-7000] Re: TS-7800, Cannot access the Hardware Clock via
> any known method.
> >
> >
> > Â
> >
> > I downloaded 7800_avr_reflash.tar.gz, and following the README,
> execute ./refresh script.
> > However, kernel 2.6.34 could still not find the RTC.
> >
> > I got the file system of 2.6.34 somewhere. It was only a few months
> ago, but I can't remember where I got the image from, or what did I do
> to setup micorSD.
> >
> > Well, should I make/compile the 2.6.34 kernel from sources?
> > But, I am not so smart to do so.
> >
> > So, I would like to reflash the AVR on 7800 with the older image,
> unless the bug in
> > the older AVR image is serious.
> >
> > Would you supply the older 7800_avr flash image?
> >
> > Regards,
> >
> > --- In <ts-7000%40yahoogroups.com>,
> Mark Featherston <mark@> wrote:
> > >
> > > 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 <mah01422@>
> > > > *To:* <ts-7000%40yahoogroups.com>
> > > > *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/
|