Skip to contentSkip to conversation

external kernel module does not recognize a new git commit

DISCUSSION Lars Larsen 1 participant 2 messages May 31, 2017 – Jun 12, 2017

lore
Share & tools
lore
#0 lore raw

Hi

For my image I have a recipe where I build an external kernel module (a driver).

I followed the model in the hello_mod.bb <http://hello_mod.bb> example, except that the SRC_URI is a git repository and SRCREV= "${AUTOREV} (/See the recipe below.)/

in my image recipe I do :
PACKAGE_INSTALL_append() = "kernel-module-camdriverV20"

If I make changes and push a new version to the git repo , it is not discovered by bitbake, it keeps building the older version it already have checked out.

///
//SUMMARY = "CAMERA DRIVER for Robovator"//
//LICENSE = "GPLv2"//
//LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"// //
//# Cameradriver for Robovator, based on camdriverV10//
//
//#INHIBIT_PACKAGE_DEBUG_SPLIT = "1"//
//BRANCH = "Pokybuild"//
//
//inherit module//
//
//SRC_URI =" git:///${ESERVER}/GIT/camdriverV20/;branch=${BRANCH};"//
//
//SRCREV= "${AUTOREV}"//
//PV = "1.0.0+gitr${SRCPV}"//
//
//#SRCREV = "aa47aca8424a3f65ea2fc50386c2d1cdc47120d2"//
//#PV = "1.0.0+gitr${SRCPV}"//
////
//S = "${WORKDIR}/git"//
//
//# Do not autoload the driver when running "V1.9" mode// //#KERNEL_MODULE_AUTOLOAD += "camdriverV20"/

/
/

ESERVER and BRANCH are externally defined an are correct.

All my application level module recipes are made the same way and they work fine

I must have something wrong with the driver module. but what?

B.R Lars

Signature · 9 lines
Best Regards
Lars Larsen

F.Poulsen Engineering Aps
Tjørnager 16
4330 Hvalsø
Denmark
+45 29802784
www.visionweeding.com
#1 lore raw

SOLVED

It was caused by my inexperience with bitbake, and half baked attempts to setup for offline builds

BB_FETCH_PREMIRRORONLY was set to 1.

sorry for the disturbance.

-Lars

Quoted 65 lines · Lars Larsen

Hi

For my image I have a recipe where I build an external kernel module (a driver).

I followed the model in the hello_mod.bb <http://hello_mod.bb> example, except that the SRC_URI is a git repository and SRCREV= "${AUTOREV} (/See the recipe below.)/

in my image recipe I do :
PACKAGE_INSTALL_append() = "kernel-module-camdriverV20"

If I make changes and push a new version to the git repo , it is not discovered by bitbake, it keeps building the older version it already have checked out.

///
//SUMMARY = "CAMERA DRIVER for Robovator"//
//LICENSE = "GPLv2"//
//LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"// //
//# Cameradriver for Robovator, based on camdriverV10//
//
//#INHIBIT_PACKAGE_DEBUG_SPLIT = "1"//
//BRANCH = "Pokybuild"//
//
//inherit module//
//
//SRC_URI =" git:///${ESERVER}/GIT/camdriverV20/;branch=${BRANCH};"//
//
//SRCREV= "${AUTOREV}"//
//PV = "1.0.0+gitr${SRCPV}"//
//
//#SRCREV = "aa47aca8424a3f65ea2fc50386c2d1cdc47120d2"//
//#PV = "1.0.0+gitr${SRCPV}"//
////
//S = "${WORKDIR}/git"//
//
//# Do not autoload the driver when running "V1.9" mode// //#KERNEL_MODULE_AUTOLOAD += "camdriverV20"/

/
/

ESERVER and BRANCH are externally defined an are correct.

All my application level module recipes are made the same way and they work fine

I must have something wrong with the driver module. but what?

B.R Lars

Signature · 9 lines
Best Regards
Lars Larsen

F.Poulsen Engineering Aps
Tjørnager 16
4330 Hvalsø
Denmark
+45 29802784
www.visionweeding.com
Signature · 9 lines
Best Regards
Lars Larsen

F.Poulsen Engineering Aps
Tjørnager 16
4330 Hvalsø
Denmark
+45 29802784
www.visionweeding.com