]> cvs.zerfleddert.de Git - rsbs2/blobdiff - firmware.c
search for compressed sections in firmware image
[rsbs2] / firmware.c
index 0595bd9645ed973ad0ee01463c06f61de534dcc7..706a8336ff09eb07273a29283dc6be4f77380246 100644 (file)
@@ -8,6 +8,7 @@
 #include <string.h>
 #include <strings.h>
 #include "rsb-crc.h"
 #include <string.h>
 #include <strings.h>
 #include "rsb-crc.h"
+#include "rsb-lz.h"
 
 #define FINDSTR(addr, str) (!strncmp((char*)addr, str, strlen(str)))
 
 
 #define FINDSTR(addr, str) (!strncmp((char*)addr, str, strlen(str)))
 
@@ -236,13 +237,8 @@ void handle_boarddescription(unsigned char *fw, int len, int patch)
                        }
 
                        if (patch) {
                        }
 
                        if (patch) {
-                               /* Enable ATX and relay power switching */
-                               BD_SET(pos, PWRATX);
+                               /* Enable relay power switching */
                                BD_SET(pos, PWRRELAY);
                                BD_SET(pos, PWRRELAY);
-                               /* Serial */
-                               BD_SET(pos, SERIAL2);
-                               /* ATX standby */
-                               BD_SET(pos, STANDBY);
                        }
                        printf("0x%08x: BOARD_DESCRIPTION: ", pos-fw);
                        print_boarddescription(pos);
                        }
                        printf("0x%08x: BOARD_DESCRIPTION: ", pos-fw);
                        print_boarddescription(pos);
@@ -457,6 +453,7 @@ int main(int argc, char **argv)
        if (showall) {
                show_properties(fw, statbuf.st_size - 4);
                handle_boarddescription(fw, statbuf.st_size -4, 0);
        if (showall) {
                show_properties(fw, statbuf.st_size - 4);
                handle_boarddescription(fw, statbuf.st_size -4, 0);
+               search_lz_sections(fw, statbuf.st_size - 4);
        }
 
        if (update_crc || patch_fw || patch_bd) {
        }
 
        if (update_crc || patch_fw || patch_bd) {
Impressum, Datenschutz