Skip to contentSkip to conversation

How to recreate rootfs image

DISCUSSION Lenivyy Viktor 3 participants 4 messages Aug 26, 2015

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines

dirtypackage is the one which you want to rebuild and redeploy in the rootfs. If the package source is local, cleanall won't do big harm, but otherwise you're correct, it will clean the sources. You can use "clean" instead.

Regards,
Nikolay

I don’t know exactly which package I need to rebuild, but I guess it’s kernel-modules as modules folder have wrong version. After
bitbake -c clean kernel-modules altera-image-minimal

there is an error:
…
ERROR: Nothing PROVIDES 'kernel-modules'
…

#1 lore raw
Quoted 25 lines · Lenivyy Viktor
Quoted 6 lines

dirtypackage is the one which you want to rebuild and redeploy in the

rootfs. If the package source is local, cleanall won't do big harm, but

otherwise you're correct, it will clean the sources. You can use

Quoted 7 lines

"clean" instead.

Regards,

Nikolay

I don’t know exactly which package I need to rebuild, but I guess it’s kernel-modules as modules folder have wrong version.

After

bitbake -c clean kernel-modules altera-image-minimal

Quoted 5 lines

there is an error:

…

ERROR: Nothing PROVIDES 'kernel-modules'

kernel modules are part of virtual/kernel so you need to clean virtual/kernel if thats what the issue is

Quoted 18 lines

…

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
Quoted 23 lines
Quoted 23 lines
Quoted 5 lines

dirtypackage is the one which you want to rebuild and redeploy in the

rootfs. If the package source is local, cleanall won't do big harm, but

Quoted 8 lines

otherwise you're correct, it will clean the sources. You can use

"clean" instead.

Regards,

Nikolay

I don’t know exactly which package I need to rebuild, but I guess it’s kernel-modules as modules folder have wrong version.

After

bitbake -c clean kernel-modules altera-image-minimal

Quoted 8 lines
Quoted 5 lines

there is an error:

…

ERROR: Nothing PROVIDES 'kernel-modules'

kernel modules are part of virtual/kernel so you need to clean virtual/kernel if thats what the issue is

This command did what I was trying to avoid: remove Yocto's copy of kernel sources. But starting questions still exist.

#3 lore raw

Hi Victor,

Quoted 2 lines · Lenivyy Viktor

This command did what I was trying to avoid: remove Yocto's copy of kernel sources. But starting questions still exist.

In your kernel recipe are you using SRC_URI to fetch from a git repository (e.g. git:// URI) or from a local directory?

I guess that if you're using a local path, there can be either some uncommitted changes, or a stale git index.

You can try just for the experiment to add your current kernel sources to a test git repo and point the SRC_URI to it, so bitbake can clone the repo by git revision (SRCREV = "${AUTOREV}" will skip the need to update the recipe revision constantly during development). This should work fine, without the "-dirty" version suffix.

Regards,
Nikolay