OpenWRT/LibreMesh image building learning group

openwrt

As part of the #cops:activeinfra community of practice, we have been exploring the possibilities of OpenWRT Image building in order to try to work on Expanding OpenWRT/LibreMesh hardware support .

We will be sharing a learning session facilitated by @hiure to learn together how to build images of OpenWRT and LibreMesh so we can incorporate our own packages and customizations.

In order to participate actively, it is expected to have an ssh client. If you use GNU/Linux or MacOSX, there is a high chance you already have it.

If you use Windows, you can download putty from here: https://www.putty.org/

We will be documenting the process and build or enhance documentation along the way, so if you are keen to draw, do diagrams or document, join too!!

You can find the recordings here: APC Videos

2 Likes

The idea for tomorrow is to use librerouterOs repository and from there understand how we can create images for new devices like the tplink cpes

1 Like

What timezone is the talk starting at ?

12 UTC so 5:30 pm ist

The event shows in your own timezone. it is 12 UTC.

Some scattered notes we took during the session… if anyone want to improve them, please feel free to edit this post:

OpenWRT Image Building workshop

LibreRouter / LibreRouterOs · GitLab repository’

Clone the repository: run git clone LibreRouter / LibreRouterOs · GitLab. Then go into the repository directory with cd librerouteros.
Run ./scripts/feeds update -a to obtain all the latest package definitions
defined in feeds.conf.default
Run ./scripts/feeds install -a to install symlinks for all obtained
packages into package/feeds/
Run cp configs/default_config .config

Only If your device is not a LibreRouter, run: patch -p1 < configs/revert-cmdline-config.patch

Run make to build your firmware. De default options are already selected but you may want to change some of them, select new packages, etc. You can do that running make menuconfig. Then choose Exit and then Yes when asked if you want to save.

https://tmate.io

dont use arbitrarily:

web session read only: tmate • ro-7y9xLTTeSdbWmNGLqzaz45sq5
ssh session read only: ssh [email protected]
web session: tmate • M8aTPdhsby3PrWeBcMBUZrTH8
ssh session: ssh [email protected]

  • tmate screen adjusts to the common min resolution of the connected screens

    update system

sudo apt update

sudo apt install build-essential gawk gcc-multilib flex git gettext libncurses5-dev libssl-dev python3-distutils zlib1g-dev

check sys/version
cat /etc/os-release

  1. Clone the librerouteros repo
    git clone LibreRouter / LibreRouterOs · GitLab

  2. change the directroy to librerotoros
    cd librerouteros

  3. Update the system
    ./scripts /feeds update -a

  4. Installation
    ./scripts/feeds install -a

  5. Copy the configuration fil
    cp configs/default_config .config

  6. If you are using a device different from Libre Router
    patch -p1 < configs/revert-cmdline-config.patch

  7. To configure according to your needs
    make menuconfig

  8. Select target profile, save and exit

  • Target Profile (TP-Link Archer A& v5) → save → exit

make

Important lInls

- https://wikidevi.wi-cat.ru/Main_Page

issues earlier

- https://github.com/aodzip/buildroot-tiny200/issues/12

Sorry to have missed this one. hope it was fruitful.

You can find the recordings here:
https://videos.apc.org/u/nicopace/m/openwrt-libremesh-image-building-learning-group/