This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Met Problem on Enable SystemTap on Android


Thanks Turgis.

I fixed the problem after I set "export
PATH=$PATH:~/Downloads/arm-2010q1/bin/" before "configure" and "make
install".

However, after I uploading the code to the phone, I met a weird problem:
# ./staprun helloworld.ko
Couldn't create /mnt/relay: Read-only file system

I know it is because my "/mnt" is read only, and I was trying to
change it to rw.

I first ran "mount" and got the following outputs:
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
none /acct cgroup rw,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,cpu 0 0
/dev/block/mtdblock0 /system yaffs2 rw 0 0
/dev/block/mtdblock1 /data yaffs2 rw 0 0
/dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block/vold/179:0 /mnt/sdcard vfat
rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
0 0
/dev/block/vold/179:0 /mnt/secure/asec vfat
rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,size=0k,mode=000 0 0

It seems that "/mnt" itself is not mounted, but the sub-devices such
as sdcard and secure are. But I noticed that the root is ro, so I ran
"mount -o rw,remount rootfs /".

However, at this time, I got a new error:
# ./staprun helloworld.ko
ERROR: Couldn't mount /mnt/relay: No such device

Do I need to install a device named "relay"?

Any hints why this is happening would be really thankful.

Yours
Sincerely


2011/9/9 Turgis, Frederic <f-turgis@ti.com>:
>>I know the reason is that my staprun is in x86 format.
>
> Good to know, I think I missed the mail where you confirmed the issue was this one.
>
>>However, I do follow the instructions on:
>>http://omappedia.org/wiki/Systemtap#Systemtap%201.5%20code%20up
>>date%20for%20OMAP%20ARM%20platforms
>
> This shall come from this recommendation on wiki page (in red): "You need to have codesourcery inside your PATH"
>
> 1 - Please check that in the log, you see:
> checking for arm-none-linux-gnueabi-gcc... arm-none-linux-gnueabi-gcc
> checking whether the C compiler works... Yes
>
> And not:
> checking for arm-none-linux-gnueabi-gcc... no
> checking for gcc... gcc
> checking whether the C compiler works... yes
>
> 2 - what shall be in the path is not simply arm-xxx but arm-xxx/bin
>
> By the way, I see in the log
> configure: WARNING: if you wanted to set the --build type, don't use --host.
>
> Mmmmh some homework for TI to clarify I guess ;-)
>
> Regards
> Fred
>
>
>
> Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920
>
>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]