-----------------------------------------------------------------
[*] Initial strace run with jchroot on the command ./mnt/sedona/BaseComm to identify missing areas
[*] Emulating binary name: BaseComm 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) = 0x00418b74
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3ffc8000
1 uname(0x4071e700) = 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/libgcc_s.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e484,512) = 512
1 prctl(46,9,1081205892,512,1073770496,0) = 0
1 fstat64(3,0x4071e348) = 0
1 mmap2(NULL,144160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ffa4000
1 mprotect(0x3ffb7000,61440,PROT_NONE) = 0
1 mmap2(0x3ffc6000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x12) = 0x3ffc6000
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,0x4071e46c,512) = 512
1 prctl(46,13,1081205868,512,1073770496,0) = 0
1 _llseek(3,0,792,0x4071e228,SEEK_SET) = 0
1 read(3,0x4071e258,32) = 32
1 fstat64(3,0x4071e330) = 0
1 mmap2(NULL,1630336,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fe15000
1 mprotect(0x3ff8b000,61440,PROT_NONE) = 0
1 mmap2(0x3ff9a000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x175) = 0x3ff9a000
1 mmap2(0x3ffa1000,8320,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ffa1000
1 close(3) = 0
1 set_thread_area(0x3ffd06e0) = 0
1 mprotect(0x3ff9a000,16384,PROT_READ) = 0
1 mprotect(0x3ffc6000,4096,PROT_READ) = 0
1 mprotect(0x3fffe000,4096,PROT_READ) = 0
1 fstat64(1,0x4071e7a8) = 0
1 brk(NULL) = 0x00418b74
1 brk(0x00439b74) = 0x00439b74
1 brk(0x0043a000) = 0x0043a000
1 ipc(23,80631010,120,950) = 0
1 ipc(21,0,0,1081208248) = 0
1 ipc(23,80631011,120,950) = 1
1 ipc(21,1,0,1081208248) = 0
1 ipc(23,80631014,16,950) = 2
1 ipc(21,2,0,1081208248) = 0
1 umask(0) = 18
1 unlink("/tmp/IO_NPIPE") = 0
1 mknod("/tmp/IO_NPIPE",S_IFIFO|0666) = 0
1 getpid() = 1
1 openat(AT_FDCWD,"/tmp/IO_NPIPE",O_RDWR|O_NONBLOCK) = 3
1 fcntl64(3,F_SETLKW,0x4071eda8) = 0
1 umask(0) = 0
1 unlink("/tmp/BACSEND_NPIPE") = -1 errno=2 (No such file or directory)
1 mknod("/tmp/BACSEND_NPIPE",S_IFIFO|0666) = 0
1 getpid() = 1
1 openat(AT_FDCWD,"/tmp/BACSEND_NPIPE",O_RDWR|O_NONBLOCK) = 4
1 fcntl64(4,F_SETLKW,0x4071eda8) = 0
1 umask(0) = 0
1 unlink("/tmp/BACRECV_NPIPE") = -1 errno=2 (No such file or directory)
1 mknod("/tmp/BACRECV_NPIPE",S_IFIFO|0666) = 0
1 getpid() = 1
1 openat(AT_FDCWD,"/tmp/BACRECV_NPIPE",O_RDWR|O_NONBLOCK) = 5
1 fcntl64(5,F_SETLKW,0x4071eda8) = 0
1 openat(AT_FDCWD,"/dev/ttyS2",O_RDWR|O_NOCTTY|O_NONBLOCK) = 6
1 openat(AT_FDCWD,"/dev/ttyS1",O_RDWR|O_NOCTTY|O_NONBLOCK) = 7
1 ioctl(6,TCFLSH,2) = -1 errno=5 (Input/output error)
1 ioctl(6,TCSETS,{c_iflag = IGNPAR,c_oflag = 0,c_cflag = B115200,CS8,CREAD|CLOCAL,c_lflag = 0,c_cc = "",c_line = ' '}) = -1 errno=5 (Input/output error)
1 ioctl(7,TCFLSH,2) = -1 errno=5 (Input/output error)
1 ioctl(7,TCSETS,{c_iflag = IGNPAR,c_oflag = 0,c_cflag = B115200,CS8,CREAD|CLOCAL,c_lflag = 0,c_cc = "",c_line = ' '}) = -1 errno=5 (Input/output error)
1 openat(AT_FDCWD,"/dev/i2c-0",O_RDWR) = -1 errno=2 (No such file or directory)
1 gettimeofday(0x00418aac,NULL) = 0 ({tv_sec = 1690095790,tv_usec = 80831},NULL)
1 gettimeofday(0x00418a90,NULL) = 0 ({tv_sec = 1690095790,tv_usec = 80908},NULL)
1 gettimeofday(0x00418ac8,NULL) = 0 ({tv_sec = 1690095790,tv_usec = 80932},NULL)
1 write(7,0x4071edc8,7) = -1 errno=5 (Input/output error)
1 ioctl(-1,0x703,0x70) = -1 errno=89 (Function not implemented)
1 openat(AT_FDCWD,"/etc/localtime",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stime(1081208268,4219743,1,4296252,0,0) = -1 errno=22 (Invalid argument)
1 gettimeofday(0x00418aac,NULL) = 0 ({tv_sec = 1690095790,tv_usec = 112350},NULL)
1 gettimeofday(0x00418a90,NULL) = 0 ({tv_sec = 1690095790,tv_usec = 112370},NULL)
1 gettimeofday(0x00418ac8,NULL) = 0 ({tv_sec = 1690095790,tv_usec = 112389},NULL)
1 ioctl(-1,0x703,0x70) = -1 errno=89 (Function not implemented)
1 write(-1,0x4071eaa0,5) = -1 errno=9 (Bad file descriptor)
1 nanosleep(1081208240,1081208240,0,-1063655105,0,0)
= 0
1 ioctl(-1,0x703,0x70) = -1 errno=89 (Function not implemented)
1 write(-1,0x4071eaa0,5) = -1 errno=9 (Bad file descriptor)
1 nanosleep(1081208240,1081208240,33554432,-125043649,0,0)[*] Identification of missing filesytem areas.
[*] Found missing area: /etc/ld.so.cache
[*] Trying to identify this missing file: ld.so.cache
= 0
1 ioctl(-1,0x703,0x70) = -1 errno=89 (Function not implemented)
1 write(-1,0x4071eaa0,5) = -1 errno=9 (Bad file descriptor)
1 nanosleep(1081208240,1081208240,33554432,-125043649,0,0)[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/ld.so.cache
[*] Found missing area: /etc/localtime
[*] Trying to identify this missing file: localtime
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/localtime
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/localtime to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/
-----------------------------------------------------------------