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

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

[*] Emulating binary name: lua 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/1568982-13971496.squashfs_v4_le_extract (1/1)
[*] Using CPU config: 

1 brk(NULL) = 0x00413140
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3ffc8000
1 uname(0x4071e740) = 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/liblua.so.5.1.5",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/lib/tls",0x4071e378) = 0
1 openat(AT_FDCWD,"/lib/liblua.so.5.1.5",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/lib",0x4071e378) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/liblua.so.5.1.5",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib/tls",0x4071e378) = 0
1 openat(AT_FDCWD,"/usr/lib/liblua.so.5.1.5",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e4c4,512) = 512
1 prctl(46,8,1081205956,512,1073770496,0) = 0
1 fstat64(3,0x4071e388) = 0
1 mmap2(NULL,189920,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff99000
1 mprotect(0x3ffb7000,61440,PROT_NONE) = 0
1 mmap2(0x3ffc6000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1d) = 0x3ffc6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libm.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e4ac,512) = 512
1 prctl(46,9,1081205932,512,1073770496,0) = 0
1 _llseek(3,0,648,0x4071e268,SEEK_SET) = 0
1 read(3,0x4071e298,32) = 32
1 fstat64(3,0x4071e370) = 0
1 mmap2(NULL,1061936,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fe95000
1 mprotect(0x3ff88000,61440,PROT_NONE) = 0
1 mmap2(0x3ff97000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xf2) = 0x3ff97000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libdl.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e494,512) = 512
1 prctl(46,9,1081205908,512,1073770496,0) = 0
1 _llseek(3,0,680,0x4071e250,SEEK_SET) = 0
1 read(3,0x4071e280,32) = 32
1 fstat64(3,0x4071e358) = 0
1 mmap2(NULL,73952,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fe82000
1 mprotect(0x3fe84000,61440,PROT_NONE) = 0
1 mmap2(0x3fe93000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3fe93000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgcc_s.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e47c,512) = 512
1 prctl(46,9,1081205884,512,1073770496,0) = 0
1 fstat64(3,0x4071e340) = 0
1 mmap2(NULL,144160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fe5e000
1 mprotect(0x3fe71000,61440,PROT_NONE) = 0
1 mmap2(0x3fe80000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x12) = 0x3fe80000
1 mprotect(0x4071e000,4096,PROT_EXEC|PROT_READ|PROT_WRITE|PROT_GROWSDOWN) = 0
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e464,512) = 512
1 prctl(46,13,1081205860,512,1073770496,0) = 0
1 _llseek(3,0,792,0x4071e220,SEEK_SET) = 0
1 read(3,0x4071e250,32) = 32
1 fstat64(3,0x4071e328) = 0
1 mmap2(NULL,1630336,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fccf000
1 mprotect(0x3fe45000,61440,PROT_NONE) = 0
1 mmap2(0x3fe54000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x175) = 0x3fe54000
1 mmap2(0x3fe5b000,8320,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3fe5b000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fccd000
1 set_thread_area(0x3fcd44a0) = 0
1 mprotect(0x3fe54000,16384,PROT_READ) = 0
1 mprotect(0x3fe80000,4096,PROT_READ) = 0
1 mprotect(0x3fe93000,4096,PROT_READ) = 0
1 mprotect(0x3ff97000,4096,PROT_READ) = 0
1 mprotect(0x3ffc6000,4096,PROT_READ) = 0
1 mprotect(0x00412000,4096,PROT_READ) = 0
1 mprotect(0x3fffe000,4096,PROT_READ) = 0
1 brk(NULL) = 0x00413140
1 brk(0x00434140) = 0x00434140
1 brk(0x00435000) = 0x00435000
1 ioctl(0,TCGETS,0x4071eb10) = -1 errno=25 (Inappropriate ioctl for device)
1 fstat64(0,0x4071ca00) = 0
1 ioctl(0,TCGETS,0x4071c958) = -1 errno=25 (Inappropriate ioctl for device)
1 read(0,0x419028,4096) = 0
1 rt_sigaction(SIGINT,0x4071e9e0,0x4071e9c0) = 0
1 rt_sigaction(SIGINT,0x4071e9e0,0x4071e9c0) = 0
1 exit_group(0)

[*] 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/1568982-13971496.squashfs_v4_le_extract/etc/ld.so.cache
[*] Found missing area: /lib/liblua.so.5.1.5
[*] Trying to identify this missing file: liblua.so.5.1.5
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/liblua.so.5.1.5
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/liblua.so.5.1.5 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/
[*] Found missing area: /lib/tls/liblua.so.5.1.5
[*] Trying to identify this missing file: liblua.so.5.1.5
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/liblua.so.5.1.5
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/liblua.so.5.1.5 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/tls/
[*] Found missing area: /usr/lib/tls/liblua.so.5.1.5
[*] Trying to identify this missing file: liblua.so.5.1.5
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/liblua.so.5.1.5
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/liblua.so.5.1.5 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/tls/

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