[HOW-TO] Use Skype-Cam instead of USB-Storage with run.sh

Support for C series TVs that all user could ask. Please do not ask a questions at other forums.
Post Reply

User avatar
beatfreak
SamyGO Project Donor
Posts: 585
Joined: Tue Aug 23, 2011 9:03 am
Location: Hamburg
Contact:

[HOW-TO] Use Skype-Cam instead of USB-Storage with run.sh

Post by beatfreak » Mon Jun 09, 2014 1:25 pm

This option applies if
- you have a skype cam for your tv
- you have /mtd_rwarea/usb_mount folder existing (through successful rooting)
- you only would need your usb_storage to hold run.sh that calls rcSGO aka. SamyGO extensions placed in TV's flash
- you already have access to TV's console (it would be possible to create the needed /mtd_rwarea/usb_mount/usb_moip_cmd script during HotelMode root process, but its easier to apply afterwards)

the only necessary step is to create usb_moip_cmd script

Code: Select all

#!/bin/sh
   /sbin/usb_mount/usb_moip_cmd $1 $2 $3 $4 $5 $6 $7
   if [ ! -e /dtv/SGO.env ] ; then
       if [ -x /mtd_rwcommon/SamyGO/rcSGO ] ; then
                   sh -x /mtd_rwcommon/SamyGO/rcSGO /mtd_rwcommon/SamyGO > /dtv/rcSGO_outm 2>&1 &
       fi
   fi
mine is a modified copy of usb_cmd
we would only need to pass $1 ans $2 to /sbin/usn_mount/usb_moip_cmd, 3-7 are "just in case"
and the ! -e /dtv/SGO.env is already handled in rcSGO

current logs:
SpoilerShow

Code: Select all

# ll /dtv
-r--r--r--    1 root     0               0 Jan  1  1970 PART_FLAG_1
-rw-r--r--    1 root     0             954 Jan  1  1970 SGO.env
-rw-r--r--    1 root     0               4 Jan  1  1970 dropbear.pid
crw-rw-rw-    1 root     0         10, 229 Jan  1  1970 fuse
-rw-r--r--    1 root     0              10 Jan  1  1970 info
drwxr-xr-x    3 root     0              32 Jan  1  1970 ly1mnt
-rw-r--r--    1 root     0               0 Jan  1  1970 pcm_in
-rw-r--r--    1 root     0               0 Jan  1  1970 pcm_out
-rw-r--r--    1 root     0            2658 Jun  9 13:53 rcSGO_outm
-rw-r--r--    1 root     0            1803 Jun  9 13:53 samygo.log
srwxr-xr-x    1 root     0               0 Jan  1  1970 socket
drwxr-xr-x    4 root     0             120 Jan  1  1970 usb
-rw-r--r--    1 root     0               0 Jan  1  1970 video_in
-rw-r--r--    1 root     0               0 Jan  1  1970 video_out
-rw-r--r--    1 root     0          512000 Jan  1  1970 vusb
# cat /dtv/SGO.env 
SYSROOT="/mtd_rwcommon/SamyGO"
MOUNT_PATH="/dtv/usb/sda"
export MOD_DIR=/mtd_rwcommon/SamyGO/lib/modules/2.6.24_SELP.4.3.x-Cortex-A8
export TMPDIR=/dtv
export HOME=/mtd_wiselink
export SMB_CONF_PATH="/mtd_rwcommon/SamyGO/etc/samba/smb.conf"
LOGFILE=/dtv/samygo.log
LD_LIBRARY_PATH="/mtd_rwcommon/SamyGO/opt/privateer/lib:/mtd_rwcommon/SamyGO/opt/privateer/usr/lib:/mtd_rwcommon/SamyGO/lib:/mtd_rwcommon/SamyGO/usr/lib:"
PATH="/mtd_rwcommon/SamyGO/opt/privateer/sbin:/mtd_rwcommon/SamyGO/opt/privateer/bin:/mtd_rwcommon/SamyGO/opt/privateer/usr/bin:/mtd_rwcommon/SamyGO/opt/privateer/usr/sbin:/mtd_rwcommon/SamyGO/sbin:/mtd_rwcommon/SamyGO/bin:/mtd_rwcommon/SamyGO/usr/bin:/mtd_rwcommon/SamyGO/usr/sbin:/sbin:/bin:/usr/sbin:/usr/bin"
export ENV="/dtv/.ashrc"
export FRAMEBUFFER="/dev/sam/fb0"
export DISTROOT="/mtd_rwcommon/SamyGO/opt/privateer"
PVRIMAGE="/dtv/ly1mnt/layer2"
SAMYGODEVS="/dev/sda /dev/sdb"
TF_MOUNT="/dtv/usb/sda/nfs/10.10.10.10/_samrec"
# cat /dtv/samygo.log 
1st layer image: meta-data=/core/layer1           isize=256    agcount=1, agsize=4608 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=4608, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=1200, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
 created
1st layer mountpoint :  created
mounting layer1 :  successful
2nd layer image : meta-data=/dtv/ly1mnt/layer2     isize=256    agcount=4, agsize=98304 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=393216, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
 created
2nd layer mountpoint :  created
mounting layer2 :  successful
PVR Flag :  created
 20140609-135348 Start Record to Network Share script (80_80_record_to_nwshare.init)
20140609-135348 Check if server 10.10.10.10 is reachable and NFS service available... OK
 20140609-135348 Search for mount point of pvrimage...
 20140609-135349 sgd /dev/sda /dev/sdb
 20140609-135349 pvrimage mount point is /dtv/usb/sdb
20140609-135349 Mount of 10.10.10.10:/samrec on /dtv/usb/sdb...  OK
 20140609-135349 PVR on server 10.10.10.10 is now ready in localpath /dtv/usb/sdb
 20140609-135349 End Record to Network Share script (80_80_record_to_nwshare.init)
# cat /dtv/rcSGO_outm 
+ [ ! -e /dtv/SGO.env ]
+ alias .=source
+ [ ! -e /proc/mounts ]
+ cat /proc/version
+ sed -e s/\(.*inux version \)\(.*\) \(.*@.*\)$/\2/
+ KERN_VER=2.6.24_SELP.4.3.x-Cortex-A8
+ [ -x /etc/rc.early.local ]
+ [ -d /mtd_wiselink ]
+ NEW_HOME=/mtd_wiselink
+ [ ! -e /mtd_rwarea/passwd ]
+ mount -o bind /mtd_rwarea/passwd /etc/passwd
+ S_SCRIPT=echo Bummer >> /dev/kmsg
+ [ ! -z /mtd_rwcommon/SamyGO ]
+ [ -x /mtd_rwcommon/SamyGO/etc/rc.sysinit ]
+ SYSROOT=/mtd_rwcommon/SamyGO
+ S_SCRIPT=cd /mtd_rwcommon/SamyGO ; ./etc/rc.sysinit 2>&1 &
+ echo SYSROOT="/mtd_rwcommon/SamyGO"
+ echo MOUNT_PATH="MountPlaceholder"
+ echo export MOD_DIR=/mtd_rwcommon/SamyGO/lib/modules/2.6.24_SELP.4.3.x-Cortex-A8
+ echo export TMPDIR=/dtv
+ echo export HOME=/mtd_wiselink
+ echo export SMB_CONF_PATH="/mtd_rwcommon/SamyGO/etc/samba/smb.conf"
+ echo LOGFILE=/dtv/samygo.log
+ eval cd /mtd_rwcommon/SamyGO ; ./etc/rc.sysinit 2>&1 &
+ cd /mtd_rwcommon/SamyGO
+ ./etc/rc.sysinit
SHM, created: 1
pc=42a64158 lr=42a67928 sp=befa78e0 fp=befa7934
r0=fffffe00 r1=0
r2=1 r3=0
symbol: SSLv2_client_method -> @0x004db598
symbol: _fini -> @0x01aacb24
text range: @0x004bb598 -> @0x006bb598
rodata range: @0x01aacb24 -> @0x03cacb24
Found Set CpProtected flag to true for DRM at @0x004b2e64
Found LDR R3, [R9, #0x394] at @0x004b28a8
DRM patched at @0x004b28a8
Patching completed!
insmod: can't open '/mtd_rwcommon/SamyGO/lib/modules/2.6.24_SELP.4.3.x-Cortex-A8/kernel/fs/fuse/fuse.ko': No such file or directory
existing superblock read failed: Inappropriate ioctl for device
existing superblock read failed: Inappropriate ioctl for device
mkfs.vfat 2.11 (12 Mar 2005)
Found pvrimage file /dtv/ly1mnt/layer2 size=1610612736 Byte, so enabling PVR Record over NFS
/dtv/vusb,/dtv/ly1mnt/layer2
found gadget at: /sys/block/sda/device/model
scsidev: sda
Check if server 10.10.10.10 is reachable...NOT reachable skip!
Check if server 10.10.10.10 is reachable...NOT reachable skip!
Check if server 10.10.10.10 is reachable...NOT reachable skip!
Check if server 10.10.10.10 is reachable...NOT reachable skip!
Check if server 10.10.10.10 is reachable...NOT reachable skip!
Check if server 10.10.10.10 is reachable...NOT reachable skip!
Check if server 10.10.10.10 is reachable...ok
Share 10.10.10.10:/samrec successfully mounted on /dtv/usb/sda/nfs/10.10.10.10/_samrec
Check if server 10.10.10.10 is reachable...ok
Share 10.10.10.10:/samrec is already mounted!
Check if server 10.10.10.10 is reachable...ok
Share 10.10.10.10:/samrec is already mounted!
Thu Jan 1 00:00:57 UTC 1970
Mon Jun 9 13:53:48 UTC 2014
PVR on server 10.10.10.10 is now ready in localpath /dtv/usb/sdb
Mon Jun 9 13:53:49 UTC 2014
#
//UE40C6500 @ T-VALDEUC 3011 // rooted manual HotelMode style // PVR to NFS via 18MB on-the-fly sparse XFS //
FYI: you can close your ssh session with SamyGO with

Code: Select all

~.
If you can't fix it using dvct tape, you are not using enough dvct tape.

Post Reply

Return to “[C] Support”