-
Notifications
You must be signed in to change notification settings - Fork 29
Description
I am having an issue compiling the example in Chapter 11 Device drivers in user space.
The following is the output of the first issue I was having.
jason@hp-envy:]$ bitbake core-image-minimal
Loading cache: 100% |################################################################################################################| Time: 0:00:00
Loaded 2012 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.8.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "5.0.15"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "scarthgap:72983ac391008ebceb45edc7a8f0f6d5f4fe715c"
meta-arm-toolchain
meta-arm = "scarthgap:a81c19915b5b9e71ed394032e9a50fd06919e1cd"
meta-ti-bsp = "scarthgap:da28ae30cabd39ebce054ea2e230548d9b9c3322"
meta-device-drivers = "<unknown>:<unknown>"
WARNING: /home/jason/poky/meta/recipes-kernel/linux/linux-yocto_6.6.bb:do_compile is tainted from a forced run | ETA: 0:00:00
Sstate summary: Wanted 438 Local 0 Mirrors 0 Missed 438 Current 1474 (0% match, 77% complete)############################# | ETA: 0:00:01
Initialising tasks: 100% |###########################################################################################################| Time: 0:00:32
NOTE: Executing Tasks
ERROR: dummy-driver-1.0-r0 do_packagedata: Recipe dummy-driver is trying to install files into a shared area when those files already exist. The files and the manifests listing them are:
/home/jason/build-beagleplay/tmp/pkgdata/qemux86-64/runtime-reverse/kernel-module-dummy-6.6.111-yocto-standard
(matched in manifest-qemux86_64-linux-yocto.packagedata)
/home/jason/build-beagleplay/tmp/pkgdata/qemux86-64/runtime/kernel-module-dummy-6.6.111-yocto-standard.packaged
(matched in manifest-qemux86_64-linux-yocto.packagedata)
/home/jason/build-beagleplay/tmp/pkgdata/qemux86-64/runtime/kernel-module-dummy-6.6.111-yocto-standard
(matched in manifest-qemux86_64-linux-yocto.packagedata)
/home/jason/build-beagleplay/tmp/pkgdata/qemux86-64/runtime-rprovides/kernel-module-dummy/kernel-module-dummy-6.6.111-yocto-standard
(matched in manifest-qemux86_64-linux-yocto.packagedata)
/home/jason/build-beagleplay/tmp/pkgdata/qemux86-64/extended/kernel-module-dummy-6.6.111-yocto-standard.json.zstd
(matched in manifest-qemux86_64-linux-yocto.packagedata)
Please adjust the recipes so only one recipe provides a given file.
ERROR: Logfile of failure stored in: /home/jason/build-beagleplay/tmp/work/qemux86_64-poky-linux/dummy-driver/1.0/temp/log.do_packagedata.312670
ERROR: Task (/home/jason/meta-device-drivers/recipes-kernel/dummy-driver/dummy-driver_1.0.bb:do_packagedata) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2748 tasks of which 2505 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/jason/meta-device-drivers/recipes-kernel/dummy-driver/dummy-driver_1.0.bb:do_packagedata
log: /home/jason/build-beagleplay/tmp/work/qemux86_64-poky-linux/dummy-driver/1.0/temp/log.do_packagedata.312670
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
I saw the reference to qemux and thought that was strange. So I looked at conf/local.conf and saw that MACHINE ??= "qemux86-64" so I changed it to MACHINE ?= "beagleplay-ti". I didn't know if compiling after that change would work so I did a "bitbake -c cleanall world" command. I don't know if there is a more elegant solution.
I tried to compile again, but it failed. Below is the output.
jason@hp-envy:]$ bitbake core-image-minimal
Loading cache: 100% |#################################################################################################################################| Time: 0:00:01
Loaded 4024 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
Build Configuration (mc:default):
BB_VERSION = "2.8.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "beagleplay-ti"
DISTRO = "poky"
DISTRO_VERSION = "5.0.15"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "scarthgap:72983ac391008ebceb45edc7a8f0f6d5f4fe715c"
meta-arm-toolchain
meta-arm = "scarthgap:a81c19915b5b9e71ed394032e9a50fd06919e1cd"
meta-ti-bsp = "scarthgap:da28ae30cabd39ebce054ea2e230548d9b9c3322"
meta-device-drivers = "<unknown>:<unknown>"
Build Configuration:
BB_VERSION = "2.8.1"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-24.04"
TARGET_SYS = "arm-poky-eabi"
MACHINE = "beagleplay-ti-k3r5"
DISTRO = "poky"
DISTRO_VERSION = "5.0.15"
TUNE_FEATURES = "arm armv7a vfp thumb callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "scarthgap:72983ac391008ebceb45edc7a8f0f6d5f4fe715c"
meta-arm-toolchain
meta-arm = "scarthgap:a81c19915b5b9e71ed394032e9a50fd06919e1cd"
meta-ti-bsp = "scarthgap:da28ae30cabd39ebce054ea2e230548d9b9c3322"
meta-device-drivers = "<unknown>:<unknown>"
Sstate summary: Wanted 1741 Local 329 Mirrors 0 Missed 1412 Current 742 (18% match, 43% complete)######################################## | ETA: 0:00:01
Initialising tasks: 100% |############################################################################################################################| Time: 0:00:23
NOTE: Executing Tasks
WARNING: python3-cryptography-native-42.0.5-r0 do_fetch: Failed to fetch URL https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-42.0.5.tar.gz;downloadfilename=cryptography-42.0.5.tar.gz, attempting MIRRORS if available
WARNING: python3-cryptography-native-42.0.5-r0 do_fetch: Failed to fetch URL crate://crates.io/autocfg/1.1.0, attempting MIRRORS if available
WARNING: python3-cryptography-native-42.0.5-r0 do_fetch: Failed to fetch URL crate://crates.io/memoffset/0.9.0, attempting MIRRORS if available
WARNING: python3-maturin-native-1.4.0-r0 do_fetch: Failed to fetch URL crate://crates.io/cargo-platform/0.1.5, attempting MIRRORS if available
WARNING: python3-maturin-native-1.4.0-r0 do_fetch: Failed to fetch URL crate://crates.io/crypto-common/0.1.6, attempting MIRRORS if available
WARNING: python3-maturin-native-1.4.0-r0 do_fetch: Failed to fetch URL crate://crates.io/indexmap/1.9.3, attempting MIRRORS if available
WARNING: python3-maturin-native-1.4.0-r0 do_fetch: Failed to fetch URL crate://crates.io/regex-automata/0.4.3, attempting MIRRORS if available
WARNING: python3-maturin-native-1.4.0-r0 do_fetch: Failed to fetch URL crate://crates.io/security-framework-sys/2.9.1, attempting MIRRORS if available
WARNING: python3-maturin-native-1.4.0-r0 do_fetch: Failed to fetch URL crate://crates.io/smallvec/1.11.2, attempting MIRRORS if available
WARNING: python3-maturin-native-1.4.0-r0 do_fetch: Failed to fetch URL crate://crates.io/toml/0.5.11, attempting MIRRORS if available
WARNING: python3-maturin-native-1.4.0-r0 do_fetch: Failed to fetch URL crate://crates.io/unicode-width/0.1.11, attempting MIRRORS if available
WARNING: python3-maturin-native-1.4.0-r0 do_fetch: Failed to fetch URL crate://crates.io/winapi/0.3.9, attempting MIRRORS if available
WARNING: python3-referencing-native-0.33.0-r0 do_fetch: Failed to fetch URL https://files.pythonhosted.org/packages/source/r/referencing/referencing-0.33.0.tar.gz;downloadfilename=referencing-0.33.0.tar.gz, attempting MIRRORS if available
WARNING: parted-native-3.6-r0 do_fetch: Failed to fetch URL https://ftpmirror.gnu.org/gnu/parted/parted-3.6.tar.xz, attempting MIRRORS if available
ERROR: linux-ti-staging-6.12.57+git-r0 do_packagedata: Recipe linux-ti-staging is trying to install files into a shared area when those files already exist. The files and the manifests listing them are:
/home/jason/build-beagleplay/tmp/pkgdata/beagleplay-ti/runtime-reverse/kernel-module-dummy-6.12.57-ti-01350-g8843c53f4443
(matched in manifest-beagleplay_ti-dummy-driver.packagedata)
/home/jason/build-beagleplay/tmp/pkgdata/beagleplay-ti/runtime/kernel-module-dummy-6.12.57-ti-01350-g8843c53f4443.packaged
(matched in manifest-beagleplay_ti-dummy-driver.packagedata)
/home/jason/build-beagleplay/tmp/pkgdata/beagleplay-ti/runtime/kernel-module-dummy-6.12.57-ti-01350-g8843c53f4443
(matched in manifest-beagleplay_ti-dummy-driver.packagedata)
/home/jason/build-beagleplay/tmp/pkgdata/beagleplay-ti/runtime-rprovides/kernel-module-dummy/kernel-module-dummy-6.12.57-ti-01350-g8843c53f4443
(matched in manifest-beagleplay_ti-dummy-driver.packagedata)
/home/jason/build-beagleplay/tmp/pkgdata/beagleplay-ti/extended/kernel-module-dummy-6.12.57-ti-01350-g8843c53f4443.json.zstd
(matched in manifest-beagleplay_ti-dummy-driver.packagedata)
Please adjust the recipes so only one recipe provides a given file.
ERROR: Logfile of failure stored in: /home/jason/build-beagleplay/tmp/work/beagleplay_ti-poky-linux/linux-ti-staging/6.12.57+git/temp/log.do_packagedata.2154496
ERROR: Task (/home/jason/meta-ti/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb:do_packagedata) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4460 tasks of which 1859 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/jason/meta-ti/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb:do_packagedata
log: /home/jason/build-beagleplay/tmp/work/beagleplay_ti-poky-linux/linux-ti-staging/6.12.57+git/temp/log.do_packagedata.2154496
Summary: There were 14 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.
Is the issue because the priority is the same for meta-ti-bsp and meta-device-drivers?
jason@hp-envy:]$ bitbake-layers show-layers
NOTE: Starting bitbake server...
layer path priority
========================================================================================================
core /home/jason/poky/meta 5
yocto /home/jason/poky/meta-poky 5
yoctobsp /home/jason/poky/meta-yocto-bsp 5
arm-toolchain /home/jason/meta-arm/meta-arm-toolchain 5
meta-arm /home/jason/meta-arm/meta-arm 5
meta-ti-bsp /home/jason/meta-ti/meta-ti-bsp 6
device-drivers /home/jason/meta-device-drivers 6
Mastering-Embedded-Linux-Development/Chapter11/meta-device-drivers/conf/layer.conf
Line 10 in fb3cab0
| BBFILE_PRIORITY_device-drivers = "6" |