Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4974 Discussions

error on target machine(pxa255+linux-2.4.19) when runing rmtsvr!

nengneng
Beginner
1,286 Views
hi ,i installed vtune 7.2 on my host ,recomplied the sourceunder C:Program FilesIntelVTuneRDC for XSC2TargetMVLCEE3.0vdkvdk_src_1.02vdk with arm-linux-gcc and get a driver vtune_drv.o and copy it to my target. Meanwileitranferred some files(rmtsvr,vtlxsc,insmod-vtune.sh)under C:Program FilesIntelVTuneRDC for XSC2TargetMVLCEE3.0vtutility_by_iwmmxt_le to my target machine . i run the insmod-vtune.sh and the message is below:
#/root>./insmod-vtune.sh
*STATUS* Executing: insmod vtune_drv.o
*STATUS* Copyright (C) 2001-2004 Intel Corporation. All rights reserved.
*STATUS* VTune Performance Analyzer Update for Intel XScale Technology, MontaVista* Linux* CEE 3.0
*STATUS* Creating /dev/vtune_* devices with major number 252 ... *STATUS* Done.
*STATUS* Sampling driver vtune_drv has been successfully loaded.
then i run rmtsvr programme,there is an error below:
#/root>./rmtsvr
rmtsvr (184): undefined instruction: pc=00009ea8
Code: 00028070 00028080 e1a0c00d e92ddff8 (ed6df102)
Illegal instruction
i run vtlxsc and there is also error:
#/root>./vtlxsc
vtlxsc (186): undefined instruction: pc=00016618
Code: 00016848 00068434 e1a0c00d e92ddff8 (ed6df102)
Illegal instruction
#/root>enable_irq(9) unbalanced from c00d7820
why? should i recomplie the vtlxsc and rmtsvr with arm-linux-gcc?but i haven't the sources .
help!!!
0 Kudos
20 Replies
Peter_W_Intel
Employee
1,228 Views

First all, I believe that VTune Analyzer 7.2 supports MVLCEE3.0 and I don't think that you have to rebuild vtlxsc and rmtsvr. One thing may be missed of doingfrom you side after insmod vtune_drv.o - that is, you have to do mknodfor character device as below:

#cat /proc/devices

162 raw

252 vtdev

253 pcmcia

# mknod /dev/vtune_d c 252 0

# mknod /dev/vtune_m c 252 1

Also please note that prebuilt utilities in VTune is for PXA27x and you are working on PXA255.

You can use http://premier.intel.com to submit any issue, if you have concerns on this.

Regards, Peter

0 Kudos
nengneng
Beginner
1,228 Views
i check the /dev and there are two nodes vtune_d and vtune_m.the driver vtune_drv.o hasbeen installed successfully.
#/root>./insmod-vtune.sh
*STATUS* Executing: insmod vtune_drv.o
*STATUS* Copyright (C) 2001-2004 Intel Corporation. All rights reserved.
*STATUS* VTune Performance Analyzer Update for Intel XScale Technology, MontaVista* Linux* CEE 3.0
*STATUS* Creating /dev/vtune_* devices with major number 252 ... *STATUS* Done.
*STATUS* Sampling driver vtune_drv has been successfully loaded.
Since the rmtsvr and vtlxsc are for pxa27x, where can i get rmtsvr and vtlxsc for pxa255 ?
0 Kudos
Peter_W_Intel
Employee
1,228 Views
I ever used rmtsvr on former version for pxa255/kermel 2.4.18. please try it.
0 Kudos
nengneng
Beginner
1,228 Views
hi ,i just run the rmtsvr in my target machine,when i run the XscVTuneHostDC.exe on my PC,there is an error below:
#/root>./rmtsvr
Copyright (C) 2001-2003 Intel Corporation. All rights reserved.
VTune Performance Analyzer Update for Intel XScale Techonlogy, PXA Linux*
Version: 7.1.6.215
Server is Starting
file is open!
*STATUS* DCD Initialize Soft Reset status: 0
Waiting for connection ...
Connection Established
pc : [<00024cec>] lr : [<00027a5c>] Not tainted
sp : bf7ff4dc ip : bf7ff50c fp : bf7ff508
r10: 4003f3b4 r9 : 00000020 r8 : 00000002
r7 : bffffa00 r6 : bf7ff5a0 r5 : 7265632d r4 : bf7ff56c
r3 : bf7ff56c r2 : bf7ff5a0 r1 : 7265632d r0 : bf7ff56c
Flags: nzCv IRQs on FIQs on Mode USER_32 Segment user
Control: 397F Table: A3A98000 DAC: 00000015
Segmentation fault
it's a pity that itcan't be used.can you give me the souce of the rmtsvr and vtlxsc or tell me the mechanisms of the two program.
0 Kudos
nengneng
Beginner
1,228 Views
we use arm-linux-gcc 2.95.3 to compile our kernel(2.4.19).does that matter?
0 Kudos
Peter_W_Intel
Employee
1,228 Views
I noted that you got error message after connection establishing. I remember that I used thatwith VTune Analzyer 7.1 host and gcc is 2.95.3. Is that the reason that you use itwith 7.2 host?
I searched another rmtsvr, which is under my VTune 7.2 folder. Would you like to try it with 7.2?
I strongly suggest you to submit this issue on premier, that system will trick this issue status and work efficiently.
0 Kudos
Peter_W_Intel
Employee
1,228 Views
You can see message - Version: 7.1.6.215. You have to use my first attaching one with VTune Analyzer 7.1...
0 Kudos
Peter_W_Intel
Employee
1,228 Views
Please use "root" user to run rmtsvr, I have seen there message -
"Flags: nzCv IRQs on FIQs on Mode USER_32 Segment user
Control: 397F Table: A3A98000 DAC: 00000015
Segmentation fault"
on user mode, you can not access PXA255 hardware.
0 Kudos
nengneng
Beginner
1,228 Views
Excuse me!where can i get the vtune 7.1 evaluation.i will try but i can only find vtune 7.2 in your company's website
0 Kudos
Peter_W_Intel
Employee
1,228 Views
version 7.1 is face-out, let's back to 7.2. My folk thought itis the reasonthat utility (in 7.2) was built by MVLCEE3.0, and you are using arm-linux-gcc. please try his rebuild one again on attached!!
0 Kudos
nengneng
Beginner
1,228 Views
yesterday i deleted the vtune 7.2 on my computer ,then i went to www.intel.com/software/products/vtune/downloads/vtune_eval.htm and down load the vtune 7.2's w_vt_p_7.2.034_ev05.exe on HONGKONG mirror site, but when i run it there is aNSIS Error:
" the install youare trying to use iscorrupted or incomplete.this could be the resultof a damaged disk ,a failde download or a virus. you may want to contact the author of this installer toobtain a newcopy.It may be possibile to skip this check usingthe/NCRCcommandline switch(NOT RECOMMENDED)."
I told to my fellow and he downloaded it again an run it in his computer ,but he failed too.
would you mindcheck the w_vt_p_7.2.034_ev05.exe on you website?wait for your reply! thanks a lot!
0 Kudos
Peter_W_Intel
Employee
1,228 Views
For quick work around, you can access ftp download URL at ftp://download.intel.com/software/products/vtune/downloads/eval/
I just wonder if you uninstalled the product, why can't you find extracted package at C:Documents and Settingszwang14Local SettingsTempw_vt_p_7.2.034 in my case.
0 Kudos
nengneng
Beginner
1,228 Views
with your help ,i have resolved all problems! thanks a lot!!!
0 Kudos
nengneng
Beginner
1,228 Views
hi,today i meet a problem.when i run rmtsvr the debug info below:
#/root>./rmtsvr
Copyright (C) 2001-2004 Intel Corporation. All rights reserved.
VTune Performance Analyzer Update for Intel XScale Technology, MontaVista* Linux* CEE 3.0
Version: 7.2.1.116
Server is Starting
file is open!
*STATUS* Driver open succeeded
*STATUS* DCD Initialize Soft Reset status: 0
Unable to handle kernel NULL pointer dereference at virtual address 00000004
mm = c3fc83a0 pgd = c3c68000
*pgd = a3c67001, *pmd = a3c67001, *pte = 00000000, *ppte = 00000000
Internal error: Oops: ffffffff
CPU: 0
pc : [] lr : [<80000093>] Not tainted
sp : c3081ee4 ip : 80000013 fp : c3081f00
r10: 00000145 r9 : 00000000 r8 : c3081f6c
r7 : 00000009 r6 : c3081f30 r5 : c69076b0 r4 : c3083120
r3 : c2fa0044 r2 : 00000000 r1 : c2fa003c r0 : c69076b0
Flags: Nzcv IRQs off FIQs on Mode SVC_32 Segment user
Control: 397F Table: A3C68000 DAC: 00000015
Process rmtsvr (pid: 191, stack limit = 0xc3080368)
Stack: (0xc3081ee4 to 0xc3082000)
1ee0: c6904c9c 00000000 00000200 c3083120 c3081f1c c3081f04 c69038c0
1f00: c6904c70 00000000 c3081f30 c3083120 0000000a c3081f20 c006a574 c690389c
1f20: c3080000 7fffffff c3081f30 c3081f68 00000000 c2fa0000 00000004 00000001
1f40: 00000000 00000004 c031e500 bf7ff7ec c3080000 0000000a c006a7ec 00000029
1f60: 00000000 00000000 7fffffff c031e500 c031e504 c031e508 c031e50c c031e510
1f80: c031e514 00000000 00000002 00000000 0000008e c002d544 c3080000 400383d4
1fa0: 00000000 c002d3c0 00000000 c002d33c 0000000a bf7ff7ec 00000000 00000000
1fc0: 00000000 00000002 00000000 00001000 bffffb00 000117b4 400383d4 bf7ff87c
1fe0: 00000000 bf7ff7b0 402fa170 402e77f8 60000010 0000000a 2e332e33 47000032
Backtrace:
Function entered at [] from []
r6 = C3083120 r5 = 00000200 r4 = 00000000
Function entered at [] from []
Backtrace aborted due to bad frame pointer <0000000a>
Code: e121f00e e5902000 e2813008 e5812008 (e5823004)
Segmentation fault
#/root>
what may be the problem ? thanksa lot!
0 Kudos
Peter_W_Intel
Employee
1,228 Views
Last time you said all problems are solved. Haven't you run rmtsvr before? or just today you meet this?
0 Kudos
nengneng
Beginner
1,228 Views
we have two types of target machine: one is pxa255+32m norflash+linux 2.4.19 and the other is pxa255+1m nor flash +32 m nand flash+linux 2.4.19.
last time i use the second target(pxa255+1m nor flash +32 m nand flash+linux 2.4.19),the rmtsvr can work on it. and today i use the first target( pxa255+32m norflash+linux 2.4.19),but the rmtsvr can not work.i'm puzzled! i don't kown wherethe probem occur,the hardware or the software? in the debug info i can see the device(vtune) is open,but it can't connect withthe host. when the system run ,i rmove most of the modules butthe rmtsvrstillcan't work.ialso rebuild thebzImage withe gcc 2.95.3 and 3.3.2 .in the two kernels the rmtsvr can't work either.
0 Kudos
Peter_W_Intel
Employee
1,228 Views
Have you used MV VDK driver on first board? Make sure it is rebuilt one for arm linux.
0 Kudos
nengneng
Beginner
1,228 Views
Canyou tell me the version of arm-linux-gcc ,GLIBC ,binutils which you use to build the rmtsvr and vtlxsc given to me last time.In my target, we use zImage and rootfs with arm-linux-gcc (GCC) 3.3.2, glibc 2.3.2 and binutils 2.14.90.0.7.ithink itmaybethe problem!
0 Kudos
Peter_W_Intel
Employee
1,228 Views
gcc, glibc 3.2.1
0 Kudos
nengneng
Beginner
1,023 Views
thanks a lot ! i rebuild the driver and it works well on my first and sencond machine!
0 Kudos
Reply