Hi list!
I'm not having any luck getting Linux to run on my handheld, so my
next question is:
Is it possible to launch an arbitrary elf binary (e.g.
arm-softfloat-elf) from within HaRET ?
As far as I can tell, aside from maybe using the bootlinux command,
there is no way to load any file into ram. For arbitrary binaries,
bootlinux could potentially work, but one of two things would need to
be done
a) for non-PIC binaries, use an environment variable, e.g. ENTRYADDR,
to say tell HaRET exactly in which physical address the program should
be loaded into ram (also the next address to jump to after mmu has
been disabled). This would correspond to the argument to gcc's -e
option, which corresponds to where void _start(void) is mapped.
b) for PIC binaries, HaRET could load the binary anywhere that its
size would permit, but HaRET would need to dynamically adjust the base
address (often in a register) so that all of the physical offsets were
correct.
The reason I'm asking about this, is because I've written a small elf
binary to test out the STUART on a pxa27x device, and without the
ability to launch an arbitrary binary, I can't run my app. Normally, I
would test it out in WinCE, but for some reason, I'm getting an
exception 0xC0000005 ("Illegal Operation") when I try to enable / use
the STUART through WinCE - likely because the processor is in USR mode
as opposed to SVC mode.
All I really want to see is "Hello, UART World!\n\r" on my STUART.... [sob,sob]
Any thoughts would be appreciated.
Cheers,
Chris
_______________________________________________
Haret mailing list
[email protected]
https://handhelds.org/mailman/listinfo/haret