Skip to content

Commit 32759d1

Browse files
authored
Merge pull request #9 from fkie-cad/senao
feat: added senao firmware
2 parents 2a2bf8b + d7a606b commit 32759d1

File tree

1 file changed

+152
-0
lines changed

1 file changed

+152
-0
lines changed

mime/firmware_containers

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,3 +778,155 @@
778778
>8 ubelong+0x120 x {size:%d}
779779
>12 ubelong x data CRC: 0x%08x,
780780
>16 string x key id: %.4s)
781+
782+
## Senao / EnGenius firmware containers
783+
784+
# Variant 1 (long header)
785+
92 ubelong 0x12345678
786+
>96 string all Senao firmware container,
787+
!:mime firmware/senao-v1a
788+
>>4 ubelong x vendor ID: %d,
789+
>>8 ubelong x product ID: %d,
790+
>>12 string x version: %s,
791+
>>28 ubelong x type: %d
792+
>>28 ubelong 1 (bootloader),
793+
>>28 ubelong 2 (kernel),
794+
>>28 ubelong 3 (kernelapp),
795+
>>28 ubelong 4 (apps),
796+
>>28 ubelong 5 (littleapps/factoryapps),
797+
>>28 ubelong 6 (sounds/littleapps),
798+
>>28 ubelong 7 (userconfig/appdata),
799+
>>28 ubelong 8 (userconfig),
800+
>>28 ubelong 9 (odmapps),
801+
>>28 ubelong 10 (factoryapps),
802+
>>28 ubelong 11 (odmapps),
803+
>>28 ubelong 12 (langpack),
804+
>>32 ubelong x size: %d,
805+
>>40 ubequad x chksum: %llx,
806+
>>92 ubelong x magic: 0x%x,
807+
>>0x84 ubelong 5
808+
>>>0x88 string x model: %.5s
809+
>>0x84 ubelong 6
810+
>>>0x88 string x model: %.6s
811+
>>0x84 ubelong 7
812+
>>>0x88 string x model: %.7s
813+
>>0x84 ubelong 8
814+
>>>0x88 string x model: %.8s
815+
>>0x84 ubelong 9
816+
>>>0x88 string x model: %.9s
817+
>>0x84 ubelong 10
818+
>>>0x88 string x model: %.10s
819+
>>0x84 ubelong 11
820+
>>>0x88 string x model: %.11s
821+
>>0x84 ubelong 12
822+
>>>0x88 string x model: %.12s
823+
>>0x84 ubelong 13
824+
>>>0x88 string x model: %.13s
825+
>>0x84 ubelong 14
826+
>>>0x88 string x model: %.14s
827+
828+
# Variant 1 (short header)
829+
92 ubelong 0x12345678
830+
>96 string !all Senao firmware container,
831+
!:mime firmware/senao-v1b
832+
>>4 ubelong x vendor ID: %d,
833+
>>8 ubelong x product ID: %d,
834+
>>12 string x version: %s,
835+
>>28 ubelong x type: %d
836+
>>28 ubelong 1 (bootloader),
837+
>>28 ubelong 2 (kernel),
838+
>>28 ubelong 3 (kernelapp),
839+
>>28 ubelong 4 (apps),
840+
>>28 ubelong 5 (littleapps/factoryapps),
841+
>>28 ubelong 6 (sounds/littleapps),
842+
>>28 ubelong 7 (userconfig/appdata),
843+
>>28 ubelong 8 (userconfig),
844+
>>28 ubelong 9 (odmapps),
845+
>>28 ubelong 10 (factoryapps),
846+
>>28 ubelong 11 (odmapps),
847+
>>28 ubelong 12 (langpack),
848+
>>32 ubelong x size: %d,
849+
>>40 ubequad x chksum: %llx,
850+
>>92 ubelong x magic: 0x%x
851+
852+
# Variant 2 (long header)
853+
180 ubelong 0x30471688 Senao firmware container,
854+
!:mime firmware/senao-v2a
855+
>0x3c ubelong x type: %d
856+
>0x3c ubelong 1 (bootloader),
857+
>0x3c ubelong 3 (kernel),
858+
>0x3c ubelong 5 (apps),
859+
>0x3c ubelong 7 (userconfig),
860+
>0x3c ubelong 11 (factoryapps),
861+
>0x3c ubelong 13 (langpack),
862+
>0x3c ubelong 15 (cust_logo),
863+
>0x3c ubelong 17 (cust_apps),
864+
>0x28 string x code version: %s,
865+
>0x0 string x vendor: %s,
866+
>0x8 string x model: %s,
867+
>0x62 ubelong x hardware ID: 0x%x,
868+
>0x66 string x version ID: %s,
869+
>0x7e ubequad x md5: %016llx,
870+
>0xb4 ubelong x magic: 0x%x
871+
872+
# Variant 2 (long header) alternative
873+
102 string "3047" Senao firmware container,
874+
!:mime firmware/senao-v2a
875+
>0x3c ubelong x type: %d
876+
>0x3c ubelong 1 (bootloader),
877+
>0x3c ubelong 3 (kernel),
878+
>0x3c ubelong 5 (apps),
879+
>0x3c ubelong 7 (userconfig),
880+
>0x3c ubelong 11 (factoryapps),
881+
>0x3c ubelong 13 (langpack),
882+
>0x3c ubelong 15 (cust_logo),
883+
>0x3c ubelong 17 (cust_apps),
884+
>0x28 string x code version: %s,
885+
>0x0 string x vendor: %s,
886+
>0x8 string x model: %s,
887+
>0x62 ubelong x hardware ID: 0x%x,
888+
>0x66 string x version ID: %s,
889+
>0x7e ubequad x md5: %016llx,
890+
>0xb4 ubelong x magic: 0x%x
891+
892+
# Variant 2 (short header)
893+
124 ubelong 0x30471688 Senao firmware container,
894+
!:mime firmware/senao-v2b
895+
>0x04 ubelong x type: %d
896+
>0x04 ubelong 1 (bootloader),
897+
>0x04 ubelong 3 (kernel),
898+
>0x04 ubelong 5 (apps),
899+
>0x04 ubelong 7 (userconfig),
900+
>0x04 ubelong 11 (factoryapps),
901+
>0x04 ubelong 13 (langpack),
902+
>0x04 ubelong 15 (cust_logo),
903+
>0x04 ubelong 17 (cust_apps),
904+
>0x19 string x code version: %s,
905+
>0x2a ubelong x hardware ID: 0x%x,
906+
>0x2e string x version ID: %s,
907+
>0x3e ubelong x comp_file_len: %d,
908+
>0x42 ubelong x comp_file_sum: 0x%x,
909+
>0x46 ubequad x md5: %016llx,
910+
>0x78 ubelong x header sum: 0x%x,
911+
>0x7c ubelong x magic: 0x%x
912+
913+
# Variant 2 (short header) alternative
914+
46 string "3047" Senao firmware container,
915+
!:mime firmware/senao-v2b
916+
>0x04 ubelong x type: %d
917+
>0x04 ubelong 1 (bootloader),
918+
>0x04 ubelong 3 (kernel),
919+
>0x04 ubelong 5 (apps),
920+
>0x04 ubelong 7 (userconfig),
921+
>0x04 ubelong 11 (factoryapps),
922+
>0x04 ubelong 13 (langpack),
923+
>0x04 ubelong 15 (cust_logo),
924+
>0x04 ubelong 17 (cust_apps),
925+
>0x19 string x code version: %s,
926+
>0x2a ubelong x hardware ID: 0x%x,
927+
>0x2e string x version ID: %s,
928+
>0x3e ubelong x comp_file_len: %d,
929+
>0x42 ubelong x comp_file_sum: 0x%x,
930+
>0x46 ubequad x md5: %016llx,
931+
>0x78 ubelong x header sum: 0x%x,
932+
>0x7c ubelong x magic: 0x%x

0 commit comments

Comments
 (0)