Hi Stella,

On Friday 25 April 2014 14:13:39 Stella GZ wrote:
> Juergen Borleis <jbe@...> writes:
> > > > Due to the fact it is very hard to reproduce I have no new
> > > > information on that issue. It still hasn't hit me. It seems it
> > > > depends on the userland workload (for example how many programs
> > > > allocate the timer...).
>
> I am in the process of testing the latest BSP from GIT as you suggested but
> in the meanwhile I found a quite reliable way to reproduce the problem.
>
> Using the following:
>
> - PTXdist 2013.09.0
> - mini2440 BSP 2013.10.0
> - Kernel 3.11
> - Standard ptxdist configuration, plus JamVM and GNU Classpath
>
> Run the following Java program on the target:
>
> ===
> import java.io.IOException;
>
> public class ThreadTest implements Runnable {
>
>     private static int counter = 0;
>
>     public void run()
>     {
>         while (true)
>         {
>             try {
>                 Thread.sleep(100);
>             }
>             catch (InterruptedException ex) { System.err.println(ex); }
>
>             long time = System.currentTimeMillis();
>             long ktime = System.nanoTime() / 1000;
>             if (counter++ % 1000 == 0) {
>                 System.out.println(time + " (" + ktime + ")");
>             }
>         }
>     }
>
>     public static void main(String args[]) throws IOException
>     {
>         for (int i = 0; i < 10; i++) {
>             Thread t = new Thread(new ThreadTest());
>             t.start();
>         }
>     }
> }
> ===
>
> This just starts 10 threads, each thread runs an endless loop sleeping
> 100 ms and waking up. A trace is printed to stdout every 10 seconds approx.
>
> This typically reproduces the problem in a matter of minutes (most of the
> time within 1-2 minutes).
>
> Hope this helps,

Yes. Don't know why it didn't happen to me earlier, but with your program the 
system stops in about a few systems. Same happens with "cyclictest".

The result of my tests: the Linux-3.11 is completely broken for S3C2440 SoCs. 
up to 3.10 is working and beginning with 3.12 is working again. Forget the 
3.11 kernel as it is already EOL.

> I would like to know which version of *Toolchain* and *ptxdist* I should
> use with the "OSELAS.BSP-Pengutronix-Mini2440-HEAD-0613eff" you recommended
> to me.

Use the most recent toolchain. And if you want, also the most recent PTXdist. I 
updated the BSP git yesterday evening to PTXdist-2014.04 release and 
Linux-3.14.2.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

Reply via email to