GithubHelp home page GithubHelp logo

tprepack's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tprepack's Issues

Unable to connect via ComPort in version 1

When trying to connect to zx000-g3 v1 via COM to damp firmware in PUTTY nothing happens no matter what I do. I tried to change TX RX, as well as the UART itself is intact. Is it possible to connect via COM to ver. 1? Or does anyone have a damp from this version?

No change after upgrade mod firmware

No change after upgrade mod firmware
Here is the log :

┌──(dany㉿kali)-[~/Downloads/TPLINK - XZ000-G3/tprepack-master]
└─$ sudo make
[sudo] password for dany:
[tprepack] CC tprepack

┌──(dany㉿kali)-[~/Downloads/TPLINK - XZ000-G3/tprepack-master]
└─$ sudo unpack
sudo: unpack: command not found

┌──(dany㉿kali)-[~/Downloads/TPLINK - XZ000-G3/tprepack-master]
└─$ make unpack
sudo sh extract_rootfs.sh
Using file: ./input.bin
Checking image type...
hexdump: result_orig.bin: No such file or directory
hexdump: all input file arguments failed
Detected full dump!
3670016+0 records in
3670016+0 records out
3670016 bytes (3.7 MB, 3.5 MiB) copied, 3.90271 s, 940 kB/s
WARNING: Extracting will take some time, please be patient
During process you will be asked for a password, this is due to unsquashfs cannot fully extract image without root
Looking for Squashfs image...Please wait
Found Squashfs! Offset of squashfs: 1245184
Copying header with linux to extracted_header.bin
1245184+0 records in
1245184+0 records out
1245184 bytes (1.2 MB, 1.2 MiB) copied, 1.35345 s, 920 kB/s
Header has been written
Copying squashfs to extracted_squashfs
2424832+0 records in
2424832+0 records out
2424832 bytes (2.4 MB, 2.3 MiB) copied, 2.58828 s, 937 kB/s
Squashfs has been written
Unpacking Squashfs...
Parallel unsquashfs: Using 8 processors
555 inodes (384 blocks) to write

[======================================================================================|] 939/939 100%

created 367 files
created 78 directories
created 124 symlinks
created 64 devices
created 0 fifos
created 0 sockets
created 0 hardlinks
DONE! Now you can modify system in squashfs-root. Then run make repack

┌──(dany㉿kali)-[~/Downloads/TPLINK - XZ000-G3/tprepack-master]
└─$ make repack
sudo sh pack_firmware.sh
Packing firmware...Please wait
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on packed.squash, block size 131072.
[======================================================================================/] 384/384 100%

Exportable Squashfs 4.0 filesystem, lzma compressed, data block size 131072
compressed data, compressed metadata, compressed fragments,
compressed xattrs, compressed ids
duplicates are removed
Filesystem size 2367.76 Kbytes (2.31 Mbytes)
21.70% of uncompressed filesystem size (10912.75 Kbytes)
Inode table size 4328 bytes (4.23 Kbytes)
20.80% of uncompressed inode table size (20807 bytes)
Directory table size 5581 bytes (5.45 Kbytes)
44.78% of uncompressed directory table size (12464 bytes)
Number of duplicate files found 43
Number of inodes 633
Number of files 367
Number of fragments 33
Number of symbolic links 124
Number of device nodes 64
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 78
Number of hard-links 0
Number of ids (unique uids + gids) 2
Number of uids 2
root (0)
dany (1000)
Number of gids 2
root (0)
dany (1000)
Rootfs created as packed.squash
Firmware joined as output_firmware.bin
Generating footer...
Header Magic number: 0x32524448 found 0x32524448 ...ok
Header Magic device: 0x00000100 found 0x00000100 ...ok
tclinux.bin size: 3670016 (0x00380000) found 3670016 (0x00380000) ...ok
tclinux.bin checksum: 0x4E4C3FF5 found 0xEDC422DB ...failed
Checksum fixed. Creating footer...
TP Product ID: 0x4685b102 (1183166722)
TP Version: 2.0.0.1
TP Version in HEX: 0x2.0x0.0x0.0x1
Calculated CRC:8de2a1bb8da343ec98343a29553e766e output_firmware.bin
Done...Please double check size. If your file ends at lower 003800e8, then it's good
00380000 6f 6b 30 6f 77 70 61 6b 64 69 65 39 38 77 64 6b |ok0owpakdie98wdk|
00380010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00380040 00 00 00 00 00 00 00 00 00 00 00 00 46 85 b1 02 |............F...|
00380050 02 00 00 01 03 01 04 00 00 00 00 00 00 00 00 00 |................|
00380060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
003800d0 00 00 00 00 8d e2 a1 bb 8d a3 43 ec 98 34 3a 29 |..........C..4:)|
003800e0 55 3e 76 6e 00 00 00 00 |U>vn....|
003800e8
All good! use result.bin to update device

Are these fails expected?

sudo sh pack_firmware.sh
Packing firmware...Please wait
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on packed.squash, block size 131072.
[========================================================================================================|] 385/385 100%

Exportable Squashfs 4.0 filesystem, lzma compressed, data block size 131072
        compressed data, compressed metadata, compressed fragments,
        compressed xattrs, compressed ids
        duplicates are removed
Filesystem size 2366.48 Kbytes (2.31 Mbytes)
        21.68% of uncompressed filesystem size (10915.02 Kbytes)
Inode table size 4308 bytes (4.21 Kbytes)
        20.67% of uncompressed inode table size (20839 bytes)
Directory table size 5582 bytes (5.45 Kbytes)
        44.71% of uncompressed directory table size (12484 bytes)
Number of duplicate files found 43
Number of inodes 634
Number of files 368
Number of fragments 33
Number of symbolic links 124
Number of device nodes 64
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 78
Number of hard-links 0
Number of ids (unique uids + gids) 3
Number of uids 2
        root (0)
        saned (111)
Number of gids 2
        root (0)
        nm-openvpn (117)
Rootfs created as packed.squash
Firmware joined as output_firmware.bin
Generating footer...
Header Magic number: 0x32524448 found 0x3C9DEFAA ...failed
Header Magic device: 0x00000100 found 0x36BF2E42 ...failed
tclinux.bin size: 3145728 (0x0993EC8D) found 3145728 (0x0993EC8D) ...failed
tclinux.bin checksum: 0x6A6586FA found 0x7610B606 ...failed
Checksum fixed. Creating footer...
TP Product ID: 0x4685b102 (1183166722)
TP Version: 2.0.0.1
TP Version in HEX: 0x2.0x0.0x0.0x1
Calculated CRC:99f2bb100a842c1fbc271304b8a0352b output_firmware.bin
Done...Please double check size. If your file ends at lower 003800e8, then it's good
00300000  6f 6b 30 6f 77 70 61 6b  64 69 65 39 38 77 64 6b  |ok0owpakdie98wdk|
00300010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00300040  00 00 00 00 00 00 00 00  00 00 00 00 46 85 b1 02  |............F...|
00300050  02 00 00 01 03 01 04 00  00 00 00 00 00 00 00 00  |................|
00300060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
003000d0  00 00 00 00 99 f2 bb 10  0a 84 2c 1f bc 27 13 04  |..........,..'..|
003000e0  b8 a0 35 2b 00 00 00 00                           |..5+....|
003000e8
All good! use result.bin to update device

I assume these are expected & fixed later, hence the all good at the end ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.