<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="+1">I tested the mipseb helloworld provided by Mark (Thanks
again) but the result is the same as my own helloworld,<br>
on running, the whole shell just froze.<br>
I opened another ssh and "top" and see that the program is taking up
50% of the cpu.<br>
<br>
Also, I tried to /proc/cpuinfo and it even said Permission denied (I
have already chmod 777).<br>
This OS does not even support the file command.<br>
I am guess some rtl might be missing or some permission problem is
causing the freezing problem.<br>
Any ideas?<br>
<br>
On another note, my NetGear 3700v4 router is actually running DD-wrt
21286 (not Openwrt, I previously thought DD-wrt was a spin off of
openwrt, Sorry).<br>
</font><br>
Dennis<br>
<br>
<br>
Mark Morgan Lloyd wrote:
<blockquote cite="mid:kpcais$pa$1@pye-srv-01.telemetry.co.uk"
type="cite">Mark Morgan Lloyd wrote:
<br>
<blockquote type="cite">Dennis Poon wrote:
<br>
<blockquote type="cite">Since I have spent days but still cannot
produce a helloworld binary for MIPS big endian, I need someone to to
produce that for me so I can
<br>
test it on my MIPS hardware.
<br>
<br>
I need to know at this stage whether a FPC produced program compiled
for MIPS (big endian) can actually run on my hardware.
<br>
If that result is negative, I shall need a totally different approach.
<br>
</blockquote>
<br>
I've just checked and I have big- and little-endian "Hello, World!"
programs natively-compiled that run on Debian Linux on Qemu. I can send
either or both if it would help, but I'd caution that they date back to
around Xmas last year and something /could/ have changed with the
compiler since.
<br>
<br>
Big endian (on appropriate system):
<br>
<br>
$ file test
<br>
test: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV),
statically linked, stripped
<br>
$ ./test
<br>
Hello, World!
<br>
<br>
Little endian (on appropriate system):
<br>
<br>
$ file test
<br>
test: ELF 32-bit LSB executable, MIPS, MIPS-II version 1 (SYSV),
statically linked, stripped
<br>
$ ./test
<br>
Hello, World!
<br>
<br>
/But/ I've got a vague recollection that somebody else had problems
running on some router or other, which is one of the reasons why I
fired things up at the end of last year and did some careful builds. I
can't remember exactly where that one got to- I suggest that you look
back through the fpc-devel and fpc-pascal archive.
<br>
</blockquote>
<br>
Our gateway is dropping some messages due to attachments or something.
Dennis, note the archives at
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/lists/fpc-pascal/">http://lists.freepascal.org/lists/fpc-pascal/</a> and
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/lists/fpc-devel/">http://lists.freepascal.org/lists/fpc-devel/</a>
<br>
<br>
| Mark,
<br>
| Yes, please kindly send both test executables to me.
<br>
| Also, if you say the compiler has changed since last christmas, do
you
<br>
| know how I can download the fpc sources version of last christmas?
<br>
<br>
OK, you should have them but I would say that this isn't easy for me at
the moment: my host system is too slow to be realistic and booting the
two targets took around an hour.
<br>
<br>
The compiler was 2.7.1 (trunk) as of about revision 23218. In practical
terms I'd suggest starting off with the current trunk from svn and only
trying an older revision if really necessary.
<br>
<br>
If these don't work for you then I think we need to work out what's
going wrong, in case it's a general OpenWRT thing.
<br>
<br>
Note below for the big-endian system:
<br>
<br>
$ file ./test-mips-msb
<br>
./test-mips-msb: ELF 32-bit MSB executable, MIPS, MIPS-II version 1
(SYSV), statically linked, stripped
<br>
$ cksum ./test-mips-msb
<br>
3420485397 68988 ./test-mips-msb
<br>
$ ./test-mips-msb
<br>
Hello, World!
<br>
$ cat /proc/cpuinfo
<br>
system type : MIPS Malta
<br>
processor : 0
<br>
cpu model : MIPS 24Kc V0.0 FPU V0.0
<br>
BogoMIPS : 78.08
<br>
wait instruction : yes
<br>
microsecond timers : yes
<br>
tlb_entries : 16
<br>
extra interrupt vector : yes
<br>
hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8]
<br>
ASEs implemented :
<br>
shadow register sets : 1
<br>
core : 0
<br>
VCED exceptions : not available
<br>
VCEI exceptions : not available
<br>
<br>
Note below for the little-endian system:
<br>
<br>
$ file ./test-mips-lsb
<br>
./test-mips-lsb: ELF 32-bit LSB executable, MIPS, MIPS-II version 1
(SYSV), statically linked, stripped
<br>
$ cksum ./test-mips-lsb
<br>
2200884524 69468 ./test-mips-lsb
<br>
$ ./test-mips-lsb
<br>
Hello, World!
<br>
$ cat /proc/cpuinfo
<br>
system type : MIPS Malta
<br>
processor : 0
<br>
cpu model : MIPS 24Kc V0.0 FPU V0.0
<br>
BogoMIPS : 65.53
<br>
wait instruction : yes
<br>
microsecond timers : yes
<br>
tlb_entries : 16
<br>
extra interrupt vector : yes
<br>
hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8]
<br>
ASEs implemented :
<br>
shadow register sets : 1
<br>
core : 0
<br>
VCED exceptions : not available
<br>
VCEI exceptions : not available
<br>
<br>
On my email etc. system:
<br>
<br>
$ cksum ./test-mips-*
<br>
2200884524 69468 ./test-mips-lsb
<br>
3420485397 68988 ./test-mips-msb
<br>
<br>
I've sent these in a tarball. I trust that you will accept that if the
files arrive with the correct checksums that they've run successfully
for me here.
<br>
<br>
</blockquote>
</body>
</html>