Slashdot Mirror


Free/Open Source Software Hardware Requirements?

Bender asks: "Most on Slashdot seem to be concerned with getting Free/Open Source software to be compatible with hardware (firmware, register sets, etc). My question is from the other side of the table: I'm in the hardware business and I'm wondering if there are any central guidelines to better guarantee compatibility with Linux/*BSD. As an example, to guarantee that our hardware runs Microsoft Windows, we have to conform to the Windows Logo Program Requirements. These requirements dictate (among other things) firmware interfaces, debug ports, and DRM. Some of these requirements, if not implemented carefully, could trigger incompatibilities with non-Microsoft operating systems. Is there a Linux/*BSD equivalent to the Microsoft requirements to allow hardware designers to build OS agnostic systems?"

17 of 228 comments (clear)

  1. This is no problem.. by RawDigits · · Score: 5, Informative

    If you release complete documentation of said hardware ...

  2. Maybe misunderstood? by ajaf · · Score: 1, Informative

    Linux is not *BSD, and *BSD is not linux, maybe you don't want to look for compatibility between them.

    --
    ajf
  3. Follow published standards by Anonymous Coward · · Score: 5, Informative

    Conform to freely available published standards. If you have good reason to produce proprietary hardware, publish the programming interface in sufficient detail for people to make a clean-room implementation of drivers. And don't worry -- free drivers will follow.

  4. Linuxhardware.org by Anonymous Coward · · Score: 0, Informative

    You can use linuxhardware.org to search compatible linux hardware.

    But maybe you can find this article a little more helpfull
    http://www.control-escape.com/linux/lx-h wcompat.ht ml

  5. Open Hardware Certification by Anonymous Coward · · Score: 5, Informative

    The obvious solution is the Open Hardware Certification at http://www.open-hardware.org/

  6. Logo? by mopslik · · Score: 4, Informative

    You said:

    ...to guarantee that our hardware runs Microsoft Windows, we have to conform to the Windows Logo Program Requirements.

    From the "MS Logo" link:

    Microsoft provides Microsoft Windows System and Device Requirements as the authoritative information source for the "Designed for Windows" logo program for hardware. These requirements must be met by manufacturers who want to license the "Designed for Windows" logo.

    So is it really a question of ensuring that your hardware "works", or is it a marketing issue in which you need to show the colourful Windows flag on your product's packagaing?

    I'll admit that I didn't devle too deep into that MS document, though, so it may encompass far more than the logo, despite what the title suggests.

    1. Re:Logo? by athakur999 · · Score: 5, Informative

      The "Windows Logo Program System and Device Requirements" document linked on MS's page is 192 pages full of various hardware requirements. There's definately to it than just marketting. Most of the requirements look like pretty standard stuff to ensure that end users have as painless of an experience as possible. For example, motherboards must support booting from a CD-ROM drive and be able to support USB keyboards during bootup. Any built in USB ports must be enabled by default. Onboard graphics must be cable of 640x480 resolution. Hardware must be able to handle various shutdown modes (like hiberation) properly, etc.

      --
      "People that quote themselves in their signatures bother me" - athakur999
  7. Hardware Status by imscarr · · Score: 2, Informative

    Make all registers readable! Write-only registers are a pain in the #$@#$%^!

    --
    Like the beaver, it's just Dam one thing after another
  8. There's a few things you can do to help by PugMajere · · Score: 5, Informative

    First of all, provide documentation and an engineering contact to answer questions about the documentation. Keep in mind that you will get asked questions from sources other than those related to the core Linux development team - the *BSD teams may have questions for you, some hobbiest may ask questions - answer them all. Incorporate the answers to their questions into your documentation, etc.

    If you are doing anything that is truly groundbreaking, for your company, but has been done in other places, at other times, the experienced OS developers in the free software community can sometimes provide invaluable feedback on what is wrong with your design.

    For example, as I understand it, the AMD64 architecture did not have an IOMMU until rather late. The Linux developers working with AMD on providing support for this architecture pointed out that it was useful and a huge performance win to have one, so AMD reworked that into the architecture. That kind of feedback is invaluable, and something a company like MicroSoft simply can't give, because they lack the necessary cross-platform experience to care. I believe the major Linux distributors are open to consulting arrangements of this type - approach them and ask them for assistance!

    If the hardware you have needs firmware to be loaded into it, consider what license the firmware is distributed under, and how that interacts with the licenses of the free software you are trying to work with. At the very least, make sure other people can redistribute the firmware, unmodified, so the users are not dependent on a download from your site.

    So, document the hardware interfaces. Answer questions on the hardware, and involve those more knowledgeable than your company early and often to give a better design.

  9. Intel is trying.... by ken-reno · · Score: 5, Informative
  10. Re:Serious or Tongue-In-Cheek? by Andyvan · · Score: 2, Informative

    The original poster is quite serious. It *is* a pain in the butt to have write-only registers. This is very common.

    What this means is that you write some control values to the registers, which causes the hardware to do something.

    If you later wish to use those values, you can't just read them back from the registers. You have to have "shadow" registers which cache the last value written to the real hardware registers.

    -- Andyvan

  11. A few pointers by slavemowgli · · Score: 4, Informative

    First of all, I must commend you and your company for caring about these things - it's definitely nice to see that there are companies who actually care about their customers. ^_~ That being said, here are a few things to get you started:

    1. Release documentation for your hardware. Developers' documentation that is - the stuff that document the interfaces of the actual hardware, the registers, and all that. Basically, everything that's needed to make a driver.
    2. If you already have code lying around, consider releasing that under both the GPL (so it can be incorporated into Linux etc.) and the BSD license (for the *BSD systems). It doesn't matter if it's broken, buggy, unfinished or anything; if you release it under the proper free licenses, the community will take care of that. And even a half-finished buggy driver is a much better starting point than no driver at all.
    3. Realize that the community is important; in particular, talk to people. It helps to set up a website which hosts the relevant information (documentation, code releases and so on); if you don't want to or cannot use your company's webserver, Sourceforge.net is a great place to get all the tools you need (like CVS, mailing lists, webspace, bugtracking and so on).
    4. Do get on the relevant mailing lists, like lkml (for the Linux kernel), OpenBSD's tech list and so on. Also, if there are more specialized lists, get on those, too.
    5. Provide sample hardware for testing. It doesn't have to be much, but do consider that most Linux/*BSD developers are not paid for their work; they can't spend money on all the hardware, so any donations to the developers working on the relevant subsystem/drivers will be GREATLY appreciated.
    6. And finally, work with the community, not against it. You may come across people occasionally who're quite blunt, but don't let that deter you. The vast majority of developers are nice, especially when they feel that you genuinely want to help them. Ideally, it's a win-win situation for both the developers and you/your company.

    Hope this helps!

    --
    quidquid latine dictum sit altum videtur.
  12. Re:Troll Story Alert: Congrats to Bender by slavemowgli · · Score: 3, Informative

    As Linus said himself (almost TWO years ago), there is no fundamental incompatibility between DRM and Linux.

    --
    quidquid latine dictum sit altum videtur.
  13. F/OSS Works Differently by ewhac · · Score: 4, Informative
    You may have misconceptualized how F/OSS deals with hardware compatibility issues.

    In Windoze land, Microsoft publishes a list of requirements, and offers testing services to ensure compliance. You code to these requirements and get the thing tested and validated. Once done, Microsoft awards you the right to put "Windows-certified" on your box, and you can consider your product "done" (modulo bug fixes/patches).

    In F/OSS circles, no such certification program exists. There is no list of requirements; there is no explicit testing service. Instead, what there is is the complete kernel source code (so that you can determine precise requirements yourself), hundreds of existing drivers (to get you started writing your own), and hundreds of thousands of users who will beat up on your hardware/driver and liberally shower you with bug reports (of highly variable quality).

    This may seem like a recipe for complete disaster but, depending on what you want to do, it's really not. Linux's device driver model is almost pathetically simple compared to the byzantine mess that Windows uses. So getting a driver with basic functionality is a fairly simple affair. Depending on your device, you'll probably be able to leverage off of existing infrastructure to handle bookkeeping details (for example, I2C bus devices already have an API layer that handles reference counts and locking; coding to it is dead-simple).

    Conversely, there are some areas of Linux driver land that are still evolving. One of the big areas is power management. There are three major competing power management mechanisms for Linux (APM, ACPI, and the lesser-known DPM). None of them really address all power management needs and, while some sleep/suspend modes sorta kinda work, Linux's solution is far from complete. You'll be working with a moving target.

    As other posters have already mentioned, publicly-available, complete hardware documentation (register maps, theory of operation, strapping options, clock diagrams, etc.) is absolutely essential . In case you get bored with your product or, heaven forfend, your company dies, the F/OSS community will be able to take up the slack. They'll also be able to add features or enhance kernel compatibility when and where it's needed. (Some lawyers or senior execs will try to veto a documentation release, citing imaginary fears such as "loss" of proprietary information and trade secrets. You are encouraged to nut-punch these knuckleheads until their opinion is changed.)

    F/OSS is not as strictly regimented as the Windows camp, so strictly regimented project planning isn't as easy. There's a lot of chaos out there. This is, on balance, widely regarded as a good thing. You may be surprised at how well your engineers cope in such an environment. (Conversely, it will also help you identify more quickly exactly which features your users actually value.)

    Schwab

    P.S: If you have the ability, tell Microsoft to take their copy protection ("DRM") requirements and cram them.

  14. Re:Interface Documentation by nametaken · · Score: 3, Informative

    Absolutely.

    And if you're looking for something to feed your marketing department, check out the applications for certification on major distro vendor's sites.

    Mandrake: http://www.linux-mandrake.com/en/hardware.php3
    (a bout halfway down)

    RedHat:
    http://bugzilla.redhat.com/hwcert/
    (at the bottom)

    Those processes will probably get you a shiny logo for your product's box.

  15. Our Requirements by Brandybuck · · Score: 3, Informative

    We don't need you to write drivers for us. It would be nice, and we will thank you profusely if you do. But we're not requiring it. All we care about is access to the complete hardware specifications. It's that simple.

    Even if you have "proprietary" behavior you need to hide behind some proprietary software, just provide us an object file for that *tiny* portion of code, and we can manage the rest. We might grumble a little bit, but we'll still accept it.

    What we don't want is for you to act as if you own the hardware. Don't lock us in to your driver. That's just rude.

    --
    Don't blame me, I didn't vote for either of them!
  16. He's not MAKING hardware, he's assembling!! by mcrbids · · Score: 4, Informative

    This guy is "in the hardware business".

    Meaning, he buys hardware from a distributor, and with a $4 screwdriver, assembles said hardware and pitches it a customer.

    I've been there, and done that. Trying to make one that's WINDOWS compatable is a royal pain in the arse, let alone OSS.

    When I ran a store, we had a few lines of hardware that seemed to be more or less compatable with each other. We had to continually buy hardware of all kinds and test them to see how they did together.

    It was always shocking to me how much of the hardware just didn't pass our testing. Our testing was pretty extensive, and consequently, the hardware lines we stocked were fairly limited.

    Also, it was commonplace to have hardware revisions that would change without any notice whatsoever, ruining compatability.

    At the time (ending Spring of 2000) one of the *WORST* offenders was Asus. On the other hand, a few relatively unknown brands (DFI and A-trend) scored rather well in our testing, and were cheaper to boot!

    My best advice would be to simply test some hardware before you sell it, and see how compatable it is with your favorite distro.

    Good luck.

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.