Home Blog Page 596

Open Source Hardware: From SBCs to Servers

When you mention open source hardware, people typically think about community-backed hacker boards. However, the open hardware movement is growing on many fronts, including medical devices, rocketry and satellites, 3D printers, cameras, VR gear, and even laptops and servers. At the Embedded Linux Conference Europe in October, John “Warthog” Hawley, Intel’s evangelist for the MinnowBoard SBC, surveyed the key open hardware trends he saw in 2016. The full video, “Survey of Open Hardware 2016,” can be seen below.

Hawley prefers the strict open hardware interpretation offered by the Open Source Hardware Association (OSHA). The key statement is: “Open source hardware is hardware whose design is made publicly available so that anyone can study, modify, distribute, make, and sell the design or hardware based on that design.”

Hawley reported that at the Open Hardware Summit held in Portland, Oregon, OSHA had revealed a certification program for open source hardware. Formally announced on November 7, the plan calls for OSHA to issue unique IDs for each piece of registered hardware, including a country code and an ID number.

By OSHA’s definition, some popular community-backed SBCs such as the Raspberry Pi do not qualify as open source, said Hawley. “You can get some schematics for the Raspberry Pi, but you can’t get the Gerber files or remix it for your own purposes,” he said.

Boards that do qualify, he said, include Linux-ready, open spec SBCs like the Intel Galileo and LittleBits CloudBit on the low end and the BeagleBone, Olimex’s OlinuXino, and ADI’s Intel backed MinnowBoard Turbot on the high end. Many other community-backed Linux hacker SBCs, but certainly not all, would also appear to fit the definition.

Arduino boards, many of which now include a Linux-driven component, also qualify. Hawley reported on the breaking news at the time that the two dueling Arduino camps had pledged to reunite. The reunited Arduino will be unveiled at the Arduino Day conference on April 1.

Leading the way in opening up Linux SBCs in 2016 was The Next Thing’s $9 Chip SBC, which raised over $2 million on Kickstarter. said Hawley. The growing use of Kickstarter to launch open-spec hardware was another key 2016 trend, he added.

Calling the Chip developers “the poster children for open source hardware,” Hawley said that The Next Thing releases everything you would need to build your own Chip variant. This includes source code, Gerbers, schematics, and BOM.

“With the Chip, they’ve pioneered new techniques to reduce the cost of hardware,” said Hawley. “For example, they’ve got eMMC, but no eMMC hardware controller. The controller functions are done by software in the CPU.”

While ELCE was in session, The Next Thing unveiled a $16, open-spec computer-on-module version of the Chip called the Chip Pro. It also launched a partially open source system-in-package (SiP) version of the Cortex-A8 Allwinner R8 SoC use on the Chip and Chip Pro called the GR8. For a fully open source SoC, many vendors are turning to the RISC-V project, which may well end up on Hawley’s list of open hardware trends for 2017.

Needed: Easier open source PCB design tools

If you attempt to build your own SBCs rather than do what most hobbyist hackers do — write apps and customize the boards with add-ons — you will discover the rewards of “solving your own itches,” said Hawley. He noted, however, that it’s easier to delete a feature from a design than to add one.

The process of building your own board is challenged by the lack of easy, open source PCB design and layout tools. With lower end, two-layer PCBs, you can turn to the open source KiCad, but higher end boards with PCI-Express and differential pair routing usually require expensive professional tools, said Hawley.

KiCad’s workflow and UI are still difficult, but improving, said Hawley, echoing the thoughts of Grant Likely in an ELC 2016 North America session on embedded Linux. “A lot of entities are working to improve KiCad, such as CERN, which is adding differential pair, push-pull routing,” said Hawley.

On the 10-layer MinnowBoard, the only way to get at files beyond Gerbers is to work with high-end tools like OrCAD, said Hawley. “Eagle probably couldn’t handle it well, and porting it to KiCad would be a bit of a nightmare because it doesn’t handle that kind of complexity very well,” he added.

Autodesk’s proprietary Eagle tools are friendlier and more affordable than many, such as the high-end Altium, said Hawley. The BeagleBone Black now supports Eagle for a 4- or 6-layer board, he added.

An audience member related that Olimex was beginning to add KiCad support to its OlinuXino SBCs. Olimex also recently announced an open source Teres I laptop.

Open source hardware beyond SBCs

Open source hardware adoption and creation is accelerating, and not only in the SBC market, said Hawley. He reported on several presentations at the Open Hardware Summit, especially in the field of medical devices. Open spec medical gear is finally taking off, despite the challenge of extensive regulation and certification that can add years to product development, said Hawley.

One Open Hardware Summit presentation demonstrated an under-$100 open hardware device that surgeons can use to practice suturing techniques. You stick your finger into the device to learn how to apply just the right amount of pressure to sutures.

There was also a presentation about HACKberry’s dual-licensed, 3D printable prosthetic hand. This relatively affordable solution is particularly helpful for kids who typically go through several expensive prosthetic models as they grow. “It’s a modular system so you can replace the hookup with a slightly bigger one, and you can more easily customize it,” said Hawley.

Also at the Summit, the Portland State Aerospace Society talked about open source rocketry and satellites, and the U.S. National Park Service discussed its rapid adoption of open source hardware. “The Park Service is choosing open source hardware because it lowers the cost of putting together demos and interactive exhibits, and lets them more easily share designs with other parks and museums,” said Hawley.

Perhaps the biggest open hardware announcement of 2016 came from the server world, said Hawley. In March, Google joined Facebook’s Open Compute Project (OCP), a consortium of companies including Microsoft, that is developing standardized, open source equipment such as switches and servers.

“OCP is designing open hardware to cut down on costs, power usage, and thermal usage in data centers,” said Hawley. “They cut out the unnecessary parts of servers — I once saw a server with a sound card on it — so when they sit idle they won’t vampire power. Idling systems also generate heat, so you have to spend more on cooling.” Facebook and Google have each released other open source hardware devices, including Google’s Cardboard VR and Facebook’s Surround360 3D-360 video capture system.

Hawley said he tries to convince manufacturers to open source their hardware designs, or at the very least, open up the designs once end of life is at hand. “Instead of abandoning products, they should chuck them over the fence into open source,” he said. Not only is this friendlier to users and developers, but it enables the open source community to update the products for security. “Otherwise they make a great platform for DDOS attacks.”

Watch the complete presentation below:

Embedded Linux Conference + OpenIoT Summit North America will be held on February 21 – 23, 2017 in Portland, Oregon. Check out over 130 sessions on the Linux kernel, embedded development & systems, and the latest on the open Internet of Things.

Linux.com readers can register now with the discount code, LINUXRD5, for 5% off the attendee registration price. Register now>>

The Logical Happens: Open-O Merges with ECOMP

We’ve noted in the past that two Linux Foundation open source projects seemed to be working on similar things: The Open-O project and open source ECOMP. Today, the Linux Foundation announced that the two groups are merging.

The new name for the combined group is the Open Network Automation Platform (ONAP). The goal of ONAP is to enable end users to design, orchestrate, manage, and automate network services and virtual functions. It was only logical for these two groups to merge. They were doing many of the same things, and they were both hosted by the Linux Foundation. What’s fascinating is that the new group brings AT&T together with two major Chinese mobile operators.

Read more at SDxCentral

Survey of Open Hardware 2016

John “Warthog” Hawley, Intel’s evangelist for the MinnowBoard SBC, surveyed key open hardware trends at the Embedded Linux Conference Europe.
 
 

10 Most Common Reasons Kubernetes Deployments Fail (Part 1)

I’ve catalogued the most common reasons Kubernetes Deployments fail, and I’m sharing my troubleshooting playbook with you! Without further ado, here are the 10 most common reasons Kubernetes Deployments fail:

1. Wrong Container Image / Invalid Registry Permissions

Two of the most common problems are (a) having the wrong container image specified and (b) trying to use private images without providing registry credentials. These are especially tricky when starting to work with Kubernetes or wiring up CI/CD for the first time.

Read more at Kukulinski.com

Today’s Leading Causes of DDoS Attacks

Last fall, we saw the biggest distibuted denial of service (DDoS) attack ever. This year we’ll see even bigger ones. According to Akamai‘s latest State of the Internet Security report, here’s what’s behind them.

First, you should know that while the total DDoS attacks only increased by 4 percent from Q4 2015 to Q4 2016, there was a 140 percent increase in attacks greater than 100 gigabits per second (Gbps). In short, we’re not seeing that many more DDoS assaults, but they are getting much worse.

Read more at ZDNet

How to Contribute to Open Source

Want to contribute to open source? Here’s a guide to making open source contributions, for first-timers and for veterans, including:

Why contribute to open source?

What it means to contribute

How to orient yourself to a new project

Finding a project to contribute to

And more…

Read more at GitHub

Valve Launches SteamVR Support for Linux

Valve has been giving Steam users Linux love since 2012, and it’s not stopping with VR. The company just launched SteamVR for Linux, letting developers create Linux content for the HTC Vive VR headset, trackers and other hardware. The program is in beta, meaning developers must use an NVIDIA developer beta driver that’s built on “Vulkan,” the successor to OpenGL.

Read more at Engadget

How to Perform Pattern Search in Files using Grep

In our first article on the grep command, we covered quite a few features the tool offers, including how you can use it to search only for words, search for two words, count lines containing matched word, and more. Aside from these, the tool provides some more easy-to-understand and useful features. 

This article focuses on some advanced features of the grep command like case insensitive search, displaying certain non-matched lines with line containing matched string, print matched strings in grep, and to display the position of a match in grep.

Read more at HowToForge

How China Mobile Is Using Linux and Open Source

China Mobile is one of the biggest telecom companies in the world, with more than 800 million users in China — all of whom are served with open source technologies. During the 2016 Mobile World Congress, China Mobile declared that the operational support system running their massive network would be based on open source software. China Mobile is not alone; many major networking vendors are moving to open source technologies. For example, AT&T is building their future network on top of OpenStack, and they have invested in software-defined technology so significantly that they now call themselves a software company.

I sat down with Zhang Zhihong, Deputy General Manager of Cloud Computing Products, China Mobile Suzhou R&D Center to discuss how the company is embracing open source and Linux, and how they are giving back.

China Mobile is not the only player embracing Linux in this industry. Zhihong said that companies like Alibaba and Baidu also have internal groups whose job is to just build optimized Linux distributions for their own consumption. Not only does Linux cut costs heavily (you don’t have to pay millions of dollars to acquire subscriptions or licenses for thousands of machines), but the company can also fine tune it to get the most out of their network and infrastructure.

“We thought, when they can do it, why can’t we? We built an internal team at China Mobile and created our own Linux distribution,” said Zhihong.

China Mobile buys around 4000-5000 servers every year, and most of these servers deploy Linux. Previously, they used commercial versions of Linux — mainly SUSE Linux Enterprise Server and RHEL — but in 2015 their team created a custom version of Linux that gave them more control over their infrastructure while also cutting costs.

The new operating system is based on CentOS, and in 2016, China Mobile deployed more than 10,000 physical servers running this customized version of Linux in a production environment.

Cost and Control

When asked about the advantages of using their own custom Linux, Zhihong pointed out two deciding factors: cost and control. Cost has been the most important factor, Zhihong said. The purchasing department makes all decisions and controls all deals for the company, and they think it’s too expensive to pay for a commercial operating system as the cost can run into hundreds of millions of dollars. That’s a lot of money.

The second reason was better control over their infrastructure. “With custom Linux distribution, we can push our limits as we have a lot of low-level software. We use KVM for virtualization and Ceph for storage, with a lot of fine tuning and optimization at the kernel level. If there are bugs, or if we need a new feature it can take a lot of time to talk to the vendor and get those changes into the OS. By using our own distribution we gain this capability.”

However, running their own distribution doesn’t mean that they don’t contribute to the Linux community. Zhihong said that contribution is the core part of using Linux or another open source software. He said more than 100 contributors from the company contribute to the kernel. Whenever there is a bug, they fix it and submit the patch.

Zhihong gave an example of working with upstream when they hit a KVM bug in the public cloud production environment, they were running several virtual machines with several CPUs and when they attached more than two disks it would crash. Their kernel teams traced the problem, which had something to do with buffer overflow, fixed the bug, and submitted the patch upstream.

He also added that Linux is very strong in China, with many local Linux groups, and he said many employees from the company are part of those local Linux communities. “Linux is very much welcomed in China, there are lot of Linux programmers,” Zhihong said.

OpenStack Superuser

In addition to Linux, China Mobile is a heavy user of other open source technologies. “We use a lot of open source technologies: OpenStack, Hadoop, Zookeeper, Tomcat, Ceph, and so many that I can’t list them all,” said Zhihong.

China Mobile is more than just a mobile carrier; they offer many more services. They have many IT applications so they have been running their own private cloud for many years. Their private cloud is spread across three pools in three regions of China. There are thousands of servers running in these pools, but the cloud is proprietary and not open source.

By 2015, OpenStack had stabilized and matured enough to be considered seriously by the likes of China Mobile. So, China Mobile began building a new OpenStack private cloud spanning across two pools, with each pool running more than 3,000 servers. Once the project is complete, they will connect it to the existing proprietary cloud and little by little replace it with OpenStack.

Their commitment to open source and OpenStack led them to win the OpenStack Superuser award last year. OpenStack is mostly seen as a private cloud answer to AWS and Microsoft Azure, but China Mobile uses OpenStack both in its private and public clouds. Their public cloud has more than 3000 servers. It’s similar to AWS where it provides virtual machines, object based storage, and other such services to customers. It has more than 20,000 registered users and around 2,000 enterprise users.

China is a huge market for companies like China Mobile with more than a billion potential customers, and it’s also the manufacturing hub of the world. As more and more big companies embrace Linux and open source, China may evolve from a consumer of Linux to one of its leading contributors.

The program for Open Networking Summit is now available!

Look forward to over 75 sessions led by networking visionaries including Martin Casado, General Partner, Andreessen Horowitz; Amin Vahdat, Google Fellow and technical lead for networking, Google; Justin Dustzadeh, VP, Head of Global Infrastructure Network Services; Dr. Hossein Eslambolchi, Technical advisor to Facebook, Chairman & CEO, 2020 Venture Partners; and many more. Register now >>

3 Reasons FLOSS Developers Should Attend Devoxx US, Eclipse Converge and Eclipse IoT Day

We are just a month away from Devoxx US and Eclipse Converge, and I’m really excited about what is coming up. Like I often say, there are only so many conferences that one can attend, so it is always hard to figure out which ones are really worthwhile. Although I am certainly a bit biased, since I am involved in its organization, here are three reasons why I think you should plan on being in San Jose the week of March 20.

#1 | Three co-located conferences to make the most of your week focusing on Cloud, IoT, Blockchain, Linux, and more!

If you’re a developer, chances are you have attended one or many Devoxx conferences in the past. It’s been the largest developer conference in Europe for many years, with events in the UK, Belgium, Morocco, France, and Poland! I’ve attended a few myself and always come away amazed at how much I learned, and how many great people I had the opportunity to meet.

The first edition of Devoxx US will take place on March 21-23 and I am very excited about this year’s program. With rock star speakers from Docker, Red Hat, and Google, I am personally really looking forward to learning more about building scalable software, which is a topic dear to my heart given my involvement with IoT. Also, the “Cloud, Containers & Infrastructure” track will feature lots of cool talks covering Linux technology, such as:

Building on the success of EclipseCon in the past, the Eclipse Converge conference will be a one-day event co-located with Devoxx US. One area that has kept the Eclipse community very busy recently is the integration of the Language Server Protocol (LSP) in all things IDE (from the classical Eclipse desktop IDE to Eclipse Che’s cloud-based IDE). The LSP talks from Red Hat, Pivotal and TypeFox will be a great opportunity to learn more about the technology, and how it will help make our development environments more flexible.

Last but not least is the Eclipse IoT Day, which will be on Monday March 20, see #2 below for the details!

All in all, that’s three conferences that will be happening all in the same week! Oh, and not to mention that you can also plan on bringing your kids to Devoxx4Kids! This should provide  you with plenty of opportunities to catch up on what’s hot and learn about the future of software development from world class experts.

#2 | A strong focus on IoT with the Eclipse IoT Day

The Eclipse IoT community has grown significantly over the past five years. Eclipse IoT Days are hosted all around the world and are a great place to learn more about both open source projects and how people are using them to create IoT solutions.

On March 20, the Eclipse IoT Day San Jose will have a very impressive line-up of speakers from Red Hat, Intel, Bosch SI, Deutsche Telekom, and more who will be sharing their experiences building and using Eclipse IoT technology. There are a bunch of projects in the Eclipse ecosystem that I believe are pretty unique in the marketplace. I, for one, am very much looking forward to getting an update on Eclipse hawkBit, a full-blown solution for managing software rollouts for IoT devices, that is used in production by Bosch today. I’m also very interested in hearing about Red Hat’s take on why building an open source IoT cloud platform matters, and how they are scaling their IoT infrastructure using Kubernetes and OpenShift. Large organizations are adopting Eclipse IoT open source technology and deploying solutions today and that is exciting!

#3 | A community event

Besides the technical talks, there will be many opportunities to meet with the community at-large and to network: Devoxx Hackergarten, Eclipse IoT Working Group meeting, or Birds of a Feather sessions just to name a few. I don’t know about you, but I typically spend as much time (if not more!) talking to people in the hallways as I do attending talks, and that’s what any good conference should be about, right? We expect many attendees from diverse backgrounds and with a lot to share, so brace yourself for a very busy week!

You can register now to attend any or all of these events: Devoxx US, Eclipse Converge and the Eclipse IoT day.

I look forward to seeing many of you in San Jose at the end of March!