Skip to content

Create image for unsupported platform

Ycarus (Yannick Chabanois) edited this page May 17, 2021 · 37 revisions

Any platform where images are not generated are unsupported platform. No support for any of them. This may or may not work

You need to be under Linux with all tools needed to compile OpenWrt. This should be enough for Debian, as root:

# apt-get install busybox curl rsync build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler wget tar

To test on any other platform (supported by OpenWrt with kernel 5.4), as user:

# git clone https://github.com/Ysurac/openmptcprouter.git
# cd openmptcprouter
# git checkout master
# OMR_TARGET="myplatform" OMR_FEED_SRC="master" ./build.sh

If the platform already exist, replace myplatform by the platform name like x86_64. Check config-xxx files to find platforms where xxx is the supported platform name.

OMR_FEED_SRC="master" use master branch of OpenMPTCProuter, you can omit it to use develop branch

The script build.sh accepts all make arguments (like -j).

If it's a not yet supported platform, select your arch in the menu and build it like this, as user:

# cd myplatform/source
# make menuconfig 
# make -j6

When finished, files are located in the directory source/bin.