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

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

[*] Emulating binary name: logd 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) = 0x00413680
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/librt.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e4c4,512) = 512
1 prctl(46,10,1081205956,512,1073770496,0) = 0
1 _llseek(3,0,704,0x4071e280,SEEK_SET) = 0
1 read(3,0x4071e2b0,32) = 32
1 fstat64(3,0x4071e388) = 0
1 mmap2(NULL,94912,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ffb0000
1 mprotect(0x3ffb7000,61440,PROT_NONE) = 0
1 mmap2(0x3ffc6000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3ffc6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libubox.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e4ac,512) = 512
1 prctl(46,8,1081205932,512,1073770496,0) = 0
1 fstat64(3,0x4071e370) = 0
1 mmap2(NULL,99696,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff97000
1 mprotect(0x3ff9f000,61440,PROT_NONE) = 0
1 mmap2(0x3ffae000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x7) = 0x3ffae000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libubus.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e494,512) = 512
1 prctl(46,8,1081205908,512,1073770496,0) = 0
1 fstat64(3,0x4071e358) = 0
1 mmap2(NULL,82560,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff82000
1 mprotect(0x3ff86000,61440,PROT_NONE) = 0
1 mmap2(0x3ff95000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x3) = 0x3ff95000
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) = 0x3ff5e000
1 mprotect(0x3ff71000,61440,PROT_NONE) = 0
1 mmap2(0x3ff80000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x12) = 0x3ff80000
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) = 0x3fdcf000
1 mprotect(0x3ff45000,61440,PROT_NONE) = 0
1 mmap2(0x3ff54000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x175) = 0x3ff54000
1 mmap2(0x3ff5b000,8320,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ff5b000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e3b4,512) = 512
1 prctl(46,12,1081205684,512,1073770496,0) = 0
1 _llseek(3,0,768,0x4071e168,SEEK_SET) = 0
1 read(3,0x4071e198,32) = 32
1 fstat64(3,0x4071e278) = 0
1 mmap2(NULL,181232,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fda2000
1 mprotect(0x3fdbc000,61440,PROT_NONE) = 0
1 mmap2(0x3fdcb000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3fdcb000
1 mmap2(0x3fdcd000,5104,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3fdcd000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fda0000
1 set_thread_area(0x3fda7ac0) = 0
1 mprotect(0x3ff54000,16384,PROT_READ) = 0
1 mprotect(0x3fdcb000,4096,PROT_READ) = 0
1 mprotect(0x3ff80000,4096,PROT_READ) = 0
1 mprotect(0x3ffae000,4096,PROT_READ) = 0
1 mprotect(0x3ff95000,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 set_tid_address(0x3fda0698) = 1
1 set_robust_list(0x3fda06a0,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x4071ed88,NULL) = 0
1 rt_sigaction(33,0x4071ed88,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x4071edd0,NULL,16) = 0
1 getrlimit(3,0x4071ee58) = 0
1 rt_sigaction(SIGPIPE,0x4071ecd0,0x4071ecb0) = 0
1 epoll_create(32) = 3
1 fcntl64(3,F_GETFD) = 0
1 fcntl64(3,F_SETFD,1) = 0
1 pipe(1081208344,2,1073442864,0,0,0) = 4
1 fcntl64(4,F_GETFD) = 0
1 fcntl64(4,F_SETFD,1) = 0
1 fcntl64(4,F_GETFL) = 0
1 fcntl64(4,F_SETFL,O_RDONLY|O_NONBLOCK) = 0
1 fcntl64(5,F_GETFD) = 0
1 fcntl64(5,F_SETFD,1) = 0
1 fcntl64(5,F_GETFL) = 1
1 fcntl64(5,F_SETFL,O_WRONLY|O_NONBLOCK) = 0
1 fcntl64(4,F_GETFL) = 128
1 fcntl64(4,F_SETFL,O_RDONLY|O_NONBLOCK) = 0
1 epoll_ctl(3,1,4,1081208288,0,0) = 0
1 rt_sigaction(SIGINT,NULL,0x4071ec38) = 0
1 rt_sigaction(SIGINT,0x4071ec58,NULL) = 0
1 rt_sigaction(SIGTERM,NULL,0x4071ec38) = 0
1 rt_sigaction(SIGTERM,0x4071ec58,NULL) = 0
1 rt_sigaction(SIGCHLD,NULL,0x4071ec38) = 0
1 rt_sigaction(SIGCHLD,0x4071ec58,NULL) = 0
1 rt_sigaction(SIGPIPE,NULL,0x4071ecf8) = 0
1 brk(NULL) = 0x00413680
1 brk(0x00434680) = 0x00434680
1 brk(0x00435000) = 0x00435000
1 unlink("/dev/log") = -1 errno=2 (No such file or directory)
1 socket(PF_UNIX,SOCK_DGRAM,IPPROTO_IP) = 6
1 fcntl64(6,F_GETFD) = 0
1 fcntl64(6,F_SETFD,1) = 0
1 fcntl64(6,F_GETFL) = 2
1 fcntl64(6,F_SETFL,O_RDWR|O_NONBLOCK) = 0
1 setsockopt(6,65535,4,0x4071ed48,0x4) = 0
1 bind(6,{sun_family=AF_UNIX,sun_path="/dev/log"}, 110) = 0
1 chmod("/dev/log",0666) = 0
1 fcntl64(6,F_GETFL) = 130
1 fcntl64(6,F_SETFL,O_RDWR|O_NONBLOCK) = 0
1 epoll_ctl(3,1,6,1081208312,0,0) = 0
1 openat(AT_FDCWD,"/proc/kmsg",O_RDONLY|O_NONBLOCK) = 7
1 fcntl64(7,F_GETFD) = 0
1 fcntl64(7,F_SETFD,1) = 0
1 fcntl64(7,F_GETFL) = 128
1 fcntl64(7,F_SETFL,O_RDONLY|O_NONBLOCK) = 0
1 epoll_ctl(3,1,7,1081208240,0,0) = 0
1 rt_sigaction(SIGINT,NULL,0x4071ebc0) = 0
1 rt_sigaction(SIGTERM,NULL,0x4071ebc0) = 0
1 rt_sigaction(SIGCHLD,NULL,0x4071ebc0) = 0
1 rt_sigaction(SIGPIPE,NULL,0x4071ec80) = 0
1 socket(PF_UNIX,SOCK_STREAM,IPPROTO_IP) = 8
1 fcntl64(8,F_GETFD) = 0
1 fcntl64(8,F_SETFD,1) = 0
1 connect(8,0x4071ecf0,110) = -1 errno=2 (No such file or directory)
1 close(8) = 0
1 clock_gettime(CLOCK_MONOTONIC,0x4071edb8) = 0 ({tv_sec = 299283,tv_nsec = 595757060})
1 write(2,0x3ff85b20,26)failed to connect to ubus
 = 26
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299283,tv_nsec = 596574014})
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299283,tv_nsec = 596647363})
1 epoll_wait(3,1073411080,10,1000,0,0) = 1
1 recv(6,0x413220,1023,0) = 67
1 clock_gettime(CLOCK_REALTIME,0x00415fc0) = 0 ({tv_sec = 1690095956,tv_nsec = 606602144})
1 recv(6,0x413220,1023,0) = -1 errno=11 (Resource temporarily unavailable)
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299283,tv_nsec = 915644615})
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299283,tv_nsec = 915659473})
1 epoll_wait(3,1073411080,10,681,0,0) = 1
1 recv(6,0x413220,1023,0) = 67
1 clock_gettime(CLOCK_REALTIME,0x00416008) = 0 ({tv_sec = 1690095957,tv_nsec = 142731472})
1 recv(6,0x413220,1023,0) = -1 errno=11 (Resource temporarily unavailable)
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299284,tv_nsec = 451603947})
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299284,tv_nsec = 451617877})
1 epoll_wait(3,1073411080,10,144,0,0)
 = 0
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299284,tv_nsec = 598704172})
1 rt_sigaction(SIGINT,NULL,0x4071eb78) = 0
1 rt_sigaction(SIGTERM,NULL,0x4071eb78) = 0
1 rt_sigaction(SIGCHLD,NULL,0x4071eb78) = 0
1 rt_sigaction(SIGPIPE,NULL,0x4071ec38) = 0
1 socket(PF_UNIX,SOCK_STREAM,IPPROTO_IP) = 8
1 fcntl64(8,F_GETFD) = 0
1 fcntl64(8,F_SETFD,1) = 0
1 connect(8,0x4071eca8,110) = -1 errno=2 (No such file or directory)
1 close(8) = 0
1 clock_gettime(CLOCK_MONOTONIC,0x4071ed70) = 0 ({tv_sec = 299284,tv_nsec = 598972676})
1 write(2,0x3ff85b20,26)failed to connect to ubus
 = 26
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299284,tv_nsec = 599062590})
1 epoll_wait(3,1073411080,10,1000,0,0) = 1
1 recv(6,0x413220,1023,0) = 67
1 clock_gettime(CLOCK_REALTIME,0x00416050) = 0 ({tv_sec = 1690095957,tv_nsec = 480336072})
1 recv(6,0x413220,1023,0) = -1 errno=11 (Resource temporarily unavailable)
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299284,tv_nsec = 789212320})
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299284,tv_nsec = 789226600})
1 epoll_wait(3,1073411080,10,810,0,0)[*] Identification of missing filesytem areas.
[*] Found missing area: /etc/ld.so.cache
 = 1
1 recv(6,0x413220,1023,0) = 67
1 clock_gettime(CLOCK_REALTIME,0x00416098) = 0 ({tv_sec = 1690095957,tv_nsec = 991326324})
1 recv(6,0x413220,1023,0) = -1 errno=11 (Resource temporarily unavailable)
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299285,tv_nsec = 300199078})
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299285,tv_nsec = 300212980})
1 epoll_wait(3,1073411080,10,298,0,0)[*] Trying to identify this missing file: ld.so.cache
 = 1
1 recv(6,0x413220,1023,0) = 72
1 clock_gettime(CLOCK_REALTIME,0x004160e0) = 0 ({tv_sec = 1690095958,tv_nsec = 33853895})
1 recv(6,0x413220,1023,0) = -1 errno=11 (Resource temporarily unavailable)
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299285,tv_nsec = 342726791})
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299285,tv_nsec = 342741323})
1 epoll_wait(3,1073411080,10,256,0,0) = 0
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299285,tv_nsec = 599053793})
1 rt_sigaction(SIGINT,NULL,0x4071eb78) = 0
1 rt_sigaction(SIGTERM,NULL,0x4071eb78) = 0
1 rt_sigaction(SIGCHLD,NULL,0x4071eb78) = 0
1 rt_sigaction(SIGPIPE,NULL,0x4071ec38) = 0
1 socket(PF_UNIX,SOCK_STREAM,IPPROTO_IP) = 8
1 fcntl64(8,F_GETFD) = 0
1 fcntl64(8,F_SETFD,1) = 0
1 connect(8,0x4071eca8,110) = 0
1 read(8,0x4071ed50,12) = 12
1 read(8,0x42c104,0) = 0
1 fcntl64(8,F_GETFL) = 2
1 fcntl64(8,F_SETFL,O_RDWR|O_NONBLOCK|O_CLOEXEC) = 0
1 sendmsg(8,1081207904,0,6,0,0) = 120
1 poll(0x4071ecc8,1,-1) = 1
1 recvmsg(8,0x4071ec18,0) = 12
1 poll(0x4071ec34,1,-1) = 1
1 recvmsg(8,0x4071ec18,0) = 16
1 recvmsg(8,0x4071ec18,0) = -1 errno=11 (Resource temporarily unavailable)
1 poll(0x4071ecc8,1,-1) = 1
1 recvmsg(8,0x4071ec18,0) = 12
1 poll(0x4071ec34,1,-1) = 1
1 recvmsg(8,0x4071ec18,0) = 8
1 write(2,0x401b00,23)log: connected to ubus
 = 23
1 epoll_ctl(3,1,8,1081208200,0,0) = 0
1 clock_gettime(CLOCK_MONOTONIC,0x4071edc0) = 0 ({tv_sec = 299285,tv_nsec = 617068035})
1 epoll_wait(3,1073411080,10,-1,0,0)[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/ld.so.cache

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