561d053
From 2fe1f3c5351ce7d757a0dd63607b67cdcbf235b3 Mon Sep 17 00:00:00 2001
561d053
From: Peter Lemenkov <lemenkov@gmail.com>
561d053
Date: Sat, 1 Aug 2009 21:08:01 +0400
561d053
Subject: [PATCH] Identification of some more BIOS images.
561d053
561d053
Subj. Actually, I'm sure this is an ugly patch. The proper way will be
561d053
the addition of some special search procedures and some commandline
561d053
switches to force using of specific extraction routines ( -f ami, -f award).
561d053
561d053
Anyway, here is a working patch for decoding Asus bioses.
561d053
561d053
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
561d053
561d053
diff --git a/bios_extract.c b/bios_extract.c
561d053
index 7b81c72..104232a 100644
561d053
--- a/bios_extract.c
561d053
+++ b/bios_extract.c
561d053
@@ -89,6 +89,11 @@ static struct {
561d053
     {"Award BootBlock", "= Award Decompression Bios =", AwardExtract},
561d053
     {"Phoenix FirstBIOS", "BCPSEGMENT", PhoenixExtract},
561d053
     {"PhoenixBIOS 4.0", "BCPSEGMENT", PhoenixExtract},
561d053
+    /* custom modified BIOS from Asus - they replace "AMIBOOT " with their own
561d053
+     * BIOS ID text */
561d053
+    {"ROM", "AMIBIOSC", AMI95Extract},
561d053
+    /* some award modules - not sure this is a good solution */
561d053
+    {"Award", "Award", AwardExtract},
561d053
     {NULL, NULL, NULL},
561d053
 };
561d053