-----------------------------------------------------------------

[*] Initial strace run with jchroot on the command ./sbin/ble_time_util to identify missing areas

[*] Emulating binary name: ble_time_util in strace mode to identify missing areas (with jchroot)
[*] Emulator used: qemu-mipsel-static
[*] Chroot environment used: jchroot
[*] Using root directory: /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract (1/1)
[*] Using CPU config: 

1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|0x4000000,-1,0) = 0x3ffe6000
1 open("/lib/libstdc++.so.6",O_RDONLY) = 3
1 fstat(3,0x4071e0dc) = 0
1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|0x4000000,-1,0) = 0x3ffe5000
1 read(3,0x3ffe5000,4096) = 4096
1 mmap(NULL,954368,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fefc000
1 mmap(0x3fefc000,824044,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_FIXED,3,0) = 0x3fefc000
1 mmap(0x3ffd5000,38228,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0xc9000) = 0x3ffd5000
1 mmap(0x3ffdf000,23200,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ffdf000
1 close(3) = 0
1 munmap(0x3ffe5000,4096) = 0
1 open("/lib/libLog4cppWrapper.so",O_RDONLY) = 3
1 fstat(3,0x4071e0cc) = 0
1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|0x4000000,-1,0) = 0x3fefb000
1 read(3,0x3fefb000,4096) = 4096
1 mmap(NULL,86016,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fee6000
1 mmap(0x3fee6000,17032,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_FIXED,3,0) = 0x3fee6000
1 mmap(0x3fefa000,1164,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0x4000) = 0x3fefa000
1 close(3) = 0
1 munmap(0x3fefb000,4096) = 0
1 open("/lib/librt.so.0",O_RDONLY) = 3
1 fstat(3,0x4071e0bc) = 0
1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|0x4000000,-1,0) = 0x3fee5000
1 read(3,0x3fee5000,4096) = 4096
1 mmap(NULL,81920,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fed1000
1 mmap(0x3fed1000,10552,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_FIXED,3,0) = 0x3fed1000
1 mmap(0x3fee4000,232,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0x3000) = 0x3fee4000
1 close(3) = 0
1 munmap(0x3fee5000,4096) = 0
1 open("/lib/liblog4cpp.so.5",O_RDONLY) = 3
1 fstat(3,0x4071e0ac) = 0
1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|0x4000000,-1,0) = 0x3fed0000
1 read(3,0x3fed0000,4096) = 4096
1 mmap(NULL,278528,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fe8c000
1 mmap(0x3fe8c000,197328,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_FIXED,3,0) = 0x3fe8c000
1 mmap(0x3fecc000,12460,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0x30000) = 0x3fecc000
1 close(3) = 0
1 munmap(0x3fed0000,4096) = 0
1 open("/lib/libpthread.so.0",O_RDONLY) = 3
1 fstat(3,0x4071e09c) = 0
1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|0x4000000,-1,0) = 0x3fe8b000
1 read(3,0x3fe8b000,4096) = 4096
1 mmap(NULL,155648,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fe65000
1 mmap(0x3fe65000,73648,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_FIXED,3,0) = 0x3fe65000
1 mmap(0x3fe87000,4936,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0x12000) = 0x3fe87000
1 mmap(0x3fe89000,5216,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3fe89000
1 close(3) = 0
1 munmap(0x3fe8b000,4096) = 0
1 open("/lib/libtinydb.so",O_RDONLY) = 3
1 fstat(3,0x4071e08c) = 0
1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|0x4000000,-1,0) = 0x3fe64000
1 read(3,0x3fe64000,4096) = 4096
1 mmap(NULL,118784,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fe47000
1 mmap(0x3fe47000,44368,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_FIXED,3,0) = 0x3fe47000
1 mmap(0x3fe62000,4488,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0xb000) = 0x3fe62000
1 close(3) = 0
1 munmap(0x3fe64000,4096) = 0
1 open("/lib/libcam.so",O_RDONLY) = 3
1 fstat(3,0x4071e07c) = 0
1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|0x4000000,-1,0) = 0x3fe46000
1 read(3,0x3fe46000,4096) = 4096
1 mmap(NULL,1830912,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fc87000
1 mmap(0x3fc87000,1642712,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_FIXED,3,0) = 0x3fc87000
1 mmap(0x3fe28000,56268,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0x191000) = 0x3fe28000
1 mmap(0x3fe36000,64880,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3fe36000
1 close(3) = 0
1 munmap(0x3fe46000,4096) = 0
1 open("/lib/libpib.so",O_RDONLY) = 3
1 fstat(3,0x4071e06c) = 0
1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|0x4000000,-1,0) = 0x3fc86000
1 read(3,0x3fc86000,4096) = 4096
1 mmap(NULL,188416,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fc58000
1 mmap(0x3fc58000,114272,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_FIXED,3,0) = 0x3fc58000
1 mmap(0x3fc84000,5092,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0x1c000) = 0x3fc84000
1 close(3) = 0
1 munmap(0x3fc86000,4096) = 0
1 open("/lib/libbluetooth.so.3",O_RDONLY) = -1 errno=2 (No such file or directory)
1 open("/usr/lib/libbluetooth.so.3",O_RDONLY) = -1 errno=2 (No such file or directory)
1 open("/usr/X11R6/lib/libbluetooth.so.3",O_RDONLY) = -1 errno=2 (No such file or directory)
1 mmap(NULL,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fc57000
1 write(2,0x3fc57000,0) = 0
1 write(2,0x4071fb77,20)./sbin/ble_time_util = 20
1 write(2,0x3fc57002,22): can't load library ' = 22
1 write(2,0x400b90,17)libbluetooth.so.3 = 17
1 write(2,0x3fc5701a,2)'
 = 2
1 munmap(0x3fc57000,4096) = 0
1 exit(16)

[*] Identification of missing filesytem areas.
[*] Found missing area: /lib/libbluetooth.so.3
[*] Trying to identify this missing file: libbluetooth.so.3
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/var/bluetooth/lib/libbluetooth.so.3
[*] Copy file /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/var/bluetooth/lib/libbluetooth.so.3 to /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/
[*] Found missing area: /usr/X11R6/lib/libbluetooth.so.3
[*] Trying to identify this missing file: libbluetooth.so.3
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libbluetooth.so.3
[*] Copy file /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libbluetooth.so.3 to /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/usr/X11R6/lib/
[*] Found missing area: /usr/lib/libbluetooth.so.3
[*] Trying to identify this missing file: libbluetooth.so.3
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libbluetooth.so.3
[*] Copy file /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libbluetooth.so.3 to /logs/s115_usermode_emulator/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/usr/lib/

-----------------------------------------------------------------