2007-11-12 07:21:10     How can I convert VisualDSP++ dxe format to gcc elf format?

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

2007-11-12 07:21:10     How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46709    Hi, everybody,

 

Here is dxe elf format document (attached file), how can I convert gcc-elf format to dxe foramt ?

 

Does anyone ever do that ? , I found some topic about elf2elf, but it's for VisualDSP++ 3.5,

 

I want to run it on 4.0 or 4.5, how can I do?

ADI_ELF.zip

TranslateQuoteReplyEditDelete

 

 

2007-11-12 13:36:58     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Robin Getz (UNITED STATES)

Message: 46718    Tang:

 

There is no such thing as gcc dxe format. a dxe is a made up name for ELF. It you want to look at the ELF spec, it is online:

http://www.linux-foundation.org/spec/book/ELF-generic/ELF-generic.html

 

To answer your VDSP compatibility questions, have a look at:

http://docs.blackfin.uclinux.org/doku.php?id=visualdsp:faq

 

-Robin

QuoteReplyEditDelete

 

 

2007-11-13 01:23:20     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46744    Robin:

     Thanks for your answer, what I should do to convert uboot to dxe format ?

TranslateQuoteReplyEditDelete

 

 

2007-11-13 01:36:38     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Mike Frysinger (UNITED STATES)

Message: 46746    i dont think you understood Robin's answer or read the FAQ

 

there is no such thing as "dxe format".  no conversion needs to be done.  you cannot compile or run u-boot from inside VisualDSP.  the versions you quoted (4.0 and 4.5) will not work at all with gcc generated object code.

 

why dont you explain what you're trying to do and we'll tell you the right way to do it.

QuoteReplyEditDelete

 

 

2007-11-13 03:01:03     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46749    Mile:

     Thank your help, what I want to do is to use mechanism (SSL in bf561) in VisualDSP++ which need dxe, and I want to use uboot to join this mechanism. But there is no dxe for uboot, so I want to convert it.

TranslateQuoteReplyEditDelete

 

 

2007-11-13 03:17:54     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Mike Frysinger (UNITED STATES)

Message: 46750    i dont know what you mean by "SSL in bf561", but it doesnt really make any sense.  u-boot gets executed at power on and assumes full control over the system.  pairing it up with anything else externally is not supported nor suggested.  you can use openssl just fine under Linux.

 

but again, the answer is still the same: there is no such thing as "DXE format" thus there is absolutely no way to "convert u-boot to the DXE format".  VisualDSP works with a non-standard ELF format while u-boot is a standard ELF format (with GNU extensions).  there is no way whatsoever (nor is it desirable) to translate VisualDSP extensions into GNU extensions and vice versa.

QuoteReplyEditDelete

 

 

2007-11-13 08:00:14     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Robin Getz (UNITED STATES)

Message: 46757    Tang-Hsun:

 

I don't understand what you are trying to do.

 

You want to use U-Boot to load and boot something created with VDSP? (This may be possible, depending on the chip you are using. For the BF561 - the bootROM does not support it - so we don't support it).

 

or

 

You want to link a VDSP elf file and a gcc elf file to produce a single elf file? (This is not possible on any chip). You need to use gcc, or VDSP - you can not use both for the same project.

 

-Robin

QuoteReplyEditDelete

 

 

2007-11-13 09:23:29     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46761    Mike:

    I am so sorry that I mean DXE format is a non-standard ELF format for VisualDSP++, so what I want to do is like elf2elf utility before you do in VisualDSP++ 3.5,  I want to make it to support VisualDSP++ 4.0 or 4.5.

 

   By the way, SSL is mean Second Stage Loader which is a for BF561, it need dxe to build it, so I want to convert uboot(standard) to dxe(non standard), I have the non standard elf format which attached at the first post.

TranslateQuoteReplyEditDelete

 

 

2007-11-13 09:27:42     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46763    Robin:

     I want to convert  uboot (standard elf format)  to dxe (non standard elf format), and I want it support VisualDSP++4.0 or 4.5.

TranslateQuoteReplyEditDelete

 

 

2007-11-13 09:50:27     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Robin Getz (UNITED STATES)

Message: 46765    Tang-Hsun:

 

What you are asking for is not possible for us - you need to contact ADI, and get them to do this. We can not change VDSP - we don't have the source. We can't change gcc - it would change every other architecture as well.

 

 

My next question is why - I still don't understand why you are trying to do this?

 

-Robin

QuoteReplyEditDelete

 

 

2007-11-13 09:51:47     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Robin Getz (UNITED STATES)

Message: 46766    Tang-Hsun:

 

the elf2elf never actually worked, even for 3.5  - that is why we removed it.

 

-Robin

QuoteReplyEditDelete

 

 

2007-11-13 10:18:06     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Martin Strubel (SWITZERLAND)

Message: 46767    Hi Tang,

 

Someone wanted to use u-boot with VDSP apps a while ago, so when fiddling around, we got to the following solution:

- Use the u-boot binary as it is (I would not recommend any attempts to turn a proper ELF into something broken by design)

- Turn the DXE generated by VDSP into a LDR file, write that into the flash and boot that using a routine like in the attached file (might not be complete). However, you need to take care of all re-initializations (booting from uboot is not the same as from a freshly reset system).

bootldr.c

ldr.h

QuoteReplyEditDelete

 

 

2007-11-13 10:58:07     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46770    Robin:

      I ever ask them for support this, but they don't think so,  so I ask them dxe information(their non standard format), I attached it at my first post. Is it for any help ?

TranslateQuoteReplyEditDelete

 

 

2007-11-13 10:59:25     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46771    Hi Martin,

       Because I want to use SSL(Second Stage Loader) in BF561, I need to dxe to build the loader file by Visual DSP++.

TranslateQuoteReplyEditDelete

 

 

2007-11-13 13:21:23     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Robin Getz (UNITED STATES)

Message: 46775    Tang-Hsun:

 

I am still not understanding things.

 

Bootloaders have nothing to do with the objects that are loaded, and booted. These objects are developed independently of the Bootloader.

 

On BF537 - U-Boot, build with gcc, is used to boot ldr files, build with VDSP.

 

Other than the device changing - is that what you are trying to do?

 

-Robin

QuoteReplyEditDelete

 

 

2007-11-13 13:26:49     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Robin Getz (UNITED STATES)

Message: 46776    Tang-Hsun:

 

If you have the gcc source, and the ADI spec, you are free to make a converter. We are not going to do any work on this.

 

-Robin

QuoteReplyEditDelete

 

 

2007-11-13 15:41:24     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Mike Frysinger (UNITED STATES)

Message: 46779    afaik, you should be able to take the .dxe VDSP produces and just use "boote" on it ... did you encounter difficulties with that approach ?

QuoteReplyEditDelete

 

 

2007-11-13 22:57:07     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46791    Robin:

     Yes, that is what I want to do(like elf2elf utility), but I don't know how to start, can give me some hints?

TranslateQuoteReplyEditDelete

 

 

2007-11-13 23:00:02     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46792    Mike:

    I don't understand boote. Because SSL need dxe to build, I want to convert uboot to dxe.

TranslateQuoteReplyEditDelete

 

 

2007-11-13 23:03:12     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46793    Robin:

     There is a mechanism SSL(Second Stage Loader, it need dxe to build) for BF561, and I want to build it with uboot, in order to build it, I need to convert uboot to dxe.

TranslateQuoteReplyEditDelete

 

 

2007-11-13 23:07:18     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Mike Frysinger (UNITED STATES)

Message: 46794    the question was for Martin, not you ... i have no idea what this "SSL" is you refer to, but i'm pretty sure you dont need it

 

we use u-boot perfectly fine on the BF561 without any **** in between

QuoteReplyEditDelete

 

 

2007-11-13 23:38:54     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Tang-Hsun Tu (TAIWAN)

Message: 46796    Mike:

     I want to use SSL to run two dxe, so I need to convert uboot to dxe. I have ADI spec about dxe, but I don't know how to start to convert it, is any idea ?

TranslateQuoteReplyEditDelete

 

 

2007-11-13 23:47:20     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Mike Frysinger (UNITED STATES)

Message: 46798    we arent going to waste our time on this

 

either use u-boot as is like normal and we'll help you, or use some hack of VDSP stuff and you're on your own

QuoteReplyEditDelete

 

 

2007-11-14 06:06:45     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Martin Strubel (SWITZERLAND)

Message: 46814    Mike:

We had to rewrite the loader procedure anyway to be able to support bank switched flashes (8MB). The code was generated by LabView (don't roll your eyes, the customer wanted it :-) ), thus it got very big. Normally, they just write their LDR to the flash via JTAG. I've never tried booting DXEs via bootelf.

QuoteReplyEditDelete

 

 

2007-11-14 11:40:47     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Mike Frysinger (UNITED STATES)

Message: 46826    so the bootldr was a development step, not the production solution ?  and that was preferred as it mimic-ed the production step closer than boote ?

QuoteReplyEditDelete

 

 

2007-11-14 12:14:36     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Martin Strubel (SWITZERLAND)

Message: 46829    Well, the customer wanted to develop his own stuff and do frequent updates. It's rather a convenience thing, because obviously this whole LabView/VDSP/VDK machinery spits out an LDR. Nothing against LabView, but I think this is designed for academic purposes rather than for a final mature product.

Possibly, DXE booting would work just as well, but I haven't tried, and the customer hasn't asked :-)

 

 

QuoteReplyEditDelete

 

 

2008-06-19 04:52:16     Re: How can I convert VisualDSP++ dxe format to gcc elf format?

Florian Schmid (GERMANY)

Message: 57575   

 

Hi Martin,

 

the solution you posted might seem perfect for my project, too.

 

But ! Is there a list of compatible Blackfins for your lines of code?

 

Or the other way around: Which bootmode / possibility is necessary here?

 

(I'm using a BF561)

 

With best regards,

 

Florian

Attachments

Outcomes