Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Hard realtime with Xenomai for NIOS II

Dear all,

Since few months, it is possible to use Xenomai for NIOS II (without MMU) under µClinux.

Xenomai is a hard realtime extension for Linux/µClinux.

The Xenomai port for NIOS II is available from the Xenomai site: http://xenomai.org

You may find specific infos for NIOS II here: http://uuu.enseirb-matmeca.fr/~kadionik/nios2-xenomai/ (http://uuu.enseirb-matmeca.fr/%7ekadionik/nios2-xenomai/)

We have written a tutorial for using Xenomai for NIOS II under µClinux: http://uuu.enseirb-matmeca.fr/~kadionik/nios2-xenomai/doc/xenomai%20on%20nios%20ii%20softcore%20processor%20guide-v1.2.pdf (http://uuu.enseirb-matmeca.fr/%7ekadionik/nios2-xenomai/doc/xenomai%20on%20nios%20ii%20softcore%20processor%20guide-v1.2.pdf)

Be careful in your SoPC design. You must add these peripherals (and respect names):

- NIOS softcore processor without MMU.

- 3 timers:

* 32-bit Timer hrtimer for Xenomai.

* 64-bit Timer hrclock for Xenomai.

* 32-bit Timer sys_clk_timer for µClinux.

Xenomai for NIOS II (without MMU) has been tested on these boards ( http://uuu.enseirb-matmeca.fr/~kadionik/nios2-xenomai/#testing (http://uuu.enseirb-matmeca.fr/%7ekadionik/nios2-xenomai/#testing) )

- Altera Stratix 1S10.

- Altera DE2-70.

- Altera Cyclone III 3C25.

- Altera Cyclone III 3C120.

If you have run successfully Xenomai for NIOS II on your board, please send me by email (kadionik AT enseirb-matmeca.fr) these informations:

- Type of your board.

- The boot traces.

- # cat /proc/cpuinfo

- # cat /proc/interrupts

- the latency value from:

# latency -t2

# cyclictest -n -p 99 -i 10000

An example of report here: http://uuu.enseirb-matmeca.fr/~kadionik/nios2-xenomai/testings/trace_xenomai_1s10.txt (http://uuu.enseirb-matmeca.fr/%7ekadionik/nios2-xenomai/testings/trace_xenomai_1s10.txt)

Sincerely Yours;

Patrice

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    GREAT !

    Of course it would be even greater to be able to activate Xenomai when compiling the Kernel with the community uCLinux distribution.

    Is it impossible to do Xenomai with MMU or is this just a future option ?

    Thanks,

    -Michael
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    GREAT !

    Of course it would be even greater to be able to activate Xenomai when compiling the Kernel with the community uCLinux distribution.

    Is it impossible to do Xenomai with MMU or is this just a future option ?

    Thanks,

    -Michael

    --- Quote End ---

    HI Michael,

    Until now, MMU is not supported. It will be done in the future I hope...

    Patrice