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

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

[*] Emulating binary name: opkg 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/4325012-58052244.squashfs_v4_le_extract (1/2)
[*] Using CPU config: 

--- SIGILL {si_signo=SIGILL, si_code=SI_KERNEL, si_pid=0, si_uid=0} ---
qemu: uncaught target signal 4 (Illegal instruction) - core dumped

[*] Identification of missing filesytem areas.
[*] No missing areas found.

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


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

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

[*] Emulating binary name: opkg 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/4325012-58052244.squashfs_v4_le_extract/usr (2/2)
[*] Using CPU config: 24KEc

1 brk(NULL) = 0x40015490
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f7c7000
1 uname(0x3ff1d6d0) = 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/libopkg.so.1",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/lib/tls",0x3ff1d320) = 0
1 openat(AT_FDCWD,"/lib/libopkg.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d464,512) = 512
1 prctl(46,1072813464,1072813156,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d320) = 0
1 mmap2(NULL,253152,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f789000
1 mprotect(0x3f7b6000,61440,PROT_NONE) = 0
1 mmap2(0x3f7c5000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2c) = 0x3f7c5000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d454,512) = 512
1 prctl(46,1072813576,1072813140,512,1065377792,0) = 0
1 _llseek(3,0,760,0x3ff1d228,SEEK_SET) = 0
1 read(3,0x3ff1d258,32) = 32
1 fstat64(3,0x3ff1d310) = 0
1 mmap2(NULL,1593152,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f604000
1 mprotect(0x3f771000,61440,PROT_NONE) = 0
1 mmap2(0x3f780000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x16c) = 0x3f780000
1 mmap2(0x3f787000,8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f787000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libarchive.so.13",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/libarchive.so.13",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d394,512) = 512
1 prctl(46,1072813256,1072812948,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d250) = 0
1 mmap2(NULL,811184,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f53d000
1 mprotect(0x3f5f1000,61440,PROT_NONE) = 0
1 mmap2(0x3f600000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xb3) = 0x3f600000
1 mmap2(0x3f603000,176,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f603000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/liblzo2.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/liblzo2.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2d4,512) = 512
1 prctl(46,1072813032,1072812756,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d190) = 0
1 mmap2(NULL,184560,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f50f000
1 mprotect(0x3f52c000,61440,PROT_NONE) = 0
1 mmap2(0x3f53b000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1c) = 0x3f53b000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/liblzma.so.5",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/liblzma.so.5",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2c4,512) = 512
1 prctl(46,1072813016,1072812740,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d180) = 0
1 mmap2(NULL,217776,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f4d9000
1 mprotect(0x3f4fe000,61440,PROT_NONE) = 0
1 mmap2(0x3f50d000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x24) = 0x3f50d000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libbz2.so.1",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/libbz2.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2b4,512) = 512
1 prctl(46,1072813000,1072812724,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d170) = 0
1 mmap2(NULL,138528,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f4b7000
1 mprotect(0x3f4c8000,61440,PROT_NONE) = 0
1 mmap2(0x3f4d7000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x10) = 0x3f4d7000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libz.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d2a4,512) = 512
1 prctl(46,1072813016,1072812708,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d160) = 0
1 mmap2(NULL,155984,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f490000
1 mprotect(0x3f4a5000,65536,PROT_NONE) = 0
1 mmap2(0x3f4b5000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x15) = 0x3f4b5000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libxml2.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d294,512) = 512
1 prctl(46,1072813000,1072812692,512,1065377792,0) = 0
1 fstat64(3,0x3ff1d150) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f48e000
1 mmap2(NULL,1619780,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f302000
1 mprotect(0x3f477000,65536,PROT_NONE) = 0
1 mmap2(0x3f487000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x175) = 0x3f487000
1 mmap2(0x3f48d000,1860,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f48d000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d284,512) = 512
1 prctl(46,1072813080,1072812676,512,1065377792,0) = 0
1 _llseek(3,0,768,0x3ff1d050,SEEK_SET) = 0
1 read(3,0x3ff1d080,32) = 32
1 fstat64(3,0x3ff1d140) = 0
1 mmap2(NULL,181248,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f2d5000
1 mprotect(0x3f2ef000,61440,PROT_NONE) = 0
1 mmap2(0x3f2fe000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3f2fe000
1 mmap2(0x3f300000,5120,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f300000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libdl.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d274,512) = 512
1 prctl(46,1072812968,1072812660,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1d048,SEEK_SET) = 0
1 read(3,0x3ff1d078,32) = 32
1 fstat64(3,0x3ff1d130) = 0
1 mmap2(NULL,73968,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f2c2000
1 mprotect(0x3f2c4000,61440,PROT_NONE) = 0
1 mmap2(0x3f2d3000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3f2d3000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libm.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d264,512) = 512
1 prctl(46,1072812952,1072812644,512,1065377792,0) = 0
1 _llseek(3,0,648,0x3ff1d038,SEEK_SET) = 0
1 read(3,0x3ff1d068,32) = 32
1 fstat64(3,0x3ff1d120) = 0
1 mmap2(NULL,1078320,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f1ba000
1 mprotect(0x3f2b1000,61440,PROT_NONE) = 0
1 mmap2(0x3f2c0000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xf6) = 0x3f2c0000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3f1b8000
1 set_thread_area(0x3f1bf6a0) = 0
1 mprotect(0x3f780000,16384,PROT_READ) = 0
1 mprotect(0x3f2c0000,4096,PROT_READ) = 0
1 mprotect(0x3f2d3000,4096,PROT_READ) = 0
1 mprotect(0x3f2fe000,4096,PROT_READ) = 0
1 mprotect(0x3f4b5000,4096,PROT_READ) = 0
1 mprotect(0x3f487000,16384,PROT_READ) = 0
1 mprotect(0x3f4d7000,4096,PROT_READ) = 0
1 mprotect(0x3f50d000,4096,PROT_READ) = 0
1 mprotect(0x3f53b000,4096,PROT_READ) = 0
1 mprotect(0x3f600000,8192,PROT_READ) = 0
1 mprotect(0x3f7c5000,4096,PROT_READ) = 0
1 mprotect(0x40014000,4096,PROT_READ) = 0
1 mprotect(0x3f7fd000,4096,PROT_READ) = 0
1 set_tid_address(0x3f1b8278) = 1
1 set_robust_list(0x3f1b8280,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x3ff1dd20,NULL) = 0
1 rt_sigaction(33,0x3ff1dd20,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x3ff1dd68,NULL,16) = 0
1 getrlimit(3,0x3ff1ddf0) = 0
1 write(2,0x400039b4,40)opkg must have one sub-command argument
 = 40
1 fstat64(1,0x3ff1dc08) = 0
1 brk(NULL) = 0x40015490
1 brk(0x40037490) = 0x40037490
1 brk(0x40038000) = 0x40038000
1 write(1,0x40015498,4096)usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
	update                          Update list of available packages
	upgrade                         Upgrade installed packages
	install <pkgs>                  Install package(s)
	configure <pkgs>                Configure unpacked package(s)
	remove <pkgs|glob>              Remove package(s)
	clean                           Clean internal cache
	flag <flag> <pkgs>              Flag package(s)
	 <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

Informational Commands:
	list                            List available packages
	list-installed                  List installed packages
	list-upgradable                 List installed and upgradable packages
	list-changed-conffiles          List user modified configuration files
	files <pkg>                     List files belonging to <pkg>
	search <file|glob>              List package providing <file>
	find <regexp>                   List packages with names or description matching <regexp>
	info [pkg|glob]                 Display all info for <pkg>
	status [pkg|glob]               Display all status for <pkg>
	download <pkg>                  Download <pkg> to current directory
	compare-versions <v1> <op> <v2>
	                                compare versions using <= < > >= = << >>
	print-architecture              List installable package architectures
	depends [-A] [pkgname|glob]+
	whatdepends [-A] [pkgname|glob]+
	whatdependsrec [-A] [pkgname|glob]+
	whatrecommends[-A] [pkgname|glob]+
	whatsuggests[-A] [pkgname|glob]+
	whatprovides [-A] [pkgname|glob]+
	whatconflicts [-A] [pkgname|glob]+
	whatreplaces [-A] [pkgname|glob]+

Options:
	-A                              Query all packages not just those installed
	-V[<level>]                     Set verbosity level to <level>.
	--verbosity[=<level>]           Verbosity levels:
	                                  0 errors only
	                                  1 normal messages (default)
	                                  2 informative messages
	                                  3 debug
	                                  4 debug level 2
	-f <conf_file>                  Use <conf_file> as the opkg configuration file
	--conf <conf_file>
	--cache-dir <path>              Specify cache directory.
	-t, --tmp-dir <directory>       Specify tmp-dir.
	-l, --lists-dir <directory>     Specify lists-dir.
	-d <dest_name>                  Use <dest_name> as the the root directory for
	--dest <dest_name>              package installation, removal, upgrading.
	                                <dest_name> should be a defined dest name from
	                                the configuration file, (but can also be a
	                                directory name in a pinch).
	-o <dir>                        Use <dir> as the root directory for
	--offline-root <dir>            offline installation of packages.
	--add-dest <name>:<path>        Register destination with given path
	--add-arch <arch>:<prio>        Register architecture with given priority
	--add-exclude <name>            Register package to be excluded from install
	--add-ignore-recommends <name>  Register package to be ignored as a recomendee
	--prefer-arch-to-version        Use the architecture priority package rather
	                                than the higher version one if more
	                                than one candidate is found.
	--combine                       Combine upgrade and install operations, this
	                                may be needed to resolve dependency issues.
	                                Only available for the internal solver backend.
	--fields <field1>,<field2>      Limit display information to the specified fields
	                                plus the package name. Valid for info and status.
	--short-description             Display only the first line of the description.
	--size                          Print package size when listing available packages

Force Options:
	--force-depends                 Install/remove de = 4096
1 write(1,0x40015498,1397)spite failed dependencies
	--force-maintainer              Overwrite preexisting config files
	--force-reinstall               Reinstall package(s)
	--force-overwrite               Overwrite files from other package(s)
	--force-downgrade               Allow opkg to downgrade packages
	--force-space                   Disable free space checks
	--force-postinstall             Run postinstall scripts even in offline mode
	--force-remove                  Remove package even if prerm script fails
	--force-checksum                Don't fail on checksum mismatches
	--noaction                      No action -- test only
	--download-only                 No action -- download only
	--nodeps                        Do not follow dependencies
	--no-install-recommends         Do not install any recommended packages
	--force-removal-of-dependent-packages
	                                Remove package and all dependencies
	--autoremove                    Remove packages that were installed
	                                automatically to satisfy dependencies
	--host-cache-dir                Don't place cache in offline root dir.
	--volatile-cache                Use volatile cache.
	                                Volatile cache will be cleared on exit

 glob could be something like 'pkgname*' '*file*' or similar
 e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'
 = 1397
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/4325012-58052244.squashfs_v4_le_extract/usr/etc/ld.so.cache
[*] Found missing area: /lib/tls/libarchive.so.13
[*] Trying to identify this missing file: libarchive.so.13
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libarchive.so.13
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libarchive.so.13 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/tls/
[*] Found missing area: /lib/tls/libbz2.so.1
[*] Trying to identify this missing file: libbz2.so.1
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libbz2.so.1
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libbz2.so.1 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/tls/
[*] Found missing area: /lib/tls/liblzma.so.5
[*] Trying to identify this missing file: liblzma.so.5
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/liblzma.so.5
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/liblzma.so.5 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/tls/
[*] Found missing area: /lib/tls/liblzo2.so.2
[*] Trying to identify this missing file: liblzo2.so.2
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/liblzo2.so.2
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/liblzo2.so.2 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/tls/
[*] Found missing area: /lib/tls/libopkg.so.1
[*] Trying to identify this missing file: libopkg.so.1
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libopkg.so.1
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libopkg.so.1 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/tls/

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