Loading RTEMS application on MVME162

Eric Norum wenorum at lbl.gov
Wed May 5 15:33:49 UTC 2010


Did you download to location 0x20000 and start execution at that point?  It looks like that is where the linker script is placing the beginning of the text (code) section.
I no longer have my MVME167Bug manuals so I can't describe exactly how to specify the download location.
Also, you should download the .ralf file not the .elf file.

On May 5, 2010, at 4:59 AM, AJAI KUMAR MEDHAVI wrote:

> Hi,
> 
> 
> This is in continuation of first mail. I have build RTEMS with sample
> application "Hello", for M68K and MVME162 BSP using MinGW Tools for
> Windows.
> 
> 
> Initially the file generated Hello.exe was of size of 1.52MB. Then I
> reduced size of Hello.exe to 55KB by using m68k-rtems4.9-strip
> 
> 
> Then I download sample application - Hello.exe on MVME162. But when I
> execute go command, my CPU gets failed.
> 
> 
> Please note that :
> 
> 
> 1. I have given following configuration options :
> 
> 
> ../rtems-4.9.1/configure    --target=m68k-rtems4.9
>                            --enable-rtemsbsp=mvme162
>                            --enable-cxx
>                            -–enable-itron
>                            --disable-rdbg
>                            --disable-posix
>                            --enable-networking
>                            --enable-tests=samples
>                            --prefix=/opt/rtems4.9
> 
> 
> 2.  The file linkcmds in
> .\rtems-4.9.1\c\src\lib\libbsp\m68k\mvme162\startup folder has following
> setting :
> 
> 
> /*
> * Declare some sizes.
> */
> _RamBase = DEFINED(_RamBase) ? _RamBase : 0x20000;
> _RamSize = DEFINED(_RamSize) ? _RamSize : 1M;
> _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
> _StackSize = DEFINED(_StackSize) ? _StackSize : 0x1000;
> 
> MEMORY
> {
>        ram : org = 0x000000, l = 1M
> }
> 
> SECTIONS
> {
> 	ram : {
> 		. = .;
> 	} >ram
> 
>        /*
>         * Text, data and bss segments
>         */
>        .text 0x20000 : {
>                *(.text*)
> 
> 		/*
> 		 * C++ constructors/destructors
> 		 */
> 		*(.gnu.linkonce.t.*)
> 
> 
> 
> 3. Bspstart.c has following code :
> 
> 
> oid bsp_start( void )
> {
>  m68k_isr_entry       *monitors_vector_table;
>  int                   index;
>  extern void          *_WorkspaceBase;
>  extern void          *_RamSize;
>  extern unsigned long  _M68k_Ramsize;
> 
>  _M68k_Ramsize = (unsigned long)&_RamSize;  /* RAM size set in linker
> script */
> 
>  /*
>   *  162Bug Vectors are at 0xFFE00000
>   *  162Bug Vectors on LX are at 0x00000000
>   */
> 
> #if defined(mvme162lx)
>  monitors_vector_table = (m68k_isr_entry *)0x00000000;
> #else
>  monitors_vector_table = (m68k_isr_entry *)0xFFE00000;
> #endif
> 
>  m68k_set_vbr( monitors_vector_table );
> 
>  for ( index=2 ; index<=255 ; index++ )
>    M68Kvec[ index ] = monitors_vector_table[ 32 ];
> 
>  M68Kvec[  2 ] = monitors_vector_table[  2 ];   /* bus error vector */
>  M68Kvec[  4 ] = monitors_vector_table[  4 ];   /* breakpoints vector */
>  M68Kvec[  9 ] = monitors_vector_table[  9 ];   /* trace vector */
>  M68Kvec[ 47 ] = monitors_vector_table[ 47 ];   /* system call vector */
> 
>  m68k_set_vbr( &M68Kvec );
> 
>  /*
>   *  You may wish to make the VME arbitration round-robin here, currently
>   *  we leave it as it is.
>   */
> 
>  /* set the Interrupt Base Vectors */
> 
>  lcsr->vector_base = (VBR0 << 28) | (VBR1 << 24);
> 
>  page_table_init();
> 
>  Configuration.work_space_start = (void *) &_WorkspaceBase;
> }
> 
> 
> Kindly provide me information/help in following :
> 
> 
> 1. The precise procedure for loading hello.exe on MVME162-512A.
> 
> 
> 2. If anybody has working image of Hello.exe or any executable sample
> application image for MVME162-512A VME cpu board, plase mail me on
> akmedhavi at rrcat.gov.in and akmedhavi at rediffmail.com for testing it.
> 
> 
> 3. Any other information which may help me.
> 
> 
> 
> 
> Please reply at the earliest.
> 
> 
> 
> 
> Thanks and regards
> 
> 
> AJAI KUMAR MEDHAVI
> SCIENTIFIC OFFICER
> RAJA RAMMANNA CENTRE FOR ADVANCED TECHNOLGY
> PO : CAT, INDORE-452013, INDIA
> PH. 91-731-2488054
> Email : akmedhavi at rrcat.gov.in
> 
> 
> 
> 
> 
> 
> -- 
> 
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users

-- 
Eric Norum
wenorum at lbl.gov






More information about the users mailing list