Page 2 of 2
Re: How can I dump all my tv memory to pc or to usb with putty?
Posted: Fri Jun 10, 2011 3:14 pm
by tempinbox
zibri2 wrote:You should install a full busybox.
i have to install full busy box on my tv? how?
is possible to backup partitions with the command cp?
Re: How can I dump all my tv memory to pc or to usb with putty?
Posted: Fri Jun 10, 2011 3:28 pm
by juusso
you can use command cat, it makes stl backup as good as other tools does. Sure, it does not copy block by block, but i use this command and didn`t have any problem.
Code: Select all
cat /dev/stl0/12 > /dtv/usb/sda1/stl12_dump
Re: How can I dump all my tv memory to pc or to usb with putty?
Posted: Fri Jun 10, 2011 5:31 pm
by tempinbox
juuso wrote:you can use command cat, it makes stl backup as good as other tools does. Sure, it does not copy block by block, but i use this command and didn`t have any problem.
Code: Select all
cat /dev/stl0/12 > /dtv/usb/sda1/stl12_dump
Thanks for your reply but with this command i obtain file without extension and i can't extract the files inside.
I want to backup my tv partitions to explore them on my pc.
because i downgrade the fw and now i don't know wich alternative firmware there is in hidden partition and i want to find what version i have in that partition.
I know that there are 2 partitions on my tv with fw in it one is the current fw that run the tv and other is i think hidden partitions with alternative fw in it.
First i have fw version 3008.3 in my tv but i upgrade to 3009.3
then i downgrade via usb and i flash the 3008.3 fw
and now i don't know what fw i have in alternative fw partitions.
when i flash a fw from usb the fw is written in the same partition or not??
I'm confused

Re: How can I dump all my tv memory to pc or to usb with putty?
Posted: Fri Jun 10, 2011 6:52 pm
by juusso
To know what version do you have on partition, you can mount it to temp directory and search for strings:
For example:
If your alternative partition is /dev/stl0/17
1. Create tmp dir
2. Mount your alternative partition to it:
Code: Select all
mount -t squashfs /dev/stl0/17 /mtd_swu/tmp/
If you get error, you can try this:
Code: Select all
mount -t auto /dev/stl0/17 /mtd_swu/tmp/
3. Search for T-VALDEUC- :
Code: Select all
cat $(find /tmp/stl17) | grep T-VALDEUC-
It works on B series:
Code: Select all
# cat $(find /mtd_swu/tmp) | grep T-CHL7DEUC-
cat: Read Error: Is a directory
cat: Read Error: Is a directory
cat: Read Error: Is a directory
cat: Read Error: Is a directory
T-CHL7DEUC-2004.1
[2] + Stopped cat $(...) | grep T-CHL7DEUC-
#
You see - here are some errors while reading directories. After you get your version, press Ctrl+z to interrupt process. Done

Re: How can I dump all my tv memory to pc or to usb with putty?
Posted: Sat Jun 11, 2011 12:31 pm
by tempinbox
Thanks thanks thanks i try you procedure... but i don't find the version
this is what i get
Code: Select all
/mtd_swu # mount -t squashfs /dev/stl0/17 /mtd_swu/tmp/
mount: mounting /dev/stl0/17 on /mtd_swu/tmp/ failed
/mtd_swu # mount -t auto /dev/stl0/17 /mtd_swu/tmp/
/mtd_swu # cat $(find /tmp/stl17) | grep T-VALDEUC-
find: /tmp/stl17: No such file or directory
[1]+ Stopped cat $(...) | grep T-VALDEUC-
/mtd_swu # # cat $(find /mtd_swu/tmp) | grep T-VALDEUC_[J-
/mtd_swu # cd tmp
/mtd_swu/tmp # ls -a
$rfs_log.lo$ exedsp~1 lifesc~1 rcloca~2.rfs value.bin
. factor~1.dat memalloc rc~1.loc wifi_lib
.. factor~2.dat moip releas~1 ywidge~1
comp_l~1 game_lib otpcheck.sh ruic
ddr_ma~1 infoli~1 partit~1.txt samdrv.ko
edid java~1 prelin~1.cac specia~1.txt
exe_im~1 lib prelin~2.con stagec~1
/mtd_swu/tmp # cd ..
/mtd_swu # cd ..
~ # mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/sam type tmpfs (rw)
none on /dtv type tmpfs (rw)
none on /dsm type tmpfs (rw)
none on /core type tmpfs (rw)
none on /tmp type tmpfs (rw)
/dev/stl0/14 on /mtd_rwarea type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)
/dev/stl0/19 on /mtd_rocommon type squashfs (ro)
/dev/stl0/15 on /mtd_exe type rfs (ro,codepage=cp949,vfat,fcache(blks)=128)
/dev/stl0/16 on /mtd_appdata type squashfs (ro)
/dev/stl0/13 on /mtd_contents type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)
/dev/stl0/20 on /mtd_swu type rfs (rw,codepage=cp949,vfat,fcache(blks)=128)
/dev/stl0/21 on /mtd_rwcommon type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)
none on /proc/bus/usb type usbfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/sda1 on /dtv/usb/sda1 type xfs (rw,nouuid,noquota)
/dev/stl0/17 on /mtd_swu/tmp type msdos (rw,fmask=0022,dmask=0022,codepage=cp437)
/dev/sdb1 on /dtv/usb/sdb1 type vfat (rw,sync,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed)
~ # cp -r /mtd_swu/tmp/ Dtv[J[J[Jdtv/usb/sdb1/tnp[J[Jmp
I don't know if alternative partition is number 17 so i write here the partitions.txt that i found on tv.
Code: Select all
partitionID flash_device_name flash_device_size flash_image_name flash_device_type flash_upgrade_type flash_partition_map flash_mount_path default_block_size flash_format_option flash_mount_option
0 /dev/bml0/1 262144 onboot.bin DEVICE OTHER BOOTLOADER0 NONE 262144 NONE NONE
1 /dev/bml0/2 262144 u-boot.bin BML OTHER BOOTLOADER1 NONE 262144 NONE NONE
2 /dev/bml0/3 262144 uboot_env.bin BML OTHER BOOTLOADER2 NONE 262144 NONE NONE
3 /dev/bml0/4 262144 fnw.bin BML OTHER BOOTLOADER3 NONE 262144 NONE NONE
4 /dev/bml0/5 4194304 Image BML USER KERNEL0 NONE 262144 NONE NONE
5 /dev/bml0/6 3670016 rootfs.img BML USER RFS0 NONE 262144 NONE NONE
6 /dev/bml0/7 4194304 Image BML USER KERNEL1 NONE 262144 NONE NONE
7 /dev/bml0/8 3670016 rootfs.img BML USER RFS1 NONE 262144 NONE NONE
8 /dev/bml0/9 262144 NONE BML OTHER SECUREMAC0 NONE 262144 NONE NONE
9 /dev/bml0/10 262144 NONE BML OTHER SECUREMAC1 NONE 262144 NONE NONE
10 /dev/bml0/11 262144 key.bin BML OTHER SECUREMAC2 NONE 262144 NONE NONE
11 /dev/bml0/12 262144 NONE BML OTHER NONE NONE 262144 NONE NONE
12 /dev/stl0/13 11272192 NONE STL OTHER NONE /mtd_contents 4096 ERASE:,STL:-r_7,FAT:-S_1024_-s_1 -t_rfs_-o_codepage=utf8
13 /dev/stl0/14 26214400 NONE STL OTHER NONE /mtd_rwarea 4096 ERASE:,STL:-r_7,FAT:-S_1024_-s_1 -t_rfs_-o_codepage=utf8
14 /dev/stl0/15 93323264 exe.img STL USER EXE0 /mtd_exe 4096 ERASE:,STL:-r_2 NONE
15 /dev/stl0/16 58195968 appdata.img STL USER APP_DATA0 /mtd_appdata 4096 ERASE:,STL:-r_2 NONE
16 /dev/stl0/17 93323264 exe.img STL USER EXE1 /mtd_exe 4096 ERASE:,STL:-r_2 NONE
17 /dev/stl0/18 58195968 appdata.img STL USER APP_DATA1 /mtd_appdata 4096 ERASE:,STL:-r_2 NONE
18 /dev/stl0/19 52953088 rocommon.img STL OTHER CONTENT0 /mtd_rocommon 4096 ERASE:,STL:-r_2 NONE
19 /dev/stl0/20 104857600 NONE STL OTHER NONE /mtd_swu 4096 ERASE:,STL:-r_16,FAT:-S_4096_-s_4 -t_rfs
20 /dev/stl0/21 411566080 NONE STL OTHER NONE /mtd_rwcommon 4096 FAT:-S_4096_-s_1 -t_rfs_-o_codepage=utf8
can you help me please?
Maybe i've to wait that the command stop it work?
Sorry for my questions but i ask because you are a guru of this things and in the wiki there aren't the info that i need.
Is there another place where i can found info about the hotel mode hack?
THANKS.
Re: How can I dump all my tv memory to pc or to usb with putty?
Posted: Sat Jun 11, 2011 1:18 pm
by juusso
Please, use tags for text formatting.
Code: Select all
[quote] et cetera.
Make dump with cat, open it with hex (you do not need any file extension for that. or you can rename it to have *.img if you want - doesn`t matter. I do not know exactly, is there squash or rfs image. The first one you can mount -o loop, the second is easy to open in winhex.
Re: How can I dump all my tv memory to pc or to usb with putty?
Posted: Sat Jun 11, 2011 2:56 pm
by tempinbox
juuso wrote:Please, use tags for text formatting.
Code: Select all
[quote] et cetera.
Make dump with cat, open it with hex (you do not need any file extension for that. or you can rename it to have *.img if you want - doesn`t matter. I do not know exactly, is there squash or rfs image. The first one you can mount -o loop, the second is easy to open in winhex.[/quote][/quote]
Finally i've done :)
/dev/stl0/15 > fw T-Valdeuc 3008.3 current fw > Version.0
/dev/stl0/17 > fw T-Valdeuc 3009.2 alternative fw
So if i write the file Version.1 (now is missing in my tv) the alternative fw menu will be enabled and if i select alternative fw my tv switch off and switch on with the fw 3009.2 right?
if i ONLY rename the file Version.0 to Version.1 did i brick my tv or not?
THANKS juuso. :D
Re: How can I dump all my tv memory to pc or to usb with putty?
Posted: Sat Jun 11, 2011 3:16 pm
by juusso
create missing version file and switch to alternative firmware over menu.