# Intel NUC Hardware WatchDog Enabling ERROR fixdep

**URL:** <https://forums.balena.io/t/intel-nuc-hardware-watchdog-enabling-error-fixdep/4340>\
**Category:** Product support\
**Created:** [November 5, 2018, 4:42pm UTC](https://forums.balena.io/t/intel-nuc-hardware-watchdog-enabling-error-fixdep/4340 "2018-11-05T16:42:23Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![rquant](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rquant](https://forums.balena.io/u/rquant)\
**Post date:** [November 21, 2018, 9:56pm UTC](https://forums.balena.io/t/intel-nuc-hardware-watchdog-enabling-error-fixdep/4340/8 "2018-11-21T21:56:55Z")

</div>

I tried to run it in my start.sh file. Can I somehow build this using:

[GitHub - balena-os/kernel-module-build: Example project for building an OOT kernel module in balena](https://github.com/balena-io-playground/kernel-module-build)

- [watchdog « drivers - linux-yocto-4.12 - Linux 4.12 Embedded Kernel](https://git.yoctoproject.org/cgit.cgi/linux-yocto-4.12/tree/drivers/watchdog?h=standard/base)

- [https://resin-production-img-cloudformation.s3.amazonaws.com/images/intel-nuc/2.13.6%2Brev2.dev/kernel\_modules\_headers.tar.gz](https://resin-production-img-cloudformation.s3.amazonaws.com/images/intel-nuc/2.13.6%2Brev2.dev/kernel_modules_headers.tar.gz)

Tried to build with the balena kernel sample:  
I created a folder called iTCO-wdt and placed the` iTCO-wdt.c,``iTCO_vendor.h`, `iTCO_vendor_support.c` file inside there with the Makefile:

```
KERNEL_TREE_PATH?=/lib/modules/$(shell uname -r)/build
EXTRA_CFLAGS="-DDEBUG"

obj-m+=iTCO_wdt.o

all: iTCO_wdt.ko

iTCO_wdt.ko: iTCO_wdt.c
	make -C $(KERNEL_TREE_PATH) M=$(PWD) modules

clean:
	make -C $(KERNEL_TREE_PATH) M=$(PWD) clean

.PHONY: all clean

```

and calling

> RUN ./build.sh %%RESIN\_MACHINE\_NAME%% ‘2.13.6+rev2.dev’ iTCO-wdt

in my dockerfile.

```
2018-11-21 22:35:58 (68.2 MB/s) - ‘kernel_modules_headers.tar.gz’ saved [10331481/10331481]
[main]     
[main] make: Entering directory '/tmp/tmp.BPRxUQjNfP'
[main] CC [M] /usr/src/app/iTCO-wdt_intel-nuc_2.13.6+rev2.dev/iTCO_wdt.o
[main] /bin/sh: 1: scripts/basic/fixdep: not found
[main]     
[main] scripts/Makefile.build:308: recipe for target '/usr/src/app/iTCO-wdt_intel-nuc_2.13.6+rev2.dev/iTCO_wdt.o' failed
[main] make[1]: *** [/usr/src/app/iTCO-wdt_intel-nuc_2.13.6+rev2.dev/iTCO_wdt.o] Error 127
[main]     
[main] Makefile:1515: recipe for target '_module_/usr/src/app/iTCO-wdt_intel-nuc_2.13.6+rev2.dev' failed
[main] make: Leaving directory '/tmp/tmp.BPRxUQjNfP'
[main] make: *** [_module_/usr/src/app/iTCO-wdt_intel-nuc_2.13.6+rev2.dev] Error 2

```

I saw some threads similar with fixdep issues:

> [@Missing \`/scripts/basic/fixdep\` file during build](https://forums.balena.io/t/missing-scripts-basic-fixdep-file-during-build/4330/14):
>
> Hi, checking it out, I’m able to reproduce this in general, and doesn’t look like the problem of the module. It appears to me, that fixdep is at the right place but not executable properly (right flags are setup, etc, checking with the devices team for details, this is preliminary check) There are also other issues for newer releases, I believe, that we are still hunting down as well, see [https://github.com/balena-io-playground/kernel-module-build/issues/7](https://github.com/balena-io-playground/kernel-module-build/issues/7) We are working on resolving this, an…

> [@Unable to build kernel module, not even the example](https://forums.balena.io/t/unable-to-build-kernel-module-not-even-the-example/3043):
>
> I was trying to add wireless firmware to my application but kept getting errors. Therefore I tried the example\_module as is without any modifications and I am still getting the same errors. Here is part of my Docker file. Please let me know anything else that is needed and I appreciate the assistance. FROM resin/%%RESIN\_MACHINE\_NAME%%-node:8 ENV DEBIAN\_FRONTEND noninteractive RUN apt-get update && apt-get install -y \ curl \ wget \ build-essential \ rsync \ scrot \ xdotool \ cu…

```
kernel_modules_headers/scripts/basic$ file fixdep
fixdep: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=31dcb0219bb5a2f2113663344ca3543804d082ee, not stripped

```

---

_[View the full topic](https://forums.balena.io/t/intel-nuc-hardware-watchdog-enabling-error-fixdep/4340)._
