Forum RSS Feed Follow @ Twitter Follow On Facebook

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[-]
Welcome
You have to register before you can post on our site.

Username:


Password:





[-]
Latest Threads
Bricked ASUS A53SC-SX234V (or K53SC) aft...
Last Post: ferchu
Today 04:21 AM
» Replies: 0
» Views: 34
[REQUEST] HP Pavillion dv5 1160e BIOS F....
Last Post: StirlizZ
Yesterday 09:57 PM
» Replies: 0
» Views: 66
[REQUEST] HMTEN HMT-W042-67A
Last Post: zhukovroman228
Yesterday 03:15 PM
» Replies: 0
» Views: 132
[REQUEST] Lenovo G780 (5ECNxxWW) Whiteli...
Last Post: snowc
Yesterday 09:23 AM
» Replies: 882
» Views: 399434
[SOLVED] Lenovo E545 (HRETxxWW) WiFi + B...
Last Post: Gsbuild
05-06-2025 04:07 PM
» Replies: 267
» Views: 110322
[REQUEST] Lenovo G700 (7ACNxxWW) BIOS Un...
Last Post: Dudu2002
05-06-2025 02:31 PM
» Replies: 4
» Views: 3804
[REQUEST] HP Pavilion G42-272BR Whitelis...
Last Post: nfscbr
05-06-2025 12:58 PM
» Replies: 2
» Views: 698
[REQUEST] Lenovo G580 (5ECNxxWW) Whiteli...
Last Post: Rino1985
05-06-2025 11:51 AM
» Replies: 1742
» Views: 776349
HP Z2 SFF G9 - Trying to fix BIOS after ...
Last Post: EpicLPer
05-06-2025 10:56 AM
» Replies: 0
» Views: 218
Gigabyte Aorus 15 xe 5 i7 12700H GTX 307...
Last Post: posydon
05-05-2025 02:04 PM
» Replies: 0
» Views: 306
[REQUEST] Acer Nitro 5 AN515-54 BIOS Unl...
Last Post: Zimavoy
05-05-2025 07:10 AM
» Replies: 130
» Views: 57845
[Request] Lenovo S130 / 130S Whitelist r...
Last Post: bruno75003
05-05-2025 05:41 AM
» Replies: 0
» Views: 292
HP Envy 17 1150eg BIOS HELP!
Last Post: Daimonion84
05-04-2025 12:59 PM
» Replies: 0
» Views: 377
GPU whitelist removal for MSI Trident 3 ...
Last Post: Vlasec
05-04-2025 09:37 AM
» Replies: 0
» Views: 322
[REQUEST] Lenovo Z61t (7FETxxWW) Whiteli...
Last Post: pejuangs
05-04-2025 03:38 AM
» Replies: 32
» Views: 6206
Samsung NP300V5AH (300V3A/300V4A/300V5A/...
Last Post: justsomerandomguy
05-03-2025 02:09 PM
» Replies: 21
» Views: 25721
[REQUEST] Lenovo L340-15API & V155-15API...
Last Post: Marc_LT
05-03-2025 08:14 AM
» Replies: 10
» Views: 5075
[REQUEST] Lenovo Thinkpad T440p (GLETxxW...
Last Post: Dudu2002
05-02-2025 11:20 AM
» Replies: 529
» Views: 233436
[REQUEST] Lenovo ThinkPad Edge E330 (H3E...
Last Post: Dudu2002
05-02-2025 02:15 AM
» Replies: 643
» Views: 265384
[REQUEST] Acer Aspire 5742(G,Z) BIOS Unl...
Last Post: Brasil150
05-02-2025 12:13 AM
» Replies: 165
» Views: 47721

ASUS M5A78L-M LX3 MC Update
#1
Hello all together,

I'd like to create an Microcode-updated BIOS for my ASUS M5A78L-M LX3 to get Spectre2-mitigations.
It's a non-UEFI BIOS.
The current processor is an AMD FX-6300, but may change in the next time to a different one.
Link to original BIOS: https://dlcdnets.asus.com/pub/ASUS/mb/SocketAM3+/M5A78L-M_LX3/M5A78L-M-LX3-ASUS-1401.zip


According to MC Extractor (1.30.0 r102) there are newer microcodes for the following CPUIDs available:
- 00100F41 (010000C6 -> 010000DB)
- 00100FA0 (010000BF -> 010000DC)
- 00600F12 (06000629 -> 0600063E)
- 00600F20 (0600081C -> 06000852)

Searching the internet I found different tutorials telling to hex-edit the new microcodes into the ROM-file and then rebuild one part of the rom using UEFITool. As far as I understand, this doesn't make sense as it's a non-UEFI rom.
I also tried to edit the image using MMTool 3.26, but it doesn't find a "CPU MicroCode Patch Module".

Could someone help me by telling me, how to update the microcode or posting a microcode-updated image.

Thanks in advance


Attached Files Thumbnail(s)
   
find
quote
#2
Open bios file by mmtool and extract e2 module.
https://i.imgur.com/Oo1m2Hh.png

The e2 mudule contain microcode.
Here are microcode address on e2 module.

cpu00100F40
address : 368a8h - 36c67h

cpu00100F41
address : 360a8h - 36467h

cpu00100F43
address : 367a8h - 37467h

cpu00100F62
address : 35710h - 35acfh

cpu00100FA0
address : 34038h - 343f7h


cpu00600F12
address : 246d8h - 250f7h

cpu00600F20
address : 225a0h - 22fbfh

find
quote
#3
Thanks for the fast reply.

So I need to do these three steps:
1) extract the E2 module using MMTool
2) hex-edit the new MC into the extracted E2 module
3) replace the original E2 module in the rom with the patched one using MMTool

Correct?
find
quote
#4
(03-29-2019, 04:44 AM)fre4kyc0de Wrote: Thanks for the fast reply.

So I need to do these three steps:
1) extract the E2 module using MMTool
2) hex-edit the new MC into the extracted E2 module
3) replace the original E2 module in the rom with the patched one using MMTool

Correct?

Yes
Use the same size microcode to replace old one.

find
quote
#5
Then I understood. Thanks again.

Just for verification:
SHA1(E2): 9FAAF377FF9659408F65C3831C0D84AE7698E3C4
SHA1(E2_patched): 356AD88FE45E8256298027233D31C53C67CED25D
find
quote
#6
Update just failed, now recovering...

[edit]
MMTool created the ROM just fine, but after programming the BIOS put me into "ASUS CrashFree BIOS" requiring me to reflash using the Support-DVD.
[/edit]
find
quote
#7
(03-29-2019, 06:33 PM)fre4kyc0de Wrote: Update just failed, now recovering...

[edit]
MMTool created the ROM just fine, but after programming the BIOS put me into "ASUS CrashFree BIOS" requiring me to reflash using the Support-DVD.
[/edit]

Why??
I think this modify method is right.
After rom saved, do you open it by amibcp and no any error??

Could you attach your mod file??

find
quote
#8
AMIBCP 3.13 opens the file just fine.

File attached


Attached Files
.rom   M5A78L-M-LX3-ASUS-1401_updated.ROM (Size: 2 MB / Downloads: 20)
find
quote
#9
E2 module location moved to front of BIOS @ 1c and due to being there it's missing leading file size + header info before the module that's in original BIOS, plus probably broke some stuff that was originally at beginning of BIOS. You may need to hex edit (Copy mod E2) paste into stock BIOS at exact original location a0000. If that fails, hex edit microcodes in place on complete BIOS file one by one.
find
quote
#10
This might explain, why it fails to boot.

But if I hex-edit the microcode into the original ROM both "ASUS EZ-Flash" and AFUDOS report the ROM as "damaged".
Is there anything MMTool changes when replacing the module (e.g. CRC32)? And if yes, is it stored before or after the module?

As MMTool shows two different sizes ("source size" and "size in rom" (== "source size" + 0x14)) I'll try to move the "new" E2-module + it's header/footer from the broken modded BIOS to 0xA0000 in a new copy and try that one.

[edit]
There is a kind of header in front of the inserted module:
original (0x9FFEC - 0x9FFFF): C0 A4 04 00 16 B4 8D AA F4 FF 04 00 FF FF E2 90 00 00 00 00
patched (0x8 - 0x1B):            C0 A4 04 00 51 CD 02 D3 14 B5 13 00 FF FF E2 80 00 00 00 00
The first 4 bytes represent the size of the module ("source size" = 0x4A4C0), but I don't know / can't guess the meaning of  the rest.
[/edit]

[edit2]
I copied around byte by byte and after adjusting all of the "header" bytes to match the ones from the broken MMTool-Mod the ROM flashed and booted fine.
According to "RW-Everything" the injected Microcode has been loaded and is working.
The ROM hasn't been fully tested, but is attached now.
[/edit2]


Attached Files
.rom   M5A78L-M-LX3-ASUS-1401_updated2.ROM (Size: 2 MB / Downloads: 38)
find
quote


Forum Jump:


Users browsing this thread: 2 Guest(s)