[NEED HELP]how to add option(s) to bios setting(s) ?

20200729130614.png


Like the screen shot, the SATA Mode Selection has only two options IDE and AHCI, change it will change the "0x1D3" to 0x0 or 0x1(0x0 for IDE, 0x1 for AHCI), i used amisetupwriter to write 0x1D3 to 0x2 can set the SATA controller to RAID mode(tested it work normal), but when i reset/reconfig bios will set the 0x1D3 back to 0x1, now the question is how to add an option RAID to this menu?

if you can help me do it the bios is in attachment

EDIT: it has two "SATA Mode Selection" in the bios but the second "SATA Mode Selection" is not working

biosreg.zip (2.08 MB)

@xiaox - You want RAID to be default, even on BIOS reset/reload optimized etc, always (unless you change it later)?
OR, do you want me to mod so you can see the option which shows AHCI/RAID in BIOS? I can do that, and change default to RAID too if you want, all up to you.

What is the model of this so I can keep in proper folder.

0x1D3 should not be set to 0x02, it’s not an option for that! Yes, it may work but that is not how you should do this
You should set 0x1D4 to 0x02 (I can make this visible for you, hide 0x1D3). You can see 0x1D3 in BIOS by default can’t you? If not, then no need to hide this one, just make 0x1D4 visible and you’ll be set
If you cannot see SATA Controller mode in BIOS at all, please show me image of Advanced >> SATA Configuration page, so I can see what you see in BIOS.

@Lost_N_BIOS that’s problem, 0x2 it’s not an option for 0x1D4 too, in the AMI IFR extractor it syas the 0x0 in 0x1D4 is AHCI, 0x1 it’s RAID, but when i set 0xID4 to 0x0 it work in IDE mode, when i set 0x1D4 to 0x1 it work in AHCI mode,i think the 0x1D3 and 0x1D4 were same, they only can work on IDE or AHCI unless I set 0x1D3 to 0x2 on manual using amisetupwriter, and it will reset to AHCI if i try to save bios setting after i change other settings

the chipset is HM87, the board it’s an ITX board, it’s comes with a name intel hm87 in bios page

in the original bios i only can see the 0x1D3, when I unlock 0x1D4, the 0x1D3 is over ridding 0x1D4, but when i hidden 0x1D3, the 0x1D4 still only can work on IDE or AHCI(it show me AHCI and RAID but i set to AHCI it work in IDE, i set to RAID it work in AHCI)

you can try to do that for me in case i did something wrong

@xiaox - So it’s generic board, no BIOS download page, no real model etc?

0x02 is an option for 0x1D4, and it’s the ONLY one that has RAID as an option, or I wouldn’t have mentioned.
Look at the IFR text output, you will see it (these options are in two places, in both you will see same for 0x1D4) Set this one 0x1D4 to 0x02 only

It may not work properly while hidden from you, that’s why I suggested I should make it visible for you instead of the other, then you can set it directly.
Ohh, so you did this already? If yes, then this board may not be able to work in RAID mode? Or yes, maybe you did wrong? How did you make the edit? If you simply changed ID’s in setup that is incorrect and will not work.

YOu said you confirmed RAID functioned in first post, correct? If yes, please explain again what exact way RAID worked, then I can make you a BIOS with that set by default (and as default, so even if you reset BIOS it will remain)

@Lost_N_BIOS yes it’s generic board, no BIOS download page, no real model etc
I did more test I figure out that 0x1D4 set to 0x2 is nerver work
The RAID only work when I use amisetupwriter to set the 0x1D3 to 0x2,
I reset the bios then use the amisetupwriter to set the 0x1D4 to 0x2, RAID won’t work
I tried to hidden the 0x1D3 and make 0x1D4 visible, i set the 0x1D4 to RAID in bios menu but it work in AHCI mode, then i set the 0x1D4 to AHCI in bios menu but it work in IDE mode
I confirmed RAID functioned perfectly, I can manage RAID in intel rst client and in bios menu under advanced tab(after i make the intel rapid start technolog visible)

if you can do that i hope you can tech me how to do that

@Lost_N_BIOS I have more request should i continue on this topic or start a new one?
if continue, i sort out what i need u help me to do:
1: add an option 0x2 to both 0x1D3 and 0x1D4 and set it default
2: make "Advanced >> Intel Rapid Start Technolog" page visible
3: change the resolution when i installed a sysytem in uefi mode before i install the gpu driver from 640x480 to 1024x768

Yes, you can’t set 0x1D3 to 0x2 AND at same time set 0x14D to 0x2 as well. You can carry on with other request here.
How about this, I make you BIOS with 0x1D3 in place as it is and add RAID as option instead, since you say that works when you set this via setup_var. Can’t “Add 0x2” to 0x14D, it’s already there.
You can only have one of these variables visible at a time, and can only set one to RAID (by default, that would only be 0x14D)

1. I will do as mentioned above, change default option of 0x1D3 to AHCI 0x00 + RAID 0x02, since you said you tested this change by itself to 0x02 and it works in RAID
2. Yes, probably
3. will check and see, but that sounds like OS stuff not BIOS related.

Can you see Chipset? Show me image also of “Root” of advanced, scroll up/down if needed, so I can make rest of the submenus visible for you in there.

* Edit -
I’ll change both as shown below, compare stock IFR to this mod IFR output, then you will see changes I made.
These will need updated values set in NVRAM and AMITSE/SetupData area also (just so you know this is not all you need to change for this kind of edit)


Gray Out If {19 82}
0x2FE7B QuestionId: 0x388 equals value 0x1 {12 06 88 03 01 00}
0x2FE81 Suppress If {0A 82}
0x2FE83 QuestionId: 0x1B9 equals value 0x0 {12 06 B9 01 00 00}
0x2FE89 One Of: SATA Mode Selection, VarStoreInfo (VarOffset/VarName): 0x1D3, VarStore: 0x1, QuestionId: 0x44E, Size: 1, Min: 0x0, Max 0x0, Step: 0x0 {05 A6 B7 01 B8 01 4E 04 01 00 D3 01 14 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00}
0x2FEAF One Of Option: AHCI, Value (8 bit): 0x0 {09 0E BA 01 00 00 00 00 00 00 00 00 00 00} << Change variable ID to AHCI, instead of IDE
0x2FEBD One Of Option: RAID, Value (8 bit): 0x2 (default) {09 0E BB 01 30 00 02 00 00 00 00 00 00 00}<< Change variable to RAID Option ID + value >> (Will change at NVRAM and AMITSE/SetupData as well)

0x2FED1 One Of: SATA Mode Selection, VarStoreInfo (VarOffset/VarName): 0x1D4, VarStore: 0x1, QuestionId: 0x1BA, Size: 1, Min: 0x0, Max 0x0, Step: 0x0 {05 A6 B7 01 B8 01 BA 01 01 00 D4 01 10 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00}
0x2FEF7 One Of Option: AHCI, Value (8 bit): 0x1 {09 0E BA 01 00 00 01 00 00 00 00 00 00 00}
0x2FF05 One Of Option: RAID, Value (8 bit): 0x2 (default) {09 0E BB 01 30 00 02 00 00 00 00 00 00 00} << Set default, leaving hidden (Will change at NVRAM and AMITSE/SetupData as well)

+

Gray Out If {19 82}
0x3B598 QuestionId: 0x147 equals value 0x1 {12 06 47 01 01 00}
0x3B59E Suppress If {0A 82}
0x3B5A0 QuestionId: 0x7E equals value 0x0 {12 06 7E 00 00 00}
0x3B5A6 Suppress If {0A 82}
0x3B5A8 QuestionId: 0x163 equals value 0x1 {12 06 63 01 01 00}
0x3B5AE Gray Out If {19 82}
0x3B5B0 QuestionId: 0x147 equals value 0x1 {12 06 47 01 01 00}
0x3B5B6 Suppress If {0A 82}
0x3B5B8 QuestionId: 0x7E equals value 0x0 {12 06 7E 00 00 00}
0x3B5BE One Of: SATA Mode Selection, VarStoreInfo (VarOffset/VarName): 0x1D3, VarStore: 0x1, QuestionId: 0x44E, Size: 1, Min: 0x0, Max 0x0, Step: 0x0 {05 A6 B7 01 B8 01 4E 04 01 00 D3 01 14 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00}
0x3B5E4 One Of Option: AHCI, Value (8 bit): 0x0 {09 0E BA 01 00 00 00 00 00 00 00 00 00 00} << Change variable ID to AHCI, instead of IDE
0x3B5F2 One Of Option: RAID, Value (8 bit): 0x2 (default) {09 0E BB 01 30 00 02 00 00 00 00 00 00 00} << Change variable to RAID Option ID + value >> (Will change at NVRAM and AMITSE/SetupData as well)
0x3B600 End One Of {29 02}
0x3B602 End If {29 02}
0x3B604 End If {29 02}
0x3B606 End If {29 02}
0x3B608 Suppress If {0A 82}
0x3B60A QuestionId: 0x163 equals value 0x0 {12 06 63 01 00 00}
0x3B610 One Of: SATA Mode Selection, VarStoreInfo (VarOffset/VarName): 0x1D4, VarStore: 0x1, QuestionId: 0x7F, Size: 1, Min: 0x0, Max 0x0, Step: 0x0 {05 A6 B7 01 B8 01 7F 00 01 00 D4 01 10 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00}
0x3B636 One Of Option: AHCI, Value (8 bit): 0x1 {09 0E BA 01 00 00 01 00 00 00 00 00 00 00}
0x3B644 One Of Option: RAID, Value (8 bit): 0x2 (default) {09 0E BB 01 30 00 02 00 00 00 00 00 00 00} << Set default, leaving hidden (Will change at NVRAM and AMITSE/SetupData as well)


* Edit - @xiaox - Here, please test (if anything grayed out in new menus let me know and I will fix for you ) This has changes as mentioned above, and the ones you requested +Some other submenus in Advanced, and FIT Table fixed
http://s000.tinyupload.com/index.php?fil…124734589168357

@Lost_N_BIOS thank you for did that for me, nothing is grayed out but something went wrong:
1: when i restore to default, it just set SATA Controller to disable…
2: 0x0 in both 0x1D3 and 0x1D4 is IDE mode, i‘d like to keep IDE mode, but the name is AHCI
3: the cpu overclock settings were disappear (they are cpu core ratio limit, power limit, etc… under "Advanced >> CPU Configuration")
I looked the bios file in amibcp, i used to see all the settings under "Advanced >> CPU Configuration", now some of them are disappear, and overclock is work some how but i only can overclock my 4710mq to all core 3.5ghz

the resolution problem only happen when on uefi boot and os not install gpu driver, such like during installation , the resolution only have 800x600 for windows and 640x480 for linux, and cause some linux GUI installation can not continue(same installation disk work normal on other OEM/DIY computer), but in the same time i will try find a hdmi monitor and see if is a vga port problem

@xiaox - Yes, I changed 0x1D3 ID’s/Variable to AHCI/RAID only, we don’t mention 0x1D4 because it’s hidden so irrelevant here
So you want 0x1D3 left as it was, but IDE/RAID instead instead of AHCI/RAID, OK will edit again now

#1 - Not sure why that would happen, I will check it out, probably due to 0x02 is not supposed to be an option for 0x1D3. When you enable it after that, and set RAID, can you then install RAID?

As for #3, sorry, I did not meant to touch any of that, I will have to look and see what happened! * Edit - I checked this, with AMIBCP, all looks same/same to me!?

Yes, that resolution issue is OS related, and depends on how you connect to monitor and what graphics card you are using etc.

* Edit - Please reflash stock BIOS using stock BIOS Update method, then clear CMOS, then load optimized and save/reboot back to BIOS, change what you need to go to windows
Then dump BIOS region with FPT and send to me, this way I have clean working base (and none of your edits in there) and clean NVRAM (there was 50+ saved booting profiles in NVRAM, so very messy)

@Lost_N_BIOS RAID still work, just the default is set the SATA Controller to disable, I want 0x1D3 to be 0x0 and 0x2 for IDE and RAID, this bios once open and did nothing then save use amibcp will cause some cpu setting disappear, other computer use this same monitor use same vga cable doesn’t have this resolution issue

@xiaox - Please see my edits above. Thanks for confirmation RAID works, and default = disabled (not an option, so probably due to messy NVRAM I had to edit + on top of your edits etc) See above, lets do it on clean BIOS.
0x1D3 - Yes, I know now, thanks Sorry, I assumed you didn’t want IDE, so made it AHCI/RAID only, my fault for not asking

* Ohh, I see, option above the ones we’re playing with is SATA controller enable/disable, sorry, probably I changed one too many in huge NVRAM edits for defaults - will be much better to edit on clean BIOS, so not mistake

I don’t see any issue you mention with AMIBCP, CPU Config = same for stock and mod I sent you. Make sure you are using AMIBCP 4.55! I tested open mod BIOS, change nothing, save and re-open, no issues here.
But anyway, don’t edit BIOS I send you until after you’ve tested it and we’re done messing around, and then maybe need to change something else with AMIBCP once we’re done.
That way any AMIBCP changes you want to make do not interfere right now with what we’re trying to do

Other computer does not use same graphics card/CPU graphics as this one, so cannot be a comparison for your graphics issue.

@Lost_N_BIOS i just used a hdmi monitor it has same resolution issue
in the first place i mean i want all IDE AHCI and RAID, if i only can have 2 of them, then i want IDE and RAID.
the amibcp issue it’s i already know at my first time try to modify this bios, i forget to mention this for you , in the original bios i dump, it was able to see all cpu settings, i already tested i did nothing then save use amibcp 4.53/4.55 then flash it, smoe cpu setting disappear, not the edited bios you did or i did

EDIT:
If i short circuit the “clear cmos” jumper can i cleal nvram data?

@xiaox - Are you using onoard graphics from CPU, or a a graphics card? This is what controls that.
If you are using graphics card, then test the card from other system in this board and see if it’s OK, if it is, then you know it’s the graphics card (may need updated GOP, if you are using UEFI boot mode)
If you are using onboard, I can update the internal vBIOS for you and see if that helps!

Yes, you can only have two options for that SATA mode setting, at least if using 0x1D3/visible, so IDE/RAID if you do not want AHCI/RAID

Use correct AMIBCP version I mentioned above, you can see all settings always in AMIBCP. Do not edit BIOS with 4.53, and do not open BIOS then save without making any changes for no reason then flash it (that’s pointless and asking for issues )
I do not use AMIBCP, so if AMIBCP causes things to disappear when you edit with it, don’t use it I make all the same changes AMIBCP makes manually instead anyway, if you want to know how to do that I can show you.

Do the reflash, clear CMOS etc as I mentioned above (And I just edited that, sorry, was thinking Asus BIOS for some reason ), that way I have a clean BIOS to use to edit

@Lost_N_BIOS i am using onboard igpu intel hd4600, i already update vbios and gop etc… it didn’t work, the bios i post in this topic it’s original, gop and vbios didn’t updated yet.

yes, so do the IDE/RAID please!

but you didin’t use amibcp they still disappear anyway, so weird

yes i’d like to know how to did it manually
---------------------
@Lost_N_BIOS i am very sorry, it’s my bad, those cpu settings is not disappear, every time after flash bios(except the original bios) will cause a setting “turbo mode” set to disable, and then it will hidden those cpu settings

You said they didn’t disappear in my BIOS edit or yours (post #12) I tested what you mentioned, with 4.55, open mod BIOS, make no changes, save and re-open, nothing is missing.
Ohh! Yes, if turbo is disabled on Fail Safe (ie you have not loaded optimized defaults yet), then stuff may be hidden. Always load optimized defaults after BIOS flash, then save and reboot back to BIOS to make what other changes you want.
Ohh, that’s not good, I see Turbo is set to disabled for optimal default and enabled at Fail Safe, that’s backwards!! Terrible BIOS engineers

I will redo the IDE/RAID edit, but you need to flash stock BIOS again first, then clear CMOS, then send me new BIOS region dump. I want to do the edit on a clean BIOS base

Here is how to make AMIBCP changes manually (this only covers how to change Fail Safe / Optimal Default, and Access Level changes) - See end of post #4 AMITSE/SetupData info, and be sure to look at image for Fail Safe/Optimal bytes shown
[Request]Maximus XI Hero - Unlock AMIBCP

@xiaox - * Edit - I see the error I made about SATA controller Disabled, and defaults now!! Sorry, easy to fix
If you don’t want to go through the clean BIOS hassle, let me know and I will just re-edit what I did and fix SATA controller disable at default, and change AHCI/RAID to IDE/RAID

* Edit - @xiaox - Here, fixed BIOS
http://s000.tinyupload.com/index.php?fil…991694219518100

@Lost_N_BIOS i just finish dump clean bios…it’s not easy on that itx board plus that itx case, i have to remove some hardware to find the clear cmos jumper and then put them toghter

cleanbios.zip (2.09 MB)

Sorry @xiaox - I went ahead and modified the BIOS I sent you before, so not needed right now, sorry you did all that
I also didn’t know you were using a flash programmer, I assumed software dumping
See post #15 for fixed BIOS If you want me to redo after you test, onto the above clean BIOS, I will

For CMOS, I always connect clear CMOS pins to case “Reset” switch, since that shouldn’t really ever be used like they designed it, due to it can corrupt OS if in OS when used.
That way reset button = clear CMOS, and power on/off button is all you use to start or force shut down (also not ideal for OS either, unless you let off it after a few seconds so it can shut down gracefully)

@Lost_N_BIOS thank you very much, i will continue work on the clean bios dump as your work is fail safe, i hope there is no other future problem, have a good day sir.

@xiaox - Test BIOS in post #15 and let me know if it’s all OK, if so I will redo those edits on your clean dump. That way you will then have a clean base, with those changes you asked for here all done, then you can edit more if you need on top of that.

My work is not fail safe! As you seen, I accidentally disabled your SATA controller via bad NVRAM edit
I added one too many 02’s in all changes I made there, each change location I set that sata controller to 02 as well, and then next two bytes after it were the target which I changed to 02 as well for RAID
So, that = 60+ incorrect bytes set to 02 instead of 01 for your SATA controller in NVRAM, most all of those are in old NVRAM though, only 2-3 locations are current/live usage, but still >>

Thanks, you have a good day too, catch up with you soon I’m sure

@Lost_N_BIOS i already tested it, it work, now i am reading the guide you post at #7