[Guide] NVMe-boot for systems with legacy BIOS and UEFI board (DUET-REFIND)

I don’t think you can install it on a hdd, unless it is possibly connected to a USB to SATA adapter of course. Sounds like some setting in the bios might be stopping it from booting maybe, like it did with the asrock x58 board.
Can you try formatting your USB device with BDU please? http://cvad-mac.narod.ru/index/bootdiskutility_exe/0-5
If it works with that, then I am at a loss since BDU installs the latest Clover which is also based on the latest 2017 DUET. But give that a try please. I’m curious what happens.

EDIT: So you are trying to boot this from a Lenovo T530i laptop? What processor/chipset is it based on?

EDIT by Fernando: Unneeded parts of the fully quoted post and unneeded blank lines removed (to save space)

@SkOrPn
The BError mean there an miscommunication (DiskError) on the startup sequence of DUET.
That error occur when the LegacyBios pass wrong BPB(LBA) data in real mode, it’s an exposure of bad implementation of 0x7c00 code\management.
Proprietary code or embedded proprietary hardware could also cause the INT13 failure.

@irrealis
If the USB stick is know-to-work on another intel x64 machine and the DUET build attached on the first post doesn’t work on your motherboard, you might either need to patch the bootsector by yourself on the DUET source with the supposedly “accepted” or “tagged” coord of your actual reported disk sector, ask the motherboard vendor to fix it or try CLOVER to see if something changes.

B(oot)Error! = unsupported

@SkOrPn
USB stick formated using BDUtility ver.2.1.023 → DUET-REFIND 2017 installed on it (full sequence) → BError
USB stick formated using BDUtility ver.2.1.023 → DUET-REFIND 2017 installed on it (DUET->REFIND) → NO BError but computer stops at the same moment.
HDD formated using BDUtility ver.2.1.023 → CLOVER 4722 installed on it → NO BError but computer stops at the same moment. If i unplug hdd disk witch win7 and computer restart, CLOVER is loading → “6” is showing, and after that blinking _ white sign. Computer not responding - only hard reset helps.

Qemu Simple Boot v1.3
HDD formated using BDUtility ver.2.1.023 → CLOVER 4722 installed on it → 2 errors (links below in order of showing errors)
https://www.dropbox.com/s/0ja250qwi3wp9l…art%21.jpg?dl=0
https://www.dropbox.com/s/3it2v86uy50eyr…ted%21.jpg?dl=0

T530i Spec:
Intel Core i3-3110M 2,4 GHz
MB: 2394BK4
OS: Win7 PRO 64-bit SP1
UEFI BIOS: 2.62
USB stick formated using BDUtility ver.2.1.023 → CLOVER 4722 installed on it → CLOVER is loading → “6” is showing, and after that blinking _ white sign. Computer not responding - only hard reset helps.

@noInk
I doubt that the motherboard manufacturer / supplier can help me. I am determined to run UEFI on this machine. If I learn something extra - plus for me. However, I need some tips on how to do it → “to patch the bootsector by yourself”.

EDIT: Im reading user manuals from UDK 2018. Is there any option to compile DUET with specs matching to my machine? Can i get somehow binaries with my spec and put it in to my personal compilation of DUET?

@irrealis
The notebook may already have UEFI. Follow the HOW to MAKE THE USB flash drive (non-bootable) for REFIND.

Booting the NVME drive from older-UEFI capable board - REFIND mass-storage without DUET - with USBSetup:


1) Connect a USB flash drive and start the USBSetup application

2) Select the USB flash drive letter from the drop-down combo box

    Warning.
    The following step will completely remove all information and partitions on the selected USB flash drive

3) Remove all information and partitions from the drive by clicking on: CLEAN

4) Optional format the selected drive by clicking on: FORMAT

5) Copy the graphical boot manager REFIND by clicking on: REFIND

6) Once done remove the USB flash drive.

7) Connect the USB on the target system and set Boot from USB as the first option in your system BIOS Boot order




For the supposedly AMD-based board.
If it doesn’t work just like that I cannot help since the CPU might miss next the instruction set required for the x86-64 OS environment and other stuff might not be standard, protocol handling etc etc.

@noInk
I just installed clover-4152 with UEFI v2.60. The problem is computer stops responding after writing few signs (doesn’t matter what i wrote).
link: https://www.dropbox.com/s/rq362eao19wsqt…i-2.60.JPG?dl=0
Any ideas?

If i understood, UEFI is only for machines with intels processors? Is there no possibility to run UEFI on AMD or any other processors, like ARM for exemple? Is there no upgrades or patches for this kind of problems?

@irrealis
if you are able to bring the EFI shell with CLOVER then you should try other older/newer build.
Perhaps someone had your setup once and one working version exist already.
This version of DUET might not work on AMD, even certain intel board will cause issue cause it’s stripped for x58.


[quote="irrealis, post:405, topic:32251"]
[/quote]

To your DUET 2018 question my understanding is if you don't program the language in which DUET is written your options are limited.
UEFI is an acronym for Unified Extensible Firmware Interface. It is an effort to standardize the once (more) proprietary BIOS (another acronym) system used to code mainboards' backend. It is manufacturer agnostic. It is "low level" code written to interface boards, components and at times users.
Here is an article about UEFI if you'd like: http://www.rodsbooks.com/bios2uefi/
Here is the 'Getting Started' page for Tianocore (DUET's base): https://www.tianocore.org/getting-started.html
Not long from now someone will step in to correct my numerous egregious errors. That should help some. If you do make any progress on a 2018 build or one with wider compatibility I will provide what little support I can offer testing or etcetera.


No, UEFI is for all computers. DUET on the other hand is usually tailored for specific machine types i.e Clover is for running Macintosh but just happens to work for practically any Intel based machine.

Have you tried making a USB DUET boot drive manually, such as from the link below? Even though that guide also targets Intel x58, it might be much more universal.
https://audiocricket.com/2016/12/31/boot…6t-se-mainboard

And, can your laptop boot normal USB devices, and has it booted from this USB device before? Just curious if this USB device has been booted from before?

EDIT: My last thoughts are to sell your current NVMe device and try the Samsung 950 Pro instead, since it already has legacy boot built into its firmware, so your device should just see it from the onboard BIOS natively.
EDIT2: I just realized that your Laptop might already have UEFI as noInk said, and if it does, maybe as noInk suggested all you need is REFIND alone?

@noInk
Yes, you were right. An older version of the clover was working. The problem is only with devices or usb ports that cause the computer to hang. Because of this, I have to look for a different way to install win7 on the nvme disk. I am going to clone the system and change the MBR to PGT.

I wonder why during the development of CLOVER or DUET “support” of older devices is “lost”.

@silekonn
My options are limited. Thats for sure :).
“If you do make any progress on a 2018 build or one with wider compatibility I will provide what little support I can offer testing or etcetera.” - And this is a sentence for which you can put a beer :slight_smile:

@SkOrPn
The laptop has ssd. I want to run NvME on a computer with an AMD processor.
I tried to install DUET / REFIND on my hard drive but an error occurred. Something like “lack of HDD formatting”. The CreateUSB.bat program spills over 59 lines of code. I’ve changed the order of the -o and -i options in this code. Formatting has passed and has been successful, but the DUET installation did not want to run from hdd after restarting the computer.

@irrealis Just use a CF card (Clover should take around 200MB by default, so 256MB or 512MB card should be fine).
Short of IDE/SATA HDD, CF + IDE/PATA adapter were the only way for my S939 DFI board to boot a M.2 type drive :smiley:
Here’s SM951 AHCI 256GB test (MBR type drive + seperate GPT-style boot partition for Clover to use) :

OK cool, so you have one laptop for support needs and one older AMD based PC, which you want to run Win7 on a NVMe SSD device. I’m sure it’s possible, you just have to keep working at it until you figure it out. I bet you are closer than you think.

Samsung 950 Pro for those older AMD boards would have been a better buy, and used ones are not that expensive either roughly the same cost as the ADATA SX6000NP. Your board can probably “see” it already.

Nice work @agentx007

What were your steps (guide) to get your setup running on your SM951?

@SkOrPn Well, it’s a bit more than just “get it running” :smiley:
For that you should be able to do a simple Clover installation and use GPT drive, I went further with booting a MBR PCIe drive on Legacy BIOS board. I belive, I already posted how I intall Clover on my CF card.
So steps for screenshot :
1) Format drive as MBR
2) Create two partitions (first for EFI files, second for windows)
3) Copy EFI files from hidden partition of a working GPT/Windows installation
4) Modify said files with BCDEdit, to have a proper disk partion as boot target
5) Run Windows installer in Legacy mode, and hardreset PC on “cannot install on this PC error”.
6) Run installer once again, this time from MBR drive using Clover.
This method probably won’t work on some installers (which don’t copy files and show errors later :D).
Maybe can be bypassed by copying installer files manually to target drive ?

@irrealis

Call it standardization and changes in accessibility.
The platform you are trying to bring back might be below the 4GB of addressable memory and not fully capable of x86-64 operations.
Such limitations might cause issue with the newer version of DUET duo the reworked memory management.

If you have issue with the USBSetup application try to format another USB (different manufactured). Some USB key refuse to write the bootloader on the specified address, lower capacity is better.
If nothing, something pre 2011 might work with limited capabilities.

Also, you could try the suggested DUET build on the audiocricket guide, cause it is really that old.
If the USB made with USBSetup is good and it does boot on another know-to-work PC you could just replace the EFILDR20 else, make it from scratch by following his guide.

I use UEFI (with CSM enabled) for Win7 on a H97
Is there any advantage using REFIND over minimal Clover like mentioned here : [Guide] NVMe-boot without modding your UEFI/BIOS (Clover-EFI bootloader method) (10) ?

I’m building an x58 based computer and am planning to run an NVME drive as my os/boot drive. Motherboard is a gigabyte ud3r.
If I plug the below adapter into a PCI-e x8 slot, what speeds could I theoretically see with the Samsung 961 nvme drive.

My second question is, if I put two 961s in Raid 0, would I see improved speeds or would the PCI slot bottle neck me too much to have any benefit?

https://www.amazon.com/gp/aw/d/B075ZNWS9Y

The adapter takes only one NVME drive and one AHCI. Dual NVME adapters are expensive.
The slot will bottleneck one drive. Two drives would show little to no improvement.
Further, the drive is 4X regardless of how many lanes the adapter uses (here, only four).
An X58 board with PCI-E 2.0 tops out around 2GBps. The drive would do more than that (in some scenarios).
This is multi-NVME: https://www.pcworld.com/article/3297970/…ard-review.html . The bottleneck would be <4GBps. As you will read, RAIDing with this adapter doesn’t translate to read-world improvements.
This poses an interesting question: if the adapter has a bootable ROM, does it negate the need for DUET/etc.?

The adapter I linked has two m.2 slots. I see now that one is only a sata port. Damn.

Hi

I signed up to just post a BIG thank you to everyone who worked on this. I can’t believe I was able to get this running on my first/current build, I plan on doing a Ryzen build but wanted to give my X58 one last refresh for it’s great service.

Mobo: P6X58D Premium
CPU: i7 930 @3.9 (Upgrading to a Xeon x5680)
24GB Ram

NVME: https://www.microcenter.com/product/6004…lid-state-drive


Current Speed on the 2.0 Slot



Again, thank you, thank you so much for the work you’ve done.

@FrankBooth ,

Just an FYI. That suggested Xeon X5680 will give you an even bigger performance boost, one that will surprise you. Had it been built on the same 45nm node as your 930 you probably wouldn’t even notice the hexa core xeon, however since it is built on 32nm it is actually a decent IPC upgrade and WILL BE NOTICED. Make sure you do that upgrade to really experience how far a head Intel was with the x58 platform.

If you haven’t already jumped on the Ryzen bandwagon I would wait until at least this summer for Zen 2 as it “might” be a true revolutionary product with a clear win over Intel at EVERYTHING. Lol