Hello Martin,

MD> Could you please explain in more detail? What do you mean by "generating
MD> not executable code"? What is it generating then? Again, this could just
MD> mean that the ARMv4 and ARMv5TEJ are not perfectly compatible.

Sorry, i have disoriented you. I have forgotten to compile with
-march=armv5te   -mtune=arm926ej-s at that time. -march=armv4 had
been preset.

MD> BTW: What toolchain do you use? HelenOS's cross-compiler toolchain or 
MD> some other?

I have used HelenOS's toolchain. With my own toolchain i was unable to
get the sources compiled.

MD> Well, it's hard to tell just from your description what might be
MD> happening in the CPU, maybe some ARM expert can help here. But again, 
MD> this can signify that the system architecture of the CPU differs from 
MD> what the code expects (being written for ARMv4).

Jazelle, DBX and Enhanced DSP instructions are definitely new to ARMv5
comparing to ARMv4, but they are not interesting anymore. MMU-
and cache-organization looks at first to be similar.

MD> The image.bin and uImage.bin are created specifically for GTA02 (Neo
MD> Freerunner). It would be quite surprising for me if it just booted 
MD> without any changes.

Of course i used modified Makefile :).

MD> A hint: You don't have to add such tracing lines manually into the code.
MD> Provided you have implemented early character output, you can make use
MD> of the CONFIG_LOG ("Detailed kernel logging") and CONFIG_TRACE ("Kernel
MD> function tracing") configuration options.

Ok, but i needed more fine grained output, not just having seen a
function call.

MD> I am afraid that without physical access to the same or similar hardware
MD> (or an emulator of the hardware) no one can just magically help you. We
MD> might look into the specs, if time permits.

It's possible to emulate arm926ej-s with QEMU!

1) apply attached versatilepb.patch (created on rev. 1517)
2) recompile
3) qemu-system-arm -m 64M -M versatilepb -kernel image.bin -nographic

Kernel loading will be stopped in the same function (as_switch()) just a few
lines  earlier as i have had it!  The error must be sticking around this
function.

Thank you for your reply.

-- 
Best regards,
 Alexander

Attachment: versatilepb.patch
Description: Binary data

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to