Code Monkey home page Code Monkey logo

sdk's Introduction

OpenWRT SDK for GL.iNet devices

OpenWRT SDK for GL.iNet devices. The OpenWRT SDK is a pre-compiled environment suitable for creating custom packages without having to compile the entire OpenWRT build environment.

:!: Do everything as normal user, don't use root user or sudo!

:!: Do not build in a directory that has spaces in its full path

System requirements

  • x86_64 platform
  • Ubuntu or another linux distro

Compiling under Windows can be done using the Windows Subsystem For Linux (WSL) with Ubuntu installed to it. Follow the guide bellow, installing Ubuntu 18.04 LTS from the Microsoft Store:

https://docs.microsoft.com/en-us/windows/wsl/install-win10

Preparing your build environment

To use the SDK on your system will usually require you to install some extra packages.

For Ubuntu 18.04 LTS, run the following commands to install the required packages:

$ sudo apt update && sudo apt upgrade -y
$ sudo apt install asciidoc bash bc binutils bzip2 fastjar flex gawk gcc genisoimage gettext git intltool jikespg libgtk2.0-dev libncurses5-dev libssl1.0-dev make mercurial patch perl-modules python2.7-dev rsync ruby sdcc subversion unzip util-linux wget xsltproc zlib1g-dev zlib1g-dev -y

Downloads

$ git clone https://github.com/gl-inet/sdk.git

The SDK requires a "case sensitive" system, Windows is unfortunately not. To run the SDK in WSL you MUST clone the repo to the linux folder tree, ie: /home/<username>/ or any other folder you choose. This is required, you CAN NOT run it from /mnt/c/ or any other windows native drive mounted in WSL. Running the SDK from a Windows mounted disk will result in a failed build with cryptic messages.

For ease of use, We store the SDK separately. You can download the specified SDK by the following command.

$ ./download.sh 
Usage: 
./download.sh [target]   # Download the appropriate SDK

All available target list:
    ar71xx-1806     # usb150/ar150/ar300m16/mifi/ar750/ar750s/x750/x1200
    ath79-1907      # usb150/ar150/ar300m/mifi/ar750/ar750s/x750/x300b/xe300/e750/x1200 openwrt-19.07.7 ath79 target
    ramips-1806     # mt300n-v2/mt300a/mt300n/n300/vixmini
    ramips-1907     # mt1300 mt300n-v2/mt300a/mt300n/n300/vixmini
    ipq806x-qsdk53  # b1300/s1300
    ipq_ipq40xx-qsdk11  # b1300/s1300/ap1300/b2200 (version 3.201 and above)
    ipq_ipq60xx-qsdk11  # ax1800
    mvebu-1907      # mv1000
    siflower-1806   # sf1200/sft1200
    ipq807x-2102   # ax1800/axt1800 (version 4.x and above)

Compiling

Official compilation method

Place your package in sdk/<version>/<target>/package/, then run:

$ cd sdk/<version>/<target>/
$ make package/<package_name>/compile V=s

For example, to compile the OpenSSL package for the ar71xx target, it will look like this:

$ cd sdk/1806/ar71xx
$ make package/openssl/{clean,compile} V=s

The compiled package will be in the sdk/<version>/<target>/bin/ folder

It is recommended that you use the V=s flag at the end of the make command, but it is not required. The compiler will print all messages and show if there are any errrors. If you know the packages are all correct, you can omit it for a more clean output.

Some packages require other packages to compile. If your package gives warnings like this:

WARNING: Makefile 'package/ddserver/Makefile' has a dependency on 'uclibcxx', which does not exist

Before the compilation begins, or when compiling with the V=s flag you get an error towards the end like this:

Package ddserver is missing dependencies for the following libraries:
libuClibc++.so.0

You will need to install the dependency before compiling your package. To do that run:

$ ./scripts/feeds update -f

This will update the package lists, then run:

$ ./scripts/feeds install <dependency_name>

For the example above, it required the uClibc++ library, so we install it:

$ ./scripts/feeds install uclibcxx

Re-run the make package/<package_name>/compile V=s command and your package should compile without issues.


To make a custom package from any program you can follow the guides here:

https://github.com/mwarning/openwrt-examples

And read about the OpenWRT package structure here:

https://openwrt.org/docs/guide-developer/packages

GL.iNet Util compilation method

We provide a script to compile all software packages with all targets SDK or compile all software packages with a single target SDK. You are freely and quickly compile packages for each platform.

$ ./builder.sh 
Usage: 
./builder.sh [option]
command:
    [-a]                # Compile all software packages with all targets.
    [-t] [target]       # Compile packages with single targets.
    [-d] [package_path] # Package path.
    [-v]                # Enable compile log.

All available target list:
    ar71xx-1806     # usb150/ar150/ar300m16/mifi/ar750/ar750s/x750/x1200
    ath79-1907      # usb150/ar150/ar300m/mifi/ar750/ar750s/x750/x300b/xe300/e750/x1200 openwrt-19.07.7 ath79 target
    ramips-1806     # mt300n-v2/mt300a/mt300n/n300/vixmini
    ramips-1907     # mt1300 mt300n-v2/mt300a/mt300n/n300/vixmini
    ipq806x-qsdk53  # b1300/s1300
    mvebu-1907      # mv1000
    siflower-1806   # sf1200/sft1200
    ipq807x-2102   # ax1800/axt1800 (version 4.x and above)

You can put all your packages to a folder, then run the following command to compile packages for the specified platform,

$ ./builder.sh -d [packages_path] -t [target]

Or run the following command to compile packages for all platform,

$ ./builder.sh -d [packages_path] -a

Installing

Once the package has been compiled, you can transfer the package via SSH to the GL-iNet device following the guides here:

https://docs.gl-inet.com/en/3/app/ssh/

Then running:

$ opkg install <package_name>.ipk

Will install the package on the device without internet.

sdk's People

Contributors

barhom avatar handongming avatar hoff-glinet avatar lancersky avatar luochongjun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdk's Issues

builder fails with "arm-openwrt-linux-uclibcgnueabi-g++: error: unrecognized command line option '-std=c++17' "

ubuntu 18.04 LTS, fresh download, all apt requirements followed.

when trying to build a package, getting this

$ ./builder.sh -d sdk/qsdk53/ipq806x/target/zerotier -t ipq806x-qsdk53 -v
#
# configuration written to .config
#
make[1]: Entering directory '/home/user/sdk/sdk/qsdk53/ipq806x'
make[2]: Entering directory '/home/user/sdk/sdk/qsdk53/ipq806x/target/zerotier'
rm -f /home/user/sdk/sdk/qsdk53/ipq806x/bin/packages/ipq806x/base/zerotier_*
rm -f /home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/stamp/.zerotier_installed
rm -f /home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/packages/zerotier.list /home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/host/packages/zerotier.list
rm -rf /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1
make[2]: Leaving directory '/home/user/sdk/sdk/qsdk53/ipq806x/target/zerotier'
make[1]: Leaving directory '/home/user/sdk/sdk/qsdk53/ipq806x'
#
# configuration written to .config
#
make[1]: Entering directory '/home/user/sdk/sdk/qsdk53/ipq806x'
make[2]: Entering directory '/home/user/sdk/sdk/qsdk53/ipq806x/target/zerotier'
. /home/user/sdk/sdk/qsdk53/ipq806x/include/shell.sh; gzip -dc /home/user/sdk/sdk/qsdk53/ipq806x/dl/zerotier-1.10.1.tar.gz | tar -C /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/.. -xf - 
[ ! -d ./src/ ] || cp -fpR ./src/. /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1

Applying ./patches/0001-fix-makefile.patch using plaintext: 
patching file make-linux.mk

Applying ./patches/0002-fix-compilation-for-arm_cortex-a7-neon.patch using plaintext: 
patching file node/Constants.hpp
touch /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/.prepared_f780d9bc5fd9c05520f8d2cbd6cef9b7
rm -f /home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/stamp/.zerotier_installed
(cd /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/./; if [ -x ./configure ]; then find /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/ -name config.guess | xargs -r chmod u+w; find /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/ -name config.guess | xargs -r -n1 cp --remove-destination /home/user/sdk/sdk/qsdk53/ipq806x/scripts/config.guess; find /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/ -name config.sub | xargs -r chmod u+w; find /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/ -name config.sub | xargs -r -n1 cp --remove-destination /home/user/sdk/sdk/qsdk53/ipq806x/scripts/config.sub; AR="arm-openwrt-linux-uclibcgnueabi-gcc-ar" AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections" LD=arm-openwrt-linux-uclibcgnueabi-ld NM="arm-openwrt-linux-uclibcgnueabi-gcc-nm" CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB="arm-openwrt-linux-uclibcgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections " CXXFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections " CPPFLAGS="-I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/usr/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/include " LDFLAGS="-L/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/lib -L/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/lib -L/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/usr/lib -L/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/lib -Wl,--gc-sections,--as-needed "   ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   ; fi; )
rm -f /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/.configured_*
touch /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/.configured_yyyyyy
CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/usr/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/include " CXXFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/usr/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/include " LDFLAGS="-L/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/lib -L/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/lib -L/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/usr/lib -L/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/lib -Wl,--gc-sections,--as-needed " make   -C /home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/. AR="arm-openwrt-linux-uclibcgnueabi-gcc-ar" AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections" LD=arm-openwrt-linux-uclibcgnueabi-ld NM="arm-openwrt-linux-uclibcgnueabi-gcc-nm" CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB="arm-openwrt-linux-uclibcgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CROSS="arm-openwrt-linux-uclibcgnueabi-" ARCH="arm" ZT_EMBEDDED=1 ZT_SSO_SUPPORTED=0 DEFS="" OSTYPE="Linux"  one;
make[3]: Entering directory '/home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1'
arm-openwrt-linux-uclibcgnueabi-g++ -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/usr/include -I/home/user/sdk/sdk/qsdk53/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/include  -Wall -Wno-deprecated -std=c++17 -pthread -Izeroidc/target -isystem ext -DNDEBUG  -DZT_USE_MINIUPNPC -DMINIUPNP_STATICLIB -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DOS_STRING="\"Linux\"" -DMINIUPNPC_VERSION_STRING="\"2.0\"" -DUPNP_VERSION_STRING="\"UPnP/1.1\"" -DENABLE_STRNATPMPERR -DZT_NO_TYPE_PUNNING -DZT_BUILD_PLATFORM=1 -DZT_BUILD_ARCHITECTURE=3 -DZT_SOFTWARE_UPDATE_DEFAULT="\"disable\"" -D_MT_ALLOCATOR_H -D_POOL_ALLOCATOR_H -D_EXTPTR_ALLOCATOR_H -D_DEBUG_ALLOCATOR_H -DZT_USE_ARM32_NEON_ASM_SALSA2012   -c -o node/AES.o node/AES.cpp
arm-openwrt-linux-uclibcgnueabi-g++: error: unrecognized command line option '-std=c++17'
<builtin>: recipe for target 'node/AES.o' failed
make[3]: *** [node/AES.o] Error 1
make[3]: Leaving directory '/home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1'
Makefile:81: recipe for target '/home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/.built' failed
make[2]: *** [/home/user/sdk/sdk/qsdk53/ipq806x/build_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/ZeroTierOne-1.10.1/.built] Error 2
make[2]: Leaving directory '/home/user/sdk/sdk/qsdk53/ipq806x/target/zerotier'
package/Makefile:191: recipe for target 'package/zerotier/compile' failed
make[1]: *** [package/zerotier/compile] Error 2
make[1]: Leaving directory '/home/user/sdk/sdk/qsdk53/ipq806x'
/home/user/sdk/sdk/qsdk53/ipq806x/include/toplevel.mk:179: recipe for target 'package/zerotier/compile' failed
make: *** [package/zerotier/compile] Error 2

Package gateway is missing dependencies for the following libraries: libstdc++.so.6

I'm trying to create a package from a C++ application and I'm getting the following:

Package gateway is missing dependencies for the following libraries: libstdc++.so.6 Makefile:38: recipe for target '/home/ametek/Projects/sdk/sdk/1907/ath79/bin/packages/mips_24kc/base/gateway_1.0.0-1_mips_24kc.ipk' failed make[2]: *** [/home/ametek/Projects/sdk/sdk/1907/ath79/bin/packages/mips_24kc/base/gateway_1.0.0-1_mips_24kc.ipk] Error 1 make[2]: Leaving directory '/home/ametek/Projects/gateway' time: package/gateway/compile#1.11#0.40#1.49 package/Makefile:111: recipe for target 'package/gateway/compile' failed make[1]: *** [package/gateway/compile] Error 2 make[1]: Leaving directory '/home/ametek/Projects/sdk/sdk/1907/ath79' /home/ametek/Projects/sdk/sdk/1907/ath79/include/toplevel.mk:218: recipe for target 'package/gateway/compile' failed make: *** [package/gateway/compile] Error 2
Why is this happening and how do I resolve it?

By the way, I'm on an Ubuntu 18.04 host.

build ipk error -- /bin/sh: 1: scripts/basic/fixdep: not found

/bin/sh: 1: scripts/basic/fixdep: not found
make[5]: *** [/home/runner/sdk/1907/ath79/build_dir/target-mips_24kc_musl/linux-ath79_nand/cryptodev-linux-cryptodev-linux-1.10/ioctl.o] Error 127
make[5]: *** Deleting file '/home/runner/sdk/1907/ath79/build_dir/target-mips_24kc_musl/linux-ath79_nand/cryptodev-linux-cryptodev-linux-1.10/ioctl.o'
make[4]: *** [module/home/runner/sdk/1907/ath79/build_dir/target-mips_24kc_musl/linux-ath79_nand/cryptodev-linux-cryptodev-linux-1.10] Error 2
scripts/Makefile.build:326: recipe for target '/home/runner/sdk/1907/ath79/build_dir/target-mips_24kc_musl/linux-ath79_nand/cryptodev-linux-cryptodev-linux-1.10/ioctl.o' failed
make[3]: *** [build] Error 2
Makefile:1544: recipe for target 'module/home/runner/sdk/1907/ath79/build_dir/target-mips_24kc_musl/linux-ath79_nand/cryptodev-linux-cryptodev-linux-1.10' failed
make[2]: *** [/home/runner/sdk/1907/ath79/build_dir/target-mips_24kc_musl/linux-ath79_nand/cryptodev-linux-cryptodev-linux-1.10/.built] Error 2
make[4]: Leaving directory '/home/runner/sdk/1907/ath79/build_dir/target-mips_24kc_musl/linux-ath79_nand/linux-4.14.221'
Makefile:27: recipe for target 'build' failed
make[3]: Leaving directory '/home/runner/sdk/1907/ath79/build_dir/target-mips_24kc_musl/linux-ath79_nand/cryptodev-linux-cryptodev-linux-1.10'
Makefile:58: recipe for target '/home/runner/sdk/1907/ath79/build_dir/target-mips_24kc_musl/linux-ath79_nand/cryptodev-linux-cryptodev-linux-1.10/.built' failed
make[2]: Leaving directory '/home/runner/sdk/1907/ath79/feeds/base/package/kernel/cryptodev-linux'
time: package/feeds/base/cryptodev-linux/compile#1.84#0.67#2.39
make[1]: *** [package/feeds/base/cryptodev-linux/compile] Error 2
package/Makefile:111: recipe for target 'package/feeds/base/cryptodev-linux/compile' failed
make[1]: Leaving directory '/home/runner/sdk/1907/ath79'
make: *** [package/helloworld/luci-app-ssr-plus/compile] Error 2
/home/runner/sdk/1907/ath79/include/toplevel.mk:218: recipe for target 'package/helloworld/luci-app-ssr-plus/compile' failed
Error: Process completed with exit code 2.

tailscale is running on older version

Hello , Im not any developer or anything but a user of glinet-axt1800/slate ax , tailscale seems to be running on older version and exit node always turns off after restart. any help would be appreciated. Im running latest firmware 4.5.0

download.sh运行报错

运行环境WSL,openwrt官方源码编译可以,但是这个SDK报错信息如下,第一次编译,还请指导,感谢
$ ./download.sh ramips-1907
Download ramips-1907 SDK
Cloning into 'sdk/1907/ramips'...
fatal: unable to access 'https://github.com/gl-inet-builder/openwrt-sdk-ramips-1907.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
./download.sh: line 46: pushd: sdk/1907/ramips: No such file or directory
./download.sh: line 47: ./scripts/feeds: No such file or directory
./download.sh: line 48: ./scripts/feeds: No such file or directory
make: *** No rule to make target 'defconfig'. Stop.
./download.sh: line 50: popd: directory stack empty

Use 'builder.sh script to compile all your packages.
Run './builder.sh' to get more help.

Compilation issues due to missing dependencies

Hi, I've been trying to compile some stuff with your sdk and I am getting the following errors:

  • When executing the second line from 'Preparing the build environment' it can't find libssl1.0-dev. This can be fixed by replacing it with libssl-dev but don't know if that breaks anything
  • Upon executing ./download.sh ramips-1806 I get all sorts of warnings with missing packages and dependencies. See output below:
Create index file './feeds/telephony.index' 
ERROR: please fix feeds/telephony/net/freeswitch/Makefile - see logs/feeds/telephony/net/freeswitch/dump.txt for details
ERROR: please fix feeds/telephony/net/freeswitch-stable/Makefile - see logs/feeds/telephony/net/freeswitch-stable/dump.txt for details
Collecting package info: done
Collecting target info: done
Collecting package info: done
Collecting target info: done
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'e100-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'prism54-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'rtl8192su-firmware', which does not exist
Ignoring feed 'base' - index missing
WARNING: No feed for package 'uci' found
WARNING: No feed for package 'curl' found
WARNING: No feed for package 'libubus' found
WARNING: No feed for package 'libubox' found
WARNING: No feed for package 'libiwinfo' found
Installing package 'sqlite3' from packages
WARNING: No feed for package 'zlib' found
WARNING: No feed for package 'libncurses' found
WARNING: No feed for package 'libreadline' found
Installing package 'mqtt' from gli_pub
Installing package 'openssl' from gli_pub
WARNING: No feed for package 'zlib' found
Installing package 'cryptodev-linux' from packages
Installing package 'fcgi' from packages
WARNING: No feed for source package 'libtool' found
WARNING: No feed for source package 'gettext' found
WARNING: No feed for source package 'libiconv' found
WARNING: No feed for package 'uclibcxx' found
Collecting package info: done
WARNING: Makefile 'package/feeds/packages/fcgi/Makefile' has a dependency on 'uclibcxx', which does not exist
WARNING: Makefile 'package/feeds/packages/fcgi/Makefile' has a build dependency on 'libtool', which does not exist
WARNING: Makefile 'package/feeds/packages/fcgi/Makefile' has a build dependency on 'gettext', which does not exist
WARNING: Makefile 'package/feeds/packages/fcgi/Makefile' has a build dependency on 'libiconv', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'e100-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'prism54-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'rtl8192su-firmware', which does not exist
WARNING: Makefile 'package/feeds/gli_pub/openssl/Makefile' has a dependency on 'zlib', which does not exist
WARNING: Makefile 'package/feeds/packages/sqlite3/Makefile' has a dependency on 'zlib', which does not exist
WARNING: Makefile 'package/feeds/packages/sqlite3/Makefile' has a dependency on 'libncurses', which does not exist
WARNING: Makefile 'package/feeds/packages/sqlite3/Makefile' has a dependency on 'libreadline', which does not exist
tmp/.config-package.in:36:warning: ignoring type redefinition of 'PACKAGE_libc' from 'boolean' to 'tristate'
tmp/.config-package.in:64:warning: ignoring type redefinition of 'PACKAGE_libgcc' from 'boolean' to 'tristate'
tmp/.config-package.in:149:warning: ignoring type redefinition of 'PACKAGE_libpthread' from 'boolean' to 'tristate'

Ultimately missing zlib causes a compilation error for me so any insight into what is happening here is greatly appreciated.

General note: in the README.md under 'preparing the build environment' it says to install zlib1g-dev twice.

download.sh terminates with errors

└─$ ./download.sh ipq807x-2102
Download ipq807x-2102 SDK
Cloning into 'sdk/2102/ipq807x'...
remote: Enumerating objects: 33974, done.
remote: Total 33974 (delta 0), reused 0 (delta 0), pack-reused 33974
Receiving objects: 100% (33974/33974), 262.79 MiB | 7.10 MiB/s, done.
Resolving deltas: 100% (5193/5193), done.
Updating files: 100% (33623/33623), done.
./download.sh: 47: pushd: not found
./download.sh: 48: ./scripts/feeds: not found
./download.sh: 49: ./scripts/feeds: not found
make: *** No rule to make target 'defconfig'.  Stop.
./download.sh: 51: popd: not found

Use 'builder.sh script to compile all your packages.
Run './builder.sh' to get more help.

building the package

We are trying to do the build setup for AP1300

After buildsetup Followed the below steps for building the package, here used simple program as helloworld.
1.Followed the steps provided for setting up the WSL environment with 18.04 LTS environment
2.Executed the below commands
sudo apt update && sudo apt upgrade -y
sudo apt install asciidoc bash bc binutils bzip2 fastjar flex gawk gcc genisoimage gettext git intltool jikespg libgtk2.0-dev
libncurses5-dev libssl1.0-dev make mercurial patch perl-modules python2.7-dev rsync ruby sdcc subversion unzip util-linux
wget xsltproc zlib1g-dev zlib1g-dev -y
3.Downloaded the sdk from windows CMD as it failed from the WSL terminal
4.Ran the below caommand in windows CMD
.\download.sh ipq_ipq40xx-qsdk11
5. created the folder in package folder with helloworld name, then createed the c file with below code
#include <stdio.h>

int main(void)
{
    printf("Helloworld\n\n");
    return 0;
}

6.Makefile created to build this file.
7.Later tried to build the package with below command
./builder.sh -d ../../../openwrtexamples/helloworld/ -t ipq_ipq40xx-qsdk11
but getting the below errors
: invalid optionne 2: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
./builder.sh: line 6: $'\r': command not found
./builder.sh: line 8: syntax error near unexpected token $'{\r'' '/builder.sh: line 8: usage() {

8.Also tried building directly from package folder with below command
make package/heloworld/{clean,compile} V=s
getting the below error when I run from this path.
Makefile:10: /feeds.mk: No such file or directory
make: *** No rule to make target '/feeds.mk'. Stop.

The code also in the below location:
https://github.com/srihara/openwrttestpackage

Can you please help me reolving the issue

SDK for developing application for AP1300

we want to have sdk fo the AP1300 device, which is not mentioned in the download sdk list.
Can you please let us know how to cross compile the application for AP1300

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.