Please have a look at the following commands, and try to help me knoew the reason for the problem or the cause or the sollution or where am I going wrong :
C:\Android\android-sdk\tools>adb shell
# su
su
# export PATH=/data/busybox:$PATH
export PATH=/data/busybox:$PATH
# cp /sdcard/tun.ko /system/lib/
cp /sdcard/tun.ko /system/lib/
cp: cannot remove '/system/lib/tun.ko': Read-only file system
# mount
mount
rootfs on / type rootfs (ro)
sysfs on /sys type sysfs (rw)
/dev/block/mtdblock0 on /system type yaffs2 (ro)
/dev/block/mtdblock1 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock2 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/vold/179:0 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,u
id=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset
=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
# cp /sdcard/tun.ko /system/lib/modules/*
cp /sdcard/tun.ko /system/lib/modules/*
cp: cannot remove '/system/lib/modules/*': No such file or directory
# cp /sdcard/tun.ko /system/lib/
cp /sdcard/tun.ko /system/lib/
cp: cannot remove '/system/lib/tun.ko': No such file or directory
# cat /sdcard/tun.ko > /system/lib/tun.ko
cat /sdcard/tun.ko > /system/lib/tun.ko
cannot create /system/lib/tun.ko: not enough memory
#
All I am trying to do is copying tun.ko to the /system/lib/modules/ folder. Can anyone please help me know where am I going wrong ! Why am I not able to copy the file even after remounting ???
Please help me out.