-----------------------------------------------------------------
[*] Initial strace run with jchroot on the command ./usr/sbin/odhcpd to identify missing areas
[*] Emulating binary name: odhcpd 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) = 0x0041c3a0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3ffc8000
1 uname(0x4071e720) = 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/libresolv.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e4a4,512) = 512
1 prctl(46,9,1081205924,512,1073770496,0) = 0
1 _llseek(3,0,648,0x4071e258,SEEK_SET) = 0
1 read(3,0x4071e288,32) = 32
1 fstat64(3,0x4071e368) = 0
1 mmap2(NULL,149696,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ffa3000
1 mprotect(0x3ffb5000,61440,PROT_NONE) = 0
1 mmap2(0x3ffc4000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x11) = 0x3ffc4000
1 mmap2(0x3ffc6000,6336,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ffc6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libubox.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e48c,512) = 512
1 prctl(46,8,1081205900,512,1073770496,0) = 0
1 fstat64(3,0x4071e350) = 0
1 mmap2(NULL,99696,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff8a000
1 mprotect(0x3ff92000,61440,PROT_NONE) = 0
1 mmap2(0x3ffa1000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x7) = 0x3ffa1000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libuci.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e474,512) = 512
1 prctl(46,8,1081205876,512,1073770496,0) = 0
1 fstat64(3,0x4071e338) = 0
1 mmap2(NULL,94880,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff72000
1 mprotect(0x3ff79000,61440,PROT_NONE) = 0
1 mmap2(0x3ff88000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3ff88000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libnl-tiny.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e45c,512) = 512
1 prctl(46,8,1081205852,512,1073770496,0) = 0
1 fstat64(3,0x4071e320) = 0
1 mmap2(NULL,91168,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff5b000
1 mprotect(0x3ff61000,61440,PROT_NONE) = 0
1 mmap2(0x3ff70000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x5) = 0x3ff70000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libubus.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e444,512) = 512
1 prctl(46,8,1081205828,512,1073770496,0) = 0
1 fstat64(3,0x4071e308) = 0
1 mmap2(NULL,82560,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff46000
1 mprotect(0x3ff4a000,61440,PROT_NONE) = 0
1 mmap2(0x3ff59000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x3) = 0x3ff59000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgcc_s.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e42c,512) = 512
1 prctl(46,9,1081205804,512,1073770496,0) = 0
1 fstat64(3,0x4071e2f0) = 0
1 mmap2(NULL,144160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff22000
1 mprotect(0x3ff35000,61440,PROT_NONE) = 0
1 mmap2(0x3ff44000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x12) = 0x3ff44000
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,0x4071e414,512) = 512
1 prctl(46,13,1081205780,512,1073770496,0) = 0
1 _llseek(3,0,792,0x4071e1d0,SEEK_SET) = 0
1 read(3,0x4071e200,32) = 32
1 fstat64(3,0x4071e2d8) = 0
1 mmap2(NULL,1630336,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fd93000
1 mprotect(0x3ff09000,61440,PROT_NONE) = 0
1 mmap2(0x3ff18000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x175) = 0x3ff18000
1 mmap2(0x3ff1f000,8320,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ff1f000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fd91000
1 set_thread_area(0x3fd98c60) = 0
1 mprotect(0x3ff18000,16384,PROT_READ) = 0
1 mprotect(0x3ff44000,4096,PROT_READ) = 0
1 mprotect(0x3ffa1000,4096,PROT_READ) = 0
1 mprotect(0x3ff59000,4096,PROT_READ) = 0
1 mprotect(0x3ff70000,4096,PROT_READ) = 0
1 mprotect(0x3ff88000,4096,PROT_READ) = 0
1 mprotect(0x3ffc4000,4096,PROT_READ) = 0
1 mprotect(0x0041b000,4096,PROT_READ) = 0
1 mprotect(0x3fffe000,4096,PROT_READ) = 0
1 epoll_create(32) = 3
1 fcntl64(3,F_GETFD) = 0
1 fcntl64(3,F_SETFD,1) = 0
1 pipe(1081208312,2,1073389616,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,1081208256,0,0) = 0
1 rt_sigaction(SIGINT,NULL,0x4071ec18) = 0
1 rt_sigaction(SIGINT,0x4071ec38,NULL) = 0
1 rt_sigaction(SIGTERM,NULL,0x4071ec18) = 0
1 rt_sigaction(SIGTERM,0x4071ec38,NULL) = 0
1 rt_sigaction(SIGCHLD,NULL,0x4071ec18) = 0
1 rt_sigaction(SIGCHLD,0x4071ec38,NULL) = 0
1 rt_sigaction(SIGPIPE,NULL,0x4071ecd8) = 0
1 rt_sigaction(SIGPIPE,0x4071ecf8,NULL) = 0
1 getuid() = 0
1 socket(PF_INET,SOCK_DGRAM|SOCK_CLOEXEC,IPPROTO_IP) = 6
1 openat(AT_FDCWD,"/dev/urandom",O_RDONLY|O_CLOEXEC) = 7
1 rt_sigaction(SIGUSR1,0x4071ecb0,0x4071ec90) = 0
1 rt_sigaction(SIGINT,0x4071ecb0,0x4071ec90) = 0
1 rt_sigaction(SIGTERM,0x4071ecb0,0x4071ec90) = 0
1 brk(NULL) = 0x0041c3a0
1 brk(0x0043d3a0) = 0x0043d3a0
1 brk(0x0043e000) = 0x0043e000
1 time(0,0,1073189232,4310420,0,0) = 1690095926
1 getpid() = 1
1 socket(PF_NETLINK,SOCK_RAW,NETLINK_ROUTE) = 8
1 setsockopt(8,65535,4097,0x4071ed88,0x4) = 0
1 setsockopt(8,65535,4098,0x4071ed84,0x4) = 0
1 bind(8,{nl_family=AF_NETLINK,nl_pid=1,nl_groups=0}, 12) = 0
1 getsockname(8,0x41c560,0x4071ed98) = 0
1 time(0,0,1073189232,4310588,0,0) = 1690095926
1 getpid() = 1
1 socket(PF_NETLINK,SOCK_RAW,NETLINK_ROUTE) = 9
1 setsockopt(9,65535,4097,0x4071ed88,0x4) = 0
1 setsockopt(9,65535,4098,0x4071ed84,0x4) = 0
1 bind(9,{nl_family=AF_NETLINK,nl_pid=4194305,nl_groups=0}, 12) = 0
1 getsockname(9,0x41c608,0x4071ed98) = 0
1 setsockopt(9,65535,4097,0x4071ede0,0x4) = 0
1 setsockopt(9,65535,4098,0x4071eddc,0x4) = 0
1 setsockopt(9,270,1,0x4071eddc,0x4) = 0
1 setsockopt(9,270,1,0x4071eddc,0x4) = 0
1 setsockopt(9,270,1,0x4071eddc,0x4) = 0
1 setsockopt(9,270,1,0x4071eddc,0x4) = 0
1 setsockopt(9,270,1,0x4071eddc,0x4) = 0
1 fcntl64(9,F_GETFL) = 2
1 fcntl64(9,F_SETFL,O_RDWR|O_NONBLOCK) = 0
1 epoll_ctl(3,1,9,1081208216,0,0) = 0
1 socket(10,SOCK_DGRAM,IPPROTO_IP) = 10
1 close(10) = 0
1 socket(10,SOCK_RAW|SOCK_CLOEXEC,58) = 10
1 setsockopt(10,255,7,0x4071ee00,0x4) = 0
1 setsockopt(10,41,18,0x4071ee00,0x4) = 0
1 setsockopt(10,41,16,0x4071ee00,0x4) = 0
1 setsockopt(10,41,49,0x4071ee00,0x4) = 0
1 setsockopt(10,41,51,0x4071ee00,0x4) = 0
1 setsockopt(10,41,19,0x4071ee00,0x4) = 0
1 setsockopt(10,58,1,0x4071ede0,0x20) = 0
1 openat(AT_FDCWD,"/proc/net/ipv6_route",O_RDONLY) = 11
1 fcntl64(10,F_GETFL) = 2
1 fcntl64(10,F_SETFL,O_RDWR|O_NONBLOCK) = 0
1 epoll_ctl(3,1,10,1081208192,0,0) = 0
1 clock_gettime(CLOCK_MONOTONIC,0x4071eda0) = 0 ({tv_sec = 299254,tv_nsec = 160760128})
1 socket(10,SOCK_RAW|SOCK_CLOEXEC,58) = 12
1 setsockopt(12,255,7,0x4071edf8,0x4) = 0
1 setsockopt(12,41,18,0x4071edf8,0x4) = 0
1 setsockopt(12,41,16,0x4071edf8,0x4) = 0
1 setsockopt(12,58,1,0x4071edd8,0x20) = 0
1 pipe2(0x41c2e0,524416) = 0
1 fcntl64(13,F_GETFL) = 128
1 fcntl64(13,F_SETFL,O_RDONLY|O_NONBLOCK) = 0
1 epoll_ctl(3,1,13,1081208280,0,0) = 0
1 rt_sigaction(SIGTERM,0x4071ec90,0x4071ec70) = 0
1 rt_sigaction(SIGINT,0x4071ec90,0x4071ec70) = 0
1 rt_sigaction(SIGHUP,0x4071ec90,0x4071ec70) = 0
1 rt_sigaction(SIGINT,NULL,0x4071eb80) = 0
1 rt_sigaction(SIGTERM,NULL,0x4071eb80) = 0
1 rt_sigaction(SIGCHLD,NULL,0x4071eb80) = 0
1 rt_sigaction(SIGPIPE,NULL,0x4071ec40) = 0
1 socket(PF_UNIX,SOCK_STREAM,IPPROTO_IP) = 15
1 fcntl64(15,F_GETFD) = 0
1 fcntl64(15,F_SETFD,1) = 0
1 connect(15,0x4071ecb0,110) = -1 errno=2 (No such file or directory)
1 close(15) = 0
1 brk(0x0043d000) = 0x0043d000
1 time(0,1081208188,1,2130640638,0,0) = 1690095926
1 openat(AT_FDCWD,"/etc/localtime",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 getpid() = 1
1 writev(2,0x4071ed64,0x2)odhcpd[1]: Unable to connect to ubus: No such file or directory
= 64
1 socket(PF_UNIX,SOCK_DGRAM|SOCK_CLOEXEC,IPPROTO_IP) = 15
1 connect(15,0x3ff1f5d0,110) = -1 errno=2 (No such file or directory)
1 close(15) = 0
1 nanosleep(1081208272,1081208272,1,4311456,0,0)
= 0
1 rt_sigaction(SIGINT,NULL,0x4071eb80) = 0
1 rt_sigaction(SIGTERM,NULL,0x4071eb80) = 0
1 rt_sigaction(SIGCHLD,NULL,0x4071eb80) = 0
1 rt_sigaction(SIGPIPE,NULL,0x4071ec40) = 0
1 socket(PF_UNIX,SOCK_STREAM,IPPROTO_IP) = 15
1 fcntl64(15,F_GETFD) = 0
1 fcntl64(15,F_SETFD,1) = 0
1 connect(15,0x4071ecb0,110) = -1 errno=2 (No such file or directory)
1 close(15) = 0
1 time(0,1081208188,1,2130640638,0,0) = 1690095927
1 getpid() = 1
1 writev(2,0x4071ed64,0x2)odhcpd[1]: Unable to connect to ubus: No such file or directory
= 64
1 socket(PF_UNIX,SOCK_DGRAM|SOCK_CLOEXEC,IPPROTO_IP) = 15
1 connect(15,0x3ff1f5d0,110) = -1 errno=2 (No such file or directory)
1 close(15) = 0
1 nanosleep(1081208272,1081208272,2,4320040,0,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
= 0
1 rt_sigaction(SIGINT,NULL,0x4071eb80) = 0
1 rt_sigaction(SIGTERM,NULL,0x4071eb80) = 0
1 rt_sigaction(SIGCHLD,NULL,0x4071eb80) = 0
1 rt_sigaction(SIGPIPE,NULL,0x4071ec40) = 0
1 socket(PF_UNIX,SOCK_STREAM,IPPROTO_IP) = 15
1 fcntl64(15,F_GETFD) = 0
1 fcntl64(15,F_SETFD,1) = 0
1 connect(15,0x4071ecb0,110) = -1 errno=2 (No such file or directory)
1 close(15) = 0
1 time(0,1081208188,1,2130640638,0,0) = 1690095928
1 getpid() = 1
1 writev(2,0x4071ed64,0x2)odhcpd[1]: Unable to connect to ubus: No such file or directory
= 64
1 socket(PF_UNIX,SOCK_DGRAM|SOCK_CLOEXEC,IPPROTO_IP) = 15
1 connect(15,0x3ff1f5d0,110) = -1 errno=2 (No such file or directory)
1 close(15) = 0
1 nanosleep(1081208272,1081208272,3,4320128,0,0)[*] 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/
-----------------------------------------------------------------