Source Repositories

Packages in Git
Most source packages are maintained in Git repositories. To assist in the maintenance of a package, coordinate with its maintainer(s) and the system administrator.
Notes, specifications, and policies
Specifications and policies are maintained in Git repositories.
Web site
These Web pages are maintained in a Git repository.

Specifications

Source Package Format 1.0
The format in which source packages are developed.
Architecture String Syntax
The meaning of the architecture string for binary architectures and application platforms.
Multiarch (to be written)
The ability to install and use on a system packages built for multiple architectures.

Policies

Packages must adhere to a number of policies for distribution as part of this operating system.

Packaging Policy (to be written)
Requirements for package naming, splitting, and data.
Filesystem Hierarchy Policy (to be written)
The structure of the files and directories in the system.
Software Inclusion Policy (to be written)
Legal and technical requirements to protect user freedom and to ensure that all included software can be legally distributed and effectively supported.

Development Environment

All packages are cross-built using a toolchain consisting of kernel headers, GNU Binutils, GCC, and a standard C/C++ library. The cortexa8-linux-eglibc port, for example, is currently built using Linux-libre 3.2.7, GMP 5.0.2, MPFR 3.1.0, MPC 0.9, Binutils 2.22, GCC 4.6.2, and EGLIBC 2.15.

This operating system currently supports the following programming languages: C (ISO/IEC 9899 as implemented by GCC), C++ (ISO/IEC 14882 as implemented by GCC), UNIX shell command language (POSIX.1-2008 XCU), and microprocessor assembly languages (with syntax and directives as implemented in GNU as). Support for more languages (e.g. Perl and Python) will come as their respective interpreters and compilers are packaged; this may take time as these programs usually have many build-time and run-time dependencies and some of these programs cannot easily be cross-built.

Remaining Tasks

The following is an overview of development projects that need to be done before the operating system can be considered ready for production use.

Boot Sequencing

Currently, service init scripts are provided by the monolithic initscripts binary package. These init scripts are executed in the lexicographic order of the symbolic links matching /etc/rc.d/S* that target them. The names of these symbolic links are currently hardcoded in the build makefile of the basefiles source package. This monolithic packaging and hardcoding of link names is a temporary and poor technical solution that doesn't scale with the number and selection of services that can be installed on a system. Init scripts should instead be provided by the packages that provide the relevant system services. The order in which init scripts are executed should be determined by dynamic boot sequencing based on inter-service dependency metadata.

This boot sequencing can be done when the system boots or after a new system service is installed. For reference, NetBSD uses a program called "rcorder" to determine a boot sequence at boot time. Many GNU/Linux distributions follow (to some degree) the Linux Standard Base (LSB) specification, which defines "Comment Conventions" for dependency metadata and a method for installing sequentially-named symbolic links. Conforming implementations perform boot sequencing at the time of service installation. Because boot sequencing at boot time can slow down system booting, it is better to perform boot sequencing at install time.

Thus, generally speaking, the solution to be adopted in this system is to make packages that provide system services also include the necessary init scripts (installed in /etc/init.d), to include inter-service dependency metadata in init scripts, and to use a tool at the time of service package installation to generate sequentially-named symoblic links in /etc/rc.d.

An obvious boot sequencing tool is "insserv" maintained by Werner Fink and used by Debian and openSUSE. However, this C program (in compliance with the LSB) assumes the use of runlevels. This operating system uses the init daemon of BusyBox, which doesn't support runlevels. Therefore, we'll need to either modify insserv to work without runlevels or write our own tool for installing symbolic links to init scripts.

Additionally, we need to decide how completely we'll conform, if at all, with the LSB in this area.

Multiarch

Multiarch refers to the ability to install and use packages built for non-native architectures. It is currently being documented and implemented in Debian and Ubuntu. Multiarch is useful for this distribution because it makes cross compiling easy (see "Package Cross Building Tool" and "Multiarch Toolchain Packages" below).

Simply speaking, there are six aspects of a multiarch implementation:

In summary, there is much design work to be done, opkg and opkhelper must be modified to support multiarch, and certain packages will need to be built to handle multiarch library paths. Of course Debian is a great reference implementation, but there still remains much original work to be done.

Installation Bootstrap Tool

A tool similar to debootstrap of Debian needs to be written to bootstrap the installation of a basic system. It can be used for building packages (see "Package Cross Building Tool" below) or installing the operating system on hardware targets.

Basically, the tool would fetch from the package archive the index of packages, determine which packages need to be installed, download each package, and unpack each package. Since the package manager may not be available, the tool must handle dependency resolution and package unpacking on its own.

We can't use debootstrap, since the formats of our binary packages and package archives differ slightly from those of Debian. But we can model our tool after debootstrap or even fork debootstrap.

Package Cross Building Tool

Multiarch Toolchain Packages