Skip to content

Misleading error messages when building module #35

@rahul-thakoor

Description

@rahul-thakoor

When building kernel module, the build script needs to find the kernel headers for the specified os version. howver, during the process when the version is being matched, the following messages are constantly printed out during the loop until it eventually finds a match:

Could not find headers for 'raspberry-pi' at version '2.54.2+rev1.dev', run ./build.sh list

Could not find headers for 'raspberry-pi' at version '2.54.2+rev1.dev', run ./build.sh list

Could not find headers for 'raspberry-pi' at version '2.54.2+rev1.dev', run ./build.sh list

images/raspberry-pi/2.54.2+rev1.dev/kernel_modules_headers.tar.gz
Building images/raspberry-pi/2.54.2+rev1.dev/kernel_modules_headers.tar.gz...
--2020-10-08 06:25:38--  https://files.balena-cloud.com/images/raspberry-pi/2.54.2%2Brev1.dev/kernel_modules_headers.tar.gz

Resolving files.balena-cloud.com (files.balena-cloud.com)... 
13.249.72.50, 13.249.72.38, 13.249.72.64, ...
Connecting to files.balena-cloud.com (files.balena-cloud.com)|13.249.72.50|:443... 
connected.

HTTP request sent, awaiting response... 
200 OK
Length: 12246790 (12M) [binary/octet-stream]

Saving to: ‘kernel_modules_headers.tar.gz’

I think this should be after the loop?

err "Could not find headers for '$device' at version '$version', run $0 list"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions