awdhack using and help

Only for programmers and BIOS gurus with technical questions.
Post Reply
zhang yunhong
New visitors - please read the rules.
Posts: 4
Joined: Wed Jun 12, 2002 1:41 pm

i try to use the awdhack,but i can release
a modified award.bin.Only extract ORIGINAL.TMP file
(system BIOS). after being Modified by hiew,
How to add to award.bin.i want to modify pci irq
routing table.


My step by step:
> awdhack mybios.bin
//no release ORIGINAL.TMP files,only have award.bin.
> modbin // release ORIGINAL.TMP files only after checking
//mybios.bin configuration

>hiew ORIGINAL.TMP //modify irq routing table

Please tell me,How to add ORIGINAL.TMP modified to award.bin?

Thanks in advance

zyh
geminizyh@hotmail.com
NickS
BIOS Bodhisattva
Posts: 3145
Joined: Fri May 03, 2002 10:34 am
Location: Thames Valley, UK

For M577 BIOS, I used CBROM 1.30 not awdhack to extract and release all the loadable modules (using /other 4100:0 for awardext.rom module, not present in all BIOSes).

The compressed Original.tmp finished at about 0x1A200 so I cut everything up to 0x1B000 out of the original BIOS to make file "part2".
I got the original.tmp using MODBIN and patched it.
I compressed the new original.tmp using LHARC, and then filled it out to length 0x1AFFF with 0xFF to make file "part1".
I joined the part1 and part 2 with "copy /b part1+part2 mybios.bin".
Check that CBROM shows only the original.tmp in mybios.bin*
I loaded the loadable modules back in with CBROM.
I loaded the BIOS into MODBIN, changed the BIOS message and saved it.
Finished!

[edit]*It may be necessary here to load the BIOS into MODBIN and make a minor change e.g. to the BIOS message, then save using "update file", if CBROM shows more than one module. See this post for an example of CBROM output during this exercise.
Last edited by NickS on Fri Mar 14, 2003 10:33 pm, edited 1 time in total.
zhang yunhong
New visitors - please read the rules.
Posts: 4
Joined: Wed Jun 12, 2002 1:41 pm

Nicks,Thank you for your help!
But i have a little problem:

-->Check that Modbin shows only the original.tmp in mybios.bin

this step is ok!

-->I loaded the loadable modules back in with CBROM.

this step is also ok! but next step is bad.

-->I loaded the BIOS into MODBIN....

" Binary file checksum error!!!"
I don't konw where i mistake,can you give me advice?
at the last moment!

Thank you

:cry:
KachiWachi
The New Guy
Posts: 1451
Joined: Fri Mar 29, 2002 10:32 pm
Location: Pennsylvania, USA

Nick...a question on MODBIN...

Do you release and extract, or extract and release? New to MODBIN, not really sure of the sequence to do things...

Right now just peeking inside...but who knows in the future... :roll:
NickS
BIOS Bodhisattva
Posts: 3145
Joined: Fri May 03, 2002 10:34 am
Location: Thames Valley, UK

zhang yunhong wrote:-->I loaded the BIOS into MODBIN...." Binary file checksum error!!!":cry:
It is difficult to diagnose remotely what may be going wrong. I'll just go through it again:
1. You extracted the original.tmp by running MODBIN.
2. You modified the original.tmp and recompressed it using LHA255.exe.
3. You extracted then released all the loadable modules to leave only original.tmp in the BIOS file (the bootblock and decompressor do not show up in CBROM).
4. You used hiew to find out where the original.tmp finished in the BIOS file.
5a. If this was longer than your new compressed original.tmp you added "FF" bytes to your new original.tmp to make it the same length, and deleted up to the end of original.tmp in the BIOS file.
or
5b. If this was shorter than your new compressed original.tmp, you deleted up to the length of the new compressed original.tmp in the BIOS file.
6. You used "copy /b filea+fileb mybios.bin" to concatenate the files.
7. cbrom showed just the original.tmp in mybios.bin.
8. You loaded the modules back in using CBROM, in the order they were originally displayed.
9. You loaded the file into MODBIN and it fell over with the BIOS checksum error ?

I am puzzled. If you try again and it still doesn't work, send me your original BIOS and your patched original.tmp.
Last edited by NickS on Thu Jun 13, 2002 6:28 pm, edited 1 time in total.
Tested patched BIOSes. Untested patched BIOSes.
Emails *will* be ignored unless the subject line starts "Wim's BIOS forum"
NickS
BIOS Bodhisattva
Posts: 3145
Joined: Fri May 03, 2002 10:34 am
Location: Thames Valley, UK

KachiWachi wrote:Nick...a question on MODBIN...

Do you release and extract, or extract and release? New to MODBIN, not really sure of the sequence to do things...

Right now just peeking inside...but who knows in the future... :roll:
Extract (gives you a (decompressed) copy of that module) then release (removes it from the ROM image).
Tested patched BIOSes. Untested patched BIOSes.
Emails *will* be ignored unless the subject line starts "Wim's BIOS forum"
zhang yunhong
New visitors - please read the rules.
Posts: 4
Joined: Wed Jun 12, 2002 1:41 pm

Nick ,thanks for your detail guide.
i finished the first step: modify the award bios's pci irq routing table,
make a patched bios, it work well.

but i want to assign irq resource(irq10) to my device on board.
but PCI device use this irq10 in the PCI host bridge configuration space
. pci host bridge integrated 8259 interrupt controller assign irq10 to
INTA#、INTC#.
next step : i need to look for PCI host bridge configuration space in BIOS module and modify. i think that the it is in an BIOS module such as PCI ROM..

Where are the PCI host bridge configuration space ?
welcome more suggestions.

BIOS module( use CBROM 1.30):

system Bios: original.tmp
XGROUP code: awardext.rom
EPA LOGO : gxivideo.205
VSA driver: gxm55304.317 ( PCI bridge)
PCI ROM : ncr40.bin

others:
Decompress block and Boot Block: R00fa000.dec , R00fe000.dec.

Thanks in advance,

zyh

:?:
NickS
BIOS Bodhisattva
Posts: 3145
Joined: Fri May 03, 2002 10:34 am
Location: Thames Valley, UK

zhang yunhong wrote:I want to assign irq resource(irq10) to my device on board.
but PCI device use this irq10 in the PCI host bridge configuration space
. pci host bridge integrated 8259 interrupt controller assign irq10 to
INTA#、INTC#.
next step : i need to look for PCI host bridge configuration space in BIOS module and modify. i think that the it is in an BIOS module such as PCI ROM..

Where are the PCI host bridge configuration space ?
welcome more suggestions.
:?:
Sorry, I do not have enough knowledge to help you with this. :? In PC-Chips M577 BIOS it looks like the "PCI ROM" is the SCSI/IDE driver?, "NCR307.16K".
If no-one else replies to this, you could try posting again with a new subject "Which BIOS module contains PCI Host Bridge configuration space?"
Tested patched BIOSes. Untested patched BIOSes.
Emails *will* be ignored unless the subject line starts "Wim's BIOS forum"
winkill
New visitors - please read the rules.
Posts: 5
Joined: Sat Oct 19, 2002 3:27 pm

when i tried running awdhack, i couldnt get it to work. it would load, show modbin's interface, and then exit. sometimes i would get the message
Hiew: not enough memory
and it would exit, whether i ran it from windows or pure dos
i had extracted original.tmp from my vi0106wg.bin using winrar after creating a backup vi0106wg.bak , and modified it.
after that i did not know how to put it back.
anyway, i ran modbin from windows, opened my file vi0106wg.bin, found out that it creates 2 files in the modbin directory - bios.rom and original.tmp
the bios.rom seems to be a copy of vi0106wg.bin
anyway, i overwrote the original.tmp with my patched original.tmp, then in modbin, i selected update file, then exited. after this, i had the patched copy of original.tmp in my vi0106wg.bin

vi0106wg.bin has the modified original.tmp
vi0106wg.bak has the original original.tmp

here is the output of cbrom vi0106wg.bin /d

CBROM V1.32 (C)Award Software 1999 All Rights Reserved.

******** vi0106wg.bin BIOS component ********

No. Item-Name Original-Size Compressed-Size Original-File-Name
================================================================================
0. System BIOS 20000h(128.00K) 13C89h(79.13K) original.tmp
1. XGROUP CODE 0551Eh(21.28K) 03B88h(14.88K) awardext.rom
2. ACPI table 01D37h(7.30K) 00BCEh(2.95K) ACPITBL.BIN
3. EPA pattern 0168Ch(5.64K) 0030Dh(0.76K) AwardBmp.bmp
4. VRS ROM 02274h(8.61K) 014AAh(5.17K) ANTI_VIR.BIN

Total compress code space = 1A000h(104.00K)
Total compressed code size = 19B96h(102.90K)
Remain compress code space = 0046Ah(1.10K)

** Micro Code Information **
Update ID CPUID | Update ID CPUID | Update ID CPUID | Update ID CPUID
------------------+--------------------+--------------------+-------------------


and the output of cbrom vi0106wg.bak /d

CBROM V1.32 (C)Award Software 1999 All Rights Reserved.

******** vi0106wg.bak BIOS component ********

No. Item-Name Original-Size Compressed-Size Original-File-Name
================================================================================
0. System BIOS 20000h(128.00K) 13C8Eh(79.14K) original.tmp
1. XGROUP CODE 0551Eh(21.28K) 03B88h(14.88K) awardext.rom
2. ACPI table 01D37h(7.30K) 00BCEh(2.95K) ACPITBL.BIN
3. EPA pattern 0168Ch(5.64K) 0030Dh(0.76K) AwardBmp.bmp
4. VRS ROM 02274h(8.61K) 014AAh(5.17K) ANTI_VIR.BIN

Total compress code space = 1A000h(104.00K)
Total compressed code size = 19B9Bh(102.90K)
Remain compress code space = 00465h(1.10K)

** Micro Code Information **
Update ID CPUID | Update ID CPUID | Update ID CPUID | Update ID CPUID
------------------+--------------------+--------------------+-------------------
NickS
BIOS Bodhisattva
Posts: 3145
Joined: Fri May 03, 2002 10:34 am
Location: Thames Valley, UK

If that works for you, good. Some operating systems won't let you overwrite the original.tmp, saying that it's in use. What OS were you using ?
Tested patched BIOSes. Untested patched BIOSes.
Emails *will* be ignored unless the subject line starts "Wim's BIOS forum"
winkill
New visitors - please read the rules.
Posts: 5
Joined: Sat Oct 19, 2002 3:27 pm

windows 98 second edition
Post Reply