Since I did everything from scratch there must be something that I'm missing.
I'm running the commands as the default user, not as root - so that should not be the problem.
The error output you posted is not helpful since it results from a parallel compile. You need to recompile with a make V=s to see the real error.
Yes, that is correct and to be expected as I added a HIDDEN:=1 to the kmod-aquantia package and made the atlantic kmod auto-select it, so it will be built automatically. This simply ensures that the user only needs to select one kmod option to build the requisite support; if done the other way round, it's possible to select only the one and not the other. I've made that scenario impossible by hiding the option and auto-selecting it.
EDIT: I will note that I'm compiling this on master and not on 19.07.
I have a question that arises from the screenshot of your make menuconfig. Why are you compiling everything but the kitchen sink? You can't possibly need to compile all those modules.
I'd suggest removing your .config, doing a make defconfig, then selecting your x86_64 target, then selecting the atlantic kmod and then trying to compile. You've got way too many things selected to be able to debug the build easily.
So build with a default configuration that has only the kmod-atlantic package selected.
If I understand you correctly then the problem is that I'm not compiling the kitchen sink?
After looking around in menuconfig I found it under Kernel modules > Libraries (second last option):
The kitchen sink didn't make a difference but I got an error when running make V=s:
make[4]: Entering directory '/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-4.14.180'
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/bat_algo.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/bat_iv_ogm.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/bat_v.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/bat_v_elp.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/bat_v_ogm.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/bitarray.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/bridge_loop_avoidance.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/distributed-arp-table.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/fragmentation.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/gateway_client.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/gateway_common.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/hard-interface.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/hash.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/main.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/multicast.o
CC [M] /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.o
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1346:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1346:15: error: 'GENL_DONT_VALIDATE_STRICT' undeclared here (not in a function); did you mean 'MACSEC_VALIDATE_STRICT'?
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~~~~~~~~~~~~~~~~~~
MACSEC_VALIDATE_STRICT
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1346:43: error: 'GENL_DONT_VALIDATE_DUMP' undeclared here (not in a function); did you mean 'GENL_DONT_VALIDATE_STRICT'?
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~~~~~~~~~~~~~~~~
GENL_DONT_VALIDATE_STRICT
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1353:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1360:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1367:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1373:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1382:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1388:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1394:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1400:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1406:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1412:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1418:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1424:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1430:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1436:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1443:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1451:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1459:4: error: 'const struct genl_ops' has no member named 'validate'
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
^~~~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1472:3: error: 'struct backport_genl_family' has no member named 'policy'
.policy = batadv_netlink_policy,
^~~~~~
/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.c:1472:2: warning: the address of 'batadv_netlink_policy' will always evaluate as 'true' [-Waddress]
.policy = batadv_netlink_policy,
^
make[5]: *** [scripts/Makefile.build:327: /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv/netlink.o] Error 1
make[4]: *** [Makefile:1542: _module_/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/net/batman-adv] Error 2
make[4]: Leaving directory '/home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-4.14.180'
make[3]: *** [Makefile:95: /home/xxx/openwrt/build_dir/target-x86_64_musl/linux-x86_64/batman-adv-2020.1/.built] Error 2
make[3]: Leaving directory '/home/xxx/openwrt/feeds/routing/batman-adv'
time: package/feeds/routing/batman-adv/compile#7.73#0.78#8.75
make[2]: *** [package/Makefile:113: package/feeds/routing/batman-adv/compile] Error 2
make[2]: Leaving directory '/home/xxx/openwrt'
make[1]: *** [package/Makefile:107: /home/xxx/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/xxx/openwrt'
make: *** [/home/xxx/openwrt/include/toplevel.mk:227: world] Error 2
The reason I compile everything, including the kitchen sink, might be because of lack of understanding of the building process. I'm not exactly sure what I need for the setup I want and as far as I understand if I don't include it to begin with then I can't just add it later but I need to compile everything again.
But if I compile everything as modules then I have the option to load/unload what I want at a later stage.
...but for debugging I should have compiled only the basics, but I thought it was going to work when doing it freshly in Ubuntu.
Well, I would use insmod or modprobe to manually load the drivers and then look at the output of dmesg to see if there is any log output.That may give more insight into the problem.
Perhaps the hardware is not compatible with the driver