where the modules cache of core-image-base

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

where the modules cache of core-image-base

Jump to solution
576 Views
qinghuazhu
Contributor III

Hello,

I just meet a simple problem, and I try every method but i still can’t solve it.

I download yocto from http://freescale.github.io/ , and build core-image-base.

MACHINE=imx6ulevk source setup-environment imx6ul

bitbake core-image-base

After it’s finished , I want to remove a module, such as I can see a file

/home/user/fsl-community-bsp/imx6ul/tmp/work/imx6ulevk-poky-linux-gnueabi/core-image-base/1.0-r0/rootfs/lib/modules/4.1.15-1.1.0+ga4d2a08/kernel/drivers/net/wireless/ bcmdhd/ bcmdhd.ko

I just execute “bitbake linux-imx -c menuconfig” and remove this module

“Device Drivers ---> Network device support  ---> [ ] Wireless LAN  ----”,it’s blank, I didn’t choose it.

And I execute “rm -rf core-image-base” in directory “/home/user/fsl-community-bsp/imx6ul/tmp/work/imx6ulevk-poky-linux-gnueabi”

I wish I won’t see this modules again.

     I run commands as below to rebuild.

#!/bin/sh

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-imx/4.1.15-r0.do_compile*

bitbake linux-imx -c compile

bitbake linux-imx -c compile_kernelmodules

if [ $? -ne 0 ];then

exit

fi

rm sstate-cache/0d/sstate\:linux-imx\:imx6ulevk-poky-linux-gnueabi\:4.1.15\:r0\:imx6ulevk\:3\:0d8abcd98b0d527280499c07fb574e03_deploy.tgz

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-imx/4.1.15-r0.do_deploy.*

bitbake linux-imx -c deploy

if [ $? -ne 0 ];then

exit

fi

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/core-image-base/1.0-r0.do_rootfs.*

bitbake core-image-base

but unfortunately, I can find bcmdhd.ko in the same directory.

I just want to know where the cache is.

I even run “rm -rf sstate-cache” to delete all cache directory, but it still there, and the size, the time ,nothing changed.

Anybody tell me where the cache is ?

Thanks very much!

Labels (1)
0 Kudos
1 Solution
407 Views
qinghuazhu
Contributor III

I have found the cache and update my script as below:

#!/bin/sh

rm sstate-cache/52/sstate\:linux-fslc-imx\:imx6ulevk-poky-linux-gnueabi\:4.1-1.0.x+gitAUTOINC+0c0844f9fa\:r0\:imx6ulevk\:3\:52f82544cc5787ef98f10d62b5b42468_package.tgz

rm sstate-cache/b2/sstate\:linux-fslc-imx\:imx6ulevk-poky-linux-gnueabi\:4.1-1.0.x+gitAUTOINC+0c0844f9fa\:r0\:imx6ulevk\:3\:b2c1bcfa655e6be4469bffcae4b3bf5c_package_write_rpm.tgz

rm sstate-cache/42/sstate\:linux-fslc-imx\:imx6ulevk-poky-linux-gnueabi\:4.1-1.0.x+gitAUTOINC+0c0844f9fa\:r0\:imx6ulevk\:3\:42c408356014aff14e31711cdc1de51a_packagedata.tgz

rm sstate-cache/ef/sstate\:linux-fslc-imx\:imx6ulevk-poky-linux-gnueabi\:4.1-1.0.x+gitAUTOINC+0c0844f9fa\:r0\:imx6ulevk\:3\:efc8a5ba41ff9e8f6945f6e54f20ef72_deploy.tgz

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0.do_compile*

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0.do_deploy.*

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0.do_package_write_rpm*

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0.do_package*

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/core-image-base/1.0-r0.do_rootfs.*

bitbake linux-fslc-imx -c compile

bitbake linux-fslc-imx -c compile_kernelmodules

if [ $? -ne 0 ];then

    exit

fi

bitbake linux-fslc-imx -c deploy

if [ $? -ne 0 ];then

    exit

fi

bitbake linux-fslc-imx -c package_write_rpm

if [ $? -ne 0 ];then

    exit

fi

bitbake core-image-base

View solution in original post

1 Reply
408 Views
qinghuazhu
Contributor III

I have found the cache and update my script as below:

#!/bin/sh

rm sstate-cache/52/sstate\:linux-fslc-imx\:imx6ulevk-poky-linux-gnueabi\:4.1-1.0.x+gitAUTOINC+0c0844f9fa\:r0\:imx6ulevk\:3\:52f82544cc5787ef98f10d62b5b42468_package.tgz

rm sstate-cache/b2/sstate\:linux-fslc-imx\:imx6ulevk-poky-linux-gnueabi\:4.1-1.0.x+gitAUTOINC+0c0844f9fa\:r0\:imx6ulevk\:3\:b2c1bcfa655e6be4469bffcae4b3bf5c_package_write_rpm.tgz

rm sstate-cache/42/sstate\:linux-fslc-imx\:imx6ulevk-poky-linux-gnueabi\:4.1-1.0.x+gitAUTOINC+0c0844f9fa\:r0\:imx6ulevk\:3\:42c408356014aff14e31711cdc1de51a_packagedata.tgz

rm sstate-cache/ef/sstate\:linux-fslc-imx\:imx6ulevk-poky-linux-gnueabi\:4.1-1.0.x+gitAUTOINC+0c0844f9fa\:r0\:imx6ulevk\:3\:efc8a5ba41ff9e8f6945f6e54f20ef72_deploy.tgz

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0.do_compile*

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0.do_deploy.*

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0.do_package_write_rpm*

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0.do_package*

rm tmp/stamps/imx6ulevk-poky-linux-gnueabi/core-image-base/1.0-r0.do_rootfs.*

bitbake linux-fslc-imx -c compile

bitbake linux-fslc-imx -c compile_kernelmodules

if [ $? -ne 0 ];then

    exit

fi

bitbake linux-fslc-imx -c deploy

if [ $? -ne 0 ];then

    exit

fi

bitbake linux-fslc-imx -c package_write_rpm

if [ $? -ne 0 ];then

    exit

fi

bitbake core-image-base