[resin-intel] Intel NUC Build Errors & Enabling Additional Drivers

Hello,

Updated: new error: Running ./resin-yocto-scripts/build/barys and troubleshooting a build error. I checked ran the specified error script manually but it required root permissions. I deleted my build directory and tried again but experienced the same failure.

    | DEBUG: Python function extend_recipe_sysroot finished
    | DEBUG: Executing shell function do_image_hostapp_ext4
    | 0+0 records in
    | 0+0 records out
    | 0 bytes copied, 1.8221e-05 s, 0.0 kB/s
    | Loaded image ID: sha256:cdd92afacfe80eb5d4cae7eafa8a9277962b0fc3be0305d4836cf0bdd8bb3e56
    | + SYSROOT=/mnt/sysroot/inactive
    | + pid=8
    | + sleep 5
    | + balenad -s=aufs --data-root=/mnt/sysroot/inactive/balena -H unix:///var/run/balena-host.sock
    | time="2018-03-06T06:03:50.103282604Z" level=warning msg="could not change group /var/run/balena-host.sock to balena: group balena not found"
    | time="2018-03-06T06:03:50.105380235Z" level=info msg="libcontainerd: new containerd process, pid: 19"
    | time="2018-03-06T06:03:51.116589108Z" level=warning msg="failed to rename /mnt/sysroot/inactive/balena/tmp for background deletion: rename /mnt/sysroot/inactive/balena/tmp /mnt/sysroot/inactive/balena/tmp-old: no such file or directory. Deleting synchronously"
    | Error starting daemon: error initializing graphdriver: driver not supported
    | + hostapp-update -f /input -n
    | Cannot connect to the balena daemon at unix:///var/run/balena-host.sock. Is the balena daemon running?
    | Cannot connect to the balena daemon at unix:///var/run/balena-host.sock. Is the balena daemon running?
    | Cannot connect to the balena daemon at unix:///var/run/balena-host.sock. Is the balena daemon running?
    | invalid reference format
    | Deleted: sha256:cdd92afacfe80eb5d4cae7eafa8a9277962b0fc3be0305d4836cf0bdd8bb3e56
    | Deleted: sha256:4616db5085dc176531fccf9a6b15a0173f5ddc06bdfe671bf0826c409d4acb7e
    | Deleted: sha256:74c11e1ca2b2c726d1eab551e4dd8ac85189f7b8786cb1fa92a9a05444d84505
    | WARNING: exit code 1 from a shell command.
    | ERROR: Function failed: do_image_hostapp_ext4 (log file is located at /home/yoctobuild/Development/poky/resin-intel/build/tmp/work/genericx86_64-poky-linux/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.2889)

The main reason I’m trying to build the image is for use with an Atom based Intel device and I don’t believe drivers are included for the PCI-Express Ethernet in the standard image.

I was able to successfully build Yocto with ethernet support but the process I used to enable it doesn’t seem to work with the resin build. `bitbake linux-yocto -c menuconfig.’
What’s the best way to enable additional ethernet drivers ? Specifically for Intel Pro PCI-Express ethernet?

Thanks,

Tom

Hi tomarthur,

The Resin way of modifying kernel configuration is from the yocto recipe of the kernel.
You can add your needed configuration in the file: layers/meta-resin-genericx86/recipes-kernel/linux/linux-yocto_%.bbappend.

In this file there are lots of examples of adding kernel configuration, for example enabling IGB module:
RESIN_CONFIGS_append = " igb"
RESIN_CONFIGS_DEPS[igb] = "
CONFIG_PCI=m
"
RESIN_CONFIGS[igb] = "
CONFIG_IGB=m
"

So the structure is this:
RESIN_CONFIGS_append = " my_custom_config"
RESIN_CONFIGS_DEPS[my_custom_config] where you will add the dependencies for your config
RESIN_CONFIGS[my_custom_config] where you will add your targeted kernel configuration

Also, an update about your build problem will be posted here.

Regards!

Hi tomarthur,

My colleagues analysed your build error.
The conclusion is that the machine you use for build, doesn’t seem to support aufs.
Having aufs module loaded or built-in in kernel is a requirement for building ResinOS.

Regards!

Thanks @spanceac. The driver I’m trying to add is actually part of the IGB module that you’re already enabling. Is there a place to look for the command to enable the PCI-Express part of IGB?

Hi tomarthur,

The latest Resin Intel image has CONFIG_IGB enabled as a module.
It seems that this is the one that you need/

This is the explanation for this config in the kernel:
config IGB
_ tristate “Intel® 82575/82576 PCI-Express Gigabit Ethernet support”_

Regards!