OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 6:29 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Re: UEFI "hello world" won't boot on physical hardware
PostPosted: Mon Oct 28, 2019 10:22 am 
Offline
Member
Member
User avatar

Joined: Fri Feb 17, 2017 4:01 pm
Posts: 642
Location: Ukraine, Bachmut
unfortunately, it looks like incompliant, buggy FW you faced. the only thing to suggest, is to try the same on another test machine. is there an option "boot from file" in the boot manager's UI of the FW, when you interrupt the boot flow? if it is, try to run your executable this way, if it shows you path to it, of course, (it might, even not considering the drive bootable, actually, UEFI doesn't have such a notion). if it runs successfully, then the FW is picky on what part of the spec to support, if it fails, maybe you have some errors inside and FW deletes bad boot option.
does this machine have other storage devices? HDD? if you put it there, say \efi\glidix\myloader.efi?

_________________
ANT - NT-like OS for x64 and arm64.
efify - UEFI for a couple of boards (mips and arm). suspended due to lost of all the target park boards (russians destroyed our town).


Top
 Profile  
 
 Post subject: Re: UEFI "hello world" won't boot on physical hardware
PostPosted: Mon Oct 28, 2019 11:43 am 
Offline
Member
Member
User avatar

Joined: Tue Mar 06, 2007 11:17 am
Posts: 1225
Probably your machine only has normal BIOS, or is in BIOS mode instead of UEFI mode.

I would prefer to have a regular BIOS computer and implement myself only the functions that make up what I need for UEFI to boot my code, to check that I'm understanding every detail of how it works.

Plus, it would make new software bootable in very old computers having a custom UEFI patch as a bootloader on top of the BIOS.

UEFI is like LILO or GRUB, or even like DPMI for 32/64 bits, so why not make my own in any case as part of my OS even if it's already present to port to more machines? They could probably be modified to implement a custom UEFI fast.

_________________
Live PC 1: Image Live PC 2: Image

YouTube:
http://youtube.com/@AltComp126/streams
http://youtube.com/@proyectos/streams

http://master.dl.sourceforge.net/projec ... 7z?viasf=1


Top
 Profile  
 
 Post subject: Re: UEFI "hello world" won't boot on physical hardware
PostPosted: Tue Oct 29, 2019 4:06 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5144
64MB is awfully small. The firmware might expect a bigger partition than that. Microsoft recommends at least 100MB.

Have you tried letting some other OS create the EFI system partition and simply copying your binary to it?


Top
 Profile  
 
 Post subject: Re: UEFI "hello world" won't boot on physical hardware
PostPosted: Wed Oct 30, 2019 7:08 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 618
Location: North Dakota, United States
Not hard:
Code:
parted -s /dev/<device> mklabel gpt mkpart boot fat32 0% 100MB set 1 esp on

Or something like that. Then format it as fat32 and put your files in the proper places.


Top
 Profile  
 
 Post subject: Re: UEFI "hello world" won't boot on physical hardware
PostPosted: Thu Oct 31, 2019 9:16 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 618
Location: North Dakota, United States
mariuszp wrote:
Ethin wrote:
Not hard:
Code:
parted -s /dev/<device> mklabel gpt mkpart boot fat32 0% 100MB set 1 esp on

Or something like that. Then format it as fat32 and put your files in the proper places.


Do you know if it's somehow possible to also create another partition, with a custom type GUID? (to mark it as the Glidix FS).

I don't think parted supports that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 221 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group