
TL;DR: (in FAQ format)
What's this, is this openFyde?
openFyde (always denoted as openFyde, with a first o in lowercase and F in capital letter) is an open-source initiative started by Fyde Innovations, the creator of FydeOS, with an aim to provide another approach to Chromium OS. With openFyde, you can have a more open and flexible Chromium OS. At Fyde Innovations we believe with more choices comes greater possibilities.
In a one-liner: openFyde is Chromium OS open-sourced instead of open-core, with or without Google.
What's the difference between Chromium OS, Chrome OS, openFyde and FydeOS?
- Chromium OS is an open-source project, used primarily by developers, with code that is available for anyone to checkout, modify, and build.
- Google Chrome OS is the Google product that OEMs ship on Chromebooks for general consumer use.
- openFyde OS is similar to Chromium OS, but it offers more choices and flexibility for developers and users. openFyde is started by Fyde Innovations and maintained by the openFyde Authors.
- FydeOS is similar to Google Chrome OS but produced and maintained by Fyde Innovations.
Some specific differences:
- These OS projects fundamentally share the same code base, but Google Chrome OS has some additional firmware features, including verified boot and easy recovery, which require corresponding hardware changes and thus also don't work out of the box in Chromium OS builds.
- Google Chrome OS / "FydeOS for You" runs on specially optimised hardware in order to get enhanced performance and security.
- Chromium OS / openFyde does not auto-update by default (so that changes you may have made to the code are not blown away), whereas Google Chrome OS / FydeOS seamlessly auto-updates so that users have the latest and greatest features and fixes.
- Google Chrome OS / FydeOS includes some proprietary/commercial/licensed packages which are not included in the Chromium OS project.
- As a consequence of the above, Google Chrome OS / FydeOS supports the Android subsystem, and Chromium OS does not.
- Also in consequence of the above, openFyde and FydeOS share most of the codebases but proprietary/commercial/licensed packages are not included in openFyde. However, we aim to replace those close-sourced packages with open alternatives or our own implementations in the long run.
- New and experimental features will be developed under openFyde and port to FydeOS once stabilised.
- Google Chrome OS has a green/yellow/red logo; Chromium OS has a blue/bluer/bluest logo. FydeOS and openFyde no longer have graphical logos, only textual ones but with a tiny signature twist.
Where to get help?
You won't be able to open issues in this current repository, as it only serves introductory and guidance purposes. You are welcome to open issues for each of the other openFyde repositories if:
- You've read the entire Chromium OS Developer Guide as well as the following README. After which you attempt to build openFyde and then encounter problems
- You believe certain implementations / constructs / ebuilds / config schemes / misc scripts of openFyde don't work as they should
- You have discovered a security-related bug or vulnerability within openFyde
- You believe parts of openFyde's published code are utter rubbish and you have strong evidence to back your conclusion
Your issues will likely get closed if:
- You are asking for generic features/bugs about Chromium OS / Chrome OS: for this please use chromium-os-dev Google Group or report bugs to crbugs
- You are asking about issues with a 3rd-party app, a non-standard peripheral device or a special setup that does not benefit the general community
Table of contents (for cool kids)
Introduction
The following sections of this document describe how to build openFyde and run it on x86 machines, from its source code and the board overlay provided by openFyde. Once you are familiar with how things work, you will be able to create your own board overlay and port openFyde to your hardware devices.
Goal and non-goal of this project
- To provide an open-source codebase that everybody can use to build and improve openFyde on various platforms.
- To provide a path that some users/developers can port hardware drivers that openFyde/FydeOS does not currently have.
- To provide a platform for developers/groups/companies that are interested in using openFyde as the foundation of the OS of its hardware.
- This project does not aim to provide support for Chromium OS itself. If you find bugs and glitches, please report them to crbugs; if you have further queries regarding Chromium OS, please revert to one of the official Chromium-related Google groups.
About the openFyde project
openFyde refers to a collection of projects and repositories working together to serve a unified goal.
Due to the sheer complexity of any Linux-based operating system, openFyde is organised as many individual repositories with every single one serving a distinctive purpose. You will also need the entirety of Chromium OS source code to continue working on openFyde, as openFyde and Chromium OS basically share the same codebase. There are also quite a large number of dependencies all over the place.
As a consequence of the above, openFyde in GitHub is managed as an "organisation" with necessary repositories inside. This current repository does not contain any actual source code and only serves for introductory and guidance purposes.
As a downstream fork of Chromium OS, openFyde does not intend to be the rival of Chromium OS. We are open to contributing work back to the upstream and making Chromium OS a better operating system.
The code and document in openFyde are the result of works by the people of the openFyde team in Fyde Innovations.
Branches and tags in repositories within openFyde
branches
main or master - this branch can be used to build an openFyde image. It has been tested against our current release version. You are welcome to test it with future releases and send feedback and/or PRs.
$release-dev e.g. 'r102-dev' - this branch would be the develop branch for $release e.g. r102. If you are going to create PRs to
release 102, better to rebase it to r102-dev.
tags
- When we do release a prebuilt image, the commit would be tagged with a release number corresponding to the repo manifest. For example, if the repo manifest release is
release-R102-14695.B, then our release tag would be r102.
- Often we will be doing more than one release for each repo manifest release number, so we will append a meaningful string to the tag name to identify such. For example:
r102-borealis_enabled
Naming conventions
It's worth mentioning some of the naming conventions that we have been adhering to since the creation of openFyde to clear out confusion and maintain consistency:
- We use the dash
- in strings to connect words/substrings with different realms or representations. Some examples:
<prefix>-<version>-<suffix>: openFyde-14.1-prebuild
<release number>-<branch type>: r102-dev
- The underscore
_ is usually used in strings to connect words with spaces within the same realm or representation. Some examples:
chromium_os-release-raspberry_pi
r102-borealis_enabled
- To name a bunch of items (files, classes, variables, branches, tags etc.), use a common prefix so they can be indexed and searched easily
Typography conventions
Shell Commands are shown with different labels to indicate whether they apply to
- your build computer (the computer on which you're doing development)
- the chroot (Chromium OS SDK) on your build computer
- your Chromium OS computer (the device on which you run the images you build)
| Label |
Commands |
| (outside) |
on your build computer, outside the chroot |
| (inside) |
inside the chroot on your build computer |
System requirement
A x86_64 system to perform the build. 64-bit hardware and OS are musts. The openFyde (and Chromium OS) is a very large project, building from the source from scratch usually takes hours to over 10 hours, depending on the system configuration.
CPU: we recommend using a 4-core or higher processor. The openFyde build process runs in parallel so more cores can help shorten build time dramatically.
Memory: we recommend at least 16GB, plus enough swap space because, for the purpose of this project, you will need to build Chromium from source code. Linking Chromium requires between 8GB and 28GB of RAM as of March 2017, so you will run into massive swapping or OOM if you have less memory. However, if you are not building your own copy of Chromium, the RAM requirements will be substantially lower at the cost of losing some of the key features provided by this project.
Disk: at least 150GB of free space, 200GB or more is highly recommended. SSD could noticeably shorten the build time as there are many gigabytes of files that need to be written to and read from the disk.
Network: total source code downloading will be over 30GB. Fast and stable Internet access is going to be very helpful.
A x86_64 Linux OS as your main workstation, it will be referred to as the host OS later in this doc. The openFyde build process utilises chroot to isolate the build environment from the host OS. So theoretically any modern Linux system should work. However, only limited Linux distros are tested by the Chromium OS team and the FydeOS team. Linux versions that are known to work:
- Ubuntu Linux 18.04 LTS
- Gentoo Linux
- Arch Linux
A non-root user account with sudo access. The build process should be run by this user, not the root user. The user needs to have sudo access. For simplicity and convenience password-less sudo could be set for this user.
Prepare the system
Install necessary tools
Git and curl as the essential tools that need to be installed in the host OS, you will also need Python3 for most of the scripting work in the build process.
(outside)
sudo apt-get install git-core gitk git-gui curl lvm2 thin-provisioning-tools \
python-pkg-resources python-virtualenv python-oauth2client xz-utils \
python3.6
# If Python 3.5 is the default, switch it to Python 3.6.
python3 --version
# If above version says 3.5, you'll need to run:
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
sudo update-alternatives --config python3
This command also installs git's graphical front end (git gui) and revision history browser (gitk).
Install Google depot_tools
The depot_tools is a package of useful scripts, provided by Google, to manage source code checkouts and code reviews. We need it to fetch the Chromium OS source code.
(outside)
$ sudo mkdir -p /usr/local/repo
$ sudo chmod 777 /usr/local/repo
$ cd /usr/local/repo
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Then add the depot_tools directory to PATH and set up proper umask for the user who is going to perform the build. Add below lines to the file ~/.bash_profile of that user. Or if you are using a different shell, handle that accordingly.
(outside)
export PATH=/usr/local/repo/depot_tools:$PATH
umask 022
Then re-login to your shell session to make the above changes take effect.
Configure git
You should configure git now or it may complain in some operations later.
(outside)
$ git config --global user.email "you@email.address"
$ git config --global user.name "Your Name"
Get source code
Create a directory structure
The directory structure described here is a recommendation based on the best practice in the Fyde Innovations team. You may host the files in a different way as you wish.
(outside)
# This is the directory to hold Chromium OS source code, aka cros-sdk
$ mkdir -p r102
If you are building a different release, make sure you use the actual directory name on your own system, the name here mentioned is just an example.
Fetch Chromium OS repo
First, you need to find out the reference name of the release you would like to build, by visiting this page https://chromium.googlesource.com/chromiumos/manifest.git:
You will see a list of git commit IDs and its name in the form of refs/heads/release-Rxx-xxxx.B. That release-Rxx-XXXX.B link is what you need for fetching the code of that specific Chromium OS release. For example, release-R102-14695.B for release r102.
Now run these commands to fetch the source code. Find and use a different release name if you would like to build a different release.