http://wiki.samygo.tv/api.php?action=feedcontributions&user=Beatfreak&feedformat=atomSamyGO - User contributions [en]2024-03-29T14:47:29ZUser contributionsMediaWiki 1.31.1http://wiki.samygo.tv/index.php?title=How_to_send_FACTORY%2B3SPEED_keys&diff=4443How to send FACTORY+3SPEED keys2018-11-14T07:45:59Z<p>Beatfreak: Added Section about RCoid App</p>
<hr />
<div>Here are known several ways how to send IR codes (most required to unlock Extended service menu options) to TV.<br><br />
You don`t need to use all described methods, it is enough to have one which works on your TV keeping in mind we need to send custom codes rare, most cases only once while unlocking PVR [http://wiki.samygo.tv/index.php5/Activating_PVR_on_D5500] or GuidePlus [http://wiki.samygo.tv/index.php5/Enabling_the_PVR_for_C-Series], change your Internet@TV region [http://wiki.samygo.tv/index.php5/How_to_change_your_Internet@TV_region], change model to get extra functionality on low end cheap C and D series TV`s [http://wiki.samygo.tv/index.php5/Enabling_Video_playback_on_C350], Enable MHP [http://wiki.samygo.tv/index.php5/How_to_enable_MHP_for_C-Series], enable Internet@tv in UC6000 T-valdeuc Tvs [http://wiki.samygo.tv/index.php5/How_to_enable_Internet@tv_in_UC6000_T-valdeuc_Tvs] or change locked by default other service menu options on C/D/E series TV`s and BD players... <br />
<br><br />
All methods are cross-compatible, because the goal is to get Extended Service Menu, desn`t matter which way to use for that. In all cases (except switching on to hotel mode on C series), it is needed to send two codes to TV, FACTORY and 3SPEED '''while being in service menu'''.<br><br />
<br><br />
<font color="red" size="2">'''CAUTION!''', the danger to brick TV is high. You can harm your TV by changing values in service menu. Be 100% sure what you`re doing there.</font><br><br />
[[File:Servicemenu.jpg]]<br><br><br />
<br />
You can easily enter Service menu by pressing INFO & FACTORY when the TV is on. At this moment Local set and others options are unlocked. Use any of available methods below:<br />
<br />
=Send IR using your phone= <br />
<br />
==Android smartphones with built-in IR port==<br />
[[File:SRC.png|150px|thumb|right]]<br />
==='''{{red | Recommended!}}''' Service Remote Control Samsung-TV '''(SRC)'''=== <br />
<br />
This is easiest and [[How_to_send_FACTORY%2B3SPEED_keys#Recommended.21_Service_Remote_Control_Samsung-TV_.28SRC.29|recommended]] way to access Extended Service Menu for most samsung TV`s. <br />
[https://forum.samygo.tv/download/file.php?id=8951 '''Direct download SRC here''']<br />
*Unzip downloaded zip archive<br />
*Install 'com.wolf.servicercsam.downloader.apk' on your phone.<br />
*Run SRC app and use S1, S2, S3 keys to send Info, Factory and 3Speed codes as required.<br />
S1 - INFO<br />
S2 - FACTORY<br />
S3 - 3SPEED<br />
*More information on forum: http://forum.samygo.tv/viewtopic.php?f=74&t=10405#p88075<br />
App is also available on [https://play.google.com/store/apps/details?id=com.wolf.servicercsam google play].<br />
<br />
===Universal Remote app===<br />
We will use next buttons for our goal:<br />
Play - FACTORY<br />
Pause - 3SPEED<br />
<br />
::Suitable models::<br />
*Samsung galaxy series with built in IR: '''[https://play.google.com/store/apps/details?id=remote.control.samsung Samsung IR - Universal Remote]'''(free version) or [https://play.google.com/store/apps/details?id=remote.control.samsungpro Pro version]<br />
*HTC phones with built in IR blaster: '''[https://play.google.com/store/apps/details?id=com.htc.sample.ir HTC IR - Universal Remote]'''<br />
*Other devices: for more info check '''http://www.power7.net/'''<br />
====Setup your controls====<br />
*Install and start '''Universal Remote''' (see above).(pic 1).<br />
*Scroll down and open RED labeled '''{{red | My Remote Control 1 (TV)}}''' (pic 2), you will see buttons (pic 3).<br />
:::(<font size="1">'''NB!''' {{red|Do not use}} '''Remote GUI 1''' from menu at the top right corner neither "My IR REMOTE GUI", nor any other option like "My Remote Control 1 (TV) GUI" which is in cyan color, which brings you to real-remote like view as you have now! Do not use any button where is "GUI" in the name :))</font><br />
*Scroll down and you will notice input fields beginning with ''Insert IR code string for...'' and button name.(pic 4).<br />
*scroll even down and find ''Insert IR code string for Play...'' and replace the code which exists there to the hex code of FACTORY (pic5):<br />
<pre>0000 006D 0000 0022 00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0689</pre><br />
*find ''Insert IR code string for Pause'' and replace to hex code for 3SPEED:<br />
<pre>0000 006D 0000 0022 00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0689<br />
</pre><br />
*Navigate to the bottom and hit ''Save the IR codes'' and exit setup (with return)(pic 6).<br />
<br />
====Sending custom key codes====<br />
Click on '''My Remote Control TV 1 GUI''' (cyan color)(pic 7).<br />
*Press Play and/or Pause (or your combinations) when required to send FACTORY and 3SPEED codes (pic 8).<br />
Screenshots:<br />
<gallery><br />
Image:SamsungIR-1.png|pic 1.<br />
Image:SamsungIR-2.png|pic 2.<br />
Image:SamsungIR-3.png|pic 3.<br />
Image:SamsungIR-4.png|pic 4.<br />
Image:SamsungIR-5.png|pic 5.<br />
Image:SamsungIR-6.png|pic 6.<br />
Image:SamsungIR-7.png|pic 7.<br />
Image:SamsungIR-8.png|pic 8.<br />
</gallery><br />
<br />
===RCoid free (Android only)===<br />
::Install the App<br />
*Download in [https://play.google.com/store/apps/developer?id=Harry+Gr%C3%BCnewald PlayStore]<br />
<br />
::Download a Remote Config (or start creating your own)<br />
*press Menu button at the lower left corner<br />
*select download remote config<br />
*navigate to S > Samsung > TV<br />
*there you'll find SamyGO Service Codes (device Type is stated as an TV since 2008)<br />
The most important buttons are on the first page, all known others on the second page<br />
<br />
==Symbian based phones==<br />
Example with symbian based phone containing IR (infrared) port on board (Nokia N93, E51 etc).<br><br />
The phone '''must''' be rooted.<br><br />
Install '''Psiloc.irRemote.v1.04.sis''' and start it. The app you can easy find on the internet.<br><br />
Choose the '''AA59-00316b''' remote config and test it on your TV.<br><br />
Download '''Samsung Service_Remote''' using gprs (or wifi if exists) from applications internet server. Choose this config (the author is [http://forum.samygo.tv/memberlist.php?mode=viewprofile&u=10547 Gia90])<br><br />
Now you have service codes: 7 for 3SPEED and 9 for FACTORY<br><br />
<br />
<br />
=samyGOrc (Rooted E/F ONLY)=<br />
Root is mandatory, it means you need to have SamyGO already installed and wait for it to load in the background after opening Service Menu (about 1 minute until you gain FTP and Telnet access to TV)<br />
: 1. Download and extract [http://forum.samygo.tv/download/file.php?id=3597 samyGOrc-v1.0.zip]<br />
: 2. Connect to TV by FTP and copy extracted '''samyGOrc''' file to '''/mnt/opt/privateer/usr/bin'''<br />
: 3. Telnet to TV and set file permissions<br />
: <pre>chmod 755 /mnt/opt/privateer/usr/bin/samyGOrc</pre><br />
Steps above won't be necessary anymore if ever you need to use again this method, and might not be necessary at all on F where samyGOrc should be available by default. Now samyGOrc is installed and has execute rights. Only next step should be enough then.<br />
: 4. Telnet to TV command to send consecutively FACTORY (=59) and 3SPEED (=60) keys<br />
: <pre>samyGOrc -p $(pidof exeTV || pidof exeDSP) 59; samyGOrc -p $(pidof exeTV || pidof exeDSP) 60</pre><br />
On the same principle, it's also possible to directly access ''extended'' service menu from "normal" TV state (TV ON, not already in service menu) by sending INFO (=31) + FACTORY (=59) keys (equivalent to INFO+MENU+MUTE+POWER from TV OFF then FACTORY+3SPEED) the same way. In order to achieve this, Telnet command:<br />
: <pre>samyGOrc -p $(pidof exeTV || pidof exeDSP) 31; samyGOrc -p $(pidof exeTV || pidof exeDSP) 59</pre><br />
This latest command could possibly allow access to ''extended'' service menu on some rooted '''E/F Bluray players''' as well.<br />
<br />
<br />
=ruSamsungTVCommunicator (ruSTVC)=<br />
[[File:RuSamsungTVCommunicator.png|right|350px|ruSamsungTVCommunicator]]<br />
Software way and easiest way to reach your goal. This only works on TV`s with ethernet/wifi port and on models where the network remote control function isn`t disabled (all high end C, D and E series). However, it doesn't work any longer on most recent models/firmwares.<br><br />
1. Download the application from [http://samsung.rainerullrich.de author`s page].<br><br />
2. Start ruSTVC on PC, and when asked, enable access to control TV on TV screen. If no popup appeared, navigate to<br><br />
Menu->System->Network Remote Control ->ruSTVC <br />
and set ''allow''<br><br />
3. Power off TV, enter to service menu (INFO MENU MUTE POWER on your RC)<br><br />
4. Press FACTORY and after this 3SPEED buttons on ruSTVC application.<br><br />
<br><br />
=Arduino project '''Ethernet to IR'''=<br />
* '''[[Ethernet to IR and Serial Console Interface]]'''<br />
<br><br />
<br />
=Original SamsungTV Factory Remote=<br />
[[File:AA8100243A.png|Samsung Factory remote controller|50px|right]]<br />
<br><br />
The part number of this remote is: '''AA8100243A'''<br><br />
This way to send Factory codes to TV is quite expensive, because the cost of this remote is 21-80$ on different internet stores. <br><br />
BTW we don`t know if it able to send 3SPEED code, because this button is missing.<br />
Needed anyone who could confirm.<br><br />
<br><br />
<br />
=Programable universal remotes=<br />
If you have programable RC like '''"One For All" URC-7320''' or similar, you also can send required codes to TV.<br />
<br><br />
<br />
<br />
=Build your own IR transmitter=<br />
*'''[[Build_your_own_IR_transmitter|Build the dual led IR transmitter]]'''<br />
<br />
<br />
=IR blaster=<br />
Many high-end TVs come bundled with an IR blaster, its use is similar to own built IR transmitter [http://wiki.samygo.tv/index.php5/Change_region_(Local_Set)_on_F_series]<br />
<br />
<br><br />
<br><br />
=References=<br />
<br><br />
<br><br />
<br />
--[[User:Zoelechat|Zoelechat]] ([[User talk:Zoelechat|talk]]) 19:30, 20 December 2014 (UTC)<br />
--[[User:Juuso|Juuso]] ([[User talk:Juuso|talk]]) 12:51, 16 August 2016 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=How_to_connect_C_series_to_NFS_under_WIN7_using_Hanewin_NFS_Server&diff=3984How to connect C series to NFS under WIN7 using Hanewin NFS Server2014-06-09T11:17:58Z<p>Beatfreak: Added a note about the different use of nfs mounts with or without SGO Extensions</p>
<hr />
<div>Access via DNLA from the TV to the Windows PC is easy (e.g. [http://www.twonky.com/products/twonkyserver/default.aspx Twonky Server]), but especially mkv-files with <br />
two audio streams, switch ON / OFF subtitles, jump to chapters as well as forwarding und rewinding is not supported.<br><br />
<br />
The problem can be solved by installing a NFS server on the Windows machine and using the SamyGO extensions. This HOW TO describes the steps after having root access to the SAMY and will connect the TV to your Windows machine without the use of SamyGO Extensions. If you are already using SamyGO extensions you will find a init.d script called ''03_03_nfsmount.init'' that handles the whole mounting on TV side (in this case skip step 4 and 5 of this HOW-TO.<br />
The software haneWIN NFS server will be the NFS server on the Windows platform.<br><br />
<br />
<br />
1) Follow the steps as described in [http://wiki.samygo.tv/index.php?title=Hacking_C-Series_TV_with_Internet@TV_only Hacking C-Series TV with Internet@TV only] or [http://wiki.samygo.tv/index.php?title=Hacking_TV_over_Hotel_mode_%28most_C_series_models%29 Hacking TV over Hotel mode]<br><br />
<br />
<br />
2) Download and install [http://notepad-plus-plus.org/ Notepad++] if necessary<br><br />
<br />
<br />
3) Within this tutorial the following IP adresses are used:<br><br />
<br />
PC: 192.168.178.33<br><br />
TV: 192.168.178.23<br />
<br />
If you are not sure about the IP adresses of your TV and PC go to<br><br />
<br />
âControl Panel\Network and Internet\Network and Sharing Centerâ<br><br />
and check âSee full mapâ.<br />
The TV must be switched on and connected to the network.<br><br><br />
<br />
[[File:IP Adress.jpg]]<br />
<br />
<br />
<br />
4) Edit the "run.sh" by using notepad++ as following: <br />
<br />
<br />
'''<br />
#!/bin/sh<br />
rm -f /mtd_rwarea/profile<br />
$1/SamyGO/rcSGO $1/SamyGO > $1/rcSGO_out 2>&1 &<br />
sync<br />
sleep 120<br />
/bin/mount -o nolock 192.168.178.33:/Filme $1/share -t nfs<br />
touch $1/ScriptOK<br />
<br />
<br />
Remark:<br><br />
- sleep timer 120 ensures that the TV will fully boot, after that the NFS is mounted<br><br />
- In this script it doesnt matter which USB port of your TV you are using. The script should work with USB 1 or 2<br />
<br />
<br />
<br />
5) Create in the root of the USB stick a directory, e.g âFILMEâ.<br><br />
You may change the name as you like, you just have change the "run.sh" script as well.<br> <br />
In this directory âFILMEâ the movies files will be mounted<br />
<br />
<br />
6) Download and install the [http://www.hanewin.net/nfs-e.htm HaneWIN NFS Server] on your Win 7 machine.<br><br />
Older operating systems such as WIN XP or VISTA are supported as well.<br />
<br />
<br />
7) Open HaneWIN NFS server and go to the tab âExporteâ. <br />
<br />
<br />
[[File:Example.jpg]]<br />
<br />
<br />
8) Edit the "Export-file" as following:<br />
<br />
[[File:link.jpg]]<br />
<br />
<br />
'''<br />
e:\nfs -lowercase -alldirs -readonly ''-name:filme'' 192.168.178.23<br />
<br />
Remember: <br><br />
-name:''filme'' is just an example. You may change it in accordance with your mounting point (see above in the "runs.sh" script).<br><br />
In this example my local folder is e:\nfs. You may change it according to your needs, just keep the syntax.<br><br><br />
After editing the "Export-file" you need to start the server again.<br><br />
<br />
<br />
9) Ensure in Windows explorer that the exported folder is NOT shared (Share with nobody). <br />
<br />
<br />
[[File:share_with_nobody.jpg]]<br />
<br />
<br><br />
<br />
10) Plug in the USB stick into your TV. Start the NFS server on your PC. Switch on your TV.<br />
<br />
After around two minutes you should have access from the TV to your PC. <br />
Choose for example a mkv file. You are now able to choose the audio stream and subtiltels by pressing the "TOOLS" button on your remote control. <br />
Enjoy !</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3983Hack over Hotel Mode without USB disk (most C series models)2014-06-09T10:31:43Z<p>Beatfreak: updated run.sh</p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
* xxd (to create binary file from hex-text)<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x $1/SamyGO/rcSGO $1/SamyGO > /dtv/rcSGO_out 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/ http://download.samygo.tv]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack.<br />
<br />
If you have a running set of SamyGO extensions (you need only ssh) you could also use ''vi'' and modify the script directly in your tv, this way you wouldn't have to re-apply the hack.<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Rest_In_Peace&diff=3886Rest In Peace2014-01-06T22:36:09Z<p>Beatfreak: /* This page is not related with project , just for fun... */</p>
<hr />
<div>== '''This page is not related with project , just for fun...''' ==<br />
<br />
<br />
I put this page for adding information about inactive project members. I am preparing to count them as '''dead''' in this page.<br />
<br />
So reincarnation is also available for dead developers, also highly wanted :)<br />
<br />
Do not hesitate to put my name here if I am inactive for months too. (Except the summer holiday period!)<br />
<br />
<br />
----<br />
<br />
<br />
We could also put bricked devices info here and indicate if it's revived later. :)<br />
<br />
* juzis´s spare UE40D6500 Mainboard, killed by fake onboot sources, died for the Project (18. Aug. 2013) --[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 22:36, 6 January 2014 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3788Hack over Hotel Mode without USB disk (most C series models)2013-05-03T09:32:45Z<p>Beatfreak: /* Prerequisites */ forgot to mention xxd in software section</p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
* xxd (to create binary file from hex-text)<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/ http://download.samygo.tv]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack.<br />
<br />
If you have a running set of SamyGO extensions (you need only ssh) you could also use ''vi'' and modify the script directly in your tv, this way you wouldn't have to re-apply the hack.<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3761Hack over Hotel Mode without USB disk (most C series models)2013-04-07T21:09:33Z<p>Beatfreak: /* Postprocessing */</p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/ http://download.samygo.tv]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack.<br />
<br />
If you have a running set of SamyGO extensions (you need only ssh) you could also use ''vi'' and modify the script directly in your tv, this way you wouldn't have to re-apply the hack.<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3760Hack over Hotel Mode without USB disk (most C series models)2013-04-07T21:08:17Z<p>Beatfreak: /* Postprocessing */</p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/ http://download.samygo.tv]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack<br />
if you have a running set of SamyGO extensions (you need only ssh) you could also use ''vi'' and modify the script directly in your tv, this way you wouldn't have to re-apply the hack.<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3177Hack over Hotel Mode without USB disk (most C series models)2012-11-04T14:04:47Z<p>Beatfreak: changed caption for SF.net link</p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/ http://download.samygo.tv]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3176Hack over Hotel Mode without USB disk (most C series models)2012-11-04T14:02:47Z<p>Beatfreak: Undo revision 3173 by Beatfreak (talk)</p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3175Hack over Hotel Mode without USB disk (most C series models)2012-11-04T14:02:19Z<p>Beatfreak: Undo revision 3174 by Beatfreak (talk)</p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [[http://download.samygo.tv/]]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3174Hack over Hotel Mode without USB disk (most C series models)2012-11-04T14:00:53Z<p>Beatfreak: </p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/ http://download.samygo.tv]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor, <br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3173Hack over Hotel Mode without USB disk (most C series models)2012-11-04T13:57:31Z<p>Beatfreak: /* Insert SamyGO Extensions */</p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [[http://download.samygo.tv/]]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3167Hack over Hotel Mode without USB disk (most C series models)2012-11-03T16:39:03Z<p>Beatfreak: </p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length<br />
<br />
--[[User:Beatfreak|Beatfreak]] ([[User talk:Beatfreak|talk]]) 16:39, 3 November 2012 (UTC)</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Talk:Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3166Talk:Hack over Hotel Mode without USB disk (most C series models)2012-11-03T16:36:01Z<p>Beatfreak: Created page with "See http://forum.samygo.tv/viewtopic.php?f=13&t=1076"</p>
<hr />
<div>See http://forum.samygo.tv/viewtopic.php?f=13&t=1076</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3165Hack over Hotel Mode without USB disk (most C series models)2012-11-03T16:35:31Z<p>Beatfreak: </p>
<hr />
<div><br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3164Hack over Hotel Mode without USB disk (most C series models)2012-11-03T16:34:50Z<p>Beatfreak: Manual method for Hack over HotelMode</p>
<hr />
<div>See http://forum.samygo.tv/viewtopic.php?f=13&t=1076<br />
<br />
== Prerequisites ==<br />
Hardware:<br />
* PC with Linux-OS (with at least sudo permissions for your account)<br />
* USB-Pendrive (we will format it later)<br />
Software:<br />
* Linux text editor<br />
* Console / Terminalprogram<br />
* Filesystem Tools for ext3 and vfat<br />
* zip / unzip<br />
<br />
(most of this will probably be installed by default)<br />
<br />
== File Preparation ==<br />
* we start with making a backup of your channel list<br />
how to export channel list to usb is described in your manual (Chapter 3 Basic Features > Channel Menu > Channel List Transfer)<br />
<br />
<br />
<br />
*create a working directory on your pc, lets say /tmp/samygo<br />
(i'll post the commands i entered with path info, the commands begin after the ">")<br />
/>cd /tmp<br />
/tmp>mkdir samygo<br />
/tmp>cd samygo<br />
/tmp/samygo><br />
<br />
<br />
<br />
lets say your pendrive with channellist is mounted by your OS at /media/flashdrive<br />
*copy channellist to workdir<br />
/tmp/samygo>cp /media/flashdrive/channel_list_UE40C6500_1001.scm /tmp/samygo/<br />
''start typing "ch" of channel list and then press TAB to get it autocompleted)''<br />
<br />
*create usb_mount folder and dummyfile in it, and set full permissions<br />
/tmp/samygo>mkdir usb_mount<br />
/tmp/samygo>touch usb_mount/1.txt<br />
/tmp/samygo>chmod 777 usb_mount -R<br />
<br />
<br />
<br />
*now you are ready to inject folder and dummyfile to chllist archive<br />
/tmp/samygo>zip -g channel_list_UE40C6500_1001.scm usb_mount/1.txt<br />
adding: usb_mount/1.txt (stored 0%)<br />
<br />
<br />
<br />
*so lets prepare the "hack"-files<br />
/tmp/samygo>kwrite run.sh<br />
this will open kwrite with the file you wish to create<br />
paste the code for run.sh, save and close<br />
#!/bin/sh<br />
echo 'OK' >> /dtv/usb/sda/run.ok<br />
# sh -x /dtv/usb/sda/SamyGO/rcSGO >/dev/null 2>&1 &<br />
<br />
the last line is not necessary but later we only have to remove the # to get samygo extensions started<br />
<br />
<br />
<br />
*next file: link0<br />
/tmp/samygo>kwrite link0<br />
this will open kwrite with the file you wish to create<br />
paste the code for link0, save and close<br />
#!/bin/sh<br />
sh -x /mtd_rwarea/usb_mount/killself.sh &<br />
/sbin/usb_mount/usb_cmd $1 $2 $3 $4 $5 $6 $7<br />
if [ "$1" = "mount" ] ; then<br />
if [ -f /dtv/usb/$3/run.sh ] ; then<br />
chmod 777 /dtv/usb/$3/run.sh<br />
sh -x /dtv/usb/$3/run.sh /dtv/usb/$3<br />
fi<br />
fi<br />
<br />
<br />
<br />
*next file: link1<br />
''with cursor key up you can repeat last command, then you only have to change last character in this case''<br />
/tmp/samygo>kwrite link1<br />
<br />
<br />
#!/bin/sh<br />
/sbin/usb_mount/usb_mount $1 $2 $3 $4 $5 $6 $7<br />
<br />
<br />
<br />
*next file: link2<br />
/tmp/samygo>kwrite link2<br />
<br />
<br />
#!/bin/sh<br />
sleep 900<br />
echo killself >>/mtd_rwarea/cmd1<br />
sh -x /dtv/usb/sda/run4.sh &<br />
rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
''i chose to have 15 min before hack will be automatically removed, change this file later to make hack permanent''<br />
<br />
<br />
<br />
*next file: clone.dat.txt<br />
/tmp/samygo>kwrite clone.dat.txt<br />
<br />
<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda/link0<br />
0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda/link1<br />
00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda/link2<br />
0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
<br />
<br />
*and create binary file from txt<br />
/tmp/samygo>xxd -r clone.dat.txt Clone.dat<br />
<br />
<br />
<br />
*don't forget to set the script files to be executable (we are setting full permissions)<br />
/tmp/samygo>chmod 777 link*<br />
/tmp/samygo>chmod 777 run.sh<br />
<br />
<br />
== Drive Preparation ==<br />
*to eliminate possible partitions and filesystems we fill the drive with zeros<br />
(be very careful with this, pointing to wrong device and your hdd data will be killed without confirmation)<br />
<br />
*first check which device it is<br />
/tmp/samygo>cat /proc/mounts<br />
<br />
<br />
and somewhere we find the line<br />
/dev/sdb1 /media/flashdisk vfat rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0<br />
<br />
now we now that usb-drive is ''sdb'' with first partition mounted<br />
<br />
*to clear the drive first unmount it via menu eject or<br />
/tmp/samygo>sudo umount /dev/sdb1<br />
<br />
<br />
''sudo means that we are going to do it as superuser, so you will be prompted for superuser password''<br />
<br />
*if no erros occured we are ready to clear it with<br />
sudo dd if=/dev/zero of=/dev/sdb<br />
<br />
will write zeros on it until its full, be patient on large drives<br />
<br />
*then we create new ext3 filesystem on it<br />
/tmp/samygo>sudo /sbin/mkfs.ext3 /dev/sdb -L hackdrive<br />
<br />
when finished unplug and replug drive to get it remounted (assuming under /media/hackdrive)<br />
<br />
*now we will create the directory structure on the usb-drive<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link0_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link1_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/link2_Clone<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC<br />
/tmp/samygo> sudo mkdir /media/hackdrive/T-VALDEUC/Clone<br />
<br />
<br />
*and copy over the files<br />
/tmp/samygo> sudo cp channel_list_UE40C6500_1001.scm /media/hackdrive/<br />
/tmp/samygo> sudo cp run.sh /media/hackdrive/<br />
/tmp/samygo> sudo cp Clone.dat /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link0 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link1 /media/hackdrive/T-VALDEUC/Clone/<br />
/tmp/samygo> sudo cp link2 /media/hackdrive/T-VALDEUC/Clone/<br />
<br />
<br />
*create the symlinks<br />
/tmp/samygo> cd /media/hackdrive/<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_cmd link0_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/usb_mount link1_Temp<br />
/media/hackdrive> sudo ln -s /mtd_rwarea/usb_mount/killself.sh link2_Temp<br />
<br />
<br />
*and check if everything went right<br />
/media/hackdrive> ls -lR<br />
.:<br />
-rw-r--r-- 1 root root 3972 2010-11-30 23:26 channel_list_LE32C550_1001.scm<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link0_Clone<br />
lrwxrwxrwx 1 root root 29 2010-11-30 23:32 link0_Temp -> /mtd_rwarea/usb_mount/usb_cmd<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link1_Clone<br />
lrwxrwxrwx 1 root root 31 2010-11-30 23:32 link1_Temp -> /mtd_rwarea/usb_mount/usb_mount<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 link2_Clone<br />
lrwxrwxrwx 1 root root 33 2010-11-30 23:32 link2_Temp -> /mtd_rwarea/usb_mount/killself.sh<br />
drwx------ 2 root root 16384 2010-11-24 19:55 lost+found<br />
-rwxrwxrwx 1 root root 375 2010-12-01 00:56 run.sh<br />
drwxr-xr-x 3 root root 4096 2010-11-30 23:32 T-VALDEUC<br />
<br />
./link0_Clone:<br />
<br />
./link1_Clone:<br />
<br />
./link2_Clone:<br />
<br />
./T-VALDEUC:<br />
drwxr-xr-x 2 root root 4096 2010-11-30 23:32 Clone<br />
<br />
./T-VALDEUC/Clone:<br />
-rw-r--r-- 1 root root 384 2010-11-30 23:32 Clone.dat<br />
-rwxrwxrwx 1 root root 246 2010-11-30 23:32 link0<br />
-rwxrwxrwx 1 root root 57 2010-11-30 23:32 link1<br />
-rwxrwxrwx 1 root root 199 2010-11-30 23:32 link2<br />
<br />
<br />
<br />
time to take a deep breath...<br />
eject hackdrive and move to TV<br />
<br />
== Apply the Hack ==<br />
*re import your channellist as described in manual<br />
<br />
*call HotelMode menu<br />
[MUTE] -> [1] -> [1] -> [9] -> [Enter]<br />
<br />
*activate HotelMode<br />
if "HotelMode OFF" is highlighted press [RIGHT] to select option<br />
and press [RIGHT] again to set HotelMode to ON<br />
press [RETURN] to get back to HM-menu, you should now see all options changable<br />
press [UP] to move cursor to "Clone USB to TV"<br />
and press [RIGHT] to activate function<br />
TV asks for confirmation, select OK<br />
TV will process the Files and reboot twice<br />
<br />
*unplug and replug usb-drive to tv, wait a bit, and plug usb-drive to your PC to see if "run.ok" file exists<br />
if we were successful the hardest thing is done! *YAY*<br />
<br />
*this is the point where you have to decide whether you only want to test SamyGO or use it from now on<br />
<br />
*possible scenarios:<br />
<br />
*go on with ext3 formatted pendrive<br />
harder to get extensions running, easier to make the hack permanent afterwards<br />
<br />
*go on with vfat formatted pendrive<br />
easier to get extensions running, but if you want to make hack permanent you have to recreate the hack-drive from point Drive Preparation<br />
<br />
*go on with a second pendrive<br />
combines the advantages of both previous scenarios, but not everyone has a bucket full of mass storage devices<br />
<br />
*jump to point Postprocessing and make the hack permanent now<br />
just be sure if you want to do this<br />
<br />
<br />
*you may want to disable HotelMode by recalling HM-menu as described above<br />
and setting HotelMode back to "OFF"<br />
*then restart TV (power off, power on)<br />
*now you may want to get your channels back<br />
first i had to set antenna mode in menu from terestrial back to cable (as i use cable TV ;))<br />
and imported my channel list again, (we can use the modified file on hackdrive for this)<br />
<br />
== Insert SamyGO Extensions ==<br />
we could still use our ext3 formatted drive but then we'd have to do all changes on the drive as superuser and pay attention to execute-permissions<br />
formatting it as vfat makes the whole thing way easier...<br />
<br />
<br />
have the usb-drive plugged to your pc and eject (unmount) it but leave plugged<br />
*then format<br />
/tmp/samygo> sudo /sbin/mkfs.vfat -n SamyGO /dev/sdb<br />
<br />
<br />
*unplug and replug to get it mounted<br />
<br />
we need ''run.sh'' on this drive too, but now we use it to call samygo extensions<br />
*edit it and remove the "#" in last line<br />
if you like, place one in front of the run.ok-command as we don't need it anymore<br />
*then copy to usb-drive<br />
/tmp/samygo>cp run.sh /media/SAMYGO/<br />
<br />
*get the extension files<br />
from [http://download.samygo.tv/]<br />
in my case for C series, valencia (t-VALdeuc) with ARM processor<br />
located:<br />
Home / C Series / For ARM CPUs / Content Library Applications<br />
*download all 3 files (extensions, bugfix, libs) (for example to our workdir)<br />
*and unpack in usb-drive in the right order (bugfix after extensions)<br />
/tmp/samygo>cd /media/SAMYGO<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-v0.03.6-r12-for-T-VALDEUC-20110103184650.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-All-Extensions-Bugfix-v0.03.6-r15-for-valencia-20111001120232.zip<br />
/media/SAMYGO>unzip /tmp/samygo/SamyGO-libs-T-VALDEUC-20110123101934.zip<br />
(autocomplete is very useful here)<br />
<br />
*if you like enable or disable some extensions by removing / adding .dis at the end of the filename for the startup scripts in<br />
/media/SAMYGO/SamyGO/etc/init.d/<br />
<br />
for example disable something<br />
/media/SAMYGO>cd SamyGO/etc/init.d<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 03_03_djmount.init 03_03_djmount.init.dis<br />
or enable<br />
/media/SAMYGO/SamyGO/etc/init.d>mv 06_05_vsftp.init.dis 06_05_vsftp.init<br />
<br />
when done we are ready to go...<br />
*eject usb-drive properly and plug it to tv<br />
*wait a bit to let extensions start and try to ssh to TV<br />
ssh root@<IP of your TV><br />
<br />
<br />
''if you don't know your TVs IP adress have a look in your routers dhcp-client list (if you didn't decide to configure a fixed IP for your TV, i prefer fixed dhcp mappings)''<br />
*you shoult be prompted for ssh password which is "SamyGO" (probably you first have to confirm the key on first ssh connection to your TV)<br />
<br />
*if this step was successful its up to you what happens next ;)<br />
<br />
== Postprocessing ==<br />
*to make the hack permanent i modified the link2 aka killself.sh file as following<br />
#!/bin/sh<br />
sleep 9<br />
echo killself >>/mtd_rwarea/cmd1<br />
#sh -x /dtv/usb/sda1/run4.sh &<br />
#rm -rf /mtd_rwarea/usb_mount/usb_cmd<br />
#rm -rf /mtd_rwarea/usb_mount/usb_mount<br />
#rm -rf /mtd_rwarea/usb_mount/killself.sh<br />
<br />
<br />
and re-applied the hack<br />
<br />
== Optional changes ==<br />
if you decide to edit Clone.dat to fit it to your usb-drive devicename in TV<br />
get a hex-editor like okteta or ghex<br />
and change it like this<br />
0000000: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000010: 7476 2f75 7362 2f73 6461 2f6c 696e 6b30 tv/usb/sda1/link<br />
0000020: 3000 0000 0000 0000 0000 0000 0000 0000 0...............<br />
0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000080: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000090: 7476 2f75 7362 2f73 6461 2f6c 696e 6b31 tv/usb/sda1/link<br />
00000a0: 3100 0000 0000 0000 0000 0000 0000 0000 2...............<br />
00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000100: 2f6d 7464 5f72 7761 7265 612f 2e2e 2f64 /mtd_rwarea/../d<br />
0000110: 7476 2f75 7362 2f73 6461 2f6c 696e 6b32 tv/usb/sda1/link<br />
0000120: 3200 0000 0000 0000 0000 0000 0000 0000 2...............<br />
0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
for every character insertet, remove a space before next statement to keep startpoints at the same place and file length</div>Beatfreakhttp://wiki.samygo.tv/index.php?title=Hack_over_Hotel_Mode_without_USB_disk_(most_C_series_models)&diff=3163Hack over Hotel Mode without USB disk (most C series models)2012-11-03T14:47:12Z<p>Beatfreak: </p>
<hr />
<div>See http://forum.samygo.tv/viewtopic.php?f=13&t=1076<br />
<br />
14:47, 3 November 2012 (UTC)under construction14:47, 3 November 2012 (UTC)</div>Beatfreak