quote was jnko
Manchmal ist es notwendig, Dateien aus einem enigma2/OpenATV FullBackup zu extrahieren. Mir ist es schon passiert, dass ich einige Arbeit in einen Skin gesteckt habe und diesen beim nächsten Flashen natürlich vergessen habe. Eine andere Möglichkeit ist von einem vorhandenem Fullbackup z.B. nach einem Hardwarewechsel Senderlisten, Configs ect zu bekommen.
Hier also meine Lösung.
Es gibt ein Projekt namens "ubi-reader" auf GitHub (https://github.com/jrspruitt/ubi_reader)
Dependencies:
- Ein Linux-System (Debian, ArchLinux, Ubuntu...)
Haltet Euch einfach an die Anleitung. Bei einem ArchLinux setze ich [arch] vorweg, bei Debian/Ubuntu [deb]
Dependencies installieren:
[deb] apt-get install python2 python-lzo git[arch] pacman -S python2 lzo git[arch] git clone https://github.com/jd-boyd/python-lzo.git[arch] cd python-lzo/[arch] python2 setup.py install
[COLOR=#979797][FONT=arial]Komplettes Root-Image extrahieren:[/FONT][/COLOR]
[deb][arch] cd /PATH/TO/FULLBACKUP[deb][arch] ubireader_extract_files root_cfe_auto.binExtracting files to: ubifs-root/1837653856/rootfs
Das Root-Filesystem ist in dem Verzeichnis "ubifs-root" zu finden.
Einige Infos zum Fullbackup kann man sich noch mit folgenden Kommandos anzeigen lassen
[root@arch duo2]# ubireader_utils_info -r root_cfe_auto.binVolume rootfs alignment -a 1 default_compr -x lzo fanout -f 8 image_seq -Q 1837653856 key_hash -k r5 leb_size -e 126976 log_lebs -l 5 max_bud_bytes -j 8388608 max_leb_cnt -c 8192 min_io_size -m 2048 name -N rootfs orph_lebs -p 1 peb_size -p 131072 sub_page_size -s 2048 version -x 1 vid_hdr_offset -O 2048 vol_id -n 0 #ubinize.ini# [rootfs] vol_name=rootfs vol_size=116436992 vol_flags=autoresize vol_type=dynamic vol_alignment=1 vol_id=0[root@arch duo2]# ubireader_display_info root_cfe_auto.binUBI File--------------------- Min I/O: 2048 LEB Size: 126976 PEB Size: 131072 Total Block Count: 919 Data Block Count: 917 Layout Block Count: 2 Internal Volume Block Count: 0 Unknown Block Count: 0 First UBI PEB Number: 0 Image: 1837653856 --------------------- Image Sequence Num: 1837653856 Volume Name:rootfs PEB Range: 0 - 918 Volume: rootfs --------------------- Vol ID: 0 Name: rootfs Block Count: 917 Volume Record --------------------- alignment: 1 crc: 1775848102 data_pad: 0 errors: flags: autoresize name: rootfs name_len: 6 padding: rec_index: 0 reserved_pebs: 917 upd_marker: 0 vol_type: dynamic
- - - Updated - - -
root_cfe_auto.bin I did unpack
I did necessary arrangements
but I do not know how to repack
please help me