User Tools

Site Tools


Sidebar

Launch of Linino.org

wiki:getstartbuild

How to Build your own system

If you want to customize Linino by adding or removing some components, you must build your own image from the source code.

The Linino source code repository is a git repository hosted on github servers. To you use it you must install git on your computer.

The first step is to clone the Linino repository:

git clone https://github.com/linino/linino_distro.git

This will create the directory linino_distro with the Linino source code.

cd linino_distro

On linino_distro repository we have mainly 2 official released branches master and lininoIO. So checkout the branch you need to build using the commands:

git checkout -b lininoIO origin/lininoIO

To update Linino to the last OpenWRT release you have to do the following commands:

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

The first command will update packages and lists of feeds. The second command will install packages. In both command it is used the option -a that means to apply the command on all packages.

After update and install, reset the Linino default configuration:

git checkout -- .config
make oldconfig

Now, you are ready to configure Linino. You should use the pseudo graphical configuration to choose which components include in your system:

make menuconfig

You can also customize the Linux kernel configuration with the following command:

make kernel_menuconfig

When your configuration is done, the last step is to build the system:

make

The first build is very very long, it can takes more than 2 hours. On multicore machine you can use the make's option -j to speed up the building procedure.

If you want to see what is going on during the building procedure, or you want to see an error detail, you can use the eviroment variable V

make V=s

When the compilation is over, you will find the system images in the bin/ar71xx directory:

ls bin/ar71xx

md5sums
openwrt-ar71xx-generic-linino-caldata.bin
openwrt-ar71xx-generic-linino-chowchow-16M-jffs2-sysupgrade.bin
openwrt-ar71xx-generic-linino-chowchow-16M-kernel.bin
openwrt-ar71xx-generic-linino-chowchow-16M-rootfs-jffs2.bin
openwrt-ar71xx-generic-linino-chowchow-16M-rootfs-squashfs.bin
openwrt-ar71xx-generic-linino-chowchow-16M-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-linino-freedog-16M-jffs2-sysupgrade.bin
openwrt-ar71xx-generic-linino-freedog-16M-kernel.bin
openwrt-ar71xx-generic-linino-freedog-16M-rootfs-jffs2.bin
openwrt-ar71xx-generic-linino-freedog-16M-rootfs-squashfs.bin
openwrt-ar71xx-generic-linino-freedog-16M-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-linino-one-16M-250k-jffs2-sysupgrade.bin
openwrt-ar71xx-generic-linino-one-16M-250k-kernel.bin
openwrt-ar71xx-generic-linino-one-16M-250k-rootfs-jffs2.bin
openwrt-ar71xx-generic-linino-one-16M-250k-rootfs-squashfs.bin
openwrt-ar71xx-generic-linino-one-16M-250k-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-linino-one-16M-jffs2-sysupgrade.bin
openwrt-ar71xx-generic-linino-one-16M-kernel.bin
openwrt-ar71xx-generic-linino-one-16M-rootfs-jffs2.bin
openwrt-ar71xx-generic-linino-one-16M-rootfs-squashfs.bin
openwrt-ar71xx-generic-linino-one-16M-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-linino-u-boot.bin
openwrt-ar71xx-generic-linino-yun-16M-250k-jffs2-sysupgrade.bin
openwrt-ar71xx-generic-linino-yun-16M-250k-kernel.bin
openwrt-ar71xx-generic-linino-yun-16M-250k-rootfs-jffs2.bin
openwrt-ar71xx-generic-linino-yun-16M-250k-rootfs-squashfs.bin
openwrt-ar71xx-generic-linino-yun-16M-250k-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-linino-yun-16M-jffs2-sysupgrade.bin
openwrt-ar71xx-generic-linino-yun-16M-kernel.bin
openwrt-ar71xx-generic-linino-yun-16M-rootfs-jffs2.bin
openwrt-ar71xx-generic-linino-yun-16M-rootfs-squashfs.bin
openwrt-ar71xx-generic-linino-yun-16M-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-rootfs.tar.gz
openwrt-ar71xx-generic-root.jffs2-128k
openwrt-ar71xx-generic-root.jffs2-256k
openwrt-ar71xx-generic-root.jffs2-64k
openwrt-ar71xx-generic-root.squashfs
openwrt-ar71xx-generic-root.squashfs-64k
openwrt-ar71xx-generic-uImage-gzip.bin
openwrt-ar71xx-generic-uImage-lzma.bin
openwrt-ar71xx-generic-vmlinux.bin
openwrt-ar71xx-generic-vmlinux.elf
openwrt-ar71xx-generic-vmlinux.gz
openwrt-ar71xx-generic-vmlinux.lzma
openwrt-ar71xx-generic-vmlinux-lzma.elf
packages

You are ready to flash your own image on your board. Please read the following pages about flashing procedure:

/var/www/wiki.linino.org/data/pages/wiki/getstartbuild.txt · Last modified: 2015/05/20 11:48 by arturo

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