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

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

[*] Emulating binary name: uclient-fetch 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) = 0x004130f0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3ffc8000
1 uname(0x4071e6e0) = 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/libuclient.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/lib/tls",0x4071e318) = 0
1 openat(AT_FDCWD,"/lib/libuclient.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/lib",0x4071e318) = 0
1 openat(AT_FDCWD,"/usr/lib/tls/libuclient.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib/tls",0x4071e318) = 0
1 openat(AT_FDCWD,"/usr/lib/libuclient.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e464,512) = 512
1 prctl(46,8,1081205860,512,1073770496,0) = 0
1 fstat64(3,0x4071e328) = 0
1 mmap2(NULL,82240,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ffb3000
1 mprotect(0x3ffb7000,61440,PROT_NONE) = 0
1 mmap2(0x3ffc6000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x3) = 0x3ffc6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libubox.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e44c,512) = 512
1 prctl(46,8,1081205836,512,1073770496,0) = 0
1 fstat64(3,0x4071e310) = 0
1 mmap2(NULL,99696,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff9a000
1 mprotect(0x3ffa2000,61440,PROT_NONE) = 0
1 mmap2(0x3ffb1000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x7) = 0x3ffb1000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libdl.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e434,512) = 512
1 prctl(46,9,1081205812,512,1073770496,0) = 0
1 _llseek(3,0,680,0x4071e1f0,SEEK_SET) = 0
1 read(3,0x4071e220,32) = 32
1 fstat64(3,0x4071e2f8) = 0
1 mmap2(NULL,73952,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff87000
1 mprotect(0x3ff89000,61440,PROT_NONE) = 0
1 mmap2(0x3ff98000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3ff98000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgcc_s.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e41c,512) = 512
1 prctl(46,9,1081205788,512,1073770496,0) = 0
1 fstat64(3,0x4071e2e0) = 0
1 mmap2(NULL,144160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff63000
1 mprotect(0x3ff76000,61440,PROT_NONE) = 0
1 mmap2(0x3ff85000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x12) = 0x3ff85000
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,0x4071e404,512) = 512
1 prctl(46,13,1081205764,512,1073770496,0) = 0
1 _llseek(3,0,792,0x4071e1c0,SEEK_SET) = 0
1 read(3,0x4071e1f0,32) = 32
1 fstat64(3,0x4071e2c8) = 0
1 mmap2(NULL,1630336,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fdd4000
1 mprotect(0x3ff4a000,61440,PROT_NONE) = 0
1 mmap2(0x3ff59000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x175) = 0x3ff59000
1 mmap2(0x3ff60000,8320,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ff60000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fdd2000
1 set_thread_area(0x3fdd94a0) = 0
1 mprotect(0x3ff59000,16384,PROT_READ) = 0
1 mprotect(0x3ff85000,4096,PROT_READ) = 0
1 mprotect(0x3ff98000,4096,PROT_READ) = 0
1 mprotect(0x3ffb1000,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 rt_sigaction(SIGPIPE,0x4071ec20,0x4071ec00) = 0
1 openat(AT_FDCWD,"/lib/tls/libustream-ssl.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/libustream-ssl.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/tls/libustream-ssl.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/libustream-ssl.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/tls/libustream-ssl.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib/tls",0x4071e5e0) = 0
1 openat(AT_FDCWD,"/usr/lib/libustream-ssl.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib",0x4071e5e0) = 0
1 brk(NULL) = 0x004130f0
1 brk(0x004340f0) = 0x004340f0
1 brk(0x00435000) = 0x00435000
1 write(2,0x4071c788,763)Usage: ./bin/uclient-fetch [options] <URL>
Options:
	-4				Use IPv4 only
	-6				Use IPv6 only
	-q				Turn off status messages
	-O <file>			Redirect output to file (use "-" for stdout)
	-P <dir>			Set directory for output files
	--user=<user>			HTTP authentication username
	--password=<password>		HTTP authentication password
	--user-agent|-U <str>		Set HTTP user agent
	--post-data=STRING		use the POST method; send STRING as the data
	--spider|-s			Spider mode - only check file existence
	--timeout=N|-T N		Set connect/request timeout to N seconds
	--proxy=on|off|-Y on|off	Enable/disable env var configured proxy

HTTPS options:
	--ca-certificate=<cert>		Load CA certificates from file <cert>
	--no-check-certificate		don't validate the server's certificate

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

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