0. Select chroot directory

  • Make sure your host is a Linux system, i386 or x86-64.
  • Choose directory to use for development environment. This directory will be called $chroot_dir below.

1. Bootstrap

Warning: if bootstrap has failed, do not try to "restart" it later. It won't work. Start afresh.

  • Add the following line to $chroot_dir/etc/apt/sources.list:
    deb http://openinkpot.org/pub/oi/ asimov host/tools host/cross
    
  • Use $chroot_dir/enter to enter the chroot. This will switch user to build. This user has the sudo rights in chroot.
  • Add the pgp key for the repository
    wget -q -O- http://openinkpot.org/pub/gpgkey | sudo apt-key add -
    
  • Update sources
    sudo apt-get update
    

2. Create and build packages

See the Packaging for package building.

hello package is an example of simple package and can be use as a template. debian/rules file in this package is heavily commented to ease learning basics of packaging.

3. Create image

  • $chroot_dir/enter
  • sudo apt-get install oi-build-firmware
  • build-fw