Skip to contentSkip to conversation

help porting to BF533

Qemu-devel [email protected] 3 participants 3 messages Jun 20, 2004 – Jun 22, 2004

lore
Share & tools
lore
#0 lore raw

Hi Everyone,

I'm working on porting the qemu to the blackfin BF533, under uClinux and
uClibc. This created many problems for me which I cannot solve so I am looking for any help I can get :)

first of all, has anyone compiled and used qemu succesfully with uClibc
instead of glibc? if so, can you provide any information / code?

second of all, has anyone used uClinux instead of linux for qemu? the
main difference is not lack of fork, and mmap instead of malloc, but (I think) the use of a different binary format - bflt instead of elf. Does anyone know how to port qemu to use bflt? the fact that qemu uses dynamic compiling probably means I need alot of changes - can anyone point me to what and how?

third, what architecture specific parts are there in qemu? I found a need
to get processor ticks in one function, and two large sections which I have no idea how to rewrite in dyngen.c. Could I possibly reuse code from one of the other architectures? (SPARC, MK68, 386, etc.) Any help here would be very much appreciated.

The BF533 is a 32 bit address and 16 bit dsp processor, with RISC like
instructions and dual MACS (the DSP part isn't particularily interesting from qemu's POV I think). Its made by Analog Devices. I am using the EZkit for the BF533, a eval board by AD.

I'd appreciate any pointers / help,

Alon

#1 lore raw

dyngen must be ported to at least one library format per processor QEMU is used with.

For example, on x86, ELF would have been enough. Generate the code to ELF, then it must be read back in so that the lengths of each code block and relocation information can be determined.

The folks that did the Windows port went the extra mile and ported dyngen to COFF.

In fact it would be completely reasonable to use the dynamically generated primitives from a Linux ELF file on a COFF platform.

However, I don't know anything about the Blackfin BF533 and bflt.

My guess is you will have to completely port dyngen over to that platform. I see you becoming intimately familiar with bflt in the near future :-)

-- John.

#2 lore raw
In reply to [email protected]

Hi,

Monday, June 21, 2004 7:24 AM [email protected] wrote

Quoted 6 lines

Hi Everyone,

I'm working on porting the qemu to the blackfin BF533, under uClinux and
uClibc. This created many problems for me which I cannot solve so I am looking for any help I can get :)

I don't know anything about BF533 but please try to look for differences of object file format.

ELF and COFF are different file format but they have almost the same part. If bflt is similar to ELF, it is good. Porting of dyngen is the first step. If you can use objdump in uClinux, it will be useful.

Regards,
kazu