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

[*] Initial CPU detection process of binary bmp2overlay with CPU configuration .

[*] Emulator used: qemu-mipsel-static
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract (1/2)

[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config NONE

[-] Emulation process of binary bmp2overlay with CPU configuration  failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 4Kc

[-] Emulation process of binary bmp2overlay with CPU configuration 4Kc failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 4Km

[-] Emulation process of binary bmp2overlay with CPU configuration 4Km failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 4KEcR1

[-] Emulation process of binary bmp2overlay with CPU configuration 4KEcR1 failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 4KEmR1

[-] Emulation process of binary bmp2overlay with CPU configuration 4KEmR1 failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 4KEc

[-] Emulation process of binary bmp2overlay with CPU configuration 4KEc failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 4KEm

[-] Emulation process of binary bmp2overlay with CPU configuration 4KEm failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 24Kc

[-] Emulation process of binary bmp2overlay with CPU configuration 24Kc failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 24KEc

[-] Emulation process of binary bmp2overlay with CPU configuration 24KEc failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 24Kf

[-] Emulation process of binary bmp2overlay with CPU configuration 24Kf failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 34Kf

[-] Emulation process of binary bmp2overlay with CPU configuration 34Kf failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config 74Kf

[-] Emulation process of binary bmp2overlay with CPU configuration 74Kf failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config M14K

[-] Emulation process of binary bmp2overlay with CPU configuration M14K failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config M14Kc

[-] Emulation process of binary bmp2overlay with CPU configuration M14Kc failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config P5600

[-] Emulation process of binary bmp2overlay with CPU configuration P5600 failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config mips32r6-generic

[-] Emulation process of binary bmp2overlay with CPU configuration mips32r6-generic failed
[*] Trying to emulate binary ./usr/bin/bmp2overlay with cpu config I7200

[-] Emulation process of binary bmp2overlay with CPU configuration I7200 failed

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


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

[*] Initial CPU detection process of binary bmp2overlay with CPU configuration 24KEc.

[*] Emulator used: qemu-mipsel-static
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr (2/2)

[*] Trying to emulate binary ./bin/bmp2overlay with cpu config 24KEc

1 brk(NULL) = 0x40016150
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/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x3ff1d464,512) = 512
1 prctl(46,1072813592,1072813156,512,1065377792,0) = 0
1 _llseek(3,0,760,0x3ff1d238,SEEK_SET) = 0
1 read(3,0x3ff1d268,32) = 32
1 fstat64(3,0x3ff1d320) = 0
1 mmap2(NULL,1593152,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3f642000
1 mprotect(0x3f7af000,61440,PROT_NONE) = 0
1 mmap2(0x3f7be000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x16c) = 0x3f7be000
1 mmap2(0x3f7c5000,8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3f7c5000
1 close(3) = 0
1 set_thread_area(0x3f7cf210) = 0
1 mprotect(0x3f7be000,16384,PROT_READ) = 0
1 mprotect(0x40015000,4096,PROT_READ) = 0
1 mprotect(0x3f7fd000,4096,PROT_READ) = 0
1 fstat64(1,0x3ff1d0f0) = 0
1 brk(NULL) = 0x40016150
1 brk(0x40038150) = 0x40038150
1 brk(0x40039000) = 0x40039000
1 time(0,1072813852,1,0,0,0) = 1689942977
1 openat(AT_FDCWD,"/etc/localtime",O_RDONLY|O_CLOEXEC) = 3
1 fstat64(3,0x3ff1d4e8) = 0
1 fstat64(3,0x3ff1d388) = 0
1 read(3,0x40019460,4096) = 148
1 _llseek(3,4294967295,4294967290,0x3ff1d398,SEEK_CUR) = 0
1 read(3,0x40019460,4096) = 6
1 close(3) = 0
1 getpid() = 1
1 socket(PF_UNIX,SOCK_DGRAM|SOCK_CLOEXEC,IPPROTO_IP) = 3
1 connect(3,0x3f7c54e0,110) = -1 errno=2 (No such file or directory)
1 close(3) = 0
1 write(1,0x40016158,823)USAGE: ./bin/bmp2overlay -dump-palette <inputfile.bmp> ¦ <palctrl> <inputfile.bmp> <outputfile>.

For 4 bit BMP images the palctrl file sould contain 16 rows, one for each palette index, defining control bits for each color. Two different 4 bit BMP formats are supported, 4 bit Windows BMP and 4 bit OS/2 BMP.

For 24 bit Windows BMP images the palctrl should contain one row only, on the form: f [colorcode] where colorcode is a color in the image that is to be made transparent. It is optional to use a color for transparency.Some examples of palctrl entries are shown below:

  f FF0A21
  p 0xff 0xff 0xff fullcolor solid normal
  i 0 fullcolor solid normal

color_proc options: fullcolor | halfcolor | nocolor
op_type options:    solid | halftransparent | transparent |lptransparent
lum_proc options:   normal | dark

 = 823
1 exit_group(4)
[+] CPU configuration used for bmp2overlay: 24KEc
CPU_CONFIG_det\KEc

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