mp application for powerpc-psim does not work!
Joel Sherrill
joel.sherrill at OARcorp.com
Thu May 1 16:53:35 UTC 2003
Bert wrote:
>
> Hi, i have installed RTEMS for powerpc-psim,
> and configured it with the option
> --enable-multiprocessing. i want to run a
> mp application with two nodes on psim,
> but failed. Here is what i have done:
>
> # powerpc-rtems-gdb base_mp-node1.exe
> (gdb) tar sim -f fsim
> (gdb) load
> (gdb) run
> Starting program:/tmp/base_mp/node1/base_mp-node1.exe
> core_find_mapping() - access to unmaped address, attach a default map to handle this - addr=0xc0000000 nr_bytes=0x4 processor=0x40250008 cia=0x16ca0
> ......
> # powerpc-rtems-gdb base_mp-node2.exe
> (gdb) tar sim -f fsim
> (gdb) load
> (gdb) run
> Starting program:/tmp/base_mp/node2/base_mp-node2.exe
> core_find_mapping() - access to unmaped address, attach a default map to handle this - addr=0xc0000040 nr_bytes=0x4 processor=0x40250008 cia=0x2184
> ......
>
> and what in the file "fsim" is as following:
> /#address-cells 2
> /openprom/options/oea-memory-size 8388608
>
> Is there anything i have done wrong? What should i do to make the application work perfect?
See the script c/src/lib/libbsp/powerpc/psim/tools/psim. It has these
lines commented out:
# echo "/shm at 0xc0000000/reg 0xc0000000 0x10000" >> ${TREE_FILE}
# echo "/shm at 0xc0000000/key ${RTEMS_SHM_KEY}" >> ${TREE_FILE}
# echo "/sem at 0xc0010000/reg 0xc0010000 12" >> ${TREE_FILE}
# echo "/sem at 0xc0010000/key ${RTEMS_SHM_SEMAPHORE_KEY}" >> ${TREE_FILE}
# echo "/sem at 0xc0010000/value -1" >> ${TREE_FILE}
You need those device options in your configuration tree.
The RTEMS_SHM_KEY and RTEMS_SHM_SEMAPHORE_KEY correspond to System V
IPC keys since that is how the shared memory and mutex on the shm
are implemented.
> Thanks in advance !!!
> ----------------------------------------------
> Ãâ·ÑÍæÆ»¹ûÅÉÍøÂçÓÎÏ·£¬ÓÃ21CNÓÊÏä×¢²áËͲÊÆÁÊÖ»ú¼°¼ÛÖµÊýÊ®ÍòµÄ¾«ÃÀ½±Æ·
> http://www.appie.com.cn
> Áô¸øÕŹúÈÙ×î°®µÄ˵»°
> http://sms.21cn.com/leslie/
> ½¡¿µÐÔ¹ÛÄîÏíÊÜÃÀÃîµÄʱ¿Ì
> http://sms.21cn.com/sexxy.jsp
> 21CN²ÊÐÅÓÊ£¬ÉùÉ«²ÊÐÅ£¬×ÔÓÉÊÕ·¢
> http://mail.21cn.com/huodong/0304/
> ÐÂÔöHTML±à¼Æ÷£¬ÁîÓʼþ¸ü³öÉ«
> http://mail.21cn.com/bijiao/02.html
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list