2010-08-05 12:25:39     Compile prob after file format chg from FLAT --> FDPIC ELF

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-08-05 12:25:39     Compile prob after file format chg from FLAT --> FDPIC ELF

Steven Vacca (UNITED STATES)

Message: 92182   

 

I'm using the BF537, and distribution uClinux-dist-2.6.28.10-ADI-2009R1-pre-svn6340,

and the latest toolchain that was available upon distribution download.

 

I have been working with my App/Userspace file format = FLAT.  Since I want to use ALSA,

I need to change it to FDPIC ELF.  I'm have trouble compiling this.

 

In menuconfig, Libc Version is set = (None).

In menuconfig|App, Binary format is set = FDPIC ELF.

 

I copied the uClibc folder from /blackfin-sources/toolchain/uClibc to /uClinux/uClibc.

 

I cd uClibc, then in menuconfig:

 

    - set Target Arch = (bfin)

    - set Linux kernel header location = ../linux-2.6.x/include

    - set uClibc runtime library directory =         /opt/uClinux/bfin-linux-uclibc

    - set uClibc development environment directory = /opt/uClinux/bfin-linux-uclibc

  

      (for the above 2, also tried setting them for /opt/uClinux-bfin-uclinux)

 

Do I need to make the uClibc first, then run make in uClinux?

Or, Should I just "make clean" in uClibc and let make in uClinux handle things?

 

After trying various approaches. I get various errors.  One is "undefined reference to __data_start"

in ../sh/sh1.c.  Others seem to be related to uClibc.

 

Thanks

QuoteReplyEditDelete

 

 

2010-08-05 12:33:01     Re: Compile prob after file format chg from FLAT --> FDPIC ELF

Mike Frysinger (UNITED STATES)

Message: 92183   

 

you should not be touching uClibc at all.  why exactly do you think you need to be doing this stuff ?  the library selection should be "(None)".  any other value is not supported and you're on your own.

 

for selecting FLAT/FDPIC, please read the documentation:

  docs.blackfin.uclinux.org/doku.php?id=toolchain:executable_file_formats

QuoteReplyEditDelete

 

 

2010-08-05 12:53:36     Re: Compile prob after file format chg from FLAT --> FDPIC ELF

Steven Vacca (UNITED STATES)

Message: 92184   

 

When I merely copy uClibc to uClinux/uClibc, then execute make in uClinux, I get errors relating to uClibc.

QuoteReplyEditDelete

 

 

2010-08-05 12:58:54     Re: Compile prob after file format chg from FLAT --> FDPIC ELF

Steven Vacca (UNITED STATES)

Message: 92185   

 

...and, the library setting has always been set = None.

QuoteReplyEditDelete

 

 

2010-08-05 13:01:32     Re: Compile prob after file format chg from FLAT --> FDPIC ELF

Mike Frysinger (UNITED STATES)

Message: 92186   

 

not supported

QuoteReplyEditDelete

 

 

2010-08-05 13:05:43     Re: Compile prob after file format chg from FLAT --> FDPIC ELF

Steven Vacca (UNITED STATES)

Message: 92187   

 

(None) is not supported?  That's the default setting that I left it on, and as you mentioned above.

QuoteReplyEditDelete

 

 

2010-08-05 13:07:39     Re: Compile prob after file format chg from FLAT --> FDPIC ELF

Mike Frysinger (UNITED STATES)

Message: 92188   

 

look at the message i replied to

QuoteReplyEditDelete

 

 

2010-08-05 13:14:28     Re: Compile prob after file format chg from FLAT --> FDPIC ELF

Steven Vacca (UNITED STATES)

Message: 92189   

 

I'm missing something here. In my original post there is this:

 

    "In menuconfig, Libc Version is set = (None).".  That's the default setting when executing "make menuconfig" in /uClinux.

 

menuconfig shows:  

 

     --- Kernel is linux-2.6.x

         Libc Version (None)  --->

QuoteReplyEditDelete

 

 

2010-08-05 13:17:09     Re: Compile prob after file format chg from FLAT --> FDPIC ELF

Mike Frysinger (UNITED STATES)

Message: 92190   

 

that's what it should say

Attachments

    Outcomes