Can't load executable on MVME2304 Re:

Joel Sherrill joel.sherrill at OARcorp.com
Wed Mar 28 13:18:06 UTC 2012


Good eye Thomas! The .exe is an ELF file. He should be loading the .ralf file.

--joel

"Thomas Doerfler (nt)" <Thomas.Doerfler at imd-systems.de> wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi,
>
>my first idea would be that the file format does not match the
>expectations of your bootloader.
>
>If I recall my hex code table right, then the bytes interpreted as the
>first opcode:
>
>00005000 7F454C46  WORD        $7F454C46
>
>might be the string "~ELF" of the elf file header. so I assume that
>"hello.exe" is an elf file, but your boot loader doesn't interpret it
>right.
>
>maybe you should feed it with a binary format? Or S-records? Have a
>look into the BSP documentation (README etc), maybe you find some
>hints there.
>
>by the way: A proper email subject would help idetnify the postings
>;-) No offense meant.
>
>wkr,
>
>Thomas.
>
>
>Am 28.03.2012 14:37, schrieb Ziaulhaque Qazi:
>> Hello All
>> 
>> 
>> 
>> I have been trying to build RTEMS-4.10.2 for mvme 2304 CPU.
>> 
>> First I tried to run an EPICS application but failed. I was
>> advised to try first the example application which I tried today.
>> 
>> 
>> 
>> After configuring the CPU with NIOT command of PPC1BUG and running 
>> the NBO command for network booting with the file hello.exe, it 
>> loaded the file from tftp server but execution returned in error.
>> 
>> 
>> 
>> I am pasting below all that was on the hyperterminal screen 
>> (PPC1BUG commands and messages)
>> 
>> PPC1-Bug>niot Controller LUN =00? Device LUN     =00? Node Control 
>> Memory Address =07F9E000? Client IP Address      =10.1.22.45? 
>> Server IP Address      =10.1.22.49? Subnet IP Address Mask 
>> =255.255.255.0? Broadcast IP Address   =0.0.0.0? Gateway IP
>> Address =10.1.22.1? Boot File Name ("NULL" for None)
>> =hello.exe? Argument File Name ("NULL" for None) =? Boot File Load
>> Address =001F0000? Boot File Execution Address    =001F0000? Boot
>> File Execution Delay      =00000000? Boot File Length =00000000?
>> Boot File Byte Offset          =00000000? BOOTP/RARP Request Retry
>> =00? TFTP/ARP Request Retry         =00? Trace Character Buffer
>> Address =00000000? BOOTP/RARP Request Control: Always/When-Needed
>> (A/W)=W? BOOTP/RARP Reply Update Control: Yes/No (Y/N)       =Y?
>> PPC1-Bug>nbo Network Booting from: DEC21140, Controller 0, Device 0
>> Device Name: /pci at 80000000/pci1011,9 at e,0:0,0 Loading: hello.exe
>> 
>> Client IP Address      = 10.1.22.45 Server IP Address      = 
>> 10.1.22.49 Gateway IP Address     = 10.1.22.1 Subnet IP Address 
>> Mask = 255.255.255.0 Boot File Name         = hello.exe Argument 
>> File Name     =
>> 
>> Network Boot File load in progress... To abort hit <BREAK>
>> 
>> Bytes Received =&2983080, Bytes Loaded =&2983080 Bytes/Second 
>> =&149154, Elapsed Time =20 Second(s)
>> 
>> Residual-Data Located at: $07F88000
>> 
>> Exception: Program (Illegal Instruction) SRR0 =00005000 SRR1 
>> =00083040 Vector-Offset =00700 IP     =00005000 MSR    =00003040
>> CR =00000000 FPSCR  =00000000 R0     =00000000 R1     =07F88000 R2 
>> =00000000 R3     =07F88000 R4     =00005000 R5     =00000000 R6 
>> =00000000 R7     =00000000 R8     =00000000 R9     =00000000 R10 
>> =00000000 R11    =00000000 R12    =00000000 R13    =00000000 R14 
>> =00000000 R15    =00000000 R16    =00000000 R17    =00000000 R18 
>> =00000000 R19    =00000000 R20    =00000000 R21    =00000000 R22 
>> =00000000 R23    =00000000 R24    =00000000 R25    =00000000 R26 
>> =00000000 R27    =00000000 R28    =00000000 R29    =00000000 R30 
>> =00000000 R31    =00000000 SPR0   =00000000 SPR1   =00000000 SPR8 
>> =00000000 SPR9   =00000000 00005000 7F454C46  WORD $7F454C46
>> PPC1-Bug>
>> 
>> I need guidance to find what could be the possible problem there?
>> 
>> While installing the tool-chain, gcc and rtems I did not face any 
>> problem or error. I had been installing it successfully many times
>>  before this one, so I am confident about RTEMS and Toolchain. 
>> However I need expert opinion.
>> 
>> This time while installing RTEMS for MVME2304, I just copied the 
>> files for MVME2307 with the names of MVME2304 to get the bsp 
>> supported.
>> 
>> Please guide me if I was right in doing that.
>> 
>> https://mail.google.com/mail/images/cleardot.gif
>> 
>> -- Zia
>> 
>> 
>> 
>> _______________________________________________ rtems-users
>> mailing list rtems-users at rtems.org 
>> http://www.rtems.org/mailman/listinfo/rtems-users
>
>
>- -- 
>- --------------------------------------------
>IMD Ingenieurbuero fuer Microcomputertechnik
>Thomas Doerfler           Herbststrasse 8
>D-82178 Puchheim          Germany
>email:    Thomas.Doerfler at imd-systems.de
>PGP public key available at:
>     http://www.imd-systems.de/pgpkey_en.html
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v2.0.14 (MingW32)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
>iEYEARECAAYFAk9zBzIACgkQwHyg4bDtfjTT4gCfSQOo477+0DZ64zIhAjLvqXne
>jdMAnRNRWrRAwnhc11MY8GguXOaUlT4N
>=9to8
>-----END PGP SIGNATURE-----
>_______________________________________________
>rtems-users mailing list
>rtems-users at rtems.org
>http://www.rtems.org/mailman/listinfo/rtems-users




More information about the users mailing list