BenLunt wrote:
As Octocontrabass has stated, you must use the BIOS, whether it be the Legacy or the UEFI to boot your kernel. There has to be
some form of media access already in place. The chicken before the egg.
The Memory map is a must for the BIOS. Your kernel code cannot get an accurate account of the memory. The memory map is
created via various forms: Boot up, BIOS code, and even hardwired at manufacture time.
As I stated before, I think the BIOS (Legacy or other) should be used as little as possible, but it is a necessity. You must use it to
load from the media as well as get the memory map and a few other things.
One thing to remember, manufacturers, (no names please) are pushing to get rid of the Legacy BIOS. Once this happens, your
Legacy BIOS boot will not boot. Therefore, you must have a UEFI bootable boot code and loader. However, I think this will be
quite a ways down the road. UEFI machines are and have been available for some time, though these machines still have a
Legacy Boot option...
As long as it was not a Class 3 machine (server hardware), originally UEFI required a compatibility support module for transition support.
This Classic PC BIOS
CSM is still available on most if not all current PC's. Additionally there are brand new late model PC's which
either cater to DOS / Linux as well as PC's such as the intel
NUC which for the most part are sold as barebones with no OS which have
the CSM (recently a few models have been released as complete PC's with WIN 10 installed). Even though intel is out of the motherboard
business the NUC is here to stay. The nice thing about the NUC is that it has the intel Visual BIOS. Plug the USB flash drive in, shut down
the machine in hibernate mode, restart the PC and enter the BIOS, click on the legacy device tab and double click on the listed USB
device to boot and run without changing any settings. CTRL-ALT-DEL and the PC restarts exactly we you were before (thanks to hibernate -
which of course is not necessary but rather an added convenience).
Works just like an emulator except it's bare hardware.