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


I got the SystemTap runs perfectly on the Android Emulator. Thanks all
person that helped.

However, when I try to make this happen on the Nexus S phone, I just
can not upload the files into the "/data" folder.

The following are what I did:
1. Root the phone by following video on link:
        http://theunlockr.com/2010/12/17/how-to-root-the-samsung-nexus-s/
2. Download the Nexus S kernel code by:
        git clone
http://github.com/CyanogenMod/android_kernel_samsung_c1.git kernel
3. Add debug flags and modify ptrace.h as mentioned in:
        http://omappedia.org/wiki/Systemtap#Kernel%20Code
4. Reboot the phone with new kernel:
        fastboot boot zImage

The following are the problems I met:
1. I can not get the Root right of the phone by just using "./adb
shell". Instead, I need to run "su" inside the shell.
2. The "fastboot boot zImage" does not work out, it makes my phone
stays on the screen with big "Google" for ever. So I guess the
customer kernel is not flashed on the phone.
3. When I try to push any file, it either tells me the file does not
exit, or permission denied. For example:
        sudo ./adb push /data/systemtap-1.5-macharm/bin/staprun /data/staprun
        failed to copy '/data/systemtap-1.5-macharm/bin/staprun' to
'/data/staprun': Permission denied
or
        ./adb push /data/systemtap-1.5-macharm/ /data/systemtap-1.5-macharm/
        push: /data/systemtap-1.5-macharm/libexec/systemtap/stap-env
-> /data/systemtap-1.5-macharm/libexec/systemtap/stap-env
        failed to copy
'/data/systemtap-1.5-macharm/libexec/systemtap/stap-env' to
'/data/systemtap-1.5-macharm/libexec/systemtap/stap-env': No such file
or directory

I first guess that is the problem of the "ro" of file systems, so I
remount them to be:
        rootfs / rootfs rw,relatime 0 0
       tmpfs /dev tmpfs rw,relatime,mode=755 0 0
       devpts /dev/pts devpts rw,relatime,mode=600 0 0
       proc /proc proc rw,relatime 0 0
       sysfs /sys sysfs rw,relatime 0 0
       none /acct cgroup rw,relatime,cpuacct 0 0
       tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
       tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
       none /dev/cpuctl cgroup rw,relatime,cpu 0 0
       /dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
       /dev/block/mtdblock6 /efs yaffs2 rw,nosuid,nodev,relatime 0 0
       /dev/block/platform/s3c-sdhci.0/by-name/system /system ext4
rw,relatime,barrier=1,data=ordered 0 0
       /dev/block/platform/s3c-sdhci.0/by-name/userdata /data ext4
rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
       /sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
       /dev/block/vold/179:3 /mnt/sdcard vfat
rw,dirsync,nosuid,nodev,noexec,relatime,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:3 /mnt/secure/asec vfat
rw,dirsync,nosuid,nodev,noexec,relatime,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,relatime,size=0k,mode=000 0 0

However, the problem is still there.

Is this the problem of my method of Root the phone? Why I just can not
push the SystemTap tools into the "/data" folder?

Any hint would be warmly welcomed.

Thank you very much.

Yours
Sincerely


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