Dual-Booting Mac OSX and Windows on MacBookPro

NOTE: Thanks to @TGIK on the thread https://discussions.apple.com/thread/250137979 who came up with the solution.

System: MackBook Pro (13-inch, Late 2011), Intel Core i5, 4GB RAM, Intel HD Graphics 3000, SuperDrive

Background:

  • Purpose of this guide: Due to poor EFI support on the earlier MACs (think 2012 and earlier?), when Windows is installed in EFI mode, the audio card does not work (EFI boot mode exposes devices in a different way, which effectively leads to audio not working). This guide uses registry DSDT override in Windows to enable the audio card without using any third party bootloader so your Mac OSX is more or less still vanilla 🙂
  • I first tried to install Windows with BootCamp but got the “GPT/MBR wont install” issue after EFIbooting the Windows 8.1 USB.
  • I then converted the Hybrid GPT/MBR partition scheme the BootCamp had created to GPT with protected MBR by:
    (1) disabling SIP – boot the MAC while holding down command+R to get to OSX Recovery, start Terminal from the Utilities menu, run “crsutil disable”, restart the MAC. I believe I then deleted the partition I had created with BootCamp and used Disk Utility instead to create a new partition for my Windows install
    (2) download gdisk and install gdisk (https://sourceforge.net/projects/gptfdisk/ ), determine your disk device name (e.g., from Disk Utilities), update the partition by running gdisk against the disk, selecting x for advanced, type n, then type w to write, Y to accept changes.
    sudo gdisk /dev/disk0
    x (ENTER key)
    n (ENTER key)
    w (ENTER key)
    Y (ENTER key)
    (3) run gdisk again and check the output that the partition scheme is now listed as GPT with protected MR; quit gdisk
    (4) You may want to re-enable SIP (boot while holding Command+R to get into OSX Recovery, start Terminal from the Utilities menu, run “crsutil enable”, restart the MAC.
  • I installed Windows from the prepared USB (press Option key when booting and select the EFIboot – it should have a USB icon). I chose to reformat the partition I had created in Mac OSX for Windows in the installation wizard.
  • In Windows, I installed the BootCamp Drivers (The BootCamp Assistant should have copied it to the USB for you, otherwise download them from the Apple website). This enables enabled WiFi and everything else but with no audio and the audio device in device manager had the error “This device cannot start. (Code 10)”
  • I then found @TGIK’s solution thread on Apple’s Support Forum after which I did the following to get the audio to work:
  1. Boot into Mac OSX and use MaciASL software to dump your DSDT in OSX : https://sourceforge.net/projects/maciasl/
    Installand run MaciASL. From the MaciASL menu chose the save as disassembled DSL option e.g., with filename DSDT (MaciASL will tag on extension DSL once you choose the right file type in the “save as” dialog box)
  2. Copy the DSDT.DSL to a USB or put it online (e.g., your email or google drive)
  3. Re-boot the MAC into Windows

The remaining steps are extracted from the guide: https://egpu.io/forums/pc-setup/fix-dsdt-override-to-correct-error-12/

4. Download and install the required tools:

  • Windows Binary Tools (WBT – Dec 2016) extracted to c:\dsdt directory. [ https://acpica.org/sites/acpica/files/iasl-win-20161222.zip ]
  • Windows Driver Kit (WDK), which contains the Windows ASL Compiler (asl.exe) [ https://go.microsoft.com/fwlink/p/?LinkId=526733 ]
  • Notepad++ text editor
  • Copy WDK’s ASL compiler into the c:\dsdt directory. Do this by opening Command Prompt (run as administrator) and then copy-and-paste the commands below: mkdir c:\dsdt
    c: & cd \dsdt
    set 64bit_OS_asl=”C:\Program Files (x86)\Windows Kits\10\Tools\x64\ACPIVerify\asl.exe”
    set 32bit_OS_asl=”C:\Program Files (x86)\Windows Kits\10\Tools\x86\ACPIVerify\asl.exe”
    copy /y %32bit_OS_asl% c:\dsdt > nul & copy /y %64bit_OS_asl% c:\dsdt > nul
    if not exist c:\dsdt\asl.exe echo ERROR: Failed to copy asl.exe to c:\dsdt

5. Copy the DSDT.DSL into the c:\dsdt folder

6. Edit the DSL as described and add the QWordMemory section (I used the “Intel method” as recommended in the egpu.io guide). See (iii) under section “OPTION 1: Use the Intel method” i.e.:
… With Notepad++, open the resultant c:\dsdt\dsdt.dsl file and search for ResourceProducer. Beneath it will be a series of “DWordMemory” resource entries. Under the last DWordMemory entry in that area, typically above the _CRS method, add a ‘QWordMemory’ (64-bit) entry as shown in red below. …

(NOTE: the lines starting with “QWordMemory” to the line ending with ” TypeStatic)” are the lines introduced into the DSDT.DSL file)

DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
   0x00000000,         // Granularity
   0x000A0000,         // Range Minimum
   0x000BFFFF,         // Range Maximum
   0x00000000,         // Translation Offset
   0x00020000,         // Length
   ,, , AddressRangeMemory, TypeStatic)
QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
   0x0000000000000000, // Granularity
   0x0000000C20000000, // Range Minimum,  set it to 48.5GB
   0x0000000E0FFFFFFF, // Range Maximum,  set it to 56.25GB
   0x0000000000000000, // Translation Offset
   0x00000001F0000000, // Length calculated by Range Max - Range Min.
   ,, , AddressRangeMemory, TypeStatic)
})
   Method (_CRS, 0, Serialized)  // _CRS: Current Resource Settings

7. Create an updated dsdt.aml file from the update DSDT.DSL file (using the commands):
c: & cd \dsdt
iasl -ve dsdt.dsl

Note: the iasl actually creates a file called iASLcnnPCo.aml. Just rename it to anything you want e.g., DSDT.AML

8. Load the updated/modified AML using registry DSDT override:
cd c:\dsdt
asl /loadtable DSDT.aml
bcdedit -set TESTSIGNING ON

9. Reboot Windows and you should have audio working when it comes back up.
– I noticed two devices in the “Sound, video and game controllers” section in Device manager: “Cirrus Logic CS4206B(AB 28)” and “High Definition Audio Device” (with the error “This device cannot start. (Code 10)”).

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

** If your MAC is equipped with a DVD drive (e.g., SuperDrive), you can avoid this guide by installing Windows in legacy MBR boot mode. Write the Windows ISO to a DVD-R media (or if you have the Windows install DVD already even better). After creating a suitable partition for Windows within Mac OSX, just boot the MAC while holding the Option key, choose to boot from the DVD drive (not EFIboot !), and install Windows into the target partition. Install BootCamp Drivers within Windows and you are done! Everything should just work.

*The Windows USB can be created with unetbootbin, rufus, or the Windows 7 USB/DVD creator tool.

Referencess:
https://mac.filehorse.com/download-daemon-tools/
https://sourceforge.net/projects/gptfdisk/
https://docs.google.com/viewer?url=http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf
https://apple.stackexchange.com/questions/8044/how-can-i-install-boot-camp-off-a-windows-7-usb-flash-drive
https://www.cnet.com/how-to/install-win-7-on-macbook-air-from-a-usb-drive/
https://macriot.com/mcrt/2014/12/08/windows-cannot-be-installed-on-to-this-disk-the-selected-disk-is-of-the-gpt-partition-style/
https://bl.ocks.org/balupton/1603bb4b7769d1af0fd7
https://superuser.com/questions/508026/windows-detects-gpt-disk-as-mbr-in-efi-boot/508454#508454?newreg=06d03dd9848a46babff1704022ce593c
https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

The Border Collie

Did you read about me?
Indestructible, or so I thought
Did you hear of me?
Inexhaustible, the tales I wrought

The open road is where I live
The wind in my face
A hard man with no give
Every stop is a new base

I used to wear full body armour
Over my Under Armour
The heat and the tight fit
My excuse for no extra kit

Left to my discretion
I ditched the protection
Forth, I sally
The law is my ally

Gas and oil and grease – my blend
Coming around the bend
The breaks didn’t save me
The road broke me

Doing sixty in a forty
Ahead of my party
It was a Border Collie
It ended my folly

08-Sep-2019

The Joshua Tree

Meet me at the Joshua tree
When the autumn is in full bloom
When you have been set free
In the dark of night – in the gloom

Meet me at the Joshua tree
The stars will be our witness
They did not flee
A light in the blackness

Meet me at the Joshua tree
In my dreams and yours
Beside the inland sea
Away from these shores

Meet me at the Joshua tree
But only if you are truly free

Scorez I

Big guy: Hey bro. Where are you from?
Me: Nigeria. You?
BG: Guess
Me: Not sure but definitely Polynesian
BG: Samoa. What’s your name?
Me: A-Y. Yours?
BG: Tau
BG: Do you play rugby?
Me: No
BG: Why not?
Me: I am too small (he’s probably 6 5” with the rock solid “Polynesian build”)
BG: What are you reading? (He opens the book). I had my hand between the pages.
Brief pause. Uncomfortable silence
BG: Oh. Sorry I didn’t notice the hand.
Me: No probs at all
BG: What happened?
Me: That’s how I was born. Congenital.
BG: Ok. What do you drink?
Me: Anything
BG: Well have a beer and a shot on me!

06-June-2019

Meals on Wheels

Meals on Wheels

I decided to volunteer for Meals on Wheels (a government program that provides meals to home-bound senior citizens).
I would join the thousands of volunteers that on any given day deliver lunch to senior citizens all over the country. For me that would be delivering lunch to about 9 people every other Monday. The food is prepared with the help of inmates at a correctional facility, then shipped to some center where volunteers like myself pick them up (already packed in a heater for the meal and a cooler for the milk, fruits, etc). I will then drive to each house on a list (“route”) and drop off the food. Some of the recipients have instructions on what to drop off (some don’t receive milk or bread) and what to do at the house (go right in; knock and wait; there’s a dog but it is harmless; etc).

I didn’t expect it to be as exhausting as it turned out to be. My first drop off was at a managed apartment complex for senior citizens, spent some time looking for the right building before making it to the right floor then the right apartment.
My second drop off almost had me in tears – a very old stooped lady seated by herself in this quaint house. I knocked and went in. She asked me to put the food on a little table right in front of her – I really can’t tell exactly why I was emotional for a few minutes after I got back to my car – maybe a combination of remembering my father; the fact that ultimately we are all alone; and the lady’s condition.

The rest got better. I dropped off a couple of food packages in a house where the 86-year old lady was still as feisty as ever. When I handed the trays over to her, I asked if she could manage, to which she responded with a twinkle in her eyes: “Do you know how old I am? I am 86 years and I can still whoop the world’s arse!”

From typing in the wrong address in Google Maps, to hunting down house addresses, it was quite interesting.

I did go to the house with the dog. It was this very tiny Chihuahua which was very aggressive – but like that meme that goes “Not all Australian animals will kill you. Don’t get me wrong … he wants to. He just can’t” – the dog’s size made it hilarious – but that level of aggression would have made it very dangerous if it wasn’t “size-challenged”. I knocked on the door, and a young boy opened it and I handed over the food. Almost immediately the dog went on a barking and growling spree which was loud enough to get the attention of the next door neighbors. The boy tried to call it to heel but it would have none of it. It followed me out with the boy in tow. Every few steps I took it would charge at my feet but stop just short of actually nipping at my trouser legs.


By the time I was done 1.5 hours later, I was exhausted. I got back to the senior center where I had picked up the packages from to return the heater and cooler.
I could see it was basically run by other senior citizens who were packing the food and so on. The old lady that attended to me earlier asked how it went and I told her a little difficult but since it was my first time, to be expected. An old gentleman that also worked there said “Thank you for doing this.”

Note: they have chapters all over the country if you are interested in volunteering.

Near-death is not a valid source of after-life facts

A disjointed argument against near-death experience as a source of facts about the after-life (for want of a better title)

So some people who have died medically and been resuscitated claim there is nothing after death.
“We” agree that they died medically, but the fact that they are “here” to tell about it means they did not die finally.
And if they did not die finally, how can we then be sure of where they were during that period when to all intents and purposes they were dead?
People who have a concussion or lose consciousness may wake up and not remember a thing. We do not know where their minds or souls were during that period. We have come up with all sorts of explanation – purgatory; some tunnel with a light at the end; etc. But it is all just conjecture.
I understand when people are “put under” (general anesthesia) some have a near-death experience.
I had mine. I was in some sort of a really small box, that was in a box, within a box, to no end. The boxes were shiny and dark at the same time. How I came to know the boxes were stacked like a Matryoshka doll I could not tell for sure. But it was as if I was trapped inside but able to see the whole thing from outside at the same time. But no matter how hard I struggled I could not get out.
There was some sort of very regular booming sound, like a thunder clap. At some point I gave up struggling, I thought maybe this was hell and I was dead and my sins had found me out. I thought this was no way to spend eternity. I despaired. But then I woke up once the anesthetics wore off.
Now some people will say those who medically died and got resuscitated is the closest thing we have to dying fully. That is all fine and good. But being close is not the same as being exact or the real thing. Death is final. From my limited recollection of calculus math, no one knows what the biggest number is or we accept it is infinite or infinitely big.
For all intent and purposes, we say “sufficiently big” is an approximation of infinity. But who knows what would happen if we could indeed discover that biggest number? Would our minds implode? If we could build a computer that could handle it, would the computer become self-aware – a sentient being? Or since only God is truly infinite, would such a number be the number of God? If our mind could grasp it, would we achieve enlightenment and be as God or gods?
Again, all these is just conjecture. People who “died” and “returned” cannot be our source of truth about life after death. Obviously as a believer myself, this excludes Jesus.

5/27/2019 (1:44AM)

Nessie’s keep

Nessie’s keep (March-04-2019)

Call it what you wish but not Nessie
Or Bessie
Not even Jessie

Could you pat its head?
Hug its long neck?
Or ride its arched back?

It ate children and adults alike
Sheep and cattle when it liked
Fear what beneath the surface lurks
Pay attention to what roils the murk

It is the kraken of the deep
It is leviathan of the keep
Watch your footing lest you slip

Today in church

Service over, I joined the throng of people in the aisle heading for the exit. This lady smiled at me and I smiled back. She looks familiar which is not saying anything since we all come here once a week. I made to go on but then she beckoned to me to come back.
“This is my daughter. She is so excited to see you.” Then sort of conspiratorially, she said “You know you are in a special class of people.” I am not so sure about the “special” bit, my hand has brought me nothing but heartbreak. Her daughter had several deformed fingers on both hands. She must be about 8 or so. I shook her hand and asked for her name which she shyly told me. She’s obviously Asian and from the name likely Chinese. The mum is Caucasian so I am assuming she was adopted. I said I hoped to see them again.
And as I walked out of the church, I noted for the umpteenth time that my left hand was one of the main reasons why at my age I still sat alone in church “…. he set the lonely in families …”
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
At some point in my hazy past, I became aware I was different and not in a way I liked. Mean comments and mixed meaning comments from ids such as “Mummy look at his hand. It’s like baby feet.” Comments made while laughing to other kids, or made while peeking out fearfully from behind their mother’s dress, or while shrinking away in terror soon turned me into a recluse. I stuck the hand in my pocket always. I started to avoid people. I became my own company of one.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I remember one of those messages when her no was definite, she made one random statement that went something like “…. my friend said when you finally get comfortable, you will tell me about your hand …”. In the midst of other statements such as “I never felt anything for you” and “I have friends leading guys on but I can’t do it to you any longer” that statement was completely out of place but gave me some comfort in a weird sort of way – after all if the rejection had to do with my deformity then I can say it was beyond my control – but that wouldn’t be the whole truth or even close.
I wanted to tell her I have never been comfortable. I have always hid the hand. Hid myself. The period of life most people spend socializing with their peers and learning how to interact with the opposite sex, I spent hiding. I hid in front of the TV; I hid in the vast library my dad had due to his love of books; I hid in magazines; I hid in my actively created daydreams; I hid in my room; I hid in my class; I hid everywhere; I hid in the corner of the room at the few parties I attended; I hid in plain site. My parents did their best of course. Being alone so long at such a time in my life made me secretive, a little spiteful, a little envious, a little jealous, a little selfish, a little manipulative, a little mean, a hodge podge of the seven deadly sins because I thought the world was unfair and that it owned me something when in fact it owed me nothing. I became a little fearful of everything that required interaction or a response. After all TVs don’t talk back and neither do books. I took time to read the books I find interesting … I might pause on a page and insert myself into the time period or place or circumstance and daydream a complete scenario – of sweeping in and saving the day. I dreamed of flying – of being a superhero. In high school I got myself a catapult for a while. I hit a pigeon once but it was only slightly grazed and it got away while a classmate held it gingerly (good for it). Then I went though my stone throwing period. I got good at it. I could hit even relatively small targets at vast distances. Activities to fill the void and the loneliness – activities that required no interaction.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
The only thing that forced me to take a peak at the world was the death of my father. Even though I had been living away from home for over  a decade, I had been content to hop on buses or into taxis to get around. Bu then there was lots to do including visiting my mother so I needed to be able to get around on my own schedule. It was then I got my first car. It was then I learned to drive. In my mid 30s. I remember taking out the car only on Sundays when the roads in my neighborhood were relatively free of traffic and the trepidation when any vehicle approached from the opposite direction.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I keep trying to prove her wrong when she said “it’s too late for you, you can’t change.” But as the school’s guidance counselor said, “you have to be patient with yourself. You can’t expect to undo what you have spent 30-something years creating in a single year.” I know it is wrong but I am a creature of the past, because the past, even though is full of heartaches and heartbreaks, is safe – it can’t bite because it has no teeth. Its wounds itch and sometimes sting badly, but you know it’s just the scars playing up. If I come knocking on the door of your heart (a miracle in itself) you have to accept me as I am or give me plenty of time to change.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
The sermon was about King Jehoshaphat who gave thanks when going to war confronted by a coalition of three of Judah’s historical enemies and how the Lord turn his enemies against each other and Judah didn’t even need to fight at all. We should count our blessings and give thanks in all situations. I try.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I wanted to tell the mum: “Throw her in at the deep end; Force her out there; She’s going to hear other children say hurtful things; She’s going to want to hide, but don’t allow it. She will thank you for it later.” Maybe I still will.

Lasik eye surgery

I don’t have a personal experience of any sort of eye surgery but I think I need to put this here in case someone considering Lasik sees it.

Just a word of caution to do your research. When it goes wrong it is supposedly life changing to the point some people are considering suicide. Google for bad effects such as starburst, ghosting, and dry eyes.

Make sure you consider the pros and cons before committing to it. There are just too much adverts on the TV which is of course paid for by their organization that I think it is almost evil that medicine has become commercialized to the degree it is especially in the US. “Schedule your “free” consultation now, the surgery is so quick and can be had for as low as $220 per eye. We even offer a payment plan ….”

Note I have nothing against the surgery but given the amount of people with negative outcome, it is worth warning people to do their research before having the surgery. I know one should do ones research for any surgical procedure but the medical profession is one of those (with good justification) that we tend to believe with little question. But this Lasik surgery thing is so glamorized on TV and other social media outlets it’s become disconcerting.

True, no one is getting out of life alive, but hopefully we have reasonably good health for as long as possible.

Be good.

A.Y.

Exam woes

Exam woes

I am putting this here instead of sending it to Pearson Vue for two reasons: they are not likely to take it seriously, and two, to avoid the very slim chance that it may negatively affect the “greeter” who probably was doing his best with his tools.


Hello Pearson Vue,
I am sure millions use your services so frankly I don’t expect anyone to take this seriously.
All the same I have to put it on record.
1. I logged in well ahead of time, launched the app and was kept waiting for over 30 mins.
I tried the suggested chat option which was offline and then sent a mail as well as call the office line (OOTO message). Finally someone came online and told me you had technical challenges. I am also in IT support, if something is not working I am sure you have a record of all those scheduled to write exams during that window and you could have sent out a message (email/SMS/phone call). You probably don’t know the emotional strain standing by to write an exam with no idea what was going on.
2. The gentleman then released the exam and all I got on my screen was a message to “refresh the page”, he tried about 3 times then suggested I restart my system. Which I did. When the system came back on, he informed me the window to release the exam had closed! I asked if I can reschedule it for today and he told me all slots were occupied (I would expect if you kept me waiting for that long, you would bend a little). On top of that, he had then discovered the reason why the exam wasn’t opening on my system. An “illegal” application was running. If he had said that to begin with maybe I wouldn’t have had to reboot my system and then find out the exam releease window (5mins?) had expired. The only thing running on the system was Free Alarm Clock, otherwise it is a completely bare system. I didn’t even have an antivirus (removed yesterday and rebooted my system) just to be sure nothing interfered with the exam.
3. Two things come to mind, I think your greeters need more training – because obviously he didn’t know what was causing the blank page I got. And two, please improve your application (it sounds as if all you have is some whitelist that blacklists everything it doesn’t understand even if it is harmless). Addendum to this second point, have whatever screen the greeter is looking at pop-up the name of the “illegal” application so that the greeter won’t resort to the “reboot your PC” as the default solution only to then say the release window had expired.
Please note that the free alarm clock was running minimized into the systray. But after getting off the phone with the greeter to whom I insisted there was nothing on the system. I went through an audit and that is the only thing on the system (outside chrome, firefox, and java). It is not good enough to just say there is something illegal (for that matter, only after the fact) on my system. Even if the exam release window had not expired, the reboot would likely not have helped because the alarm software auto-starts by default.

Rant over.

Best Regards,

NB: I still get to write the exam, I just have to re-schedule it to another date in the future.