Friday, March 4, 2011

Vizyon 8000HD #1

$ wget -O soft-vizyon8000hd_r9047.051213.8.zip http://www.vizyonrevolution.eu/download/doc_download/1-8000hd-pvr

$ unzip soft-vizyon8000hd_r9047.051213.8.zip
Archive: soft-vizyon8000hd_r9047.051213.8.zip
inflating: usb_kernel_root_db.img

$ file usb_kernel_root_db.img
usb_kernel_root_db.img: data

$ du -b usb_kernel_root_db.img | cut -f1
24401876

$ hd usb_kernel_root_db.img | grep "hsqs"
00201000 68 73 71 73 b4 08 00 00 48 0d b8 c0 18 ae bf 0e |hsqsŽ...H.žÀ.®¿.|

$ dd if=usb_kernel_root_db.img ibs=1 skip=$((0x00201000)) count=66 2> /dev/null | file -
/dev/stdin: Squashfs filesystem, little endian, version 3.0, 15877802 bytes, 2228 inodes, blocksize: 65536 bytes, created: Fri Aug 21 10:56:05 2009

$ echo "15877802 / 65536" | bc -l
242.27603149414062500000

$ echo $((65536 * 243))
15925248

$ dd if=usb_kernel_root_db.img of=rootfs.sqsh ibs=1 skip=$((0x00201000)) count=15925248
15925248+0 records in
31104+0 records out
15925248 bytes (16 MB) copied, 5.69234 s, 2.8 MB/s

$ unsquashfs -s rootfs.sqsh
Found a valid little endian SQUASHFS 3:0 superblock on rootfs.sqsh.
Creation or last append time Fri Aug 21 10:56:05 2009
Filesystem size 15505.67 Kbytes (15.14 Mbytes)
Block size 65536
Filesystem is not exportable via NFS
Inodes are compressed
Data is compressed
Fragments are compressed
Check data is not present in the filesystem
Fragments are present in the filesystem
Always_use_fragments option is not specified
Duplicates are removed
Number of fragments 168
Number of inodes 2228
Number of uids 1
Number of gids 0

$ unsquashfs -d rootfs rootfs.sqsh
Parallel unsquashfs: Using 4 processors
2046 inodes (2546 blocks) to write

[===========================================================================================================-] 2546/2546 100%
created 1766 files
created 182 directories
created 280 symlinks
created 0 devices
created 0 fifos

No comments:

Post a Comment