From: Patrice Kadionik <kadionik@domain.hid>
To: Huan Fang <huanf@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Problem to cross-compile Xenomai user-space support
Date: Tue, 30 Mar 2010 19:48:09 +0200 [thread overview]
Message-ID: <4BB23959.6000009@domain.hid> (raw)
In-Reply-To: <B66DE711C138E84F96E6A2EDD078830B5F2A4D39D1@domain.hid>
Le 30/03/2010 19:37, Huan Fang a écrit :
> Hi Patrice,
>
> I probably know why it fails the first time.
>
> before modification, my nios2.h has
>
> /* system timer input clock frequency */
> #define nasys_clock_freq 100000000
> #define nasys_clock_freq_1000 100000
>
> /* Redefining hrtimer -> timer0 */
> #undef na_hrtimer
> #undef na_hrtimer_irq
>
> #define na_timer0 ((void *) 0x09609080)
> #define na_timer0_irq 1
>
>
> The script altera_avalon_timer.pm will redefine the first timer (by the order of address?) to timer_0.
> In your case, sys_clk_timer is your first timer, that's why it's correctly redefined to timer_0 used in time.c
>
OK. You have the same thing with MicroBlaze and .DTS file with dtb
parsing during kernel booting! Thank you for this info.
> This is tricky, either we should improve the script or manually check(hack) the timer settings.
>
> By the way, I haven't successfully compiled user space xenomai stuff, I will let you know when it's done.
>
OK, read the other messages of this thread. Gilles proposes 2 patchs for
Xenomai 2.5.2 for correcting error compilation (sem_heap.c, vdso-check.c
and cond-torture.c)
Cheers;
Patrice
> Best Regards,
> Huan
> ________________________________________
> From: Patrice Kadionik [kadionik@domain.hid]
> Sent: 30 March 2010 10:37
> To: Huan Fang
> Cc: xenomai@xenomai.org
> Subject: Re: [Xenomai-help] Problem to cross-compile Xenomai user-space support
>
> Le 30/03/2010 00:20, Huan Fang a écrit :
>
>> Hi Patrice,
>>
>>
> Hi Huan,
>
> Have you really used uClinux with NIOS2 without MMU in your Quartus II
> design? Have you synchronized the µClinux kernel file version with the
> NIOS2 ipipe version?
>
>
>> Many thanks for the tutorial, Now I am able to run xenomai patched uclinux on my DE2-70 board.
>> But the kernel doesn't boot unless I modified one file :linux-2.6/arch/nios2/kernel/time.c
>>
>> na_timer0 -> na_sys_clock_timer which I guess is the clock timer used by Linux. Did you manually patch this file?
>> The adeos patch doesn't seem to change this part.
>>
>>
> Not at all.
>
> If you have done this:
> $ make vendor_hwselect SYSPTF=my_design.ptf
> it generates a nios2.h under uClinux-dist/linux-2.6.x/include/asm-nios2
> in which you have na_sys_clk_timer redefined as na_timer0.
> For example, in my nios2.h generated file, I have:
> /* Executing ...scripts/nios2.h/altera_avalon_timer.pm */
>
> /* system timer input clock frequency */
> #define nasys_clock_freq 50000000
> #define nasys_clock_freq_1000 50000
>
> /* Redefining sys_clk_timer -> timer0 */
> #undef na_sys_clk_timer
> #undef na_sys_clk_timer_irq
>
> #define na_timer0 ((void *) 0x00810800)
>
> Please send me in a private email your nios2.h file.
>
> Patrice
>
>
>
>
--
Patrice Kadionik. F6KQH / F4CUQ
-----------
+----------------------------------------------------------------------+
+"Tout doit etre aussi simple que possible, pas seulement plus simple" +
+----------------------------------------------------------------------+
+ Patrice Kadionik http://www.enseirb-matmeca.fr/~kadionik +
+ IMS Laboratory http://www.ims-bordeaux.fr/ +
+ ENSEIRB-MATMECA http://www.enseirb-matmeca.fr +
+ PO BOX 99 fax : +33 5.56.37.20.23 +
+ 33402 TALENCE Cedex voice : +33 5.56.84.23.47 +
+ FRANCE mailto:patrice.kadionik@domain.hid +
+----------------------------------------------------------------------+
next prev parent reply other threads:[~2010-03-30 17:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 20:24 [Xenomai-help] Problem to cross-compile Xenomai user-space support Chtourou Sonda
2010-03-28 13:26 ` Patrice Kadionik
2010-03-29 22:20 ` Huan Fang
2010-03-29 22:23 ` Gilles Chanteperdrix
2010-03-30 9:05 ` Patrice Kadionik
2010-03-30 9:14 ` Gilles Chanteperdrix
2010-03-30 9:40 ` Patrice Kadionik
2010-03-30 9:40 ` Gilles Chanteperdrix
2010-03-30 9:46 ` Patrice Kadionik
2010-03-30 10:46 ` Gilles Chanteperdrix
2010-03-30 15:00 ` Patrice Kadionik
2010-03-30 8:37 ` Patrice Kadionik
2010-03-30 17:37 ` Huan Fang
2010-03-30 17:48 ` Patrice Kadionik [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-03-30 15:40 Chtourou Sonda
2010-03-30 16:45 ` Patrice Kadionik
2010-03-31 10:55 Chtourou Sonda
2010-04-01 10:49 ` Patrice Kadionik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BB23959.6000009@domain.hid \
--to=kadionik@domain.hid \
--cc=huanf@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.