how to build 128KB bios image out of 256 kbyte bios image ?

Only for programmers and BIOS gurus with technical questions.
Post Reply
maman
Master Flasher
Posts: 173
Joined: Sun Mar 31, 2002 2:08 pm
Location: Taka Bonerate National Park, Indonesia
Contact:

I've successfully release "unneeded" stuff from my mainboard bios without loss of any important functionality. The "unneeded" stuff is the EPA logo, and a custom EPA procedure (procedure to display the EPA logo). The size of this new image is a bit less than 128Kbyte (compressed), but the original size of the bios image is 256Kbyte, hence cbrom or modbin will always emit 256Kbyte image out of this modified image. I intend to make it just 128 Kbyte image, and I have 128Kbyte flash chip to experiment with it. Is it possible at all to make a new 128 kbyte image? if it's possible then how to accomplish it?
Rainbow
The UniFlasher
Posts: 3122
Joined: Wed Mar 20, 2002 4:16 pm
Location: Slovakia
Contact:

I've seen something like that in bp http://www.rom.by but never tried it.
Patched and tested BIOSes are at http://wims.rainbow-software.org
UniFlash - Flash anything anywhere
sulbert
Master Flasher
Posts: 204
Joined: Wed Jul 17, 2002 1:38 pm
Contact:

This feature was still under development in the last available version of BP.
maman
Master Flasher
Posts: 173
Joined: Sun Mar 31, 2002 2:08 pm
Location: Taka Bonerate National Park, Indonesia
Contact:

aha.., I see :D. I've been "studying" BP for several weeks. I haven't got anytime testing it, but it's a very nice software. Thx, for the info. BP didn't mention about that feature in its readme file.
sulbert
Master Flasher
Posts: 204
Joined: Wed Jul 17, 2002 1:38 pm
Contact:

Code: Select all

bp-4_51 /h
says:

Code: Select all

/u - "ultrapack": packs 2Mbit/4Mbit-BIOS to 1Mbit (N/A - in development)
As far as I have understood the thing, the main idea behind this are better (more effective) compression routines.
Last edited by sulbert on Mon Jun 14, 2004 9:24 am, edited 1 time in total.
maman
Master Flasher
Posts: 173
Joined: Sun Mar 31, 2002 2:08 pm
Location: Taka Bonerate National Park, Indonesia
Contact:

a better compression routine 8) . AFAIK, bios is LZH compressed, so it must still a variant of the LZH. This BP is really interesting 8O .
sulbert
Master Flasher
Posts: 204
Joined: Wed Jul 17, 2002 1:38 pm
Contact:

maman wrote:so it must still a variant of the LZH
Why? The uncompress routine is also replaceable, isn't it?
Last edited by sulbert on Tue Jun 15, 2004 1:19 pm, edited 1 time in total.
maman
Master Flasher
Posts: 173
Joined: Sun Mar 31, 2002 2:08 pm
Location: Taka Bonerate National Park, Indonesia
Contact:

yup right, I'm just fool enough right now, not being able to implement a better compression routine in assembly language other than variant of the "moving window" such as LZH :( to meet the small space requirement in the BIOS.
apple_rom
Use my patch at your own risk!!
Posts: 125
Joined: Tue Jan 07, 2003 11:39 am
Location: Minsk
Contact:

Is it possible at all to make a new 128 kbyte image?
It`s possible. I even once upon a time successfully this do. But this anymore was required, therefore so and not realize this possibility in its program (though on 80% has written).
if it's possible then how to accomplish it
1. remove ALL not-used files. (as a rule, stays only "original.tmp" and "awardext.rom").
2. place original.tmp in begin of 128k-bios.
3. awardext.rom place in the end of him and some not-used places (u can divide by some parts).
4. rewrite unpacking-procedure in boorblock - after unpacking "original.tmp" so to first was going to from pieces your awardext.rom on original.tmp-place, and after that uncompress him...

Some comments - you not will have no DMI/ESCD, and must to remove CRC-checking...
maman
Master Flasher
Posts: 173
Joined: Sun Mar 31, 2002 2:08 pm
Location: Taka Bonerate National Park, Indonesia
Contact:

apple_rom wrote: 1. remove ALL not-used files. (as a rule, stays only "original.tmp" and "awardext.rom").
2. place original.tmp in begin of 128k-bios.
3. awardext.rom place in the end of him and some not-used places (u can divide by some parts).
I have done this :D. The another two haven't yet. I'll try later. Thx :D
Post Reply