created 4779 files created 302 directories created 508 symlinks created 1 device created 0 fifos created 0 sockets created 0 hardlinks (venv) root@localhost:/route_package/ubifs-root/miwifi_rd15_firmware_23a4f_1.0.68.bin# tree -L 1 . ├── img-2059293214_vol-kernel.ubifs ├── img-2059293214_vol-ubi_rootfs.ubifs └── squashfs-root # 这是程序文件
2 directories, 2 files
(venv) root@localhost:/route_package/ubifs-root/miwifi_rd15_firmware_23a4f_1.0.68.bin/squashfs-root# tree -L 1 . ├── bin ├── data ├── dev ├── etc ├── ini ├── lib ├── mnt ├── overlay ├── proc ├── readonly ├── rom ├── root ├── run -> tmp/run ├── sawf ├── sbin ├── sys ├── tmp ├── userdisk ├── usr ├── var -> tmp ├── vendor └── www
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144 compressed data, compressed metadata, compressed fragments, no xattrs, compressed ids duplicates are removed Filesystem size 24391.34 Kbytes (23.82 Mbytes) 31.05% of uncompressed filesystem size (78564.39 Kbytes) Inode table size 37534 bytes (36.65 Kbytes) 20.36% of uncompressed inode table size (184374 bytes) Directory table size 52864 bytes (51.62 Kbytes) 41.62% of uncompressed directory table size (127006 bytes) Number of duplicate files found 982 Number of inodes 5590 Number of files 4779 Number of fragments 137 Number of symbolic links 508 Number of device nodes 1 Number of fifo nodes 0 Number of socket nodes 0 Number of directories 302 Number of hard-links 0 Number of ids (unique uids + gids) 1 Number of uids 1 root (0) Number of gids 1 root (0)
(venv) root@localhost:/route_package/ubifs-root/miwifi_rd15_firmware_23a4f_1.0.68.bin# ./ubinize.sh ./img-2059293214_vol-kernel.ubifs ./squashfs-root.bin.new # 第一个参数是内核文件 第二个参数是程序文件 ubinize: volume size was not specified in section "kernel", assume minimum to fit image "./img-2059293214_vol-kernel.ubifs"3174400 bytes (3.0 MiB) ubinize: volume size was not specified in section "rootfs", assume minimum to fit image "./squashfs-root.bin.new"24977408 bytes (23.8 MiB) done.