Unofficial Hacker News companion — get notified on comment replies, and more.

Salesforce: Turning a Freescale Dev Board into a Macintosh (opens external site)

77 points by wanderingjew 2 days ago | bbenchoff.com | 35 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (6)

  1. Very curious on the OHCI control. I've only seen some custom controlled IP cores or licensed ones. I guess I'll have to wait for the open source.

    Also jumping on the salesforce is a bad name.

    Replies (1)
    1. OP here; Wow a technical question.

      It's not custom. It's SpinalHDL's UsbOhci. There's a project using Artix 7s on old Sun cards that use the same thing.

      The PHY is a pair of TUSB1106 transceivers. Mac OS 9 doesn't need a driver from me. It's using the Apple OHCI driver in Mac OS ROM, bound to a PCI class. 3k LUTs on the chip, keyboard, mouse, and thumb drive work.

      As for the name. The Apple mac-io was Grand Central, Paddington, Ohare, Heathrow, Gatwick, etc. the last one was Key Largo. I had two choices. I could name it after the Salesforce Transit Center, or I could name it Islamorada. I would like to thank you all for the engagement.

      Replies (2)
      1. I forgot about the spinal core, that's true. That core says no phy needed (like most/all of the full speed FPGA cores I've seen) so did you put a shim? Or you can configure it to use the phy? I really need to learn spinal one day. I can't make heads or tails of what their documented example will compile to in terms of I/O.
        Replies (1)
        1. The Spinal code has a PHY block that does all the USB signaling in logic. Underneath that, it's a simple interface with enable, tx and rx data, D+/D- out. I'm bringing that interface out of the generated verilog with a 100-line shim that maps everything onto the TUSB.

          I'm using real transceivers because the bare FPGA balls won't work. Well, they would probably work for USB1. But I'm going to put something between the port and an FPGA.

          You don't need to read scala, just write a wrapper that names the ports you want, generate, and look at the port list of the .v file.

          Replies (1)
          1. I've used them for USB full speed at least as a device. They certainly work at the short distance I tested. But yeah if you want something more compliant and don't mind the SWAP-C hit, makes sense to do it your way. Honestly I've seen (and done at least 1) countless implementations of this without a transceiver so I was a bit shocked.
      2. Neat stuff, would love getting my hands on a board of yours. I’ve implemented a 68040 Macintosh in a Xilinx Ku5P on a random cheap-ish Chinese board (custom core and custom peripherals- although I have a version of the codebase with Quadra 700-based I/O, too) and am also using the SpinalHDL OHCI - hooking usb straight up into a PMOD and a custom driver/ROM for USB support in System 7.

        It would be funny to deploy a core in the “southbridge” and hook the 68k emulation that Mac OS classic does up to it.

        It’s been an interesting experience to develop complex hardware as a mostly software guy and one of the things that LLMs broadened my horizons towards. I’d love to be able to come up with a custom board for the Ku5P with all the relevant I/O down the line, too. For now I stick to RTL though.