I ported Mac OS X to the Nintendo Wii

(bryankeller.github.io)

1921 pontos | por blkhp19 6 dias atrás

96 comentários

  • rayiner
    6 dias atrás
    Not only is this an insanely cool project, the writeup is great. I was hooked the whole way through. I particularly love this part:

    > At this point, the system was trying to find a framebuffer driver so that the Mac OS X GUI could be shown. As indicated in the logs, WindowServer was not happy - to fix this, I’d need to write my own framebuffer driver.

    I'm surprised by how well abstracted MacOS is (was). The I/O Kit abstraction layers seemed to actually do what they said. A little kudos to the NeXT developers for that.

    • blkhp19
      6 dias atrás
      I felt similarly. The learning curve was a tad steep, especially since I had never written a driver before, but once I figured out how to structure things and saw the system come alive, I grew to appreciate the approach IOKit takes.

      With that said, I haven't developed drivers for any other platforms, so I really can't say if the abstraction is good compared to what's used by modern systems.

    • spijdar
      6 dias atrás
      IOKit was actually built from the ground up for OS X! NeXT had a different driver model called DriverKit. I've never coded against either, but my understanding was they're pretty different beasts. (I could be wrong)

      That said, indeed, the abstraction layer here is delightful! I know that some NetBSD devs managed to get PPC Darwin running under a Mach/IOKit compatibility layer back in the day, up to running Xquartz on NetBSD! With NetBSD translating IOKit calls. :-)

      • twoodfin
        6 dias atrás
        There’s a great video of a NeXT-era Steve Jobs keynote floating around—I think the one where he announces the x86 port as NeXT was transitioning to a software-only company—where he specifically calls out DriverKit and how great it is.

        Steve was not a developer but he made it his business to care about what they cared about.

        • nxobject
          5 dias atrás
          Yeah - even from the start, I remember NeXT marketing was spending a disproportionate amount of their time selling NeXT’s “object technology”, AppKit and Interface Builder, DPS as an advanced graphics model. It was good hunch from Steve, given how how modern NeXTSTEP feels in retrospect.

          For some reason, though, it means that people overlook how NeXT’s hardware was _very_ far from fast. You weren’t going to get SGI level oomph from m68k and MO disks.

          • lukeh
            5 dias atrás
            Yup, even with a hard drive the m68k turbo slab was no speed demon. Wasn't too bad on HPPA though.
      • erichocean
        6 dias atrás
        As I remember it, they were basically the same—but IOKit is C++ (with restrictions) because 3rd party developers didn't want to learn Objective-C.

        But that's a hazy, 20 year old memory.

        • spijdar
          6 dias atrás
          Yes, you're right! I'm just dolt who's never checked what a .kext on OS X actually is.

          I had been under the impression that DriverKit drivers were quite a different beast, but they're really not. Here's the layout of a NS ".config" bundle:

            ./CG6FrameBuffer.config/English.lproj
            ./CG6FrameBuffer.config/English.lproj/Info.rtf
            ./CG6FrameBuffer.config/English.lproj/Localizable.strings
            ./CG6FrameBuffer.config/CG6FrameBuffer_reloc
            ./CG6FrameBuffer.config/Default.table
            ./CG6FrameBuffer.config/Display.modes
            ./CG6FrameBuffer.config/CG6FrameBuffer
          
          The driver itself is a Mach-O MH_OBJECT image, flagged with MH_NOUNDEFS. (except for the _reloc images, which are MH_PRELOAD. No clue how these two files relate/interact!)

          Now, on OS X:

            ./AirPortAtheros40.kext/Contents
            ./AirPortAtheros40.kext/Contents/_CodeSignature
            ./AirPortAtheros40.kext/Contents/_CodeSignature/CodeResources
            ./AirPortAtheros40.kext/Contents/MacOS
            ./AirPortAtheros40.kext/Contents/MacOS/AirPortAtheros40
            ./AirPortAtheros40.kext/Contents/Info.plist
            ./AirPortAtheros40.kext/Contents/version.plist
          
          OS X added a dedicated image type (MH_KEXT_BUNDLE) and they cleaned up a bit, standardized on plists instead of the "INI-esque" .table files, but yeah, basically the same.
          • KerrAvon
            4 dias atrás
            You're focusing on the executable format, which is very much not the driver model.
        • steve1977
          6 dias atrás
          From here:

          https://news.ycombinator.com/item?id=10006411

          "At some stage in the future we may be able to move IOKit over to a good programming language"

          • xenadu02
            6 dias atrás
            IOKit was almost done in Java; C++ was the engineering plan to stop that from happening.

            Remember: there was a short window of time where everyone thought Java was the future and Java support was featured heavily in some of the early OS X announcements.

            Also DriverKit's Objective-C model was not the same as userspace. As I recall the compiler resolved all message sends at compile time. It was much less dynamic.

            • pjmlp
              5 dias atrás
              Mostly because they thought Objective-C wasn't going to land well with the Object Pascal / C++ communities, given those were the languages on Mac OS previously.

              To note that Android Things did indeed use Java for writing drivers, and on Android since Project Treble, and the new userspace driver model since Android 8, that drivers are a mix of C++, Rust and some Java, all talking via Android IPC with the kernel.

              • lukeh
                5 dias atrás
                There was also the Java-like syntax for ObjC but I don’t think that ever shipped.
            • lemoncucumber
              5 dias atrás
              > there was a short window of time where everyone thought Java was the future

              Makes me think of how plists in macOS are xml because back then xml was the future

        • pjmlp
          5 dias atrás
          Yes, also the same reason why Java was originally introduced, Apple was afraid that the developer community educated in Object Pascal / C++, wasn't keen into learning Objective-C.

          When those fears proved not true, and devs were actually welcoming Objective-C, it was when they dropped Java and the whole Java/Objective-C runtime interop.

      • steve1977
        6 dias atrás
        Funnily enough, there is a (different) DriverKit in macOS again now ;)
      • pjmlp
        5 dias atrás
        Driver Kit used Objective-C, and ironically it is back, as Apple gave the same name to the userspace driver model replacement for IO Kit.
        • jen20
          2 dias atrás
          > ironically it is back, as Apple gave the same name to the....

          This isn't that ironic - reusing old names where the trademarks are already owned etc is a pretty common thing.

    • geerlingguy
      6 dias atrás
      And there are enough parallels to Linux's stack, I'm thinking about looking through the Linux on Wii project more and comparing how it handles fb issues in comparison. I loved reading this whole post, crazy how many OSes have now been run on the humble Wii!
    • MarceliusK
      5 dias atrás
      Once he could satisfy the expected interfaces well enough, the rest of the system seems to have been surprisingly willing to play along
    • steve1977
      6 dias atrás
      I guess having targeted multiple architectures and in the case of OPENSTEP also operating systems early on certainly helped.
    • phendrenad2
      6 dias atrás
      > I'm surprised by how well abstracted MacOS is (was).

      Usually the difference between something being well-abstracted vs poorly-abstracted is how well it's explained.

      • shermantanktop
        5 dias atrás
        I’d say it’s more about how much explanation is needed. There are cool abstractions that require explanation because they aren’t intuitive at first, and then it clicks. But usually if I find endless explanations of why indirection is better because it aligns with someone’s conceptual model, that’s to me a bad abstraction. Not because it’s leaky, but because it resists understanding.
  • redbell
    5 dias atrás
    Excellent project! This is one of the topics that keeps Hacker News ever refreshing. Seeing work get done in a way that feels like real hacking but in a positive way.

    You might also be interested in this similar work: Installing Mac OS on the Nintendo Wii [video] (123pts, 37cmts): (https://news.ycombinator.com/item?id=37306018)

    The author has mentioned earlier attempts to port other OSes to the Wii but it appears these works didn't get much traction here on HN except for Windows:

      WindowsNT (255pts, 86cmts): https://news.ycombinator.com/item?id=43221633
      Linux (53pts, 1cmts): https://news.ycombinator.com/item?id=30568676
      NetBSD (4pts,0 cmts): https://news.ycombinator.com/item?id=46668959
    
    
    Lastly, since we are in the context of turning the Wii into a computer, I'd like to honorable mention: Hosting a blog on the Wii (622pts, 104cmts): (https://news.ycombinator.com/item?id=43754953)
  • guyzero
    6 dias atrás
    In addition to the incredible engineering work here the OP casually flexes by showing the development happening _in an economy class airplane seat_.
    • nine_k
      6 dias atrás
      This is the most incredible part. I cannot even use a laptop adequately in an economy class seat, I cannot position the screen so that I could see it, and the keyboard so that I could type on it, at the same time. (To say nothing of connecting a Wii.)
      • lamasery
        6 dias atrás
        I struggle so much to even comfortably play a handheld video game system on a plane, let alone use a laptop (I have also tried that) that I've mostly given up on even trying and just line up a few albums on my phone to listen to and close my eyes as much as possible.

        I can't imagine trying to program on a laptop with an external device, even something as portable and small as a phone, on a plane. I expect my frustration and frequently bumping things about would mean I'd get nothing done aside from having a bad time.

      • weberer
        5 dias atrás
        Get a pair of XR glasses. I bought some Viture glasses a few years ago and they have been perfect for flights.
        • nine_k
          4 dias atrás
          Indeed, the cost of decent good XR glasses is less than the cost of upgrade to the business class on a flight!
    • jedberg
      6 dias atrás
      And the guy next to him is just staring at his phone, probably thinking, "I'm not even gonna ask".

      Although if it were me I'd probably annoy the heck out of him asking why he had a Wii on the airplane!

      • hbn
        6 dias atrás
        Looks like a Switch 2 actually.
        • jedberg
          6 dias atrás
          You're totally right, it's a Switch 2.
          • xp84
            5 dias atrás
            I don’t get it, how is he getting OS X running “on a Wii” on a Switch 2?
            • saagarjha
              5 dias atrás
              It's what the guy next to him has.
    • eastbound
      6 dias atrás
      Which means no access to Claude.

      Can’t wait for his sequel “I received a Cease and Desist Letter from Apple; Feeling encouraged, I registered the trademark ‘Wii subsystem for macOS’”.

      • lamasery
        6 dias atrás
        "I've now received my Cease and Desist letter from Nintendo over their Wii trademark. Feeling encouraged, I've written a full seven-world Super Mario Brothers sequel for macOS on the Wii that I've titled 'Newer Super Mario Brothers Wii Subsystem for macOS'"
      • deathanatos
        6 dias atrás
        Why would there be no access to Claude?

        I mean, you need WiFi, and that's definitely a roll of the die on flights. But the last flight I had had WiFi, and the gal who sat next to me was vibe coding something.

        Meanwhile I was taking photos of the seat back infotainment system's map, which showed our ETA as being before we left. Sadly, we did not time travel.

        • xp84
          5 dias atrás
          I was on a flight next to someone vibe coding on Cursor via Starlink the other day. It was my first flight with Starlink.
          • djhn
            4 dias atrás
            You and GP must live in the Bay area. Not once in my life have I seen someone coding on a plane, let alone next to me.
            • phatskat
              4 dias atrás
              I’m east coast but I just use LSP and a local environment - no need for WiFi or anything like that to get work (or fun) done
            • xp84
              3 dias atrás
              Nope. The flight was from California (not the Bay) to a popular resort destination.
    • pa7ch
      6 dias atrás
      I can't imagine concentrating on a complicated project like that on the go, but I went back to stare in awe at said picture and I think its a train or bus. Still a flex.
      • badc0ffee
        6 dias atrás
        Still looks like a plane to me, with rows of 2-3-2 seats.

        There are definitely no buses that wide.

        • blkhp19
          6 dias atrás
          My Wii has been on many planes and trains - and yes, there is a photo of each in my post.
        • Y_Y
          5 dias atrás
          There are buses that wide, for example those used in airports.
      • ooboe
        6 dias atrás
        The picture with the black seats in on a train and the one with the green seats is on a plane.
      • jventura
        6 dias atrás
        It seems a bus to me, just look at the size of the windows. Airplanes don't have windows like that..
      • asimovDev
        5 dias atrás
        because of the mix of boredom, very shoddy internet that drops constantly and ANC earbuds removing distractions, I often find myself getting in the zone while riding the train back home from the office. As the kids say, I lock in
    • dan353hehe
      6 dias atrás
      I think it is a bus maybe? I can see out a window over some seats, and the overhead compartments don't really look like ones i've seen before.

      That being said, that is absolutely amazing they brought a wii where ever they were going to write and debug this while traveling! That is dedication!

      EDIT: nvm, there are multiple pictures of them traveling. First one looks bus like, second one look like an airplane.

      • MBCook
        5 dias atrás
        At first I thought it might be a train. “Surely he’s not doing that on a plane“.

        Once he showed he went to Hawaii my idea made slightly less sense.

    • easton
      6 dias atrás
      Apple had a commercial about this a million years ago, where a guy decides to edit a video on a plane.

      https://youtu.be/LQWjxAdSsHE

      • nxobject
        5 dias atrás
        Huh - I know Apple’s first PowerBook 100 had an ad with Shaq on a plane, and then later one with Yao Ming… I guess Apple really wanted to crack the “I’m working on a plane damn it” market?
    • kilpikaarna
      5 dias atrás
      That stood out to me as well. Specifically: how did he power the Wii?
    • Thorrez
      5 dias atrás
      In one of the pictures, the laptop is on his tray, and the wii is on the tray of the seat next to him, and that seat looks empty. So the wii got its own airplane seat?
    • varispeed
      6 dias atrás
      Imagine if he was developing it on a laptop found at a refuse site that was still charged, just hiding in the hedge so that guards wouldn't see him.
    • slackfan
      6 dias atrás
      What's flex-worthy about this? There's a lot of dev work that goes on in economy class airplane seats. Or are VC valley programmers so rich they fly business everywhere?
      • badc0ffee
        6 dias atrás
        It's uncomfortable and awkward (the Wii was on his leg in the first shot), and often you need to break concentration and pack things up to let someone out of or into their seat.
        • slackfan
          6 dias atrás
          [flagged]
          • xp84
            5 dias atrás
            I didn’t think OP was saying it was performative, and I read that as they were just really impressed. And I would be too.

            I agree that coding on a plane can be a good experience, but also it can be tough to keep that focus on some flights, or with some types of neighbors.

  • soci
    6 dias atrás
    Back in the day I was a hardcore Mac nerd and became a professional at it too. My best reverse-engineering trophy was building one of the first "iOS" apps when there was not an official appstore for the iPhone.

    But man, this is way ahead of what I could do. What this dude accomplished blew my mind. Not only the output (running MacOS on a Wii), but the detailed post itself. A-MA-ZING.

    • MarceliusK
      5 dias atrás
      Pre-App Store iPhone stuff was its own kind of wild west
    • blkhp19
      6 dias atrás
      Thank you for the kind words :)
      • trueno
        2 dias atrás
        "According to a 2021 Reddit comment:

        > There is a zero percent chance of this ever happening.

        Feeling encouraged, I started with the basics"

        dude this absolutely sent me lmfao

  • jmcneill
    6 dias atrás
    As the author of the NetBSD Wii and Wii U ports, congrats! I’m looking forward to seeing how you solved some of the problems that I faced along the way.
    • blkhp19
      6 dias atrás
      Your ports were a huge inspiration - thanks for contributing so much to this space!
      • 0xc133
        5 dias atrás
        So when will you port MacOS X to the Wii U? Two more CPU cores and 2GB of RAM instead of 88MB!
        • HerbManic
          5 dias atrás
          That would be a surprisingly cheap way to get a decent "vintage" Mac system considering the cheap resale on WiiUs.
          • itintheory
            5 dias atrás
            Where are you finding cheap WiiUs? I've wanted to pick one up for a while and find them to be exorbitantly expensive, especially the controllers.
            • extraduder_ire
              5 dias atrás
              The gamepads often cost more than the console itself, because they're region locked and you can't use the console without one.

              There is an attempt to clone the functionality of the gamepad ongoing that's somewhat usable: https://github.com/vanilla-wiiu/vanilla

            • SpecialistK
              5 dias atrás
              I saw console-only Wii Us in Book Off in Japan for ~US$30.
    • ninjin
      5 dias atrás
      Many thanks for all the code! The second hand market is currently flooded with Wii U hardware that is cheap enough to buy enough stock to last a life time for peanuts. Would be amazing fun for PowerPC development and if I had an alternative timeline where I went into low-level programming, I would love to push for OpenBSD support inspired by your work.
  • raincole
    6 dias atrás
    > As for RAM, the Wii has a unique configuration: 88 MB total

    TIL Wii has only 88MB of RAM. Fortunately games weren't electron-based.

    • zamadatix
      6 dias atrás
      Another funny history fact with the Wii is Windows Vista released the same month in North America. People were so upset that the minimum requirement for Vista said 512 MB (which was already more than the average existing home PC of the time had without an upgrade) but it ran like crap unless you had more.

      We truly had to get away with less back then. These days it feels like there is a bit more headroom where 8 GB is on the downtrend, 16 GB is becoming the most common, and the user's apps are enjoying the extra fat.

      • vachanmn123
        5 dias atrás
        Recently I was ranting about this very thing, my work machine running win 11 has 16gb ram and Windows just sits at 8Gb on idle. My first laptop had 1 gig of ram... until I got my mac (16GB M1 Air) I used to manage with 4GB RAM while serving clients... Optimization seems to have been forgotten these days
        • raw_anon_1111
          5 dias atrás
          I really wish this meme would die. Every modern operating system - macOS, Linux and Windows - use available memory for certain performance optimizations. It doesn’t mean when needed, that memory isn’t available for other applications and your computer just starts swapping.
          • jaen
            5 dias atrás
            I wish the "optimizations" meme would die as well, read my comment upthread on how that's generally inaccurate.
            • raw_anon_1111
              5 dias atrás
              I can 100% guarantee you that if you have a computer with 8GB RAM, the computer wouldn’t start swapping if you brought up a new process that needed 4 of those 8GB even though it says the operating system is using “8GB RAM”
        • tiagod
          5 dias atrás
          The reason it sits at 8GB on idle is... optimization. The memory is there to be used, so the OS will use it to improve performance until it's needed for more important tasks.
          • jaen
            5 dias atrás
            That's a blatant simplification, and does not match reality as far as I've seen.

            The OS only only has one large source of memory it uses "optimistically" - the file/buffer cache. But that's tracked separately, so it doesn't show up in normal memory usage numbers (unless you don't know how to read them).

            The other source of "extra" memory usage is memory mapped executable files, which can be unmapped and then read back on demand. That's quite small though.

            Everything else (mostly) is actual memory usage caused by actual drivers and programs (though it can be swapped, but that's a major perf hit).

            The major reason for Windows memory bloat is the hundreds of inefficient services from both Microsoft and hardware vendors that run at startup. The "optimization" pool (let's not call it that way) is way smaller than that.

            eg. pre-loading an application is a pessimization if there's not enough memory - not only does it permanently eat away a portion of the total memory due to the intricacies of Windows working set memory management, it will need to be swapped out when actual demand for memory arises, competing with other disk access.

            The only actual "optimization" in Windows is Superfetch, and that barely works these days.

    • TazeTSchnitzel
      6 dias atrás
      The Wii settings menu is an HTML webpage. Yes, even 2006 games consoles were not spared the web.
      • msephton
        5 dias atrás
        Wii and DS ran a version of Opera browser.
      • johannes1234321
        6 dias atrás
        Well, Microsoft pioneered with that earlier. Win98, or was it 95b, merged the filesystem Explorer with Internet Explorer and came up with ActiveDesktop.
        • tomashubelbauer
          5 dias atrás
          Which was very cool and accessible as a kid, I have fond memories of it.
        • HeckFeck
          5 dias atrás
          I remember renaming .html files as .hta and thinking I was a developer.
      • HerbManic
        6 dias atrás
        I was kind of ready to call BS on this, Nintendo is usually a little more careful with these things. But, you are absolutely correct.
        • lunar_rover
          5 dias atrás
          Nintendo uses web UI a lot. The Switch eShop is notoriously a web app running on WebKit without JIT. The Action Guide in Super Mario Odyssey is web despite everything else being native.
  • knivets
    5 dias atrás
    Refreshing to read an article with an actual engineering work as opposed to another article about AI. Great work, very inspiring!
  • devy
    5 dias atrás
    This reminds me the 2008-2009 era where Mac OS X Leopard was running Hackintosh on Dell Mini 9 and some other netbooks.

    At $349, it was almost a fully functional laptop that runs on Mac OS X (comparing to over $1000+ MacBooks or $1599 MacBook Pros)

    Two friends of mine literally working remotely in an Africa trip with Dell Mini 9 and mobile hotspots and were doing video conferencing with Skype (on Wi-Fi).

    [1] https://en.wikipedia.org/wiki/Dell_Inspiron_Mini_Series

    [2] https://en.wikipedia.org/wiki/Hackintosh

    • gattilorenz
      4 dias atrás
      Yep, started coding iOS apps on an EeePC 1000H on Snow Leopard 10.6.8 and XCode 3.1.something.

      While the updates would break things, it was not more complicated than a Linux of the mid 90s to set up, especially with “hackintosh distros” like iDeneb. Surprisingly ok, given the anemic machine!

  • k38f
    6 dias atrás
    Debugging kernel panics on a Wii in an economy seat is a level of focus I can't even imagine. Most people can't read a book on a plane without losing their place every 5 minutes.
  • NetOpWibby
    6 dias atrás

      Before figuring out how to tackle this project, I needed to know whether it would even be possible. According to a 2021 Reddit comment:
    
        There is a zero percent chance of this ever happening.
    
      Feeling encouraged, I started with the basics: what hardware is in the Wii, and how does it compare to the hardware used in real Macs from the era.
    
    I LOL'd
    • glenstein
      6 dias atrás
      I almost think such projects are worth it just to immortalize comments like these. There's a whole psychology of wrongness that centers on declaring that not-quite-impossible things will definitely never happen, because it feels like principled skepticism.
      • inlined
        6 dias atrás
        That used to be my thing: wherever our ops manager declared something was impossible, I’d put my mind to proving her wrong. Even though we both knew she might declare something impossible prematurely to motivate me.

        My favorite was “it’s impossible to know which DB is failing from a stack trace”. I created STAIN (stack traces and instance names): a ruby library that would wrap an object in a viral proxy (all returns from all methods are themselves proxies) that would intercept all exceptions and annotate the call stack with the “stain”ed tag.

        • Groxx
          6 dias atrás
          I've seen more than one half-joke-half-serious chunk of code that would "encode" arbitrary info into stack traces simply by recursively calling `fn_a`, then `fn_s`, `fn_d`, and `fn_f` before continuing with the actual intended call, giving you a stack trace with (effectively) "asdf" in it.

          They've also been useful more than once, e.g. you can do that to know what iteration of a loop failed. There are of course other ways to do this, but it's hard to beat "stupid, simple, and works everywhere" when normal options (e.g. logs) stop working.

          • 0x70dd
            6 dias atrás
            Reminds me of https://github.com/jtolio/gls which implement a "thread local storage" in golang
          • saagarjha
            5 dias atrás
            Yeah, I've implemented this before as a protest against Apple stripping crash logs of information.
        • glenstein
          6 dias atrás
          Well you're doing gods work as far as I'm concerned. Conflating difficulty in practice with impossibility in principle is, to my mind, a source of so much unnecessary cognitive error.
        • prpl
          6 dias atrás
          Adversarial software development is also when I do my best work
          • whycome
            6 dias atrás
            Adversarial personal development is definitely a thing too.
        • alexchantavy
          6 dias atrás
          The solution to every software problem is another layer of indirection :-)
        • btown
          6 dias atrás
          Similarly, one of the great things about Python (less so JS with the ecosystem's habit of shipping minified bundles) is that you can just edit source files in your site_packages once you know where they are. I've done things like add print statements around obscure Django errors as a poor imitation of instrumentation. Gets the job done!
      • dj68k
        6 dias atrás
        I'm remindded of my favorite immortalized comment, "No wireless. Less space than a Nomad. Lame." Rob Malda of Slashdot, 2001, dunking on the iPod when it debuted.
        • gxs
          6 dias atrás
          So many. The Dropbox comment on HN

          Funny enough about the Dropbox comment, it caught so much flak that it’s gone full circle and I’ve often found people defending it saying what the guy said made sense at the time etc

          I guess Reddit is just less empathetic than HN

          • Y_Y
            5 dias atrás
            Dropbox may have made money, but it was always a piece of shit.
      • Groxx
        6 dias atrás
        They're kinda like high-effort shitposts. Which are my absolute favorite kind. The worse the effort/reward payoff, and the more it makes you ask "WHY??!!?", the better.
      • gxs
        6 dias atrás
        Yes, I’ve found at work that the best way to get me off my ass and work furiously is to tell me something isn’t possible
      • mlaretallack
        6 dias atrás
        100% agree, I find that sometimes I hit a dead end, but the things I build or learn on the way are usable at a later date.
      • mikepurvis
        6 dias atrás
        Love that it's actually linked as well; too bad that user isn't still active.
      • BlueRock-Jake
        6 dias atrás
        Agreed. Also who doesn't like knocking a smug commenter down a peg
      • pnptransistor
        6 dias atrás
        Now tell me your opinion on P==NP being confirmed within 5 years.
        • Waterluvian
          6 dias atrás

              P == NP && P !== NP
          • jasomill
            5 dias atrás
            Only in the very special case of N=1+ε for infinitesimal values of ε.
      • blkhp19
        6 dias atrás
        I'd be lying if I said it wasn't a very tiny part of my motivation :)
        • bombcar
          6 dias atrás
          It's a variation of "because it's there" when asked why would you climb some giant mountain.

          Impressive work! Now run Dolphin on it. ;)

    • bluedino
      6 dias atrás
      Wasn't the old Linux joke, don't ask "how do I do X with Linux" (because you'd get ridiculed for not reading the docs) but instead, just state "X isn't possible with Linux" and then someone would show you how it's done?
      • gbalduzzi
        6 dias atrás
        Or eventually you could answer wrongly to a question without answers, triggering plenty of correct ones
        • chrisweekly
          6 dias atrás
          yeah, it's an interesting socio-psychological phenomenon
      • gxs
        6 dias atrás
        Ha so well known it has a name, Cunningham’s law
    • wpm
      6 dias atrás
      I have a project on my desk that started as a response to a line in the Adafruit docs for their RP2040 based MacroPad

           It is not possible to add BLE or WiFi at this time to the MacroPad.
      
      Oh yeah, really? There is a port hanging off the side that can be reconfigured for UART, are you sure Adafruit, what if I add an ESP32?
    • xeonax
      5 dias atrás
      Its a great motivator, happened with me too, I once asked a question about getting the original camera on custom rom and got this as a response [1]. This lead to 2 year long project [2] and an awesome time full of learnings and collaboration

      [1] https://xdaforums.com/t/how-do-i-port-pocos-miui-camera-to-c...

      [2] https://xdaforums.com/t/anxcamera-closed-on-xda-only-16th-fe...

    • bfirsh
      5 dias atrás
      I got the idea of writing an emulator in JavaScript in the pre-Chrome era, circa 2007. I remember searching around trying to find whether somebody had done it before. It seemed not, and somebody on a forum declared “that’s not possible”.

      To me, it was obviously possible, and I was determined to prove them wrong.

      Anyway, this now exists because of that: https://github.com/bfirsh/jsnes

    • bsimpson
      6 dias atrás
      > Readers with a keen eye might notice some issues:

      > - Everything is magenta.

      was fun too

    • addybojangles
      6 dias atrás
      So much has happened in the tech world because someone wrote at one point, "You can't do that"

      My favorite part of our online world.

    • userbinator
      5 dias atrás
      Reminds me of the old saying "don't interrupt the one doing it, to tell him it can't be done."
    • ex-aws-dude
      6 dias atrás
      HN is not as bad but I think a lot of internet commenters do this because it gives them a little hit of superiority

      Plus the internet basically equates cynicism with intelligence

      There is somehow no concept of "ignorant cynicism"

      • eska
        4 dias atrás
        Plus the internet basically equates cynicism with intelligence

        This is a generally known phenomenon in psychology. If you leave a book review saying that you liked a book, people are biased to believe you are stupid. If you criticize a book negatively people are biased to believe you are smart.

    • jasomill
      5 dias atrás
      I thought the same thing about running macOS Ventura on pre-AVX2 Macs until this[1] showed up.

      [1] https://github.com/acidanthera/CryptexFixup

    • nancyminusone
      6 dias atrás
      Gotta love that particular Redditors follow up comment:

      >Go ahead and downvote me. I am correct on every single thing I said

      • arcfour
        6 dias atrás
        The best part is the comment ranting about how the Wii's CPU is so fundamentally different, and then:

        > The Wii uses a PowerPC 750CL processor - an evolution of the PowerPC 750CXe that was used in G3 iBooks and some G3 iMacs.

        Hilarious.

      • dpoloncsak
        6 dias atrás
        Tempted to necro a 5 year old reddit post just to tell that guy he was wrong, honestly
        • zamadatix
          6 dias atrás
          This is why Reddit defaults to archiving posts (preventing new comments or votes) after 6 months.
        • Jeremy1026
          6 dias atrás
          User hasn't posted in 4 years. Sadly, they'd probably never see it.
        • ErneX
          6 dias atrás
          I wanted to, but no replies are allowed now :)
          • LimeLimestone
            6 dias atrás
            I tried messaging them and it says I'm not allowed to message them. Weird, never had that happen to me
        • noman-land
          6 dias atrás
          Make a new thread calling them out personally.
        • oceansky
          6 dias atrás
          Comments are blocked there
      • dfxm12
        6 dias atrás
        The comment score is 1. It doesn't even have a controversial flag. The gamification of social media is a mistake.
    • MomsAVoxell
      6 dias atrás
      The missile knows at all times where it is, by knowing at all times where it isn’t.
    • 0xc133
      5 dias atrás
      I’ve never seen someone go to so much effort just to prove a random Redditor wrong, but I am impressed.
    • talkfold
      6 dias atrás
      The "zero percent" guy definitely opened a browser tab to check after the post went live.
    • krylon
      6 dias atrás
      I had the same reaction.
  • eek2121
    6 dias atrás
    Neat, and kudos! Reminds me of my young hobbyist days. I wish low level dev work was that approachable now.

    Back in the old days, it was REALLY easy to initialize VGA and throw pixels around in ASM, C, or C++. The 6502 and related chips were relatively easy chips to build stuff for, even though tooling was non-existent. Shoot, you could do some really awesome things on a Tandy CoCo2 and BASIC of all things.

    It feels like engineering has made this type of thing inaccessible. Most systems require a ton of knowledge and expertise. There is no easy 'in' for someone with a special interest in development. Even worse, AI is artificially dumbing things down, while making things even more inaccessible.

  • lampiaio
    6 dias atrás
    As someone who's been trying to do something VERY similar (port Mac OS 9 to the Nintendo Wii U), all I can say is I'm 1) absolutely impressed, and 2) absolutely encouraged, as my project keeps telling me "this is impossible" at every opportunity.
    • itomato
      6 dias atrás
      You are at a slight disadvantage without XNU and Darwin sources, but you can have leaked System 7.1 source, Ghidra and MCP to help make up the difference.

      Godspeed.

    • blkhp19
      6 dias atrás
      Very cool! I'd love to learn more. That seems extra challenging considering Mac OS 9 is closed source!
    • stuaxo
      5 dias atrás
      Nice!

      Are there one or two instructions that aren't available ?

      I guess it might be possible to trap and emulate those?

  • leonidasv
    6 dias atrás
    Nice work and write-up!

    A side note: you embedded .mov videos inside <img> tags. This is not compatible with all browsers (notably Chrome and Firefox), which won't load the videos.

    • efdee
      6 dias atrás
      If it's not working on Chrome nor Firefox, it's safe to say it's incompatible with almost all browsers.
      • blkhp19
        6 dias atrás
        I only tested on Safari - whoops! Fixed now.
        • tverbeure
          6 dias atrás
          Minor usability comment: the screenshots are too small to be readable. Whenever that's that case in my blog posts, I make those screenshots clickable and add (Click to enlarge) below it, to make it easier for readers to see the image are original resolution. In markdown, I do that like this:

          [![Image comment](image_url.png) ](image_url.png)

          (Of course, I can also right-click and do "Open image in new tab", but that's one click extra...)

          Congrats on the awesome project, BTW! You were lucky that I wasn't sitting next to you on the plane. I would have wasted so much of your time asking dumb questions.

          • blkhp19
            6 dias atrás
            Images now expand when clicked - thanks for the feedback!
        • BLKNSLVR
          5 dias atrás
          Only tested on Safari running on a Wii?
      • leonidasv
        6 dias atrás
        It works on Safari.
      • tengbretson
        6 dias atrás
        Works on Orion.
    • blkhp19
      6 dias atrás
      Whoops, thanks! Fixed.
  • gauravkashyap6
    5 dias atrás
    What stood out to me is how much of this worked because of strong abstraction boundaries.

    It’s interesting because we don’t often think about OS-level abstractions in the same way anymore — but projects like this really show how powerful they are when they’re done right.

    Makes me wonder how feasible something like this would be with modern systems, where things feel more tightly coupled and security constraints are much stricter.

    • saagarjha
      5 dias atrás
      I feel that modern macOS might be even more abstracted, not less. But it is absolutely more complicated and will probably require a bunch more work.
      • lukeh
        5 dias atrás
        Right, and I suspect as things get more complicated (and you have to ship), abstractions get leaky.
  • asimovDev
    5 dias atrás
    I hope OP is still reading comments. I noticed that the project was written in Xcode (the repo even has the xcodeproj folder) but in some screenshots I see CLion. Did you switch at some point or were you using both throughout the development simultaneously?

    Amazing writeup, love this types of blog posts and hope the hawaii trip was enjoyable

    • blkhp19
      5 dias atrás
      I started with CLion, and found the UX to be completely foreign (not at all Mac-like) and overall frustrating to use.

      Xcode is definitely not perfect, but it's IDE I'm most used to, so I ended up doing my most of my editing in it.

  • mackid
    6 dias atrás
    Congrats, great project and great writeup. That would have won MacHack back in the day.

    Now that the MacBook Neo has an A18, I wonder if you could get MacOS running on an iPhone? :)

    • krsw
      6 dias atrás
      There is a zero percent chance of that ever happening.
      • gaudystead
        6 dias atrás
        Are you willing to elaborate on the _why_ or is this a challenge comment, similar to the reddit comment that spurred this project? ;)
      • xuki
        6 dias atrás
        Go ahead and downvote krsw, he is correct on every single thing he said.
    • msephton
      5 dias atrás
    • LoganDark
      6 dias atrás
      I wonder if you can place an A18 from a Neo onto an iPhone board, and then make that work somehow... You wouldn't be able to use the one originally from the iPhone because it's differently fused to only accept iOS images.
      • circuit10
        6 dias atrás
        Is it possible that a jailbreak is found that could allow a “kexec” kind of thing to load a new OS? Of course it would be a huge amount of work even if theoretically possible
        • dadoum
          6 dias atrás
          marcan once said this was not possible on M1 macs. It was possible before, as coolbooter demonstrated, but it seems now that the hardware cannot be completely reinitialized without being power cycled (it was on Mastodon in 2024, he has since deleted his account so I cannot give you the exact quote). But you can do wizardry to load macOS' userspace on top of iOS' kernel [0] with a jailbreak.

          [0]: https://x.com/khanhduytran0/status/1954724636727587237

          • saagarjha
            5 dias atrás
            You can't reinitialize the hardware, but if whatever you are trying to load is compatible with what's going on, then it should work. In a sense you could consider kexec to be like booting on a kind of weird machine where your interface to talking to the hardware is whatever macOS initialized the devices to.
    • Xerox9213
      6 dias atrás
      Or better yet, an iPad!
  • hoten
    6 dias atrás
    Wonderful write up, thank you for sharing!

    > In the end, I learned (and accomplished) far more than I ever expected - and perhaps more importantly, I was reminded that the projects that seem just out of reach are exactly the ones worth pursuing.

    Couldn't agree more. I've had my own experience porting something that seemed like an intractable problem (https://news.ycombinator.com/item?id=31251004), and when it finally comes together the feeling of accomplishment (and relief!) is great.

  • tiffanyh
    6 dias atrás
    Amazing work.

    If you like this story, you might also like the story of how Mac OS X was ported to Intel as well.

    https://news.ycombinator.com/item?id=4091216

  • hirvi74
    6 dias atrás
    Exceptional work. While it may not mean much, I am truly impressed. I like to toy with reverse engineering here and there, but such a port like this would take me multiple lifetimes.

    Not to distract too much from the main topic, but what do you think about the Hopper disassembler? I have only used Radare2, IDA Pro, and Ghidra. Though, I haven't used the latter two on MacOS. What do you prefer about Hopper? I have been hesitant to purchase a license because I was never sure if it was worth the money compared to the alternatives.

    • blkhp19
      6 dias atrás
      Thank you for the kind words!

      I like using it for disassembling UIKit (for my day job working on iOS apps), and overall, I like the UI/UX and how it feels like a native Mac app.

      I've tried Ghidra, and while extremely impressive and capable, it might be the most Java-feeling app I've ever used. I'd love for someone to whip up an AppKit + SwiftUI shell for it.

      • hirvi74
        6 dias atrás
        > I like using it for disassembling UIKit (for my day job working on iOS apps), and overall, I like the UI/UX and how it feels like a native Mac app.

        You are correct about the UI/UX. I do think Hopper is ahead of others in that regard. Though, Radare2 being a CLI tool is nice as well. Though, I haven't attempted to use Radare2 for MacOS/iOS disassembly. Though I must ask, why are you disassembling UIKit? Looking for private API behavior or working around bugs? I've been learning more about iOS in my spare time, because despite my love for Swift, I have never used it for iOS. I only have used Swift for MacOS automation, i.e., AppleScript replacement via the Accessibility, Core Foundation, AppKit, etc..

        > Ghidra, and while extremely impressive and capable, it might be the most Java-feeling app

        I chuckled while reading this because I had the exact same thought when I first used Ghidra. I haven't tried Ghidra on MacOS because I will not taint my machines with the impurities of Java. I also do not want to enable Rosetta, so that was another obstacle in trying Ghidra on MacOS. In Ghidra's defense, using Java was a pragmatic choice. The "write once, run anywhere" promise of Java is likely a near-necessity for a disassembler for government operations.

        • blkhp19
          6 dias atrás
          > Looking for private API behavior or working around bugs?

          Exactly this!

      • xandrius
        6 dias atrás
        You made me curious: why would you need to disassemble UIKit for iOS as part of your day job?
        • blkhp19
          6 dias atrás
          There are bugs and undocumented behaviors that need to be understood in order to be worked around - I wish it wasn't the case but such is life developing for closed-source platforms.
        • crazysim
          6 dias atrás
          Sometimes things aren't documented and sometimes they could be documented wrong.
      • saagarjha
        5 dias atrás
        I've had it on my list to do for a very long time but unfortunately it has never gotten much effort. Although at this point I'm not super happy with the design (I feel like it's built to be slow…) and I might build on top of something more modern like Binary Ninja instead.
  • tombelieber
    6 dias atrás
    This rules. It’s exactly the kind of cursed side quest that sounds fake until you read the writeup and realize you actually did the work.
  • carlosjobim
    6 dias atrás
    They are successfully porting Mac OS onto every kind of modern computer over at the hackintosh subreddit, and I can't understand why there is so little interest for this stuff in the "hacker" sphere.

    Surely, it must be a better option than Linux if you want to get the most out of a PC computer? At least for 10 more years.

    https://www.reddit.com/r/hackintosh/

    • nancyminusone
      6 dias atrás
      >better option than Linux

      I'm not sure why it would. Why would anyone want to hack on different proprietary software with no supplier support and whose days are clearly numbered (Apple's move to ARM)?

      For usability I mean. It's clearly an interesting technical feat.

      • carlosjobim
        6 dias atrás
        Because it has all the advantages of Linux + all the advantages of Windows + many advantages of its own.

        So to have a fully fledged and more usable computer, for those who don't want to purchase the Apple hardware.

        And the latest Mac OS still supports Intel, so you'll get many more years out of a machine. For what I know, the last 10 versions of MacOS are still very usable.

        • bigyabai
          6 dias atrás
          Have you ever tried daily-driving a Hackintosh? It's nothing like using a Mac, or even a Windows/Linux machine for that matter.

          I dual-booted Mojave on 2 Wintel machines back during the Clover bootloader days, I could only tolerate it for ~2 weeks before giving up. Spoofing OEM Apple hardware is basically impossible, even with configuration-matched CPUs your motherboard will still mismatch the ACPI overrides that macOS expects. Any variety of modern GPU is basically forfeit, hardware acceleration is flaky, Metal is inhumane (with or without Hackintosh), CUDA is unsupported, Vulkan is MIA, filesystem support is a joke, and OTA updates have to be disabled or else your system volume will overwrite the partition table and erase everything that's installed. Reinstalling from scratch can take multiple days if you don't back up your EFI configuration, so you really want to avoid bricking your install while you tweak the configs to stop being broken.

          Even as a developer, using a Hackintosh was a waste of my time back in 2018 when "everything was supported". In 2026, I cannot comprehend a single objective reason why you would use an x86 Hackintosh instead of a better-supported and more fully-featured Linux or WSL installation. x86_64-apple-darwin is a partially depreciated target triple that's not suitable for any macOS or Linux development work, and for prosumers the architecture is already unsupported by many professional apps. Hackintosh is a museum piece now, even OpenCore can't save it: https://blog.greggant.com/posts/2025/07/16/open-core-is-dead...

          • carlosjobim
            5 dias atrás
            System updates not working or being complicated is a given.

            About the other things you mention: What do they mean in practice? That video games don't work, or that photo/video editing doesn't work?

            How does filesystem support differ from MacOS installed on a Mac?

            From what I understand your comment is only from the perspective of a developer? But there are many other uses for a computer.

            • bigyabai
              5 dias atrás
              You didn't answer my question - have you tried making a Hackintosh yourself?

              I'm writing from the perspective of a tech-savvy Windows user that had triple-boot working on my desktop and laptop. I'm willing to deal with some system configuration, but it took upwards of 12 hours to configure my EFI for each unique device I wanted to Hackintosh. And it still didn't fix my iCloud or get my laptop trackpad working.

              That is an entirely unacceptable process for someone who isn't a developer. I cannot recommend anyone use an OS that blocks OTA security updates, let alone people that can't/don't/won't program.

              • carlosjobim
                5 dias atrás
                No I haven't, if I had I wouldn't have needed to make follow up questions.

                But if you follow a guide from somebody who has hackintoshed the exact same device you have, then it shouldn't take that long, or am I missing something? The posts in the hackintosh subreddit generally details what will work and not work.

  • zadikian
    6 dias atrás
    My favorite part of this is the detour to ask for the IOUSBFamily src on IRC
  • willamhou
    5 dias atrás
    Had a very similar issue porting a hypervisor to ARM S-EL2. Writes would succeed, there were no faults, and everything looked reasonable in GDB, but the other side never saw the data. The root cause was that Secure and Non-Secure physical address spaces were backed by different memory even at the same address, and a single PTE bit selected between them. That took me much longer to understand than I’d like to admit.
    • saagarjha
      5 dias atrás
      Yo dawg I heard you liked virtual addressing so I designed virtual addresses for your physical addresses
  • nickpeterson
    6 dias atrás
    The one that really bugs me is the Apple TV. It would be a great little box to use for terminals/thin client style work and there are a ton of old cheap ones. Having a $50 dollar used box that was low power and could run OSX would be great.
    • wpm
      6 dias atrás
      Good news, just today a bypass was released to allow any EFI bootloader to work on the original Apple TV https://github.com/DistroHopper39B/ATV1sm
    • zadikian
      6 dias atrás
      The original one does run a modified OS X Tiger. I jailbroke it a while ago to run custom stuff, but didn't do much with that. Just remember being able to VNC or SSH into it.
    • Tepix
      5 dias atrás
      Aren't those Android boxes that you can get for less than $30 and then flash Linux (Armbian etc) onto a much better option?
    • raw_anon_1111
      5 dias atrás
      Hell Apple’s latest monitors have an A19 Pro chip in them which are more powerful than the MacBook Neo.
      • Tepix
        5 dias atrás
        They're more than $50 however.
  • monkpit
    6 dias atrás
    > There is a zero percent chance of this ever happening.

    Honestly, I would have said the same. Great work!

  • samtheDamned
    6 dias atrás
    This was an incredible read! Especially for what looks like the first post to this blog too? I wanted to subscribe to the RSS feed but unfortunately it gives a 404 error.
    • dunder_cat
      5 dias atrás
      Chiming in as well to say to the author when the victory lap here is over: please consider adding the RSS feed! I want to see whatever you do next, regardless of how long it takes.
      • msephton
        5 dias atrás
        Here's another polite request for an RSS feed. Thank you
        • samtheDamned
          4 dias atrás
          Just adding for posterity that the RSS feed appears to be functional now
  • drzaiusx11
    5 dias atrás
    I wonder what, if anything significant, has changed architecturally from osx to modern macos and how this post could be used as a guide for future porting efforts (aside from the obvious 2 CPU isa changes over the last 20 years)
  • faisalfakih
    5 dias atrás
    Incredible project. The dual-framebuffer RGB -> YUV conversion trick is really clever. Really entertaining read as well!
    • qingcharles
      5 dias atrás
      Halves your frame-rate though, I would imagine?

      I've never seen a device with a YUV frame buffer before. What else has one?

  • stuaxo
    5 dias atrás
    Great work and writeup.

    I wonder if the YUV conversion could be offloaded somehow to the ARM inside the Hollywood or somehow using a shader (or equivalent) if the graphics were accelerated - though maybe this is way way too much.

    • blkhp19
      5 dias atrás
      I considered this! There were a lot of things I wanted to try but didn't want the timeline of this project to blow up any more than it already had. Now that I've done the hard part of writing about it and publishing it, I can revisit some of these ideas :)
      • stuaxo
        5 dias atrás
        It looks like between Linux and NetBSD on the Wii there's quite a bit of work in those areas.
  • sagoshi
    5 dias atrás
    hand-rolled iokit drivers and a bootloader to get xnu running on 88mb of ram with cpu-bound yuv-to-rgb conversion at 60fps, all because the wii's powerpc 750cl is close enough to a g3 imac that darwin mostly just worked. solid systems work and a genuinely useful writeup but might try on a dreamcast personally. rom burns
  • unanonymousanon
    6 dias atrás
    This is extraordinary, not only pushing the limit but documenting everything so clearly to show people what can be accomplished with time and dedication. Thank you for such thorough documentation, and congrats on getting it done!
  • hassaanr
    6 dias atrás
    In love with projects that are done solely because 'why the hell not'. Fantastic writeup and work.
  • bsimpson
    6 dias atrás
    This is excellent.

    YUV appears to be a PAL-specific color space. I wonder how off an NTSC Wii would be. Presumably it would have the wrong color space until an equivalent conversion scheme was devised for NTSC.

    I was surprised to see regional color spaces leak into the project, but I presume that Nintendo's iOS (the coincidentally-named system this is replacing) could handle that abstraction for game developers.

    • zerocrates
      6 dias atrás
      Some of this is just really widespread imprecise usage of terms: what really should be called "YCbCr" in digital contexts is frequently called "YUV." So-called "YUV" digital formats for video are really really common, and they're used for both NTSC and PAL. "YUV420," YCbCr using 4:2:0 chroma subsampling so the two color components are half the resolution in each dimension vs. the luma, in particular is super-common.

      The Wii seems to actually use "YUV422" internally, so 4:2:2 chroma subsampling, where the chroma is only halved in one dimension. The conversion to analog NTSC or PAL signals happens later in the process. The repository here actually looks like it sets up the Wii's video interface to output NTSC progressive by default, but lets you configure for PAL with a config file.

    • duskwuff
      6 dias atrás
      YUV is a color model, akin to RGB or HSL; it's independent of video formats like NTSC or PAL.
      • TazeTSchnitzel
        6 dias atrás
        That's true in broad strokes, but looking into it, it turns out NTSC's variant of YUV is called YIQ, and SECAM's variant is called YDbDr. They are however all more or less the same thing, and the digital YUV used by the Wii hardware in this case is presumably independent of the video standard.
    • saagarjha
      5 dias atrás
      Nit: Nintendo's thing is called IOS
  • rajptech
    5 dias atrás
    The PowerPC-to-Intel transition still has the cleanest binary-format story in mainstream consumer OS history — Rosetta 1 was better engineering than people remember. Wild to see the Wii hardware resurrected for this.
  • crusty
    4 dias atrás
    To each his own and all that but sitting in a hotel room hacking on a computer while on vacation (in Hawaii!) is PTSD trigger-warning territory for me.
  • p0seidon
    6 dias atrás
    This is incredible. I wonder when an LLM will pull this knowledge out to help someone down the line who would never have had the craft to pull this off, as it requires so much depth and broad skill. Admirable.
  • cyrialize
    6 dias atrás
    The Wii is very moddable. I've modded my Wii in the past just for playing modded versions of Super Smash Brother Melee (mainly training packs, like flashing a red light when I miss an L-cancel).
    • dansalvato
      6 dias atrás
      I wrote that L-cancel training code! Funny to see it come up out of nowhere. I too have always adored the Wii and its moddability. It'd be my go-to choice if I someday ever get the itch to write console homebrew software of my own.
      • cyrialize
        5 dias atrás
        Oh hi! I'm a huge fan of your work! I've watched so many videos breaking down Doki Doki Literature Club.

        Thank you for all that you do.

    • blkhp19
      6 dias atrás
      Yes - this project (and countless others) would not have been possible without the incredible work to hack the Wii from Team Twiizers (now fail0verflow) back in the day. The work they did was a huge inspiration for me getting into computer science when I was a teenager.
  • rbanffy
    5 dias atrás
    What's not to love? A small and beautiful PowerPC Unix workstation, something IBM hasn't done in a long, long time. How far does MacPorts go with a PPC?
  • joshstrange
    5 dias atrás
    So freaking cool and I really loved the writing style. One thing that surprised me was working on this while on a plane. I find it incredibly difficult to do normal or even limited work while on a plane (thankfully I fly rarely) but working on a hardware project like this on a plane feels like playing on hard mode.

    Kudos to the author for being able to do make real progress in such a hostile (IMHO) environment.

  • MaxLeiter
    6 dias atrás
    Great write-up. I love hardware running software it shouldn’t support
  • swiftcoder
    6 dias atrás
    Damn, that's some dedication! Congrats on getting it running
  • fortran77
    5 dias atrás
    There was a Windows NT 4.0 for PowerPC. And several people have had this running on the Wii. https://github.com/Wack0/entii-for-workcubes

    Much easier to do, because of the superior, more modern architecture of Windows NT. (It's not based on Apollo-era OS like OSX is.)

  • wmlive
    4 dias atrás
    Having managed to install and run OPENSTEP on a Frankenpad T61, albeit without network access, I'd wish someone similarily capable would create some network and PCMCIA drivers for the T6x Thinkpad generation to enable full use of its hardware capabilities.
  • pvtmert
    3 dias atrás
    I love the fact that this guy went through all the hassle (partially) because of the following reddit comment:

    > There is a zero percent chance of this ever happening.

  • zdware
    6 dias atrás
    Fun post.

    Always great when your debugging feedback is via a led xD

  • OhMeadhbh
    6 dias atrás
    Presumably this means you could also port MacOS 9 if you were okay with writing a few drivers and patching some virtual ROMs.
  • djsavvy
    6 dias atrás
    I'm shocked that the Wii only has 88mb of RAM. The programmers of that era really knew how to make a lot from a little!
    • winrid
      4 dias atrás
      The Wii UI looked fine and was very easy to understand, too.
  • WorldPeas
    6 dias atrás
    Given that the original Apple TV ran on a modified version of macos, what are the chances one could turn an old wii into an Apple TV..?

    EDIT: also, I just noticed on a second pass the system is addressing 78mb of ram, potentially meaning the ram spans the gddr3 and sram, I'm amazed this works as well as it does with seemingly heterogeneous memory

    • zydeco
      6 dias atrás
      I'd say there is a zero percent chance of this ever happening :D The original Apple TV was an Intel Core Solo with 256 MB of RAM and an nVidia GPU, running a modified Mac OS X 10.4 that booted into something similar to Front Row instead of Finder.
      • WorldPeas
        6 dias atrás
        Oh interesting, it looks like that geforce had an entire 64mb of gddr3 too, it'd still be fun to see if one could limbo that low, though I agree that save for upgrading the BGA ddr3 of the wii to something more the size of the dev kit had(128mb GDDR3)
    • CrazyStat
      6 dias atrás
      Apple TV came after the switch to Intel processors, so you would have to have some kind of reverse-Rosetta layer to run it on a PowerPC Wii.
      • zadikian
        6 dias atrás
        Tiger had a native PPC version too
  • bredren
    6 dias atrás
    It is satisfying to see someone hacking on deprecated hardware and software also is keen to look forward into Vision Pro.
  • AnnikaL
    6 dias atrás
    Wow! This is really impressive!

    I kind of want to try some project like this sometime, but I wouldn't even know where to start...

    • msephton
      5 dias atrás
      Start with the idea and then do some reading and then when you're comfortable enough... onwards!
  • chrisweekly
    6 dias atrás
    Haha, this is great. Very impressive -- and a fantastic, detailed writeup. Congrats! And thanks for sharing! :)
  • bottlepalm
    6 dias atrás
    And here I am shopping for Macs because getting a hackintosh working from a VM on Windows is too difficult for me.
  • tom-blk
    5 dias atrás
    Hehe that's so cool, I didn't know that it was a thing to port OSes to the Wii :D
  • Eric_Xua
    5 dias atrás
    This writeup absolutely ruled – real low‑level hacking, great storytelling, and super inspiring.
  • anthk
    6 dias atrás
    Not OSX, but I'd love what Aros m68k is doing with the Amiga but for Mac OS System7.

    Yes, I know about Ardi Executor being libre and enhanced now, but that's not the point.

    I'd love to spawn MiniVMAC with a free system ROM replacement and a free Mac OS 7 reimplementation.

    • duskwuff
      6 dias atrás
      Possibly of interest: https://mace.home.blog/

      Frustratingly, though, they haven't released any source code yet.

      • anthk
        5 dias atrás
        That's the same as Executor, or some similar project with GNU/Linux with was exactly what Mace does with a free license.

        https://www.v68k.org/advanced-mac-substitute/

        What I would like to see it's the full OS reimplementation a la AROS m68k.

        There are Minivmac ports for 9front. Exegutor it's made in C++, so no way to compile it with NPE (micro-POSIX compat layer for 9front). If anyone had that under MiniVmac, it could run everywhere.

        On Advanced Mac Substitute, as it has an SDL2 interface, it can be almost done unless it's written in C++. If it's ANSI C or C99, it might run under 9front.

  • Bubble1296
    5 dias atrás
    Highly respectable project. My hat's off to you. I'm just curious, what computer programming language did you do most of this in and what do you think was the most challenging part of porting Mac OS X on to the Wii console?
    • blkhp19
      5 dias atrás
      Thanks! The project was mostly C for the bootloader and C++ for the drivers.

      As for which part was the most challenging... probably understanding the IOKit driver model. I really would have benefitted from having an expert explain some of the concepts to me, and give me some advice about how to structure my own drivers.

      • Bubble1296
        5 dias atrás
        I see. Very interesting project. Do you think that you're going to post it on GitHub?
    • msephton
      5 dias atrás
      The post shows C language
  • alper
    5 dias atrás
    How do you get good like this?
    • voidUpdate
      5 dias atrás
      Just keep doing stuff and gaining experience. Sometimes you'll find that you don't know how to do something, at that point don't just reach for an LLM, do your best to try and understand it, google around, and if all else fails, put it down and maybe come back to it later with fresh eyes
  • mghackerlady
    6 dias atrás
    I'm pretty sure someones done this for the 360. Also, doesn't NT have a wii port?
  • vsgherzi
    6 dias atrás
    This is some amazing work, a good reminder to dig more into operating systems for myself!
  • talkfold
    6 dias atrás
    Brought the Wii to Hawaii to finish the framebuffer driver. Priorities perfectly set.
  • flopsa
    6 dias atrás
    This was a brilliant write up and an insane project. Kudos!
  • davenporten
    6 dias atrás
    Hahaha! Yes! We need more of this in the world, love it!
  • MarceliusK
    5 dias atrás
    Really impressive work, and a very fun read
  • xoxxala
    6 dias atrás
    Very neat project and an extremely enjoyable read.
  • oliad1
    6 dias atrás
    Nice project! Love seeing emulators & ports
  • saagarjha
    5 dias atrás
    Reading this was the highlight of the week! I love it when people port things to places they do not belong :)
  • kogasa240p
    6 dias atrás
    Wonder if it can happen on the Wii U
    • blkhp19
      6 dias atrás
      With the extra RAM, higher clock speed, and no need to waste CPU cycles converting YUV -> RGB framenbuffers - I bet it would be!
  • delduca
    6 dias atrás
    The best hack of the last 10 years.
  • khernandezrt
    6 dias atrás
    Unrelated to the article but please compress your images. Why is one of them almost 8mb!?
  • nticompass
    6 dias atrás
    This is awesome! I can't wait to plug in my Wii and give it a try myself.
  • cdrnsf
    6 dias atrás
    Wonderful. Can it run Doom?
  • rado
    6 dias atrás
    Great, how about on iPhone?
  • outadoc
    5 dias atrás
    Super cool project and write-up, I loved reading it!
  • dlopes7
    5 dias atrás
    It was refreshing reading this in the age of AI slop, thank you for the great read and congratulations on the project
  • maximilianburke
    5 dias atrás
    Makes me wonder if 10.4 would work on the WiiU...
  • spiderice
    6 dias atrás
    I bet if me-20-years-ago knew that current me would have no fucking clue how to even begin to tackle a problem like this, me-20-years-ago would be very disappointed. Very jealous of your expertise. Awesome work!
  • c0_0p_
    6 dias atrás
    Fantastic work and a great write up.
  • stavros
    6 dias atrás
    This is excellent, though if you had chosen another OS, you could have called the project Wiindows.

    EDIT: Oh interesting, the final paragraph says NT has been ported, didn't know that. Sadly, no pun is mentioned in that project.

    • asimovDev
      16 horas atrás
      I wonder if Gamecube's PPC CPU is sufficiently compatible. then you have the easy Cube puns to use in reference to G4 cube
    • snazz
      6 dias atrás
      “entii-for-workcubes” is a pretty good pun!
      • stavros
        6 dias atrás
        I don't know man, "Wiindows" was right there and they chose "entii"? I weep for the missed opportunity more than anything.

        Maybe it was a legal worry.

  • bananaboy
    6 dias atrás
    Amazing work and write up!
  • mlfreeman
    6 dias atrás
    Uh, I just noticed the Windows NT for GameCube port actually claims Wii support too...so maybe one day we'll see a Wii dual boot NT4 and OS X 10.0
  • lanyard-textile
    6 dias atrás
    Absolutely atrocious. Congratulations!

    That's the hacker spirit.

  • serhack_
    6 dias atrás
    awesome, good to see some real content from pre-AI moment
  • rafaelgoncalves
    5 dias atrás
    awesome work and write up! hella impressive!
  • rvz
    6 dias atrás
    The post is a work of an actual hacker who knows what they're doing. Zero mention of "I used Claude" or "Used AI" to understand what is needed for accomplish this task.

    This is exceptional work. Unlike the low-effort slop posts I see here on "Show HN".

    • blkhp19
      6 dias atrás
      I used plenty of non-agentic AI to help understand the XNU codebase, and also research various topics. It wasn't always correct, but it certainly helped at times! My philosophy for this project was to use it as a learning tool - since that was kind of the whole point of me attempting this :)
    • dirasieb
      6 dias atrás
      looks like they did use AI, swing and a miss for the luddites once again!
    • bigyabai
      6 dias atrás
      Ah, the Procrustian definition of "real hacker", where using AI disqualifies you but using Github pages is considered only a minor infraction.

      The build-in-public era of hacking has really turned this field into an influencer economy.

      • jasaldivara
        6 dias atrás
        Whats wrong about Github pages?
        • dewey
          6 dias atrás
          A real hacker would obviously never use a Microsoft product, or worse, post on a VC funded web forum!
        • bigyabai
          6 dias atrás
          Absolutely nothing. People protest Github to virtue signal their anti-Microsoft sentiment and fill a hole in their personality.

          Similarly, "zero mention of AI" is just a surface-level observation that says nothing about how the project was completed and everything about your own insecurities defining the word hacker.

  • postalcoder
    6 dias atrás
    Sorry if off topic but I was struck by the view from your window. Were you in Hanalei Bay?
    • blkhp19
      6 dias atrás
      I was - incredible views indeed!
      • postalcoder
        6 dias atrás
        Your post and pictures brightened up my day. Thanks!
  • jkbowa
    6 dias atrás
    Really cool!
  • dejongh
    6 dias atrás
    Great hack!
  • rdanieli
    6 dias atrás
    nice!
  • anArbitraryOne
    6 dias atrás
    I love it. I mean I hate MacOS, but great project
  • eats_indigo
    6 dias atrás
    honestly expected this port to be headed in the opposite direction
  • frakt0x90
    6 dias atrás
    If all the AI stories on this site were replaced with amazing stuff like this, the world would be a better place.
    • jjice
      6 dias atrás
      I probably have rose colored glasses, but this is what I associate with Hacker News when I first started coming to this site. Truly absurd projects for no reason other than the love of the game and detailed write ups.

      I'm not an LLM post hater, but it definitely has been a bit draining lately. This is exactly what I love to see here.

      • mech422
        6 dias atrás
        yeah - I wish the 'Hacker' part of 'HackerNews' got more attention. Last few years it often feels more like "VC-Buzzword-of-the-day-News" - AI is just the most recent cycle.
    • kstrauser
      6 dias atrás
      Get to submitting! Be the change you want to see.
    • twoodfin
      6 dias atrás
      I’m SOO happy but also wistfully sad when I open a post like this that I am desperately excited to read and it’s not muddled-thinking- and LinkedInese-riddled slop.
  • zenlot
    6 dias atrás
    [dead]
  • ValveFan6969
    6 dias atrás
    [dead]
  • anskksdkdkdk
    6 dias atrás
    [flagged]
  • ynajjarine
    6 dias atrás
    [flagged]
    • duskwuff
      6 dias atrás
      I bet there's some way to make the GPU do the color conversion. It's not like it's doing much otherwise...
      • MarioMan
        6 dias atrás
        It looks like copying from EFB to XFB can do an RBG to YUV conversion automatically.
    • blkhp19
      6 dias atrás
      Last I checked, the 60fps frame buffer conversion resulted in the system idling at 18% CPU. Certainly not ideal. I'd love to optimize this further.
      • saagarjha
        5 dias atrás
        Presumably Wii has AltiVec that you could use to accelerate the conversion? Did you happen to look into the code the compiler generates for your loop around rgbrgb16toycbycr?
    • dmitrygr
      6 dias atrás
      This solution’s COU cost can be significantly improved by using memory protection. You protect the frame buffer from writes. The first time it is written, you take a fault, and start refreshing every 60 Hz and leave it writeable. After some number of refreshes, you protect it again, the idea being is that the UI may now be quiescent. I do this in my Palm OS port for the same reason.
      • blkhp19
        6 dias atrás
        I'm intrigued by this technique! Will look into it, thanks for the tip!
        • dmitrygr
          6 dias atrás
          sample impl is in rePalm sources, but i described basically all there is to it :)

          saves a lot of CPU

          • saagarjha
            5 dias atrás
            This would work for an idle screen but I can't imagine this would be very efficient for real use, unless the hardware cursor is put in some other framebuffer (I assume it's not otherwise the author would have probably mentioned it?)
            • dmitrygr
              5 dias atrás
              on computer timescales, humans are basically motionless, as long as there is motion, you do the 60Hz update, occasionally you take a page fault too, not a high cost compared to a screenfull of colorpsace conversion. But when display is not changing you save a lot of cpu power.

              But also Wii has the gpu abilities to trivially support hardware cursor

  • guerrilla
    6 dias atrás
    > The Wii uses a PowerPC 750CL

    Well, okay, that's almost cheating.