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

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Jun 13 15:24:36 CEST 2013


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.

> 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]



More information about the fpc-pascal mailing list