User Tools

Site Tools


Sidebar

Launch of Linino.org

wiki:howtostart

How to build environment and first image

The standard build environment for linino images is: Debian squeeze amd64 Using a chroot ́ed environment will also work. This tutorial does not explain how to install Debian or perform sysadmin tasks. Make sure updates and security-updates are enabled and installed.

As root (or via sudo):

apt-get update && apt-get upgrade
apt-get install git subversion build-essential python gawk unzip libncurses5-dev libz-dev fastjar asciidoc flex libgtk2.0-dev intltool perl-modules python2.6-dev rsync ruby unzip wget gettext xsltproc tex4ht texlive-lang-french

On Ubuntu 12.10 LTS ( quantal ) :

sudo apt-get install git subversion build-essential python gawk unzip libncurses5-dev zlib1g-dev fastjar asciidoc flex libgtk2.0-dev intltool perl-modules python-dev rsync ruby unzip wget gettext xsltproc tex4ht texlive-lang-french

On Ubuntu 14.04 LTS ( trusty ) and later :

sudo apt-get install python sed wget cvs subversion git-core coreutils unzip texi2html texinfo docbook-utils \
    gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ desktop-file-utils chrpath \
    flex libncurses5 libncurses5-dev zlib1g-dev pkg-config gettext libxml-simple-perl guile-1.8 cmake \
    libssl-dev xsltproc fastjar mercurial pngcrush imagemagick tcl binutils bzip2 perl grep diffutils \
    openjdk-7-jdk zlib1g zlib1g-dbg zlib1g-dev zlib-bin zlibc zlib-gst ccache distcc gcc-multilib g++-multilib bin86 libtool

As normal user: ( no root ) Get the source - see https://dev.openwrt.org/wiki/GetSource: any other method is also fine, I prefer git, you might have to adapt the following commands. Once linino branch is created, we will replace the checkout with the official repo.

$ git clone https://github.com/linino/linino_distro.git -b master

or

$ git clone https://github.com/linino/linino_distro.git -b lininoIO

that depends if you want to build the master or lininoIO branch. Once done, download the package feeds and install them :

$ ./scripts/feeds update -a 
$ ./scripts/feeds install -a 

$ make deflinino
$ make tools/install V=99 && make toolchain/install V=99

At this point, you can add/remove packages with the :

make menuconfig

shell command. Tune up your setup and then launch the build with :

make V=99

Build the documentation (optional step) :

$ make -C docs/ 

OpenWRT documentation has an incredibly simple HowTO build packages and feeds.

I verified that the contents it's actually correct and those are the URLs:

http://wiki.openwrt.org/doc/devel/packages

http://wiki.openwrt.org/doc/devel/feeds#creating.your.own.feed

Tons of examples can be found in

$ ~/openwrt/root/trunk/feeds
$ pwd/home/wrt/openwrt/root/trunk/feeds (based on your checkout path/directory of course) 

Simple package can be: ipv6calc

$ ~/openwrt/root/trunk/feeds$ find . -name “*6calc*” ./packages/ipv6/ipv6calc

If you want to build a single package, just type in the shell :

$ make package/<package_name>/compile V=99

Otherwise, if you want to clean a single package type :

$ make package/<package_name>/clean V=99
/var/www/wiki.linino.org/data/pages/wiki/howtostart.txt · Last modified: 2015/07/21 05:14 by arturo

2014 © dog hunter llc and the Linino Community. Linino.org is a dog hunter sponsored community project. Credits