Skip to contentSkip to conversation

xenomai on Blackfin BF537

Xenomai-help Daniele Pagani 2 participants 8 messages Dec 1, 2008 – Dec 2, 2008

lore
Share & tools
lore
#0 lore raw

Dear Sirs,
I'm using Xenomai with uclinux-dist-2008R1.5 on bf537.

Then, it is possible to use native api with a fdpic elf format?

I receive warning like "relocation references a different segment".

I compile with bfin-linux-uclibc-gcc .... -lnative.

In my code I create 2 real time tasks.

All works fine when I use flat format, but now I need to use fdpic elf format and I receive errors.x

Best regards,
Daniele.

#1 lore raw
Quoted 10 lines · Daniele Pagani

Dear Sirs,
I'm using Xenomai with uclinux-dist-2008R1.5 on bf537.

Then, it is possible to use native api with a fdpic elf format?

I receive warning like "relocation references a different segment".

I compile with bfin-linux-uclibc-gcc .... -lnative.

We do use the fdpic format for all libs on blackfin.

xeno-config --cflags
xeno-config --ldflags

should be used to get the proper compilation/link flags.

Quoted 15 lines

In my code I create 2 real time tasks.

All works fine when I use flat format, but now I need to use fdpic elf format and I receive errors.x

Best regards,
Daniele.

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#2 lore raw

Dear Philippe,

thank you very much for your very fast answer.

Anyway, please consider that I'm newbie about the matter, so,
where I need to write these lines?

I find in:
/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin
the xeno-config command.

Then, I run:
./xeno-config --xeno-cflags
./xeno-config --xeno-ldflags

Then, what I need to do?
Do I need to recompile the kernel?

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 3:11 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 47 lines
Quoted 10 lines · Daniele Pagani

Dear Sirs,
I'm using Xenomai with uclinux-dist-2008R1.5 on bf537.

Then, it is possible to use native api with a fdpic elf format?

I receive warning like "relocation references a different segment".

I compile with bfin-linux-uclibc-gcc .... -lnative.

We do use the fdpic format for all libs on blackfin.

xeno-config --cflags
xeno-config --ldflags

should be used to get the proper compilation/link flags.

Quoted 15 lines

In my code I create 2 real time tasks.

All works fine when I use flat format, but now I need to use fdpic elf format and I receive errors.x

Best regards,
Daniele.

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 8 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: 30/11/2008 17.53
#3 lore raw
Quoted 8 lines · Daniele Pagani

Dear Philippe,

thank you very much for your very fast answer.

Anyway, please consider that I'm newbie about the matter, so,
where I need to write these lines?

Quoted 8 lines

I find in:
/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin
the xeno-config command.

Then, I run:
./xeno-config --xeno-cflags
./xeno-config --xeno-ldflags

As you may have noticed, those commands output a set of compilation and link flags. Copy&paste this output verbatim respectively to the CFLAGS and LDFLAGS variables from your Makefile to build your application.

Quoted 3 lines

Then, what I need to do?
Do I need to recompile the kernel?

No.

Quoted 60 lines

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 3:11 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 48 lines
Quoted 10 lines · Daniele Pagani

Dear Sirs,
I'm using Xenomai with uclinux-dist-2008R1.5 on bf537.

Then, it is possible to use native api with a fdpic elf format?

I receive warning like "relocation references a different segment".

I compile with bfin-linux-uclibc-gcc .... -lnative.

We do use the fdpic format for all libs on blackfin.

xeno-config --cflags
xeno-config --ldflags

should be used to get the proper compilation/link flags.

Quoted 15 lines

In my code I create 2 real time tasks.

All works fine when I use flat format, but now I need to use fdpic elf format and I receive errors.x

Best regards,
Daniele.

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 9 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date:
30/11/2008 17.53
Signature · 1 line
Philippe.
#4 lore raw

Dear Philippe,

I've tried, anyway I receive errors.

In attachment, my makefile and error executing it.

Bf537 - uClinux-dist-2008R1.5-RC3.

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 4:08 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 101 lines
Quoted 8 lines · Daniele Pagani

Dear Philippe,

thank you very much for your very fast answer.

Anyway, please consider that I'm newbie about the matter, so,
where I need to write these lines?

Quoted 8 lines

I find in:
/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin
the xeno-config command.

Then, I run:
./xeno-config --xeno-cflags
./xeno-config --xeno-ldflags

As you may have noticed, those commands output a set of compilation and link flags. Copy&paste this output verbatim respectively to the CFLAGS and LDFLAGS variables from your Makefile to build your application.

Quoted 3 lines

Then, what I need to do?
Do I need to recompile the kernel?

No.

Quoted 60 lines

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 3:11 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 48 lines
Quoted 10 lines · Daniele Pagani

Dear Sirs,
I'm using Xenomai with uclinux-dist-2008R1.5 on bf537.

Then, it is possible to use native api with a fdpic elf format?

I receive warning like "relocation references a different segment".

I compile with bfin-linux-uclibc-gcc .... -lnative.

We do use the fdpic format for all libs on blackfin.

xeno-config --cflags
xeno-config --ldflags

should be used to get the proper compilation/link flags.

Quoted 15 lines

In my code I create 2 real time tasks.

All works fine when I use flat format, but now I need to use fdpic elf format and I receive errors.x

Best regards,
Daniele.

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 9 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date:
30/11/2008 17.53
Signature · 8 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: 30/11/2008 17.53
#5 lore raw
Quoted 6 lines · Daniele Pagani

Dear Philippe,

I've tried, anyway I receive errors.

In attachment, my makefile and error executing it.

-mfdpic

Quoted 118 lines

Bf537 - uClinux-dist-2008R1.5-RC3.

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 4:08 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 105 lines
Quoted 8 lines · Daniele Pagani

Dear Philippe,

thank you very much for your very fast answer.

Anyway, please consider that I'm newbie about the matter, so,
where I need to write these lines?

Quoted 8 lines

I find in:
/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin
the xeno-config command.

Then, I run:
./xeno-config --xeno-cflags
./xeno-config --xeno-ldflags

As you may have noticed, those commands output a set of compilation and link
flags. Copy&paste this output verbatim respectively to the CFLAGS and LDFLAGS
variables from your Makefile to build your application.

Quoted 3 lines

Then, what I need to do?
Do I need to recompile the kernel?

No.

Quoted 61 lines

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 3:11 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 49 lines
Quoted 10 lines · Daniele Pagani

Dear Sirs,
I'm using Xenomai with uclinux-dist-2008R1.5 on bf537.

Then, it is possible to use native api with a fdpic elf format?

I receive warning like "relocation references a different segment".

I compile with bfin-linux-uclibc-gcc .... -lnative.

We do use the fdpic format for all libs on blackfin.

xeno-config --cflags
xeno-config --ldflags

should be used to get the proper compilation/link flags.

Quoted 16 lines

In my code I create 2 real time tasks.

All works fine when I use flat format, but now I need to use fdpic elf format and I receive errors.x

Best regards,
Daniele.

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 9 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date:
30/11/2008 17.53
Signature · 9 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date:
30/11/2008 17.53
Signature · 1 line
Philippe.
#6 lore raw

Dear Philippe,

I've received the same error.

Any suggestions or tests to do?

Thanks,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, December 02, 2008 10:15 AM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 141 lines
Quoted 6 lines · Daniele Pagani

Dear Philippe,

I've tried, anyway I receive errors.

In attachment, my makefile and error executing it.

-mfdpic

Quoted 118 lines

Bf537 - uClinux-dist-2008R1.5-RC3.

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 4:08 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 105 lines
Quoted 8 lines · Daniele Pagani

Dear Philippe,

thank you very much for your very fast answer.

Anyway, please consider that I'm newbie about the matter, so,
where I need to write these lines?

Quoted 8 lines

I find in:
/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin
the xeno-config command.

Then, I run:
./xeno-config --xeno-cflags
./xeno-config --xeno-ldflags

As you may have noticed, those commands output a set of compilation and link
flags. Copy&paste this output verbatim respectively to the CFLAGS and LDFLAGS
variables from your Makefile to build your application.

Quoted 3 lines

Then, what I need to do?
Do I need to recompile the kernel?

No.

Quoted 61 lines

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 3:11 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 49 lines
Quoted 10 lines · Daniele Pagani

Dear Sirs,
I'm using Xenomai with uclinux-dist-2008R1.5 on bf537.

Then, it is possible to use native api with a fdpic elf format?

I receive warning like "relocation references a different segment".

I compile with bfin-linux-uclibc-gcc .... -lnative.

We do use the fdpic format for all libs on blackfin.

xeno-config --cflags
xeno-config --ldflags

should be used to get the proper compilation/link flags.

Quoted 16 lines

In my code I create 2 real time tasks.

All works fine when I use flat format, but now I need to use fdpic elf format and I receive errors.x

Best regards,
Daniele.

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 9 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date:
30/11/2008 17.53
Signature · 9 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date:
30/11/2008 17.53
Signature · 8 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1823 - Release Date: 01/12/2008 19.59
#7 lore raw
Quoted 6 lines · Daniele Pagani

Dear Philippe,

I've received the same error.

Any suggestions or tests to do?

Yes, try understanding why the Xenomai tools and libraries do build fine in FDPIC mode by looking at the compilation output. If this is still not enough, please have a look at the Blackfin Wiki first to get familiar with the Blackfin
toolchain: http://docs.blackfin.uclinux.org/doku.php, and possibly direct your questions regarding those aspects to one of the available Blackfin forums.

Quoted 156 lines

Thanks,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, December 02, 2008 10:15 AM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 144 lines
Quoted 6 lines · Daniele Pagani

Dear Philippe,

I've tried, anyway I receive errors.

In attachment, my makefile and error executing it.

-mfdpic

Quoted 120 lines

Bf537 - uClinux-dist-2008R1.5-RC3.

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 4:08 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 107 lines
Quoted 8 lines · Daniele Pagani

Dear Philippe,

thank you very much for your very fast answer.

Anyway, please consider that I'm newbie about the matter, so,
where I need to write these lines?

Quoted 8 lines

I find in:
/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin
the xeno-config command.

Then, I run:
./xeno-config --xeno-cflags
./xeno-config --xeno-ldflags

As you may have noticed, those commands output a set of compilation and link
flags. Copy&paste this output verbatim respectively to the CFLAGS and LDFLAGS
variables from your Makefile to build your application.

Quoted 3 lines

Then, what I need to do?
Do I need to recompile the kernel?

No.

Quoted 63 lines

Best regards,
Daniele.

----- Original Message ----- From: "Philippe Gerum" <[email protected]>
To: "Daniele Pagani" <[email protected]>
Cc: <[email protected]>
Sent: Monday, December 01, 2008 3:11 PM
Subject: Re: [Xenomai-help] xenomai on Blackfin BF537

Quoted 51 lines
Quoted 10 lines · Daniele Pagani

Dear Sirs,
I'm using Xenomai with uclinux-dist-2008R1.5 on bf537.

Then, it is possible to use native api with a fdpic elf format?

I receive warning like "relocation references a different segment".

I compile with bfin-linux-uclibc-gcc .... -lnative.

We do use the fdpic format for all libs on blackfin.

xeno-config --cflags
xeno-config --ldflags

should be used to get the proper compilation/link flags.

Quoted 18 lines

In my code I create 2 real time tasks.

All works fine when I use flat format, but now I need to use fdpic elf
format and I receive errors.x

Best regards,
Daniele.

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 9 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date:
30/11/2008 17.53
Signature · 9 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date:
30/11/2008 17.53
Signature · 9 lines
Philippe.



-- 
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.552 / Virus Database: 270.9.12/1823 - Release Date:
01/12/2008 19.59
Signature · 1 line
Philippe.