Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-06

can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware?

19 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dennis Poon

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 test it on my MIPS hardware.

I need to know at this stage whether a FPC produced program compiled for MIPS (big endian) can actually run on my hardware. If that result is negative, I shall need a totally different approach.

Dennis

Sven Barth
to Dennis Poon
Dennis Poon wrote 8 lines
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 test it on my MIPS hardware. I need to know at this stage whether a FPC produced program compiled for MIPS (big endian) can actually run on my hardware. If that result is negative, I shall need a totally different approach.

Ehm, you know that in the previous thread about creating a cross compiler it was all about a LITTLE ENDIAN compiler?

Regards,
Sven

Pierre Free Pascal
to Dennis Poon: Since I have spent days but still cannot produce a helloworld binary for MIPS big endian,…

Did you try:

ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/mips-linux/

I just produced an up-to-date snapshot.

Pierre Muller

Show quoted text 20 lines
-----Message d'origine----- De : [mailto:fpc-pascal- De la part de Dennis Poon Envoyé : mercredi 12 juin 2013 14:01 À : FPC-Pascal users discussions Objet : [fpc-pascal] can someone please email me a zipped hello world binary program MIPS big endian for testing on my MIPS hardware? 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 test it on my MIPS hardware. I need to know at this stage whether a FPC produced program compiled for MIPS (big endian) can actually run on my hardware. If that result is negative, I shall need a totally different approach. Dennis _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Dennis Poon
to Sven Barth: Ehm, you know that in the previous thread about creating a cross compiler it was all…

I do know all the previous advices were about MIPS little endian. I have modified those to MIPS accordingly and I have 'successfully' compiled programs for MIPS by
creating symbolic links for mipseb (for strange reason, the compiler insists on mipsed, not mips):

/usr/bin ln -s mips-linux-gnu-ld mipseb-linux-ld and the same for 'as'

I also tried mipsel and that went ok, but still need to remove '-linux' in the name.
Don't know why mips has to be 'renamed' as mipseb.

Anyway, I managed to compile a "hello world" program for MIPS without errors. However, when I ran it on my MIPS hardware, it just froze without any error message.
I have attached the gzipped hello world program with this. Hope someone can kindly run it on their MIPS bigh endian hardware and see if it writeln 'hello world'.

the program was just :

program hello;
{$mode objfpc}{$H+}
uses
   Classes;
begin
     writeln('hello world');
end.

Thanks a lot.

Dennis

Show quoted text 25 lines
Am 12.06.2013 14:00, schrieb Dennis Poon: > 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 > test it on my MIPS hardware. > > I need to know at this stage whether a FPC produced program compiled > for MIPS (big endian) can actually run on my hardware. > If that result is negative, I shall need a totally different approach. > Ehm, you know that in the previous thread about creating a cross compiler it was all about a LITTLE ENDIAN compiler? Regards, Sven _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3345 / Virus Database: 3199/6403 - Release Date: 06/11/13
Michael Ring
to Dennis Poon: Since I have spent days but still cannot produce a helloworld binary for MIPS big endian,…

I am confused, in all of your other mail till now you were talking about littleendian and now you talk about big endian, which one is right?

A little endian binary will never ever run on a big endian system and your crosscompiler will need to also be configured && build with the correct endian.

Michael

Dennis Poon wrote 13 lines
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 test it on my MIPS hardware. I need to know at this stage whether a FPC produced program compiled for MIPS (big endian) can actually run on my hardware. If that result is negative, I shall need a totally different approach. Dennis _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Dennis Poon
to Michael Ring

I originally asked questions on big endian but so far people, and the MIPS_port doc, just reply me about litte endian . I had no choice but to modify their advice into big endian myself.

I do understand big and little do mix.

Dennis

Show quoted text 35 lines
I am confused, in all of your other mail till now you were talking about littleendian and now you talk about big endian, which one is right? A little endian binary will never ever run on a big endian system and your crosscompiler will need to also be configured && build with the correct endian. Michael Am 12.06.13 14:00, schrieb Dennis Poon: > 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 > test it on my MIPS hardware. > > I need to know at this stage whether a FPC produced program compiled > for MIPS (big endian) can actually run on my hardware. > If that result is negative, I shall need a totally different approach. > > Dennis > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3345 / Virus Database: 3199/6403 - Release Date: 06/11/13
Dennis Poon
to Pierre Free Pascal: Did you try: ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/mips-linux/ I just produced…

But Pierre, that looks more like a native MIPS compiler. My MIPS hardware is too slow to run a compiler.
I need a cross compiler.

If you have MIPS hardware, can you compile and send me a simple MIPS big endian "hello world" binary executable?
I want to test run it on my MIPS hardware.

Dennis

Show quoted text 48 lines
Did you try: ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/mips-linux/ I just produced an up-to-date snapshot. Pierre Muller > -----Message d'origine----- > De : [mailto:fpc-pascal- > De la part de Dennis Poon > Envoyé : mercredi 12 juin 2013 14:01 > À : FPC-Pascal users discussions > Objet : [fpc-pascal] can someone please email me a zipped hello world binary > program MIPS big endian for testing on my MIPS hardware? > > 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 > test it on my MIPS hardware. > > I need to know at this stage whether a FPC produced program compiled for > > MIPS (big endian) can actually run on my hardware. > If that result is negative, I shall need a totally different approach. > > Dennis > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3345 / Virus Database: 3199/6403 - Release Date: 06/11/13
OBones
to Dennis Poon

Hello,

Can't you just run that exe with the -h flag?
Should run fast enough.

Dennis Poon wrote 59 lines
But Pierre, that looks more like a native MIPS compiler. My MIPS hardware is too slow to run a compiler. I need a cross compiler. If you have MIPS hardware, can you compile and send me a simple MIPS big endian "hello world" binary executable? I want to test run it on my MIPS hardware. Dennis > Did you try: > > ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/mips-linux/ > > I just produced an up-to-date snapshot. > > Pierre Muller > > >> -----Message d'origine----- >> De : [mailto:fpc-pascal- >> De la part de Dennis Poon >> Envoyé : mercredi 12 juin 2013 14:01 >> À : FPC-Pascal users discussions >> Objet : [fpc-pascal] can someone please email me a zipped hello >> world binary >> program MIPS big endian for testing on my MIPS hardware? >> >> 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 >> test it on my MIPS hardware. >> >> I need to know at this stage whether a FPC produced program compiled >> for >> MIPS (big endian) can actually run on my hardware. >> If that result is negative, I shall need a totally different approach. >> >> Dennis >> _______________________________________________ >> fpc-pascal maillist - >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2013.0.3345 / Virus Database: 3199/6403 - Release Date: > 06/11/13 > > > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Mark Morgan Lloyd
to Dennis Poon: Since I have spent days but still cannot produce a helloworld binary for MIPS big endian,…
Dennis Poon wrote 7 lines
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 test it on my MIPS hardware. I need to know at this stage whether a FPC produced program compiled for MIPS (big endian) can actually run on my hardware. If that result is negative, I shall need a totally different approach.

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.

Big endian (on appropriate system):

$ file test
test: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped
$ ./test
Hello, World!

Little endian (on appropriate system):

$ file test
test: ELF 32-bit LSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped
$ ./test
Hello, World!

/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.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Dennis Poon
to Mark Morgan Lloyd

Mark,
Yes, please kindly send both test executables to me. Also, if you say the compiler has changed since last christmas, do you know how I can download the fpc sources version of last christmas?

Thanks a lot.

Dennis

Mark Morgan Lloyd wrote 37 lines
Dennis Poon wrote: > 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 > test it on my MIPS hardware. > > I need to know at this stage whether a FPC produced program compiled > for MIPS (big endian) can actually run on my hardware. > If that result is negative, I shall need a totally different approach. 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. Big endian (on appropriate system): $ file test test: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped $ ./test Hello, World! Little endian (on appropriate system): $ file test test: ELF 32-bit LSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped $ ./test Hello, World! /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.
Mark Morgan Lloyd
to Mark Morgan Lloyd: I've just checked and I have big- and little-endian "Hello, World!" programs…
Mark Morgan Lloyd wrote 5 lines
/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.

Looking back through the archive (mainly fpc-devel), I see occasional discussion of trying to get FPC-compiled programs running on (MIPS) OpenWRT without anybody saying unequivocally that they've succeeded.

Can anybody confirm that they've successfully got FPC+MIPS+OpenWRT running, i.e. rather than targeting generic Linux on a development board?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Mark Morgan Lloyd
to Mark Morgan Lloyd: I've just checked and I have big- and little-endian "Hello, World!" programs…
Mark Morgan Lloyd wrote 36 lines
Dennis Poon wrote: > 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 > test it on my MIPS hardware. > > I need to know at this stage whether a FPC produced program compiled > for MIPS (big endian) can actually run on my hardware. > If that result is negative, I shall need a totally different approach. 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. Big endian (on appropriate system): $ file test test: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped $ ./test Hello, World! Little endian (on appropriate system): $ file test test: ELF 32-bit LSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped $ ./test Hello, World! /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.

Our gateway is dropping some messages due to attachments or something. Dennis, note the archives at
http://lists.freepascal.org/lists/fpc-pascal/ and
http://lists.freepascal.org/lists/fpc-devel/

| Mark,
| Yes, please kindly send both test executables to me. | Also, if you say the compiler has changed since last christmas, do you | know how I can download the fpc sources version of last christmas?

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.

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.

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.

Note below for the big-endian system:

$ file ./test-mips-msb
./test-mips-msb: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped
$ cksum ./test-mips-msb
3420485397 68988 ./test-mips-msb
$ ./test-mips-msb
Hello, World!
$ cat /proc/cpuinfo
system type : MIPS Malta
processor : 0
cpu model : MIPS 24Kc V0.0 FPU V0.0 BogoMIPS : 78.08
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8] ASEs implemented :
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available

Note below for the little-endian system:

$ file ./test-mips-lsb
./test-mips-lsb: ELF 32-bit LSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped
$ cksum ./test-mips-lsb
2200884524 69468 ./test-mips-lsb
$ ./test-mips-lsb
Hello, World!
$ cat /proc/cpuinfo
system type : MIPS Malta
processor : 0
cpu model : MIPS 24Kc V0.0 FPU V0.0 BogoMIPS : 65.53
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8] ASEs implemented :
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available

On my email etc. system:

$ cksum ./test-mips-*
2200884524 69468 ./test-mips-lsb
3420485397 68988 ./test-mips-msb

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.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Dennis Poon
to Mark Morgan Lloyd

I tested the mipseb helloworld provided by Mark (Thanks again) but the result is the same as my own helloworld,
on running, the whole shell just froze.
I opened another ssh and "top" and see that the program is taking up 50% of the cpu.

Also, I tried to /proc/cpuinfo and it even said Permission denied (I have already chmod 777).
This OS does not even support the file command.
I am guess some rtl might be missing or some permission problem is causing the freezing problem.
Any ideas?

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).

Dennis

Mark Morgan Lloyd wrote 119 lines
Mark Morgan Lloyd wrote: > Dennis Poon wrote: >> 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 >> test it on my MIPS hardware. >> >> I need to know at this stage whether a FPC produced program compiled >> for MIPS (big endian) can actually run on my hardware. >> If that result is negative, I shall need a totally different approach. > > 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. > > Big endian (on appropriate system): > > $ file test > test: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV), > statically linked, stripped > $ ./test > Hello, World! > > Little endian (on appropriate system): > > $ file test > test: ELF 32-bit LSB executable, MIPS, MIPS-II version 1 (SYSV), > statically linked, stripped > $ ./test > Hello, World! > > /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. Our gateway is dropping some messages due to attachments or something. Dennis, note the archives at http://lists.freepascal.org/lists/fpc-pascal/ and http://lists.freepascal.org/lists/fpc-devel/ | Mark, | Yes, please kindly send both test executables to me. | Also, if you say the compiler has changed since last christmas, do you | know how I can download the fpc sources version of last christmas? 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. 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. 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. Note below for the big-endian system: $ file ./test-mips-msb ./test-mips-msb: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped $ cksum ./test-mips-msb 3420485397 68988 ./test-mips-msb $ ./test-mips-msb Hello, World! $ cat /proc/cpuinfo system type : MIPS Malta processor : 0 cpu model : MIPS 24Kc V0.0 FPU V0.0 BogoMIPS : 78.08 wait instruction : yes microsecond timers : yes tlb_entries : 16 extra interrupt vector : yes hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8] ASEs implemented : shadow register sets : 1 core : 0 VCED exceptions : not available VCEI exceptions : not available Note below for the little-endian system: $ file ./test-mips-lsb ./test-mips-lsb: ELF 32-bit LSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped $ cksum ./test-mips-lsb 2200884524 69468 ./test-mips-lsb $ ./test-mips-lsb Hello, World! $ cat /proc/cpuinfo system type : MIPS Malta processor : 0 cpu model : MIPS 24Kc V0.0 FPU V0.0 BogoMIPS : 65.53 wait instruction : yes microsecond timers : yes tlb_entries : 16 extra interrupt vector : yes hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8] ASEs implemented : shadow register sets : 1 core : 0 VCED exceptions : not available VCEI exceptions : not available On my email etc. system: $ cksum ./test-mips-* 2200884524 69468 ./test-mips-lsb 3420485397 68988 ./test-mips-msb 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.
Michael Schnell
to Dennis Poon
Dennis Poon wrote
I tested the mipseb helloworld provided by Mark (Thanks again) but the result is the same as my own helloworld, on running, the whole shell just froze.

did you try to test a "heloworld" done in C, using the cross toolchain you use ?

-Michael

Mark Morgan Lloyd
to Mark Morgan Lloyd: Our gateway is dropping some messages due to attachments or something. Dennis, note the…
Mark Morgan Lloyd wrote 72 lines
> /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. 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. 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. Note below for the big-endian system: $ file ./test-mips-msb ./test-mips-msb: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped $ cksum ./test-mips-msb 3420485397 68988 ./test-mips-msb $ ./test-mips-msb Hello, World! $ cat /proc/cpuinfo system type : MIPS Malta processor : 0 cpu model : MIPS 24Kc V0.0 FPU V0.0 BogoMIPS : 78.08 wait instruction : yes microsecond timers : yes tlb_entries : 16 extra interrupt vector : yes hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8] ASEs implemented : shadow register sets : 1 core : 0 VCED exceptions : not available VCEI exceptions : not available Note below for the little-endian system: $ file ./test-mips-lsb ./test-mips-lsb: ELF 32-bit LSB executable, MIPS, MIPS-II version 1 (SYSV), statically linked, stripped $ cksum ./test-mips-lsb 2200884524 69468 ./test-mips-lsb $ ./test-mips-lsb Hello, World! $ cat /proc/cpuinfo system type : MIPS Malta processor : 0 cpu model : MIPS 24Kc V0.0 FPU V0.0 BogoMIPS : 65.53 wait instruction : yes microsecond timers : yes tlb_entries : 16 extra interrupt vector : yes hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8] ASEs implemented : shadow register sets : 1 core : 0 VCED exceptions : not available VCEI exceptions : not available On my email etc. system: $ cksum ./test-mips-* 2200884524 69468 ./test-mips-lsb 3420485397 68988 ./test-mips-msb 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.

Apologies for the lousy threading but our gateway drops some messages.

| > I tested the mipseb helloworld provided by Mark (Thanks again) but | > the result is the same as my own helloworld, on running, the whole | > shell just froze.
|
| did you try to test a "heloworld" done in C, using the cross toolchain | you use ?

Michael: Curious thing is that those binaries definitely ran here So there's either something very odd with Qemu/Debian, or with OpenWRT- and I know where I'd put my money.

Dennis: Transfer the binary back off the OpenWRT system to a development system, being very careful to track the file to avoid any possible confusion, and apply cksum to it to make sure it's not been corrupted in transit. Then transfer any other binary (e.g. /bin/sh) off the OpenWRT system and apply file to it, to see how it's described. Also listen to Michael and others since they've done far more recent work on this than I have, and if necessary take the trouble of getting more of the toolchain onto the target system.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Mark Morgan Lloyd
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 7 lines
Mark Morgan Lloyd wrote: >> /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.

I've asked elsewhere and somebody who does various embedded system work tells me that

"Yes, I had similar problems with a mips OpenWrt. I couldn't get any websourced cross compilers to work properly. Progs did compile OK on the board itself.

"Gave up after a while. Have no idea why, how or what was wrong. :-("

So it looks like it's not just an FPC problem.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Mark Morgan Lloyd
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 19 lines
Mark Morgan Lloyd wrote: > Mark Morgan Lloyd wrote: > >>> /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. I've asked elsewhere and somebody who does various embedded system work tells me that "Yes, I had similar problems with a mips OpenWrt. I couldn't get any websourced cross compilers to work properly. Progs did compile OK on the board itself. "Gave up after a while. Have no idea why, how or what was wrong. :-(" So it looks like it's not just an FPC problem.

| Also, I tried to /proc/cpuinfo and it even said Permission denied (I | have already chmod 777).

Dennis, is /anything/ readable in /proc? I see that the RTL refers to /proc/self/exe during startup.

Noted your comment that you're running DD-WRT rather than OpenWRT.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]