ts-7000
[Top] [All Lists]

Re: [ts-7000] RTAI on TS-7260 and usleep()

To:
Subject: Re: [ts-7000] RTAI on TS-7260 and usleep()
From:
Date: Fri, 31 Jul 2009 07:31:18 -0500



> I'm trying to put RTAI kernel in a TS-7260 and I'm getting the
> following kernel panic:
>
> Kernel panic: VFS: Unable to mount root fs on 1f:01
>
> The command that I'm passing to RedBoot is:
>
> exec -c "console=ttyAM0,115200 root=/dev/mtdblock1"
>
> I have already tried many different versions of RTAI kernel from
> Embedded ARM (ts8, ts9 and ts11) and everyone show the same error.

I had similar issue with getting rtai up and running on 7250.

In my case it had to do with the on board NAND flash.  The pre-compiled rtai kernels from ts web site didn't include the patch to use the flash, so I had to get the kernel source and then patch with the supplied rtai patch AND the mtd 2k flash patch (I think all the flash patch did was set some options for the MTD device in the .config file for the kernel).  The kernel sends the panic message because it doesn't find a file system because it doesn't know how to read the NAND flash.

This was all many moons ago, and I am not really sure the 7260 uses the same flash (I switched production to the 7200 so haven't repeated the process).

> I'm also having the problem already described at this forum about
> the resolution of usleep (10ms). But I really need something that
> sleep my program with a resolution of, at least, 10us, because I
> have to generate a very specif wave at DIO1.

On the performance of 10us sleep... this might be pushing it on the platform, although I've never really tried it.  I have done 40usec timed interrupt routines on rtai, but those were using P3 intel processors and more modern 2.6 kernels.  Since 2.6 kernels are better with interrupts, rtai is better (although it could be limitations of the hardware also... I don't know enough to really say).  usleep -- at least with later rtai versions -- is improved but I don't know if it will give you hard determination at that rate.... but again I never attempted this.




__._,_.___


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