Daniel Pawlik 94fe4c6750 Update packages in script for firware selector or on device
The script can be used on the router directly or take the list
and apply it on firware selector site [1].
After few days of testing, it seems that the wireless network
is more stable with Openssl or WolfSSL instead of mbedtls.

[1] https://firmware-selector.openwrt.org/
2023-07-27 10:56:10 +02:00
2023-06-21 16:54:56 +02:00
2022-03-05 14:28:43 +01:00
2023-06-26 08:21:11 +02:00

Openwrt

Build OpenWRT system image

How to

Container image to build Openwrt image based on https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem To build own container image:

sudo yum install -y git podman
git clone https://github.com/danpawlik/openwrt-builder
cd openwrt-builder
podman build -t openwrt-builder -f Dockerfile

Example

how to use:

mkdir -p openwrt-builder
chmod 0777 openwrt-builder
podman run -it -u user -v $(pwd)/openwrt-builder/:/home/user:z,rw quay.io/dpawlik/openwrt:f38 /bin/bash

Then inside the container (from https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem):

git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git pull

Select a specific code revision:

git branch -a
git tag
git checkout v23.05.0-rc1

Update the feeds:

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

Configure the firmware image and the kernel:

make menuconfig

If you have own config file, replace it. For example:

curl -SL https://downloads.openwrt.org/snapshots/targets/ath79/mikrotik/config.buildinfo > .config

Then:

# make kernel_menuconfig
make -j4 kernel_menuconfig

Build the firmware image:

make -j $(nproc) defconfig download clean world

With Ansible

  • Install Ansible:
sudo dnf install -y ansible-core git
  • Clone builder project
git clone https://github.com/danpawlik/openwrt-builder && cd openwrt-builder
  • Run Ansible playbook
ansible-playbook -i ansible/inventory.yaml ansible/openwrt-build.yaml
Description
No description provided
Readme Apache-2.0 3.5 MiB
Languages
Shell 47.7%
Makefile 44.5%
Dockerfile 7.8%