I seldom see a very quick way to compile your own images.
Here is one:
Install dependencies for building OpenWrt (Debian/Ubuntu):
sudo apt install subversion g++ zlib1g-dev build-essential git python time
sudo apt install libncurses5-dev gawk gettext unzip file libssl-dev wget
Get the source code:
git clone https://git.openwrt.org/openwrt/openwrt.git
./scripts/feeds update -a
./scripts/feeds install -a
The last command will open a menu.
If you want to build images for the TL-WR841N v11, select:
"Target System" => "Atheros AR7xxx/AR9xxx" "Subtarget" => "Devices with small flash" "Target Profile" => "TP-LINK TL-WR841N/ND v11"
In the menu, select
Exit and then
Yes to save your settings.
Now build the images. That may take some time.
The images can now be found in bin/targets/ar71xx/generic/ - done.
- Speed up compilation with
make -j4to utilize four CPU cores.
- For recompiling the images, just execute
This will now be much faster as well.
- You can change settings with
make menuconfigand compile again.
- Files placed into a directory called files, will be placed into the root file system of the images. E.g. files/etc/config/my_config.
EDIT: remove subversion and use openwrt repository