GCNANO: 6.4.7
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com> Change-Id: I60d9ee20918ecf97efaa0cacb1621cf215fed3dc
This commit is contained in:
1 parent
6082bf29b5
commit
ded2a2667c
11 files changed
+383
-220
No files matched your search
@@ -0,0 +1,13 @@
|
||||
SRC_URI:append = " file://README.HOW_TO.txt "
|
||||
|
||||
inherit archiver
|
||||
ARCHIVER_MODE[src] = "original"
|
||||
|
||||
# Override generated tarball for original with gcnano-driver-stm32mp source tarball
|
||||
do_set_archiver_tarball() {
|
||||
rm -f ${ARCHIVER_OUTDIR}/${PF}*.tar.*
|
||||
cp ${WORKDIR}/git/${GCNANO_DRIVER_TARBALL} ${ARCHIVER_OUTDIR}/${PF}.tar.xz
|
||||
}
|
||||
do_ar_original[postfuncs] =+ "do_set_archiver_tarball"
|
||||
|
||||
inherit archiver_stm32mp_clean
|
||||
@@ -1,8 +1,5 @@
|
||||
COMPATIBLE_MACHINE = "(stm32mpcommon)"
|
||||
|
||||
# To share stm32mp1 patches between layers
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/gcnano-driver-stm32mp:"
|
||||
|
||||
inherit module
|
||||
|
||||
# todo manage android build (sync)
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
Compilation of the gcnano kernel module:
|
||||
1. Pre-requisite
|
||||
2. Compile the gcnano kernel module
|
||||
3. Update software on board
|
||||
|
||||
----------------
|
||||
1. Pre-requisite
|
||||
----------------
|
||||
- OpenSTLinux SDK must be installed.
|
||||
- Linux Kernel source must be installed and built
|
||||
|
||||
----------------
|
||||
2. Compile the gcnano kernel module
|
||||
----------------
|
||||
OpenSTLinux SDK must be installed.
|
||||
|
||||
* Compile and install the gcnano kernel module
|
||||
$> tar xf ##BP##-##PR##.tar.xz
|
||||
$> cd ##GCNANO_TARNAME##
|
||||
$> KERNEL_BUILDDIR="../../kernel/kernel-sources"
|
||||
* Build kernel module
|
||||
$> make ARCH=arm SOC_PLATFORM=st-st DEBUG=0 O="${KERNEL_BUILDDIR}" M="${PWD}" AQROOT="${PWD}" -C ${KERNEL_BUILDDIR}
|
||||
|
||||
---------------------------
|
||||
3. Update software on board
|
||||
---------------------------
|
||||
|
||||
3.1 Update via network
|
||||
----------------------
|
||||
Copy kernel modules:
|
||||
$ scp galcore.ko root@<ip of board>:/lib/modules/<kernel version>/extra
|
||||
|
||||
Generate a list of module dependencies (modules.dep) and a list of symbols
|
||||
provided by modules (modules.symbols):
|
||||
$ ssh root@<ip of board> /sbin/depmod -a
|
||||
Synchronize data on disk with memory
|
||||
$ ssh root@<ip of board> sync
|
||||
Reboot the board in order to take update into account
|
||||
$ ssh root@<ip of board> reboot
|
||||
@@ -1,32 +0,0 @@
|
||||
SUMMARY = "GCNano kernel drivers"
|
||||
LICENSE = "GPL-1.0-only & MIT"
|
||||
# Note get md5sum with: $ head -n 53 Makefile | md5sum
|
||||
LIC_FILES_CHKSUM = "file://Makefile;endline=53;md5=3ad4e99418a2e0f339ecdc29ac648351"
|
||||
|
||||
SRC_URI = "git://github.com/STMicroelectronics/gcnano-binaries;protocol=https;branch=gcnano-6.4.3-binaries"
|
||||
SRCREV = "1534c3eaabb5ae545a8f97e95f853531365a13fc"
|
||||
|
||||
GCNANO_VERSION = "6.4.3"
|
||||
|
||||
PV = "${GCNANO_VERSION}-tar.${SRCPV}"
|
||||
|
||||
S = "${WORKDIR}/gcnano-driver-${GCNANO_VERSION}"
|
||||
|
||||
include gcnano-driver-stm32mp.inc
|
||||
|
||||
GCNANO_DRIVER_TARBALL = "gcnano-driver-${GCNANO_VERSION}.tar.xz"
|
||||
|
||||
DEPENDS += "xz-native"
|
||||
do_unpack[depends] += "xz-native:do_populate_sysroot"
|
||||
|
||||
python () {
|
||||
externalsrc = d.getVar('EXTERNALSRC')
|
||||
if not externalsrc:
|
||||
d.prependVarFlag('do_unpack', 'postfuncs', " do_patch_extract_tarball ")
|
||||
}
|
||||
|
||||
# add to do_patch for untar the tarball
|
||||
do_patch_extract_tarball() {
|
||||
bbnote "tar xfJ ${WORKDIR}/git/${GCNANO_DRIVER_TARBALL} -C ${WORKDIR}"
|
||||
tar xfJ ${WORKDIR}/git/${GCNANO_DRIVER_TARBALL} -C ${WORKDIR}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
SUMMARY = "GCNano kernel drivers"
|
||||
LICENSE = "GPL-1.0-only & MIT"
|
||||
# Note get md5sum with: $ head -n 53 Makefile | md5sum
|
||||
LIC_FILES_CHKSUM = "file://Makefile;endline=53;md5=ec60a845a9f75c1c29ffe3007e9d2cb5"
|
||||
|
||||
SRC_URI = "git://github.com/STMicroelectronics/gcnano-binaries;protocol=https;branch=gcnano-${GCNANO_VERSION}-binaries"
|
||||
SRCREV = "a20611434ef048d3d0c04f55b6cd7d75a2156d43"
|
||||
|
||||
GCNANO_TARNAME = "gcnano-driver-${GCNANO_VERSION}"
|
||||
|
||||
GCNANO_VERSION = "6.4.7"
|
||||
GCNANO_SUBVERSION = "stm32mp"
|
||||
GCNANO_RELEASE = "r1"
|
||||
|
||||
PV = "${GCNANO_VERSION}-${GCNANO_SUBVERSION}-${GCNANO_RELEASE}"
|
||||
|
||||
S = "${WORKDIR}/gcnano-driver-${GCNANO_VERSION}"
|
||||
|
||||
include gcnano-driver-stm32mp.inc
|
||||
|
||||
GCNANO_DRIVER_TARBALL = "${GCNANO_TARNAME}.tar.xz"
|
||||
|
||||
DEPENDS += "xz-native"
|
||||
do_unpack[depends] += "xz-native:do_populate_sysroot"
|
||||
|
||||
python () {
|
||||
externalsrc = d.getVar('EXTERNALSRC')
|
||||
if not externalsrc:
|
||||
d.prependVarFlag('do_unpack', 'postfuncs', " do_patch_extract_tarball ")
|
||||
}
|
||||
|
||||
# add to do_patch for untar the tarball
|
||||
do_patch_extract_tarball() {
|
||||
bbnote "tar xf ${WORKDIR}/git/${GCNANO_DRIVER_TARBALL} -C ${WORKDIR}"
|
||||
tar xf ${WORKDIR}/git/${GCNANO_DRIVER_TARBALL} -C ${WORKDIR}
|
||||
}
|
||||
|
||||
# ---------------------------------
|
||||
# Configure archiver use
|
||||
# ---------------------------------
|
||||
include ${@oe.utils.ifelse(d.getVar('ST_ARCHIVER_ENABLE') == '1', 'gcnano-driver-stm32mp-archiver.inc','')}
|
||||
Reference in new issue
Block a user