-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inital hailo8 module support with 4.19.0
- Loading branch information
1 parent
dd3457c
commit 5373f20
Showing
5 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
layers/meta-balena-raspberrypi/recipes-core/extra-udev-rules/files/51-hailo-udev.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Change mode rules for Hailo's PCIe driver if RPI AI kit is installed | ||
SUBSYSTEM=="hailo_chardev", MODE="0666" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...rs/meta-balena-raspberrypi/recipes-extended/hailo/hailo-firmware/hailo-firmware_4.19.0.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
DESCRIPTION = "hailo firmware \ | ||
hailo8 chip firmware (hailo_fw.bin) \ | ||
the recipe copies the file to /lib/firmware/hailo/ on the target device’s root file system" | ||
|
||
BASE_URI = "https://hailo-hailort.s3.eu-west-2.amazonaws.com" | ||
FW_AWS_DIR = "Hailo8/${PV}/FW" | ||
FW = "hailo8_fw.${PV}.bin" | ||
LICENSE_FILE = "LICENSE" | ||
SRC_URI = "${BASE_URI}/${FW_AWS_DIR}/${FW};md5sum=4494928bbf4fea0ed5e52c26fa043e38 \ | ||
${BASE_URI}/${FW_AWS_DIR}/${LICENSE_FILE};md5sum=263ee034adc02556d59ab1ebdaea2cda" | ||
|
||
LICENSE = "LICENSE" | ||
LIC_FILES_CHKSUM = "file://${WORKDIR}/${LICENSE_FILE};md5=263ee034adc02556d59ab1ebdaea2cda" | ||
|
||
FW_PATH = "${WORKDIR}/hailo8_fw.${PV}.bin" | ||
|
||
do_install() { | ||
# Stores hailo8_fw.bin in the rootfs under /lib/firmware/hailo | ||
install -d ${D}/lib/firmware/hailo | ||
install -m 0755 ${FW_PATH} ${D}/lib/firmware/hailo/hailo8_fw.bin | ||
} | ||
|
||
FILES:${PN} += "/lib /lib/* /lib/firmware/hailo/hailo8_fw*" |
18 changes: 18 additions & 0 deletions
18
layers/meta-balena-raspberrypi/recipes-kernel/hailo/hailo-pci/hailo-pci_4.19.0bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
DESCRIPTION = "hailo pcie driver \ | ||
compiles the kernel driver for pci communication with hailo8 \ | ||
the recipe calls the compilation process with the proper cross-compiler and kernel directory. \ | ||
the output of the compilation (hailo_pci.ko) is copied to the target's rootfs" | ||
|
||
LICENSE = "GPLv2" | ||
LIC_FILES_CHKSUM = "file://../../LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0" | ||
|
||
SRC_URI = "git://[email protected]/hailo-ai/hailort-drivers.git;protocol=https;branch=master" | ||
SRCREV = "24e7ff2fb58fab7029024c1a1d3f2d1914f56d7b" | ||
|
||
inherit module | ||
|
||
S = "${WORKDIR}/git/linux/pcie" | ||
|
||
EXTRA_OEMAKE += "KERNEL_DIR=${STAGING_KERNEL_DIR}" | ||
MAKE_TARGETS = "all" | ||
MODULES_INSTALL_TARGET = "install" |