Difference between revisions of "OpenWRT"

From
Jump to: navigation, search
(Created page with "== openWRT == === Vorbereitung === <pre> Modernized set for Ubuntu 24.04 that has Python 3.12 without python3-distutils: (OpenWrt main/master in Apr 2024) sudo apt update su...")
 
(SDK installieren)
Line 16: Line 16:
 
=== SDK installieren ===
 
=== SDK installieren ===
 
<pre>
 
<pre>
 +
!!! Installation NICHT als root !!!
 +
 
git clone https://github.com/openwrt/openwrt.git
 
git clone https://github.com/openwrt/openwrt.git
 
cd openwrt
 
cd openwrt
Line 31: Line 33:
  
 
</pre>
 
</pre>
 
  
 
=== Firmware bauen ===
 
=== Firmware bauen ===

Revision as of 08:01, 7 November 2025

openWRT

Vorbereitung

Modernized set for Ubuntu 24.04 that has Python 3.12 without python3-distutils: (OpenWrt main/master in Apr 2024)

sudo apt update
sudo apt install build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev python3.7+ \
python3-setuptools rsync swig unzip zlib1g-dev file wget \
binutils bzip2 diff find flex gawk gcc-6+ getopt grep install libc-dev libz-dev \
make4.1+ perl  rsync subversion unzip which


SDK installieren

!!! Installation NICHT als root !!!

git clone https://github.com/openwrt/openwrt.git
cd openwrt
git pull 

git branch -a
git tag

git checkout openwrt-24.10

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

make menuconfig

Firmware bauen

make

oder

make defconfig download clean world


Firmware abholen

After a successful build, the freshly built image(s) and packages can be found below the newly created <buildroot>/bin/targets and <buildroot>/bin/packages directories, respectively. The exact location depends on the target/subtarget (for images) or architecture (for packages):

# Assuming a build for a Netgear WNDR3800, an "ath79" target with a "generic" subtarget
# and a "mips_24kc" package architecture

find bin/targets/ -iname "*-sysupgrade.img*"
bin/targets/ath79/generic/openwrt-24.10.2-ath79-generic-netgear_wndr3800-squashfs-sysupgrade.bin

find bin/packages/ -iname "*.ipk"
bin/packages/mips_24kc/packages/mips_24kc/packages/acme_4.0.0_all.ipk
...