Giter Club home page Giter Club logo

meta-openwrt's Introduction

meta-openwrt

OE metadata layer for OpenWRT

This layer provides OpenEmbedded metadata for OpenWRT packages

Getting Started

git clone https://github.com/openembedded/openembedded-core.git
cd openembedded-core
git clone https://github.com/openembedded/meta-openembedded.git
git clone https://github.com/openembedded/bitbake.git
git clone https://github.com/kraj/meta-openwrt.git

$ . ./oe-init-build-env

$ bitbake-layers add-layer ../meta-openembedded/meta-oe
$ bitbake-layers add-layer ../meta-openembedded/meta-python
$ bitbake-layers add-layer ../meta-openembedded/meta-networking
$ bitbake-layers add-layer ../meta-openwrt

Building

Below we build for qemuarm machine as an example. to local.conf add:

INHERIT += " openwrt-distro-defaults "

You can then use, for example, one of:

$ TCLIBC=musl MACHINE=qemuarm bitbake openwrt-image-minimal
$ TCLIBC=musl MACHINE=qemuarm bitbake openwrt-image-base
$ TCLIBC=musl MACHINE=qemuarm bitbake openwrt-image-full
  • openwrt-image-minimal has openwrt networking and cli but no UI
  • openwrt-image-base has openwrt networking, cli, and UI (luci)

Running

$ TCLIBC=musl runqemu qemuarm

Limitations

Works with OE Release >= 2.5 ( Sumo )

Currently images are buildable/bootable for mips, arm, aarch64, ppc, x86, x86_64 based qemu machines MACHINE variable and TCLIBC variables can also be set in conf/local.conf to avoid typing it on commandline on any bitbake invocation

Dependencies

URI: https://github.com/openembedded/openembedded-core.git
branch: master
revision: HEAD

URI: https://github.com/openembedded/meta-openembedded.git
branch: master
revision: HEAD

URI: https://github.com/openembedded/bitbake.git
branch: master
revision: HEAD

URI: https://github.com/imyller/meta-nodejs.git
branch: master
revision: HEAD

URI: https://github.com/imyller/meta-nodejs-contrib.git
branch: master
revision: HEAD

Upstreaming

Mailing List

Send pull requests to [email protected] with '[meta-openwrt]' in the subject'

When sending single patches, please use something like

git send-email -M -1 --to [email protected] --subject-prefix=meta-openwrt][PATCH

Forking via github

You are encouraged to fork the mirror on github to share your patches, this is preferred for patch sets consisting of more than one patch. Other services like gitorious, repo.or.cz or self hosted setups are of course accepted as well, 'git fetch ' works the same on all of them. We recommend github because it is free, easy to use, has been proven to be reliable and has a really good web GUI.

Maintainer(s)

meta-openwrt's People

Contributors

ahcbb6 avatar armcc avatar bachp avatar cleitonbueno avatar cveilleux avatar fbertux avatar garbados avatar gotthardp avatar hamission avatar hassansys2 avatar hoangtran avatar katyo avatar kholk avatar kraj avatar mc-requtech avatar milksob avatar mtrnord avatar nquest avatar praveenrgowda avatar sebveit avatar stangerm2 avatar troth avatar tuanha-viosoft 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  avatar  avatar  avatar  avatar  avatar

meta-openwrt's Issues

libblobpack does not accept cflags

That does not work on OE for some reason:
libblobpack/git-r0/git/Makefile

CFLAGS+=-g -Werror -Wall -Wno-unused-function -std=gnu99 -fPIC
%.o: %.c 
	$(CC)  $(CFLAGS) -c -o $@ $^

Changed that following to make ti compile:

MYCFLAGS+=-g -Werror -Wall -Wno-unused-function -std=gnu99 -fPIC
%.o: %.c 
	$(CC) $(MYCFLAGS) $(CFLAGS) -c -o $@ $^

iptables-1.8.9-r0 fails to apply patch

On master, iptables fails to be patched during build. Looks similar to issue 98.

ERROR: iptables-1.8.9-r0 do_patch: Applying patch '600-shared-libext.patch' on target directory '/home/user/openembedded-core/build/tmp-musl/work/cortexa15t2hf-neon-oe-linux-musleabi/iptables/1.8.9-r0/iptables-1.8.9'
CmdError('quilt --quiltrc /home/user/openembedded-core/build/tmp-musl/work/cortexa15t2hf-neon-oe-linux-musleabi/iptables/1.8.9-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 600-shared-libext.patch
patching file extensions/GNUmakefile.in
Hunk #2 succeeded at 113 (offset 1 line).
Hunk #3 succeeded at 153 (offset 9 lines).
patching file iptables/Makefile.am
Hunk #1 FAILED at 7.
Hunk #2 FAILED at 28.
Hunk #3 FAILED at 42.
3 out of 3 hunks FAILED -- rejects in file iptables/Makefile.am
Patch 600-shared-libext.patch does not apply (enforce with -f)

stderr: ')
ERROR: Logfile of failure stored in: /home/user/openembedded-core/build/tmp-musl/work/cortexa15t2hf-neon-oe-linux-musleabi/iptables/1.8.9-r0/temp/log.do_patch.3912
ERROR: Task (/home/user/openembedded-core/meta/recipes-extended/iptables/iptables_1.8.9.bb:do_patch) failed with exit code '1'

No recipe in default for busybox_1.34

Following wiki , building openwrt-image-minimal I got :

$ TCLIBC=musl MACHINE=qemuarm bitbake openwrt-image-base
Loading cache: 100% |#########################################################################################| Time: 0:00:01
Loaded 3854 entries from dependency cache.
ERROR: No recipes in default available for:
/mnt/yocto/openembedded-core/meta-openwrt/recipes-tweaks/busybox/busybox_1.34.%.bbappend

Figuring out the nodistro thing v. procd

I've noticed that if one sets even DISTRO_FEATURES += "procd" that glibc complains about locales, because it no longer has DISTRO_FEATURES_LIBC in the DISTRO_FEATURES.

Another complication may be: DISTRO_FEATURES_BACKFILL_CONSIDERED_append = "sysvinit systemd" which is also because of procd.

I'm wondering the best way to handle this, since I'd like to keep this working with the nodistro case, without special requirements in the conf/local.conf. The obvious thing would be to drop the DISTRO_FEATURES requirement in the procd recipe, but I'm not sure that's appropriate since it's an init_manager & dev_manager like systemd.

cant ping / login rpi4

so i build an image for the raspberrypi CM4 o the Compute module 4 IO Board, a normal image core-image-minimal gets an ip and i can login via ssh no problem, yet with a openwrt-image-full, i can see link on the board, seems to get an ip maybe but no ping / ssh to the device. Any ideas ?

MACHINE ?= "raspberrypi4"
DISTRO ?= "poky"
INHERIT += "openwrt-distro-defaults"

juci fails to build due to libwebsockets missing cert

-oe-linux-gnueabi/libwebsockets/git-r0/image/usr/share/libwebsockets-test-server/test.html
| CMake Error at cmake_install.cmake:231 (file):
| file INSTALL cannot find
| "/home/oeuser/Build/firmware/openembedded/build-meta-openwrt/build/tmp-glibc/work/armv5e-oe-linux-gnueabi/libwebsockets/git-r0/build/libwebsockets-test-server.key.pem".
| |
| Makefile:64: recipe for target 'install' failed
| make: *** [install] Error 1

Build fails while compiling netifd on branch dunfell

Hi:
I build the openwrt-image-full for my custom board based on am335x platform and get error while compiling netifd
Following is the complete build logs.

log.do_compile.txt

yocto@Xeon:~/work/openwrt/build$ CLIBC=musl bitbake openwrt-image-full
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 3562 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-oe-linux-musleabi"
MACHINE = "vt-m2m-g335-pkr"
DISTRO = "nodistro"
DISTRO_VERSION = "nodistro.0"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta = "dunfell:f3be01483b01c88f8c4ba24ca73ccf1bcc33665c"
meta-oe
meta-python
meta-networking = "dunfell:ab9fca485e13f6f2f9761e1d2810f87c2e4f060a"
meta-openwrt = "dunfell:2ceeb3abcee07a0340b0994e7b8b321482d6a054"
meta-arm
meta-arm-toolchain = "dunfell:75e7f371f5384d978d741878573a65f2177d2904"
meta-custom = "dunfell:941f89a3211dcf610dcb4ef53b5fbfb59cb7fcb0"
meta-ti = "dunfell:40728f2d24ad1625e98fc4294d9dfa872031710f"
...
system-linux.c:2395:14: error: '__NR_clock_gettime' undeclared (first use in this function); did you mean 'clock_gettime'?
2395 | if (syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts) == 0)
| ^~~~~~~~~~~~~~~~~~
| clock_gettime
/home/yocto/work/openwrt/build/tmp-musl/work/armv7at2hf-neon-oe-linux-musleabi/netifd/git-r0/git/system-linux.c:2395:14: note: each undeclared identifier is reported only once for each function it appears in
/home/yocto/work/openwrt/build/tmp-musl/work/armv7at2hf-neon-oe-linux-musleabi/netifd/git-r0/git/system-linux.c: At top level:
cc1: error: unrecognized command line option '-Wno-unknown-warning-option' [-Werror]
cc1: all warnings being treated as errors
...

600-shared-libext.patch does not apply to iptables 1.8.4

The bbappend file meta-openwrt/recipes-tweaks/iptables/iptables_1.8.%.bbappend adds 600-shared-libext.patch to any iptables version matching 1.8.x. But it does not apply to 1.8.4, which is the one used by OE dunfell.

ERROR: iptables-1.8.4-r0 do_patch: Command Error: 'quilt --quiltrc /home/marcus/COTM/Mercury_SW/yocto/build/tmp-angstrom-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/iptables/1.8.4-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch 600-shared-libext.patch
patching file extensions/GNUmakefile.in
patching file iptables/Makefile.am
Hunk #1 FAILED at 8.
Hunk #2 FAILED at 45.
2 out of 2 hunks FAILED -- rejects in file iptables/Makefile.am
Patch 600-shared-libext.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in: /home/marcus/COTM/Mercury_SW/yocto/build/tmp-angstrom-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/iptables/1.8.4-r0/temp/log.do_patch.3124
ERROR: Task (/home/marcus/COTM/Mercury_SW/yocto/layers/openembedded-core/meta/recipes-extended/iptables/iptables_1.8.4.bb:do_patch) failed with exit code '1'

Unable to add additional layers

I am attempting to compile with added layers and I encountering errors.

bitbake-layers show-layers
NOTE: Starting bitbake server...
ERROR: Unable to start bitbake server
ERROR: Server log for this session (/root/Yocto/poky/Cl-Img/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 9855 at 2018-07-03 13:26:59.125015 ---
WARNING: Layer appliance should set LAYERSERIES_COMPAT_appliance in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer sysrepo should set LAYERSERIES_COMPAT_sysrepo in its conf/layer.conf file to list the core layer names it is compatible with.
ERROR: ParseError in configuration INHERITs: Could not inherit file classes/openwrt-distro-defaults.bbclass
WARNING: Layer appliance should set LAYERSERIES_COMPAT_appliance in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer appliance should set LAYERSERIES_COMPAT_appliance in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer sysrepo should set LAYERSERIES_COMPAT_sysrepo in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer sysrepo should set LAYERSERIES_COMPAT_sysrepo in its conf/layer.conf file to list the core layer names it is compatible with.
ERROR: ParseError in configuration INHERITs: Could not inherit file classes/openwrt-distro-defaults.bbclass
ERROR: ParseError in configuration INHERITs: Could not inherit file classes/openwrt-distro-defaults.bbclass

ERROR: Unable to start bitbake server
ERROR: Server log for this session (/root/Yocto/poky/Cl-Img/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 9855 at 2018-07-03 13:26:59.125015 ---
WARNING: Layer appliance should set LAYERSERIES_COMPAT_appliance in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer sysrepo should set LAYERSERIES_COMPAT_sysrepo in its conf/layer.conf file to list the core layer names it is compatible with.
ERROR: ParseError in configuration INHERITs: Could not inherit file classes/openwrt-distro-defaults.bbclass
WARNING: Layer appliance should set LAYERSERIES_COMPAT_appliance in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer appliance should set LAYERSERIES_COMPAT_appliance in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer sysrepo should set LAYERSERIES_COMPAT_sysrepo in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer sysrepo should set LAYERSERIES_COMPAT_sysrepo in its conf/layer.conf file to list the core layer names it is compatible with.
ERROR: ParseError in configuration INHERITs: Could not inherit file classes/openwrt-distro-defaults.bbclass
ERROR: ParseError in configuration INHERITs: Could not inherit file classes/openwrt-distro-defaults.bbclass

My local.conf
cat conf/local.conf

This file is your local configuration file and is where all local user settings

are placed. The comments in this file give some guide to the options a new user

to the system might want to change but pretty much any configuration option can

be set in this file. More adventurous users can look at local.conf.extended

which contains other examples of configuration which can be placed in this file

but new users likely won't need any of them initially.

Lines starting with the '#' character are commented out and in some cases the

default values are provided as comments to show people example syntax. Enabling

the option is a question of removing the # character and making any change to the

variable as required.

Machine Selection

You need to select a specific machine to target the build with. There are a selection

of emulated machines available which can boot and run in the QEMU emulator:

#MACHINE ?= "qemuarm"
#MACHINE ?= "qemuarm64"
#MACHINE ?= "qemumips"
#MACHINE ?= "qemumips64"
#MACHINE ?= "qemuppc"
#MACHINE ?= "qemux86"
#MACHINE ?= "qemux86-64"

There are also the following hardware board target machines included for

demonstration purposes:

#MACHINE ?= "beaglebone-yocto"
#MACHINE ?= "genericx86"
#MACHINE ?= "genericx86-64"
#MACHINE ?= "mpc8315e-rdb"
#MACHINE ?= "edgerouter"

This sets the default machine to be qemux86 if no other machine is selected:

MACHINE ??= "qemux86"

Where to place downloads

During a first build the system will download many different source code tarballs

from various upstream projects. This can take a while, particularly if your network

connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you

can preserve this directory to speed up this part of subsequent builds. This directory

is safe to share between multiple builds on the same machine too.

The default is a downloads directory under TOPDIR which is the build directory.

#DL_DIR ?= "${TOPDIR}/downloads"
IMAGE_FSTYPES += "wic.qcow2"

Where to place shared-state files

BitBake has the capability to accelerate builds based on previously built output.

This is done using "shared state" files which can be thought of as cache objects

and this option determines where those files are placed.

You can wipe out TMPDIR leaving this directory intact and the build would regenerate

from these files if no changes were made to the configuration. If changes were made

to the configuration, only shared state files where the state was still valid would

be used (done using checksums).

The default is a sstate-cache directory under TOPDIR.

#SSTATE_DIR ?= "${TOPDIR}/sstate-cache"

Where to place the build output

This option specifies where the bulk of the building work should be done and

where BitBake should place its temporary files and output. Keep in mind that

this includes the extraction and compilation of many applications and the toolchain

which can use Gigabytes of hard disk space.

The default is a tmp directory under TOPDIR.

#TMPDIR = "${TOPDIR}/tmp"
TCLIBC = "musl"

Default policy config

The distribution setting controls which policy settings are used as defaults.

The default value is fine for general Yocto project use, at least initially.

Ultimately when creating custom policy, people will likely end up subclassing

these defaults.

DISTRO ?= "poky"

As an example of a subclass there is a "bleeding" edge policy configuration

where many versions are set to the absolute latest code from the upstream

source control systems. This is just mentioned here as an example, its not

useful to most new users.

DISTRO ?= "poky-bleeding"

#DISTRO_FEATURES_append = " virtualization"

Package Management configuration

This variable lists which packaging formats to enable. Multiple package backends

can be enabled at once and the first item listed in the variable will be used

to generate the root filesystems.

Options are:

- 'package_deb' for debian style deb files

- 'package_ipk' for ipk files are used by opkg (a debian style embedded package manager)

- 'package_rpm' for rpm style packages

E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"

We default to rpm:

PACKAGE_CLASSES ?= "package_rpm "

SDK target architecture

This variable specifies the architecture to build SDK items for and means

you can build the SDK packages for architectures other than the machine you are

running the build on (i.e. building i686 packages on an x86_64 host).

Supported values are i686 and x86_64

#SDKMACHINE ?= "i686"

Extra image configuration defaults

The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated

images. Some of these options are added to certain image types automatically. The

variable can contain the following options:

"dbg-pkgs" - add -dbg packages for all installed packages

(adds symbol information for debugging/profiling)

"dev-pkgs" - add -dev packages for all installed packages

(useful if you want to develop against libs in the image)

"ptest-pkgs" - add -ptest packages for all ptest-enabled packages

(useful if you want to run the package test suites)

"tools-sdk" - add development tools (gcc, make, pkgconfig etc.)

"tools-debug" - add debugging tools (gdb, strace)

"eclipse-debug" - add Eclipse remote debugging support

"tools-profile" - add profiling tools (oprofile, lttng, valgrind)

"tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.)

"debug-tweaks" - make an image suitable for development

e.g. ssh root access has a blank password

There are other application targets that can be used here too, see

meta/classes/image.bbclass and meta/classes/core-image.bbclass for more details.

We default to enabling the debugging tweaks.

EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
CORE_IMAGE_EXTRA_INSTALL += "openssh strongswan dhcp-server dhcp-client"
INHERIT += " openwrt-distro-defaults "
#INHERIT += " extrausers "
IMAGE_INSTALL_append = " sysrepo netopeer2-server netopeer2-cli netopeer2-keystored openssh openssl "
EXTRA_IMAGE_FEATURES_append = " package-management "
PACKAGE_EXCLUDE += " packagegroup-core-ssh-dropbear read-only-rootfs"
#MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-modules"
#KERNEL_MODULE_AUTOLOAD += "ip_gre"
#EXTRA_USERS_PARAMS = "usermod -P thincpe root;"

Additional image features

The following is a list of additional classes to use when building images which

enable extra features. Some available options which can be included in this variable

are:

- 'buildstats' collect build statistics

- 'image-mklibs' to reduce shared library files size for an image

- 'image-prelink' in order to prelink the filesystem image

NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink

NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

Runtime testing of images

The build system can test booting virtual machine images under qemu (an emulator)

after any root filesystems are created and run tests against those images. To

enable this uncomment this line. See classes/testimage(-auto).bbclass for

further details.

#TEST_IMAGE = "1"

Interactive shell configuration

Under certain circumstances the system may need input from you and to do this it

can launch an interactive shell. It needs to do this since the build is

multithreaded and needs to be able to handle the case where more than one parallel

process may require the user's attention. The default is iterate over the available

terminal types to find one that works.

Examples of the occasions this may happen are when resolving patches which cannot

be applied, to use the devshell or the kernel menuconfig

Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x only), none

Note: currently, Konsole support only works for KDE 3.x due to the way

newer Konsole versions behave

#OE_TERMINAL = "auto"

By default disable interactive patch resolution (tasks will just fail instead):

PATCHRESOLVE = "noop"

Disk Space Monitoring during the build

Monitor the disk space during the build. If there is less that 1GB of space or less

than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully

shutdown the build. If there is less that 100MB or 1K inodes, perform a hard abort

of the build. The reason for this is that running completely out of space can corrupt

files and damages the build in ways which may not be easily recoverable.

It's necesary to monitor /tmp, if there is no space left the build will fail

with very exotic errors.

BB_DISKMON_DIRS ??= "
STOPTASKS,${TMPDIR},1G,100K
STOPTASKS,${DL_DIR},1G,100K
STOPTASKS,${SSTATE_DIR},1G,100K
STOPTASKS,/tmp,100M,100K
ABORT,${TMPDIR},100M,1K
ABORT,${DL_DIR},100M,1K
ABORT,${SSTATE_DIR},100M,1K
ABORT,/tmp,10M,1K"

Shared-state files from other locations

As mentioned above, shared state files are prebuilt cache data objects which can

used to accelerate build time. This variable can be used to configure the system

to search other mirror locations for these objects before it builds the data itself.

This can be a filesystem directory, or a remote url such as http or ftp. These

would contain the sstate-cache results from previous builds (possibly from other

machines). This variable works like fetcher MIRRORS/PREMIRRORS and points to the

cache locations to check for the shared objects.

NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to add PATH

at the end as shown in the examples below. This will be substituted with the

correct path within the directory structure.

#SSTATE_MIRRORS ?= "
#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n
#file://.* file:///some/local/dir/sstate/PATH"

Yocto Project SState Mirror

The Yocto Project has prebuilt artefacts available for its releases, you can enable

use of these by uncommenting the following line. This will mean the build uses

the network to check for artefacts at the start of builds, which does slow it down

equally, it will also speed up the builds by not having to build things if they are

present in the cache. It assumes you can download something faster than you can build it

which will depend on your network.

#SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/2.5/PATH;downloadfilename=PATH"

Qemu configuration

By default qemu will build with a builtin VNC server where graphical output can be

seen. The two lines below enable the SDL backend too. By default libsdl-native will

be built, if you want to use your host's libSDL instead of the minimal libsdl built

by libsdl-native then uncomment the ASSUME_PROVIDED line below.

PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
#ASSUME_PROVIDED += "libsdl-native"

CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to

track the version of this file when it was generated. This can safely be ignored if

this doesn't mean anything to you.

CONF_VERSION = "1"

my bblayers.conf

cat conf/bblayers.conf

POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf

changes incompatibly

POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= "
/root/Yocto/poky/meta
/root/Yocto/poky/meta-poky
/root/Yocto/poky/meta-openwrt
/root/Yocto/poky/meta-openembedded/meta-initramfs
/root/Yocto/poky/meta-openembedded/meta-networking
/root/Yocto/poky/meta-openembedded/meta-oe
/root/Yocto/poky/meta-openembedded/meta-python
/root/Yocto/poky/meta-sysrepo
/root/Yocto/poky/meta-openembedded/meta-webserver
/root/Yocto/poky/meta-yocto-bsp
"

Any other info thats needed please let me know. Much appreciated.

Build fails while compiling xtables-addons

Hi,
I followed the steps mentioned in the readme file for downloading the repos and compiling the openwrt-image-full. The build fails while building the xtables-addons. Following is the complete build logs.
log_do_compile_59268.txt

Is there any way to fix this issue?

I am at beginner level in the Yocto thing, so please let me know if there is any setting or configuration missing.

openwrt@ubuntu:~/Nikhil_workspace/openwrt/openembedded-core/build$ TCLIBC=musl MACHINE=qemuarm bitbake openwrt-image-full
Loading cache: 100% |################################################################################################################################################################| Time: 0:00:00
Loaded 3702 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.52.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-oe-linux-musleabi"
MACHINE = "qemuarm"
DISTRO = "nodistro"
DISTRO_VERSION = "nodistro.0"
TUNE_FEATURES = "arm vfp cortexa15 neon thumb callconvention-hard"
TARGET_FPU = "hard"
meta = "master:b5b70cba70067466da5e94f69632a2a029203838"
meta-oe
meta-python
meta-networking = "master:f2152d79043601eacb70da1a3ab36f5ac56f3e28"
meta-openwrt = "master:700f488f8c64ecade847be205ed605c3f8790a55"

Initialising tasks: 100% |###########################################################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 517 Local 0 Network 0 Missed 517 Current 402 (0% match, 43% complete)
NOTE: Executing Tasks
ERROR: xtables-addons-3.13-r0 do_compile: oe_runmake failed
ERROR: xtables-addons-3.13-r0 do_compile: ExecutionError('/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/temp/run.do_compile.59268', 1, None, None)
ERROR: Logfile of failure stored in: /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/temp/log.do_compile.59268
Log data follows:
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-musl', 'arm-linux', 'arm-linux-musleabi', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 M=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/xtables-addons-3.13/extentions DESTDIR=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/image V=1
| make all-recursive
| make[1]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build'
| Making all in extensions
| make[2]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions'
| make -f ../Makefile.iptrules all;
| Xtables-addons 3.13 - Linux make[3]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions'
| make[4]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/ACCOUNT'
| make -f ../../Makefile.iptrules all;
| make[5]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/ACCOUNT'
| make[5]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/ACCOUNT'
| make[4]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/ACCOUNT'
| make[4]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/pknock'
| make -f ../../Makefile.iptrules all;
| make[5]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/pknock'
| make[5]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/pknock'
| make[4]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/pknock'
| make[4]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/LUA'
| make -f ../../Makefile.iptrules all;
| make[5]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/LUA'
| make[5]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/LUA'
| make[4]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions/LUA'
| make[3]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions'
| 5.14.9-yocto-standard
| if [ -n "/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source" ]; then make -C /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source M=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions modules; fi;
| make[3]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source'
| make -C /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-build-artifacts -f /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/Makefile modules
| make[4]: Entering directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-build-artifacts'
| test -e include/generated/autoconf.h -a -e include/config/auto.conf || (
| echo >&2;
| echo >&2 " ERROR: Kernel configuration is invalid.";
| echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";
| echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it.";
| echo >&2 ;
| /bin/false)
| make -f /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/scripts/Makefile.build obj=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions
| single-build=
| need-builtin=1 need-modorder=1
| make -f /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/scripts/Makefile.build obj=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock
|
| need-builtin=
| need-modorder=1
| make -f /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/scripts/Makefile.build obj=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/ACCOUNT
|
| need-builtin=
| need-modorder=1
| make -f /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/scripts/Makefile.build obj=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/LUA
|
| need-builtin=
| need-modorder=1
| make -f /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/scripts/Makefile.build obj=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/rtsp
|
| need-builtin=
| need-modorder=1
| arm-oe-linux-musleabi-gcc -Wp,-MMD,/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/.xt_pknock.o.d -nostdinc -isystem /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-musleabi/../../lib/arm-oe-linux-musleabi/gcc/arm-oe-linux-musleabi/11.2.0/include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include -I./arch/arm/include/generated -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include -I./include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/uapi -I./include/generated/uapi -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler-version.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/kconfig.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -fmacro-prefix-map=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-ipa-sra -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv7-a -Wa,-march=armv7-a -msoft-float -Uarm -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -Os -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -fplugin=./scripts/gcc-plugins/arm_ssp_per_task_plugin.so -fplugin-arg-arm_ssp_per_task_plugin-tso=1 -fplugin-arg-arm_ssp_per_task_plugin-offset=24 -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/.. -DMODULE -DKBUILD_BASENAME='"xt_pknock"' -DKBUILD_MODNAME='"xt_pknock"' -D__KBUILD_MODNAME=kmod_xt_pknock -c -o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.c
| arm-oe-linux-musleabi-gcc -Wp,-MMD,/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/.compat_xtables.o.d -nostdinc -isystem /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-musleabi/../../lib/arm-oe-linux-musleabi/gcc/arm-oe-linux-musleabi/11.2.0/include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include -I./arch/arm/include/generated -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include -I./include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/uapi -I./include/generated/uapi -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler-version.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/kconfig.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -fmacro-prefix-map=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-ipa-sra -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv7-a -Wa,-march=armv7-a -msoft-float -Uarm -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -Os -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -fplugin=./scripts/gcc-plugins/arm_ssp_per_task_plugin.so -fplugin-arg-arm_ssp_per_task_plugin-tso=1 -fplugin-arg-arm_ssp_per_task_plugin-offset=24 -DMODULE -DKBUILD_BASENAME='"compat_xtables"' -DKBUILD_MODNAME='"compat_xtables"' -D__KBUILD_MODNAME=kmod_compat_xtables -c -o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/compat_xtables.o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/compat_xtables.c
| arm-oe-linux-musleabi-gcc -Wp,-MMD,/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/.xt_CHAOS.o.d -nostdinc -isystem /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-musleabi/../../lib/arm-oe-linux-musleabi/gcc/arm-oe-linux-musleabi/11.2.0/include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include -I./arch/arm/include/generated -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include -I./include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/uapi -I./include/generated/uapi -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler-version.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/kconfig.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -fmacro-prefix-map=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-ipa-sra -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv7-a -Wa,-march=armv7-a -msoft-float -Uarm -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -Os -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -fplugin=./scripts/gcc-plugins/arm_ssp_per_task_plugin.so -fplugin-arg-arm_ssp_per_task_plugin-tso=1 -fplugin-arg-arm_ssp_per_task_plugin-offset=24 -DMODULE -DKBUILD_BASENAME='"xt_CHAOS"' -DKBUILD_MODNAME='"xt_CHAOS"' -D__KBUILD_MODNAME=kmod_xt_CHAOS -c -o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_CHAOS.o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_CHAOS.c
| arm-oe-linux-musleabi-gcc -Wp,-MMD,/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/.xt_DELUDE.o.d -nostdinc -isystem /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-musleabi/../../lib/arm-oe-linux-musleabi/gcc/arm-oe-linux-musleabi/11.2.0/include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include -I./arch/arm/include/generated -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include -I./include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/uapi -I./include/generated/uapi -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler-version.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/kconfig.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -fmacro-prefix-map=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-ipa-sra -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv7-a -Wa,-march=armv7-a -msoft-float -Uarm -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -Os -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -fplugin=./scripts/gcc-plugins/arm_ssp_per_task_plugin.so -fplugin-arg-arm_ssp_per_task_plugin-tso=1 -fplugin-arg-arm_ssp_per_task_plugin-offset=24 -DMODULE -DKBUILD_BASENAME='"xt_DELUDE"' -DKBUILD_MODNAME='"xt_DELUDE"' -D__KBUILD_MODNAME=kmod_xt_DELUDE -c -o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DELUDE.o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DELUDE.c
| if [ /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/compat_xtables.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/compat_xtables.o"; fi;
| arm-oe-linux-musleabi-gcc -Wp,-MMD,/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/.xt_DHCPMAC.o.d -nostdinc -isystem /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-musleabi/../../lib/arm-oe-linux-musleabi/gcc/arm-oe-linux-musleabi/11.2.0/include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include -I./arch/arm/include/generated -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include -I./include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/uapi -I./include/generated/uapi -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler-version.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/kconfig.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -fmacro-prefix-map=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-ipa-sra -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv7-a -Wa,-march=armv7-a -msoft-float -Uarm -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -Os -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -fplugin=./scripts/gcc-plugins/arm_ssp_per_task_plugin.so -fplugin-arg-arm_ssp_per_task_plugin-tso=1 -fplugin-arg-arm_ssp_per_task_plugin-offset=24 -DMODULE -DKBUILD_BASENAME='"xt_DHCPMAC"' -DKBUILD_MODNAME='"xt_DHCPMAC"' -D__KBUILD_MODNAME=kmod_xt_DHCPMAC -c -o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DHCPMAC.o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DHCPMAC.c
| if [ /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_CHAOS.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_CHAOS.o"; fi;
| arm-oe-linux-musleabi-gcc -Wp,-MMD,/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/.xt_DNETMAP.o.d -nostdinc -isystem /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-musleabi/../../lib/arm-oe-linux-musleabi/gcc/arm-oe-linux-musleabi/11.2.0/include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include -I./arch/arm/include/generated -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include -I./include -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/uapi -I./include/generated/uapi -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler-version.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/kconfig.h -include /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -fmacro-prefix-map=/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -fno-dwarf2-cfi-asm -fno-ipa-sra -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv7-a -Wa,-march=armv7-a -msoft-float -Uarm -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -Os -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -fplugin=./scripts/gcc-plugins/arm_ssp_per_task_plugin.so -fplugin-arg-arm_ssp_per_task_plugin-tso=1 -fplugin-arg-arm_ssp_per_task_plugin-offset=24 -DMODULE -DKBUILD_BASENAME='"xt_DNETMAP"' -DKBUILD_MODNAME='"xt_DNETMAP"' -D__KBUILD_MODNAME=kmod_xt_DNETMAP -c -o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DNETMAP.o /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DNETMAP.c
| In file included from /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/irqflags.h:15,
| from /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/arch/arm/include/asm/bitops.h:28,
| from /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/bitops.h:32,
| from /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/kernel.h:12,
| from /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/list.h:9,
| from /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/module.h:12,
| from /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.c:12:
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.c: In function 'pknock_seq_show':
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.c:253:41: error: implicit declaration of function 'get_seconds' [-Werror=implicit-function-declaration]
| 253 | if (time_before(get_seconds(), peer->login_sec +
| | ^~~~~~~~~~~
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/typecheck.h:11:16: note: in definition of macro 'typecheck'
| 11 | typeof(x) __dummy2;
| | ^
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/jiffies.h:108:33: note: in expansion of macro 'time_after'
| 108 | #define time_before(a,b) time_after(b,a)
| | ^~~~~~~~~~
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.c:253:29: note: in expansion of macro 'time_before'
| 253 | if (time_before(get_seconds(), peer->login_sec +
| | ^~~~~~~~~~~
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast
| 12 | (void)(&__dummy == &__dummy2);
| | ^~
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/jiffies.h:106:10: note: in expansion of macro 'typecheck'
| 106 | typecheck(unsigned long, b) &&
| | ^~~~~~~~~
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/jiffies.h:108:33: note: in expansion of macro 'time_after'
| 108 | #define time_before(a,b) time_after(b,a)
| | ^~~~~~~~~~
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.c:253:29: note: in expansion of macro 'time_before'
| 253 | if (time_before(get_seconds(), peer->login_sec +
| | ^~~~~~~~~~~
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.c: In function 'autoclose_time_passed':
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/typecheck.h:12:25: warning: comparison of distinct pointer types lacks a cast
| 12 | (void)(&__dummy == &__dummy2);
| | ^~
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/include/linux/jiffies.h:105:10: note: in expansion of macro 'typecheck'
| 105 | (typecheck(unsigned long, a) &&
| | ^~~~~~~~~
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.c:317:55: note: in expansion of macro 'time_after'
| 317 | return peer != NULL && autoclose_time != 0 && time_after(get_seconds(),
| | ^~~~~~~~~~
| cc1: some warnings being treated as errors
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/scripts/Makefile.build:271: recipe for target '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.o' failed
| make[6]: *** [/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock/xt_pknock.o] Error 1
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/scripts/Makefile.build:514: recipe for target '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock' failed
| make[5]: *** [/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/pknock] Error 2
| make[5]: *** Waiting for unfinished jobs....
| if [ /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DELUDE.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DELUDE.o"; fi;
| if [ /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DHCPMAC.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DHCPMAC.o"; fi;
| if [ /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DNETMAP.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions/xt_DNETMAP.o"; fi;
| /home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source/Makefile:1858: recipe for target '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions' failed
| make[4]: *** [/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/../xtables-addons-3.13/extensions] Error 2
| make[4]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-build-artifacts'
| Makefile:220: recipe for target '__sub-make' failed
| make[3]: *** [__sub-make] Error 2
| make[3]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work-shared/qemuarm/kernel-source'
| Makefile:459: recipe for target 'modules' failed
| make[2]: *** [modules] Error 2
| make[2]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build/extensions'
| Makefile:494: recipe for target 'all-recursive' failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory '/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.13-r0/build'
| Makefile:379: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/meta-openwrt/recipes-core/xtables-addons/xtables-addons_3.13.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1957 tasks of which 1949 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/openwrt/Nikhil_workspace/openwrt/openembedded-core/meta-openwrt/recipes-core/xtables-addons/xtables-addons_3.13.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

procd requires openwrt-ized base-files

This is for my own reference (working on it). Currently procd cannot be used without some files that only exist in an openwrt-based base-files recipe. I'm looking for all the culprits and moving them to the procd package, or, in the case o things likef /lib/functions.sh to a common package that's not base-files. (Base-files include a number of things that don't a apply when not taking the entire openwrt stack).

README.md does not reflect the right version line in the sand for this layer.

ERROR: No recipes available for:
/home/frank/git/oe-build/build/../meta-openwrt/recipes-tweaks/iptables/iptables_1.6%.bbappend

From a Jethro based checkout :

find . -name iptables*bb
./meta/recipes-extended/iptables/iptables_1.4.21.bb

/git/oe-build/meta$ git branch

  • jethro

Jethro's 2.0.1... If you meant "Krogoth" (2.1) or later, that'd be fine and should be reflected in the docs. I can very probably move to Krogoth with no real consequence in my project, but you probably ought to either adjust the tweak recipes or document the requirement a bit more precisely...

qemu arm has some issues; update README with qemux86 for now?

qemuarm is a WIP for meta-openwrt (I'm working on it), but qemux86 successfully builds; I'm wondering if I should do a PR with an update to the README for a known-good build, so folks aren't trying to build arm until it works?

(One issue I've submitted a PR already (missing /lib/modules causes build to fail), the other is that arm serial is different than the serial in the default inittab; this will take a little more work.

Build openwrt-image-minimal failed

I build the openwrt-image-minimal and get error:
build-openwrt$ TCLIBC=musl MACHINE=qemuarm bitbake openwrt-image-minimal
Parsing recipes: 100% |##########################################| Time: 0:00:22
Parsing of 2242 .bb files complete (0 cached, 2242 parsed). 3291 targets, 171 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-oe-linux-musleabi"
MACHINE = "qemuarm"
DISTRO = "nodistro"
DISTRO_VERSION = "nodistro.0"
TUNE_FEATURES = "arm armv5 thumb dsp"
TARGET_FPU = "soft"
meta = "master:ff2c029b568f70aa9960dde04ddd207829812ea0"
meta-oe
meta-multimedia
meta-python
meta-networking = "master-next:fbc644835875df5ee74bbafc295b4b13f347ec51"
meta-openwrt = "master:96a8e2de1ea631aaea320ffd268c6b194c7c77e1"

Initialising tasks: 100% |#######################################| Time: 0:00:01
Sstate summary: Wanted 594 Found 0 Missed 594 Current 0 (0% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: alsa-lib-native-1.1.6-r0 do_fetch: Failed to fetch URL ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.6.tar.bz2, attempting MIRRORS if available WARNING: netbase-1_5.5-r0 do_fetch: Failed to fetch URL http://ftp.debian.org/debian/pool/main/n/netbase/netbase_5.5.tar.xz, attempting MIRRORS if available ERROR: xtables-addons-3.2-r0 do_compile: oe_runmake failed ERROR: xtables-addons-3.2-r0 do_compile: Function failed: do_compile (log file is located at /home/ubuntu/build-openwrt/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.2-r0/temp/log.do_compile.9482)
...
| /home/ubuntu/build-openwrt/tmp-musl/work-shared/qemuarm/kernel-source/Makefile:1508: recipe for target 'module/home/ubuntu/build-openwrt/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.2-r0/build/../xtables-addons-3.2/extensions' failed
| make[4]: *** [module/home/ubuntu/build-openwrt/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.2-r0/build/../xtables-addons-3.2/extensions] Error 2
| make[4]: Leaving directory '/home/ubuntu/build-openwrt/tmp-musl/work-shared/qemuarm/kernel-build-artifacts'
| Makefile:146: recipe for target 'sub-make' failed
| make[3]: *** [sub-make] Error 2
| make[3]: Leaving directory '/home/ubuntu/build-openwrt/tmp-musl/work-shared/qemuarm/kernel-source'
| Makefile:459: recipe for target 'modules' failed
| make[2]: *** [modules] Error 2
| make[2]: Leaving directory '/home/ubuntu/build-openwrt/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.2-r0/build/extensions'
| ERROR: oe_runmake failed
| Makefile:492: recipe for target 'all-recursive' failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory '/home/ubuntu/build-openwrt/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.2-r0/build'
| Makefile:377: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/ubuntu/build-openwrt/tmp-musl/work/qemuarm-oe-linux-musleabi/xtables-addons/3.2-r0/temp/log.do_compile.9482)
ERROR: Task (/home/ubuntu/riscv-yocto/meta-openwrt/recipes-core/xtables-addons/xtables-addons_3.2.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1671 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/ubuntu/riscv-yocto/meta-openwrt/recipes-core/xtables-addons/xtables-addons_3.2.bb:do_compile
Summary: There were 2 WARNING messages shown.

Issue with starting services because /run/lock dir does not exists

The uhttpd cannot start on the target system because the directory /run/lock does not exists. Maybe another run subdirs does not exists too.

My conf/local.conf:

MACHINE ?= "raspberrypi"
DISTRO ?= "poky"
INHERIT += "openwrt-distro-defaults"

My build target is openwrt-image-full.

Which init should be used to started the rootfs?

I'd like to booting the rootfs with some service start, like luci and other. And I find that there're 3 init in the openwrt-base-image:
tmp/work/imx6ul_var_dart-poky-linux-gnueabi/openwrt-base-image/1.0-r0/rootfs/sbin/init
tmp/work/imx6ul_var_dart-poky-linux-gnueabi/openwrt-base-image/1.0-r0/rootfs/usr/sbin/init
tmp/work/imx6ul_var_dart-poky-linux-gnueabi/openwrt-base-image/1.0-r0/rootfs/init

And the last one just starts a shell, and do nothing. So how can I start the luci and other openWRT router things to get it work?

Or may be some hints in ReadMe should be added to help people to use this layer to starting the openWRT services?

Upgrading OpenWRT packages to latest git revision or AUTOREV

All the OpenWRT software source is currently referring to older revision in git. I don't see any reasons for not upgrading it to latest git revision or AUTOREV.

Also there is no stable release or branching OpenWRT project as of now. This issue is created to discuss the possibility to upgrade the OpenWRT packages and to get more thoughts about it.

Luci: RPC error

Hi,

I have build the openwrt image for rpi4 using meta-openwrt.
After booting I am able to access the luci gui on rpi4. But, when I go to the Status--> System log tab, I am not able to see the system and kernel logs. A notification is displayed saying "Unable to load log data. Not found.
Following are the screenshots for the same:

Screenshot from 2022-02-21 13-09-52
Screenshot from 2022-02-21 13-10-00

Also, when accessing the Statistics --> Setup tab, RPC error is notified. Following is the screenshot for the same.
Screenshot from 2022-02-21 13-01-20

Has anybody faced similar issue? Can anybody point out what might be causing these error?

clean up how init scripts are installed by meta-openwrt

There are a number of recipes in meta-openwrt that install procd init scripts into the image. These recipes are creating the symlinks in /etc/rc.d using magic numbers for the start and stop link names. Those numbers are manually read out of the init script (from the START and STOP variables in the init script itself) by the recipe author. This is going to be a maintenance burden should the magic numbers change in upstream.

Khem suggested two ways to tackle this:

First, add an image post process task to the image recipe that runs the enable() function from the /etc/rc.common script to automate the creation of the symlinks (as is done somewhat similarly in the upstream openwrt build system). Possible down sides of this approach:

  • Would need to be implemented in every image recipe (or at least in something inherited in each openwrt-*-image.bb
  • Would need to be careful to craft the mechanism such that it is agnostic of which init scripts are present in the final image's /etc/init.d directory. Globbing, as done in upstream build system, might make this a non-issue.

The second implementation would require each recipe that needs to install init script symlinks into /etc/rc.d, to call a shared function to create the symlinks. That script would grep out the START and STOP values (similar what enable() does in upstream) and create the symlinks accordingly. The shared function might be added to the openwrt.bbclass file.

From discussions with Khem at ELC-NA 2017.

Remove luci2 recipe

The LUCI2 code base does not seem to be maintained and is not used in OpenWRT/LEDE proper (as far as can be seen looking at the various git repos).

To avoid confusion with the luci recipe, the luci2 recipe and files should be removed.

NOTE: Came out of discussion with Khem at ELC-NA 2017

remove uhttp2 recipe (and do proper uhttpd package)

uhttp2 was never actually used in Openwrt and is currently only available in Felix's (nbd) private git repo. Instead this recipe should be removed and uhttpd update with the proper initscripts and so on.

I'm working on this...

Move non-core openwrt recipes out of recipes-core

The recipes-core directory should probably only be for recipes for packages that are available in the OpenWRT/LEDE core git repo and recipes to build an image similar to what can be built with OpenWRT/LEDE proper.

Move non-core recipes out of recipes-core into a new recipes-extended directory. For example, the juci recipes.

From discussion with Khem at ELC-NA 2017.

Bump to 22.03

Hello!
I started bumping versions of all packages to 22.03.
Are there any further plans to implement base-files as a separate package? Now many packages download full OpenWRT tree.

State of the luci integration

Hello. Is there any information on what has been proved to work in terms of the luci integration? I'm trying a build for the x86 hardware target and some of the luci features are not functioning corectly - like the resources usage in the first tab or the missing wireless network options (like wifi channels configuration or correct wifi status).

I'm using dunfell currently, but trying master as well.

Which target is known to work best with this meta layer?

Anyone had similar issues with luci interface? Thank you.

Should recipes-tweaks actually exist?

.bbappends aren't usually split out as recipe-tweaks are they? Are they not simply put in place according the recipe (e.g. recipes-core, recipes-networking, etc)?

LIC_FILES_CHKSUM points to an invalid file

Hello,

While compiling I recieved the below warning. Please can anyone advise?

Compiling on Debian 8.

`
WARNING: popt-native-1.16-r3 do_fetch: Failed to fetch URL http://rpm5.org/files/popt/popt-1.16.tar.gz, attempting MIRRORS if available
WARNING: shadow-4.2.1-r0 do_fetch: Failed to fetch URL http://pkg-shadow.alioth.debian.org/releases/shadow-4.2.1.tar.xz, attempting MIRRORS if available
ERROR: base-files-3.0.14-r89 do_populate_lic: QA Issue: base-files: LIC_FILES_CHKSUM points to an invalid file: /home/user/openembedded-core/build/tmp-musl/work/qemuarm-oe-linux-musleabi/base-files/3.0.14-r89/../git/openwrt/LICENSE [license-checksum]
NOTE: Tasks Summary: Attempted 2101 tasks of which 5 didn't need to be rerun and all succeeded.

Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
`

Remove Juci?

Current Juci is on a git rev that looks like it never worked, and current stable Juci depends on a custom lighttpd build, with changes which upstream lightpd is unlikely to incorporate (according to the lighttpd devs). I think it's even more niche than openwrt and luci and think we'd be better off pursuing luci in the short term. Long term I'm personally more interested in something suitable as a hybrid with regular OE rather than an openwrt-specific thing like https://github.com/jow-/luci-ng or juci.

parser.so: undefined symbol: pluralParseAlloc

When I visit openwrt in the browser, the following status appears:
Bad Gateway
The process did not produce any response

Then I also tried under the terminal.
root@OpenWrt:/# /www/cgi-bin/luci
/usr/bin/lua: error loading module 'luci.template.parser' from file '/usr/lib/lua/5.1/luci/template/parser.so':
/usr/lib/lua/5.1/luci/template/parser.so: undefined symbol: pluralParseAlloc
stack traceback:
[C]: ?
[C]: in function 'require'
/usr/lib/lua/5.1/luci/util.lua:11: in main chunk
[C]: in function 'require'
/usr/lib/lua/5.1/luci/config.lua:4: in main chunk
[C]: in function 'require'
/usr/lib/lua/5.1/luci/cacheloader.lua:5: in main chunk
[C]: in function 'require'
/www/cgi-bin/luci:2: in main chunk
[C]: ?

Disassemble parser.so can find the pluralParseAlloc function

Please take a look at what's going on

musl compatible dependencies

luci_git.bb and uhttpd_git.bb should depend on virtual/crypt rather than directly on libxcrypt. This is necessary in order to be able to build with TCLIBC = "musl", which in turn is needed for compatibility with ipk:s from the SDK or ImageBuilder.

600-shared-libext.patch does not apply to iptables 1.6.2

ERROR: iptables-1.6.2-r0 do_patch: Command Error: 'quilt --quiltrc /home/cveilleux/git/openembedded-core/build/tmp-musl/work/cortexa7hf-neon-vfpv4-oe-linux-musleabi/iptables/1.6.2-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch 600-shared-libext.patch
patching file extensions/GNUmakefile.in
Hunk #4 FAILED at 123.
1 out of 5 hunks FAILED -- rejects in file extensions/GNUmakefile.in
patching file iptables/Makefile.am
Patch 600-shared-libext.patch does not apply (enforce with -f)
ERROR: iptables-1.6.2-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/cveilleux/git/openembedded-core/build/tmp-musl/work/cortexa7hf-neon-vfpv4-oe-linux-musleabi/iptables/1.6.2-r0/temp/log.do_patch.31309
ERROR: Task (/home/cveilleux/git/openembedded-core/meta/recipes-extended/iptables/iptables_1.6.2.bb:do_patch) failed with exit code '1'

I have adapted the patch. Pull request coming.

Build odhcpd failed

| /home/ubuntu/build-openwrt-riscv/tmp-musl/work/riscv64-oe-linux-musl/odhcpd/git-r0/git/src/odhcpd.c: In function 'odhcpd_get_mac':
| /home/ubuntu/build-openwrt-riscv/tmp-musl/work/riscv64-oe-linux-musl/odhcpd/git-r0/git/src/odhcpd.c:147:2: error: 'strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]
| strncpy(ifr.ifr_name, iface->ifname, sizeof(ifr.ifr_name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cc1: all warnings being treated as errors
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/ubuntu/build-openwrt-riscv/tmp-musl/work/riscv64-oe-linux-musl/odhcpd/git-r0/temp/log.do_compile.27046)

log.do_compile.txt

avoid copying files from upstream openwrt

In the current meta-openwrt, files have been copied verbatim from the upstream openwrt into meta-openwrt recipe file directories for various packages. The was done to expedite getting a base image up and booting, but will caused a maintenance burden in the future as upstream evolves.

Ideally, cloning the upstream openwrt git repo once and populating a staging sysroot which can be used by individual recipes should reduce having multiple clones of upstream to one and that one being shared across meta-openwrt recipes.

Khem suggested looking into how various gcc recipes within oe-core share a single git repo clone to accomplish this. Khem had some other possible solution ideas if the gcc approach doesn't work out.

Once a single, shared copy of the upstream openwrt repo is staged, individual recipes can pull relevant files and patches from there into a package's sysroot or build area respectively. This would remove the need to maintain copies of the files in meta-openwrt.

From discussions with Khem at ELC-NA 2017.

netifd do patch error

DEFAULT_BOARD_JSON does not exist in the source code of this macro, but it has already appeared in the patch

Could not inherit file classes/python_hatchling.bbclass

I follow the readme tutorial to configure the environment:

$ git clone https://github.com/openembedded/openembedded-core.git
$ cd openembedded-core
$ git clone https://github.com/openembedded/meta-openembedded.git
$ git clone https://github.com/openembedded/bitbake.git
$ git clone https://github.com/kraj/meta-openwrt.git
$ ../oe-init-build-env
$ bitbake-layers add-layer ../meta-openembedded/meta-oe
$ bitbake-layers add-layer ../meta-openembedded/meta-python
$ bitbake-layers add-layer ../meta-openembedded/meta-networking
$ bitbake-layers add-layer ../meta-openwrt

edit the ./conf/local.conf, Add the following:

INHERIT += " openwrt-distro-defaults "

run build

$ TCLIBC=musl MACHINE=qemuarm bitbake openwrt-image-minimal

after running, an error message is output. how can I fix it?

$ bitbake-layers show-layers
NOTE: Starting bitbake server...
layer                 path                                      priority
==========================================================================
meta                  /home/vagrant/poky/meta                     5
meta-poky             /home/vagrant/poky/meta-poky                5
meta-yocto-bsp        /home/vagrant/poky/meta-yocto-bsp           5
meta-oe               /home/vagrant/poky/openembedded-core/meta-openembedded/meta-oe  5
meta-python           /home/vagrant/poky/openembedded-core/meta-openembedded/meta-python  5
meta-networking       /home/vagrant/poky/openembedded-core/meta-openembedded/meta-networking  5
meta-openwrt          /home/vagrant/poky/openembedded-core/meta-openwrt  8

$ TCLIBC=musl MACHINE=qemuarm bitbake openwrt-image-minimal
Loading cache: 100% |#####################################################################################################################################################################| Time: 0:00:00
Loaded 2218 entries from dependency cache.
ERROR: ParseError at /home/vagrant/poky/openembedded-core/meta-openembedded/meta-python/recipes-devtools/python/python3-traitlets_5.6.0.bb:9: Could not inherit file classes/python_hatchling.bbclass:00:37
ERROR: Parsing halted due to errors, see error messages above

libubox.so incorrectly packaged

I noticed that libubox.so is being packaged in libubox-dev instead of libubox proper and that somehow in my packaging of ubox (not the lib) I was able to package and install libubox.so which allowed the base image to work, but would fail for using the various packages without the ubox package (which is likely not going to be used outside a openwrt-base-image type scenario).

I'm working on this....

Not able to start Docker daemon inside LXC container in OpenWRT image build using Yocto.

Required information

  • Distribution: OpenWRT
  • Distribution version: Linux 4.14
  • Device: Raspberry Pi 3
  • The output of
    • lxc-start --version : 2.0.8

    • lxc-checkconfig
      --- Namespaces ---
      Namespaces: enabled
      Utsname namespace: enabled
      Ipc namespace: enabled
      Pid namespace: enabled
      User namespace: enabled
      Network namespace: enabled

--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
Bridges: enabled
Advanced netfilter: enabled
CONFIG_NF_NAT_IPV4: enabled
CONFIG_NF_NAT_IPV6: enabled
CONFIG_IP_NF_TARGET_MASQUERADE: enabled
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled
FUSE (for use with lxcfs): enabled

--- Checkpoint/Restore ---
checkpoint restore: missing
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: missing
CONFIG_INET_DIAG: enabled
CONFIG_PACKET_DIAG: missing
CONFIG_NETLINK_DIAG: missing
File capabilities: enabled

  • uname -a:
    Linux LEDE 4.14.39 #1 SMP Thu Jul 12 00:36:38 UTC 2018 armv7l GNU/Linux

  • cat /proc/self/cgroup:
    root@LEDE:/home/root# cat /proc/self/cgroup
    1:cpuset,cpu,cpuacct,blkio,devices,freezer,net_cls,perf_event,net_prio:/

  • cat /proc/1/mounts
    root@LEDE:/home/root# cat /proc/1/mounts
    /dev/root / ext4 rw,noatime,data=ordered 0 0
    devtmpfs /dev devtmpfs rw,relatime,size=470104k,nr_inodes=117526,mode=755 0 0
    proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0
    sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime 0 0
    cgroup /sys/fs/cgroup cgroup rw,nosuid,nodev,noexec,relatime,cpuset,cpu,cpuacct,blkio,devices,freezer,net_cls,perf_event,net_prio,clone_children 0 0
    tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
    tmpfs /dev tmpfs rw,nosuid,relatime,size=512k,mode=755 0 0
    devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
    debugfs /sys/kernel/debug debugfs rw,noatime 0 0

Issue description

Not able to start docker inside LXC Ubuntu container, even though I enabled cgroup configuration in container config file.
I can start docker on host OpenWRT image, but when I try to start docker inside LXC container, it is failed with error "Device's cgroup isn't mounted".

I raised this issue with LXC Github, they responded, it's because of "Mounting all cgroups into a single hierarchy" in OpenWRT system.
lxc/lxc#2483 (comment).

NOTE: In raspbian stretch armhf architecture, I am able to run docker inside LXC without any issues, only facing issues with OpenWRT image.

Do we have any solution on OpenWRT to mount cgroups as multiple hierarchies inside LXC container, in order to run docker inside LXC.

Error message:
root@c1:/# dockerd -s vfs
INFO[0000] libcontainerd: new containerd process, pid: 18
WARN[0000] containerd: low RLIMIT_NOFILE changing to max current=1024 max=4096
INFO[0001] Graph migration to content-addressability took 0.00 seconds
WARN[0001] Your kernel does not support cgroup memory limit
WARN[0001] Unable to find cpu cgroup in mounts
WARN[0001] Unable to find blkio cgroup in mounts
WARN[0001] Unable to find cpuset cgroup in mounts
WARN[0001] mountpoint for pids not found
Error starting daemon: Devices cgroup isn't mounted

Steps to reproduce

  1. lxc-start -n c1 --logfile test.log --logpriority DEBUG ( Ubuntu container)
  2. lxc-attach -n c1
  3. apt-get update , apt-get install docker.io
  4. dockerd -s vfs

Information to attach

  • Container configuraiton : /var/lib/lxc/c1/config

##Template used to create this container: /usr/share/lxc/templates/lxc-download
##Parameters passed to the template:
##Template script checksum (SHA-1): 740c51206e35463362b735e68b867876048a8baf
##For additional config options, please look at lxc.container.conf(5)

##Uncomment the following line to support nesting containers:
##lxc.include = /usr/share/lxc/config/nesting.conf
##(Be aware this has security implications)

##Distribution configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.arch = linux32

##Container specific configuration
lxc.rootfs = /var/lib/lxc/c1/rootfs
lxc.rootfs.backend = dir
lxc.utsname = c1

Network configuration

lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up

Cgroup configuration

lxc.aa_profile = unconfined
lxc.mount.auto = proc:rw sys:rw cgroup:rw
lxc.autodev = 1
lxc.cgroup.devices.allow = a
lxc.cap.drop =

##lxc.mount.entry = proc proc proc nosuid,nodev,noexec 0 0
##lxc.mount.entry = sysfs sys sysfs nosuid,nodev,noexec 0 0

Wi-Fi not working in OpenWRT Raspberrypi3 - wlan0 interface is not up

Openwrt on RaspberryPi wifi not working - wlan0 interface is not up

conf/local.conf

MACHINE ??= "raspberrypi3"
INHERIT += " openwrt-distro-defaults "
DISTRO_FEATURES_append = " virtualization wifi"
MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware-bcm43430"
TCLIBC = "musl"
IMAGE_INSTALL_append = " initscripts hostapd linux-firmware-bcm43430 bridge-utils netifd bash openssh kernel-modules docker iptables wireless-tools dhcp-client crda iw linux-firmware-ralink linux-firmware-rtl8192ce linux-firmware-rtl8192cu linux-firmware-rtl8192su "
EXTRA_IMAGE_FEATURES ?= "debug-tweaks package-management"

conf/bblayers.conf

BBLAYERS ?= "
/home/ubuntu/yocto/latest/openembedded-core/meta
/home/ubuntu/yocto/latest/openembedded-core/meta-openembedded/meta-oe
/home/ubuntu/yocto/latest/openembedded-core/meta-openembedded/meta-python
/home/ubuntu/yocto/latest/openembedded-core/meta-openembedded/meta-networking
/home/ubuntu/yocto/latest/openembedded-core/meta-openembedded/meta-filesystems
/home/ubuntu/yocto/latest/openembedded-core/meta-virtualization
/home/ubuntu/yocto/latest/openembedded-core/meta-openwrt
/home/ubuntu/yocto/latest/openembedded-core/meta-raspberrypi \

/etc/config/wireless

config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path '/platform/soc/3f300000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option htmode 'HT20'
option disabled '0'

config wifi-iface 'default-radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'WifiName'
option encryption 'none'

/etc/config/network

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config interface 'lan'
option ifname 'eth0'
option proto 'static'
option type 'bridge'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'

config interface 'wan'
option ifname 'wlan0'
option proto 'dhcp'

Kernel config fragments: kconfig.cfg

CONFIG_RTL8192CE=y
CONFIG_RTL8192C_COMMON=y
CONFIG_RTLWIFI=y
CONFIG_MAC80211=y
CONFIG_CFG80211=y

CONFIG_WIRELESS_EXT=y
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_WEXT_SPY=y
CONFIG_WEXT_PRIV=y
CONFIG_CFG80211_WEXT=y
CONFIG_LIB80211=y
CONFIG_LIB80211_CRYPT_WEP=y
CONFIG_LIB80211_CRYPT_CCMP=y
CONFIG_LIB80211_CRYPT_TKIP=y
CONFIG_HOSTAP=y

CONFIG_BRCMUTIL=y
CONFIG_BRCMFMAC=y
CONFIG_BRCMFMAC_PROTO_BCDC=y
CONFIG_BRCMFMAC_SDIO=y
CONFIG_BRCMFMAC_USB=y
CONFIG_BRCMFMAC_PROTO_MSGBUF=y
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y

I am not seeing any errors in "dmesg" or "logread", but the wifi is not working on OpenWRT.
@kraj Could you please let me know, what are all the configurations required to bring up the wifi on OpenWRT.

firewall3 needs to depend on appropriate kernel modules

firewall3 has some hard requirements for kernel modules for it to do anything, so need to add dependencies and module loading hints (e.g /etc/modules.d/x for kmodloader /etc/modules-load.d/x.conf for sysvinit and systemd).

Add procd as an init_manager in oe

OE-core currently has three init_managers:

  • BusyBox
  • sysv init
  • systemd

The current state in meta-openwrt uses one of those and that ends up creating /etc/rcN.d directories that are not used in the openwrt-base-image (procd only uses /etc/init.d and /etc/rc.d directories).

Since procd is the init process in OpenWRT/LEDE, it should be added to the list of init_managers. The implementation should be mostly done in meta-openwrt, but there may be a need to add some hooks into oe-core (which should know nothing about meta-openwrt) to get this working.

From discussions with Khem at ELC-NA 2017.

luci doesn't build

Using yocto morty, "./scripts/feeds install -a" fails with:

DEBUG: Executing shell function do_compile
NOTE: make -j 8 TOPDIR=/home/brice_a/projects/morty/1233build/tmp/work/armv7a-neon-poky-linux-gnueabi/luci/git-r0/git/openwrt
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'gcc'... ok.
Checking 'working-gcc'... failed.
Checking 'g++'... ok.
Checking 'working-g++'... failed.
Checking 'ncurses'... failed.
Checking 'zlib'... failed.
Checking 'libssl'... failed.
Checking 'perl-thread-queue'... ok.
Checking 'tar'... ok.
Checking 'find'... ok.
Checking 'bash'... ok.
Checking 'patch'... ok.
Checking 'diff'... ok.
Checking 'cp'... ok.
Checking 'seq'... ok.
Checking 'awk'... ok.
Checking 'grep'... ok.
Checking 'getopt'... ok.
Checking 'stat'... ok.
Checking 'md5sum'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'wget'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'svn'... ok.
Checking 'git'... ok.
Checking 'file'... ok.
Checking 'openssl'... ok.
Checking 'ldconfig-stub'... ok.

Build dependency: Please reinstall the GNU C Compiler - it appears to be broken
Build dependency: Please reinstall the GNU C++ Compiler - it appears to be broken
Build dependency: Please install ncurses. (Missing libncurses.so or ncurses.h)
Build dependency: Please install a static zlib. (Missing libz.a or zlib.h)
Build dependency: Please install the openssl library (with development headers)

/home/brice_a/projects/morty/1233build/tmp/work/armv7a-neon-poky-linux-gnueabi/luci/git-r0/git/openwrt/include/prereq.mk:12: recipe for target 'prereq' failed
Prerequisite check failed. Use FORCE=1 to override.
/home/brice_a/projects/morty/1233build/tmp/work/armv7a-neon-poky-linux-gnueabi/luci/git-r0/git/openwrt/include/toplevel.mk:151: recipe for target 'staging_dir/host/.prereq-build' failed
make[1]: *** [staging_dir/host/.prereq-build] Error 1
/home/brice_a/projects/morty/1233build/tmp/work/armv7a-neon-poky-linux-gnueabi/luci/git-r0/git/openwrt/include/toplevel.mk:80: recipe for target 'prepare-tmpinfo' failed
make: *** [prepare-tmpinfo] Error 2
Cannot open './tmp/.packageinfo': No such file or directory
Can't open file './tmp/.targetinfo': No such file or directory
WARNING: No feed for package '–a' found, maybe it's already part of the standard packages?
Ignoring feed 'packages' - index missing
Ignoring feed 'luci' - index missing
Ignoring feed 'routing' - index missing
Ignoring feed 'telephony' - index missing
Ignoring feed 'management' - index missing
Ignoring feed 'targets' - index missing
DEBUG: Shell function do_compile finished

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.