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

[*] Initial strace run with jchroot on the command ./usr/bin/lens_correctiond to identify missing areas

[*] Emulating binary name: lens_correctiond 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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract (1/2)
[*] Using CPU config: 

--- SIGILL {si_signo=SIGILL, si_code=SI_KERNEL, si_pid=0, si_uid=0} ---
qemu: uncaught target signal 4 (Illegal instruction) - core dumped

[*] Identification of missing filesytem areas.
[*] No missing areas found.

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


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

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

[*] Emulating binary name: lens_correctiond 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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr (2/2)
[*] Using CPU config: 24KEc

1 brk(NULL) = 0x40018300
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f7c7000
1 uname(0x3ff1d650) = 0
1 access("/etc/ld.so.preload",R_OK) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/etc/ld.so.cache",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/tls/liblens_correction.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/lib/tls",0x3ff1d2a0) = 0
1 openat(AT_FDCWD,"/lib/liblens_correction.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3e4,512) = 512
1 prctl(46,1072813336,1072813028,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d2a0) = 0
1 mmap2(NULL,123628,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f7a8000
1 mprotect(0x3f7b6000,61440,PROT_NONE) = 0
1 mmap2(0x3f7c5000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xd) = 0x3f7c5000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgio-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3d4,512) = 512
1 prctl(46,1072813320,1072813012,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d290) = 0
1 mmap2(NULL,1990784,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f5c1000
1 mprotect(0x3f791000,61440,PROT_NONE) = 0
1 mmap2(0x3f7a0000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1cf) = 0x3f7a0000
1 mmap2(0x3f7a6000,4224,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f7a6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgobject-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3c4,512) = 512
1 prctl(46,1072813272,1072812996,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d280) = 0
1 mmap2(NULL,446160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f554000
1 mprotect(0x3f5af000,65536,PROT_NONE) = 0
1 mmap2(0x3f5bf000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x5b) = 0x3f5bf000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libglib-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3b4,512) = 512
1 prctl(46,1072813288,1072812980,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d270) = 0
1 mmap2(NULL,1257552,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f420000
1 mprotect(0x3f541000,61440,PROT_NONE) = 0
1 mmap2(0x3f550000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x120) = 0x3f550000
1 mmap2(0x3f553000,80,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f553000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libstatuscache.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d3a4,512) = 512
1 prctl(46,1072813240,1072812964,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d260) = 0
1 mmap2(NULL,78032,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f40c000
1 mprotect(0x3f40f000,61440,PROT_NONE) = 0
1 mmap2(0x3f41e000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f41e000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d394,512) = 512
1 prctl(46,1072813384,1072812948,512,1065377792,0) = 0
1 _llseek(3,0,760,0x3ff1d168,SEEK_SET) = 0
1 read(3,0x3ff1d198,32) = 32
1 fstat64(3,0x3ff1d250) = 0
1 mmap2(NULL,1593152,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f287000
1 mprotect(0x3f3f4000,61440,PROT_NONE) = 0
1 mmap2(0x3f403000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x16c) = 0x3f403000
1 mmap2(0x3f40a000,8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f40a000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libfixmath.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2c4,512) = 512
1 prctl(46,1072813048,1072812740,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d180) = 0
1 mmap2(NULL,94400,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f26f000
1 mprotect(0x3f276000,61440,PROT_NONE) = 0
1 mmap2(0x3f285000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3f285000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libgmodule-2.0.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2b4,512) = 512
1 prctl(46,1072813000,1072812724,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d170) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f26d000
1 mmap2(NULL,78096,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f259000
1 mprotect(0x3f25c000,61440,PROT_NONE) = 0
1 mmap2(0x3f26b000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3f26b000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libz.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2a4,512) = 512
1 prctl(46,1072813016,1072812708,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d160) = 0
1 mmap2(NULL,155984,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f232000
1 mprotect(0x3f247000,65536,PROT_NONE) = 0
1 mmap2(0x3f257000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x15) = 0x3f257000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libresolv.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d294,512) = 512
1 prctl(46,1072813000,1072812692,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1d058,SEEK_SET) = 0
1 read(3,0x3ff1d088,32) = 32
1 fstat64(3,0x3ff1d150) = 0
1 mmap2(NULL,149696,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f20d000
1 mprotect(0x3f21f000,61440,PROT_NONE) = 0
1 mmap2(0x3f22e000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x11) = 0x3f22e000
1 mmap2(0x3f230000,6336,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f230000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d284,512) = 512
1 prctl(46,1072813080,1072812676,512,1065377792,0) = 0
1 _llseek(3,0,768,0x3ff1d048,SEEK_SET) = 0
1 read(3,0x3ff1d078,32) = 32
1 fstat64(3,0x3ff1d140) = 0
1 mmap2(NULL,181248,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f1e0000
1 mprotect(0x3f1fa000,61440,PROT_NONE) = 0
1 mmap2(0x3f209000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3f209000
1 mmap2(0x3f20b000,5120,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f20b000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/libffi.so.7",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d274,512) = 512
1 prctl(46,1072812968,1072812660,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d130) = 0
1 mmap2(NULL,95072,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f1c8000
1 mprotect(0x3f1cf000,61440,PROT_NONE) = 0
1 mmap2(0x3f1de000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3f1de000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpcre.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d264,512) = 512
1 prctl(46,1072812920,1072812644,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d120) = 0
1 mmap2(NULL,545216,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f142000
1 mprotect(0x3f1b7000,61440,PROT_NONE) = 0
1 mmap2(0x3f1c6000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x74) = 0x3f1c6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/../glib/tls/../glib/tls/libdl.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d254,512) = 512
1 prctl(46,1072812936,1072812628,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1d010,SEEK_SET) = 0
1 read(3,0x3ff1d040,32) = 32
1 fstat64(3,0x3ff1d110) = 0
1 mmap2(NULL,73968,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f12f000
1 mprotect(0x3f131000,61440,PROT_NONE) = 0
1 mmap2(0x3f140000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3f140000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f12d000
1 set_thread_area(0x3f135010) = 0
1 mprotect(0x3f403000,16384,PROT_READ) = 0
1 mprotect(0x3f140000,4096,PROT_READ) = 0
1 mprotect(0x3f209000,4096,PROT_READ) = 0
1 mprotect(0x3f1c6000,4096,PROT_READ) = 0
1 mprotect(0x3f1de000,4096,PROT_READ) = 0
1 mprotect(0x3f22e000,4096,PROT_READ) = 0
1 mprotect(0x3f257000,4096,PROT_READ) = 0
1 mprotect(0x3f550000,4096,PROT_READ) = 0
1 mprotect(0x3f26b000,4096,PROT_READ) = 0
1 mprotect(0x3f285000,4096,PROT_READ) = 0
1 mprotect(0x3f41e000,4096,PROT_READ) = 0
1 mprotect(0x3f5bf000,4096,PROT_READ) = 0
1 mprotect(0x3f7a0000,12288,PROT_READ) = 0
1 mprotect(0x3f7c5000,4096,PROT_READ) = 0
1 mprotect(0x40017000,4096,PROT_READ) = 0
1 mprotect(0x3f7fd000,4096,PROT_READ) = 0
1 set_tid_address(0x3f12dbe8) = 1
1 set_robust_list(0x3f12dbf0,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x3ff1dca0,NULL) = 0
1 rt_sigaction(33,0x3ff1dca0,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x3ff1dce8,NULL,16) = 0
1 getrlimit(3,0x3ff1dd70) = 0
1 brk(NULL) = 0x40018300
1 brk(0x40039300) = 0x40039300
1 brk(0x4003a000) = 0x4003a000
1 gettimeofday(0x3ff1dca8,NULL) = 0 ({tv_sec = 1689943202,tv_usec = 177173},NULL)
1 syscall(4238,1062547148,129,2147483647,0,0)1 futex(0x3f552ecc,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,NULL,0) = 0
 = 0
1 syscall(4238,1062547148,129,2147483647,0,1062996480)1 futex(0x3f552ecc,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,2147483647,NULL,0x3f5c0a00,1062996480) = 0
 = 0
1 openat(AT_FDCWD,"/etc/nsswitch.conf",O_RDONLY|O_CLOEXEC) = 3
1 fstat64(3,0x3ff1d988) = 0
1 read(3,0x4001edd0,4096) = 482
1 read(3,0x4001edd0,4096) = 0
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libnss_compat.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d48c,512) = 512
1 prctl(46,1072813504,1072813196,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1d240,SEEK_SET) = 0
1 read(3,0x3ff1d270,32) = 32
1 fstat64(3,0x3ff1d348) = 0
1 mmap2(NULL,100016,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f114000
1 mprotect(0x3f11c000,61440,PROT_NONE) = 0
1 mmap2(0x3f12b000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x7) = 0x3f12b000
1 close(3) = 0
1 mprotect(0x3f12b000,4096,PROT_READ) = 0
1 openat(AT_FDCWD,"/lib/tls/libnss_nis.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/libnss_nis.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/tls/libnss_nis.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib/tls",0x3ff1d2a0) = 0
1 openat(AT_FDCWD,"/usr/lib/libnss_nis.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib",0x3ff1d2a0) = 0
1 openat(AT_FDCWD,"/etc/passwd",O_RDONLY|O_CLOEXEC) = 3
1 _llseek(3,0,0,0x3ff1da50,SEEK_CUR) = 0
1 fstat64(3,0x3ff1d920) = 0
1 mmap2(NULL,29,PROT_READ,MAP_SHARED,3,0) = 0x3f113000
1 _llseek(3,0,29,0x3ff1d8e8,SEEK_SET) = 0
1 fstat64(3,0x3ff1d918) = 0
1 munmap(0x3f113000,29) = 0
1 close(3) = 0
1 time(0,1072815068,1,0,0,0) = 1689943202
1 openat(AT_FDCWD,"/etc/localtime",O_RDONLY|O_CLOEXEC) = 3
1 fstat64(3,0x3ff1d9a8) = 0
1 fstat64(3,0x3ff1d848) = 0
1 read(3,0x40022180,4096) = 148
1 _llseek(3,4294967295,4294967290,0x3ff1d858,SEEK_CUR) = 0
1 read(3,0x40022180,4096) = 6
1 close(3) = 0
1 getpid() = 1
1 socket(PF_UNIX,SOCK_DGRAM|SOCK_CLOEXEC,IPPROTO_IP) = 3
1 connect(3,0x3f40a4e0,110) = -1 errno=2 (No such file or directory)
1 close(3) = 0
1 time(0,1072815068,1,0,0,0) = 1689943202
1 getpid() = 1
1 socket(PF_UNIX,SOCK_DGRAM|SOCK_CLOEXEC,IPPROTO_IP) = 3
1 connect(3,0x3f40a4e0,110) = -1 errno=2 (No such file or directory)
1 close(3) = 0
1 exit_group(1)

[*] Identification of missing filesytem areas.
[*] Found missing area: /etc/ld.so.cache
[*] Trying to identify this missing file: ld.so.cache
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/etc/ld.so.cache
[*] Found missing area: /lib/libnss_nis.so.2
[*] Trying to identify this missing file: libnss_nis.so.2
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libnss_nis.so.2
[*] Found missing area: /lib/tls/liblens_correction.so
[*] Trying to identify this missing file: liblens_correction.so
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/liblens_correction.so
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/liblens_correction.so to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/tls/
[*] Found missing area: /lib/tls/libnss_nis.so.2
[*] Trying to identify this missing file: libnss_nis.so.2
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/tls/libnss_nis.so.2
[*] Found missing area: /usr/lib/libnss_nis.so.2
[*] Trying to identify this missing file: libnss_nis.so.2
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/usr/lib/libnss_nis.so.2
[*] Found missing area: /usr/lib/tls/libnss_nis.so.2
[*] Trying to identify this missing file: libnss_nis.so.2
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/usr/lib/tls/libnss_nis.so.2

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