OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Mar 18, 2024 8:35 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Buying a PC: Mac EFI or UEFI?
PostPosted: Fri Mar 18, 2016 6:18 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
(I asked a somewhat similar question in auto-delete forum but it's a bit different.)

I've been waiting for the release of new MacBook Pro. Another option is Dell XPS 13 (similarly priced) or Microsoft's Surface Book.

You know, Windows 10 PCs use UEFI while Macs use a custom UFI. I'd my OS to run on the computer I buy, natively (i.e., not in a virtual machine or emulator). I'd mind using the firmware functions for disk access or I/O. Does anyone have an experience?

(Some people on this forum have told me to stop posting. Well, if you've a problem with me, personally, don't reply.)


EDIT: The question is mainly about choosing a platform to rewrite my operating system in (that currently relies on BIOS heavily), not just about buying a laptop.


Last edited by Muazzam on Fri Mar 18, 2016 7:24 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Fri Mar 18, 2016 6:49 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
Buy a normal PC.


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Fri Mar 18, 2016 7:21 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
iansjack wrote:
Buy a normal PC.

You mean a BIOS computer?

Well, BIOS is going to be obsolete in most PCs (if not all) in a few years. It'll render my OS useless.

ARM is popular too, but not it's not open/documented enough.


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Fri Mar 18, 2016 8:01 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
I believe any new PC you could buy today will have UEFI support.

For every day use, I'd prefer the MacBook Pro, but for development (both as a workstation and as a development target platform), I would prefer a normal PC laptop. My work PC laptop has a touchscreen, but I've never used it, and probably never will.

I struggled with this same choice about a year ago, and I ended up getting an HP Elitebook, and I've been pretty happy with it.

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Fri Mar 18, 2016 8:36 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
Muazzam wrote:
You mean a BIOS computer?

No, I mean a normal PC.

Not a Mac, not a SurfaceBook - a normal PC.


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Fri Mar 18, 2016 9:12 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
Thanks for the responses!

I'm curios to know about keyboard, disk, and graphics (native and firmware) interfaces on Macs.

How do these things differ from that of "normal PCs"?


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Fri Mar 18, 2016 9:55 am 
Offline
Member
Member
User avatar

Joined: Wed Jan 06, 2010 7:07 pm
Posts: 792
They should be mostly the same. Macs can run Windows and Linux without too many (any?) custom drivers - in particular, the graphics are just standard Intel integrated graphics, which are pretty well documented.

_________________
[www.abubalay.com]


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Fri Mar 18, 2016 10:50 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
OS X's Boot Camp provides Windows with some of the drivers. I think, they'd be proprietary.

Do you think Linux uses any proprietary drivers on Macs?


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Fri Mar 18, 2016 11:20 am 
Offline
Member
Member
User avatar

Joined: Wed Aug 05, 2015 5:33 pm
Posts: 159
Location: Drenthe, Netherlands
Muazzam wrote:
Do you think Linux uses any proprietary drivers on Macs?
Depending on the hardware it might if you so choose just like running any flavor of linux on a normal pc. But booting via EFI doesn't require proprietary drivers of itself.

Mac's (from a hardware perspective) are just PC's which some devices (like the battery) on a different bus and some protection thrown in so MacOS won't boot unless it thinks it's an authentic Mac. It's almost trivial to install MacOS on a PC with the right mix of components.

I agree wholeheartedly with iansjack... you should buy a normal PC.

_________________
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Sat Mar 19, 2016 3:14 am 
Offline
Member
Member

Joined: Wed Jun 03, 2015 5:03 am
Posts: 397
Muazzam wrote:
ARM is popular too, but not it's not open/documented enough.

ARM has wider auditory than anything else. Because of cheap chinese mobile devices. Many of them are Android powered. iPhone also uses ARM. Mobile devices are our future.

Currently there is a relatively simple way towards ARM OS-deving, it's called Cyanogenmod and the Development section in particular. The project uses open source part of the Google's Android code and provides users with highly customized versions of Android. But nobody is bound to work on Android, it's just a starting place. There's a lot of ways for playing with clean Linux kernel without any Android's extensions. The only problem is the majority of drivers are not open source (but some are and can be used by OS-devers). And if we reckon that a hobby OS often has just a few drivers, the situation with mobile ARM development wouldn't look as scary as it could be at a first glance.

Cyanogenmod provides OS-devers with many useful tools and documentation. Also it's community is rich and active, so you can ask any question and most probably can get the satisfying answer. Basically the mobile system works just as an ordinary PC, there's a first stage bootloader, which is followed by the second level whose responsibility is to load a kernel. And all you need at the beginning is the kernel. Just your simple kernel with some "hello world" functionality. Or even simpler - you can use Linux's kernel with manufacturer's drivers installed and extend it in a way it suits you. And there's no need for open source drivers in this case - just get your preferred smartphone, root it and use already provided drivers as you wish. But it, of course, looks much more like Linux OS development. For personally your OS you need device with open source drivers which is not very hard to find.

But all this requires some time consuming shift from x86 PCs towards mobile ARM ecosystem.

_________________
My previous account (embryo) was accidentally deleted, so I have no chance but to use something new. But may be it was a good lesson about software reliability :)


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Sat Mar 19, 2016 8:45 am 
Offline
Member
Member
User avatar

Joined: Thu Mar 27, 2014 3:57 am
Posts: 568
Location: Moscow, Russia
Quote:
Do you think Linux uses any proprietary drivers on Macs?
There are open source drivers for all Mac hardware (at least for MacBookPro10,1). The only exception is the Broadcom WiFi card - an open source driver is available for it, but it sucks (there's a good proprietary one though).

Mac EFI is not much different from UEFI, I used UEFI documentation from the web and it worked.

_________________
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Mon Mar 21, 2016 7:00 pm 
Offline
Member
Member

Joined: Sun Feb 28, 2016 5:33 pm
Posts: 45
Location: Merced, California
Muazzam wrote:
ARM is popular too, but not it's not open/documented enough.


Neither. From ARM directly and from any number of other sources you can find the complete logic of ARM processors, and almost any one of them to boot (in fact, there are open-source ARM clones for FPGAs, i.e. the Amber processor. The issue you'll face is that ARM is simply a seller of IP cores for their processors; they don't fab out chips like other companies do.

If you're a large company attempting to make a product with a processor in it that does some function X, you'll probably contract ARM and a bunch of other vendors for SIP cores that comprise ARM cores and the required intercomm/interconn logic. You might design your own core and include it. You then go to a foundry and ask them to make your design for you. The issue with ARM devices isn't their "openness" (although open-source people I've worked with tend to hate ARM), nor their documentation - it's their degree of standardization.

Unlike the PC market, which is driven by the de facto requirement with previous versions of that "standard" and software, ARM does not have a standard with virtually global scope forcing it to conform. For Android devices of one particular epoch, devices might have X, X, and X features laid out in a particular manner, but going to the iPhone, that has custom Apple-fabbed devices, those phones use internal standards that might differ completely. The issue with developing for ARM is the lack of a single, unifying standard that has leveled the playing field and forced everyone to conform. For the developer, that means that you'd be fighting an uphill battle to differentiate devices at the hardware level from each other, or targeting one specific implementation family of the cores. I suppose where the degree of "openness" comes in is that a large number of the vendor SIP cores (non-ARM, vendor- and chip-specific stuff) are very lock-and-key on docs. That's a battle I've had to fight at the corporate level as well.

Many "desktop" Linux distributions, for example, have begun to target ARM, because they realize they can now include the logic required to enumerate and cover a large number of the different bases in play. If you're interested in ARM development, I'd look at the ARMv7 ports of Ubuntu and Debian to the Raspberry Pi and Raspberry Pi 2.


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Tue Mar 22, 2016 8:49 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
Roman wrote:
Quote:
Do you think Linux uses any proprietary drivers on Macs?
There are open source drivers for all Mac hardware (at least for MacBookPro10,1). The only exception is the Broadcom WiFi card - an open source driver is available for it, but it sucks (there's a good proprietary one though).

Mac EFI is not much different from UEFI, I used UEFI documentation from the web and it worked.

That's a good reply, thanks!


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Tue Mar 22, 2016 8:50 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
Embryo2: The greatest pleasure for me in OS development is seeing your computer using your own code. Using an existing driver or kernel, even the open-source one, won't work.


Top
 Profile  
 
 Post subject: Re: Buying a PC: Mac EFI or UEFI?
PostPosted: Tue Mar 22, 2016 8:53 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:59 am
Posts: 543
Location: Shahpur, Layyah, Pakistan
Nutterts wrote:
Muazzam wrote:
I agree wholeheartedly with iansjack... you should buy a normal PC.

Any good arguments? (Other than Mac's price. HPs, Dells, etc. are also similarly priced.)

I'd prefer Mac because OS X can replace (for me) Windows and Linux and because I'm just curious about it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 12 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