Crda installation

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

Crda installation

3,125 Views
sunder
Contributor I

The following error is thrown, when crda packages is installed in bitbake environment.

One of the option is  given as to change the md5sum and sha256sum, in the recipe file in SRC_URI.  I could not find such receipe file.  My internet connection is fine and some other packages are getting installed.

What is the solution for this problem.

Thanks & Best Regards,

Sunder

***************************************************************************************************************************************************************************************************

Fetcher failure for URL: 'http://wireless.kernel.org/download/crda/crda-1.1.3.tar.bz2;name=crda'. Checksum mismatch!
File: '/home/sunder/QorIQ-SDK-V1.7/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p1020rdb_release/../sources/crda-1.1.3.tar.bz2' has md5 checksum 001279002bbc49021bb00ac522583aac when 29579185e06a75675507527243d28e5c was expected
File: '/home/sunder/QorIQ-SDK-V1.7/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p1020rdb_release/../sources/crda-1.1.3.tar.bz2' has sha256 checksum c59aca2e3f0e020af87e5d406ef4c9c27d99411be01eccd25792111a171db799 when aa8a7fe92f0765986c421a5b6768a185375ac210393df0605ee132f6754825f0 was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[crda.md5sum] = "001279002bbc49021bb00ac522583aac"
SRC_URI[crda.sha256sum] = "c59aca2e3f0e020af87e5d406ef4c9c27d99411be01eccd25792111a171db799"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

ERROR: Function failed: Fetcher failure for URL: 'http://wireless.kernel.org/download/crda/crda-1.1.3.tar.bz2;name=crda'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/sunder/QorIQ-SDK-V1.7/QorIQ-SDK-V1.7-20141218-yocto/poky/build_p1020rdb_release/tmp/work/ppce500v2-fsl-linux-gnuspe/crda/1.1.3-r0/temp/log.do_fetch.30114
ERROR: Task 4 (/home/sunder/QorIQ-SDK-V1.7/QorIQ-SDK-V1.7-20141218-yocto/meta-oe/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 781 tasks of which 760 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /home/sunder/QorIQ-SDK-V1.7/QorIQ-SDK-V1.7-20141218-yocto/meta-oe/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb, do_fetch
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Labels (1)
0 Kudos
3 Replies

1,690 Views
sunder
Contributor I

Thanks for reply and solution.  I am newbie for Yocto environment.

As I mentioned, in my query,  I could not understand, which is the BB script file to update. 

In the bitbake environment, I have already compiled for  bitbake fsl-image-core  and bitbake fsl-image-minimal for p1020rdb
I have given bitbake crda as  command to install it. 

For example, I have given bitbake libnl command.  Libnl got installed without manipulating bb script file.   Since crda has some issues like check sum, do I have to create new bb file in the specific path  or use the existing one in specific location? 

I have seen one bb file valgrind. 

Best Regards,

Sunder 

0 Kudos

1,690 Views
lunminliang
NXP Employee
NXP Employee

Hi Sunder Kumaresan,

I think the BB script is crda_1.1.3.bb, which is under the path:

QorIQ-SDK-V1.7/QorIQ-SDK-V1.7-20141218-yocto/meta-oe/meta-networking/recipes-connectivity/crda/

The path is also indicated in one line of the log you pasted above:

ERROR: Task 4 (/home/sunder/QorIQ-SDK-V1.7/QorIQ-SDK-V1.7-20141218-yocto/meta-oe/meta-networking/recipes-connectivity/crda/crda_1.1.3.bb, do_fetch) failed with exit code '1'


Have a great day,
Lunmin

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,690 Views
sijisunny
Contributor I

Dear Sunder,

I have faced the same problem and solved by adding crda source manually. Below the steps which I followed.@

wget http://wireless.kernel.org/download/crda/crda-1.1.3.tar.bz2

cp crda-1.1.3.tar.bz2 downloads/

touch downloads/crda-1.1.3.tar.bz2

and before starting the build process, commented the url path and checksum checking parameter in BB script. Below my bb script for crda -

DESCRIPTION = "Wireless Central Regulatory Domain Agent"

HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA"

LICENSE = "ISC"

LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"

DEPENDS = "python-m2crypto-native python-native libgcrypt libnl"

#SRC_URI = "http://wireless.kernel.org/download/crda/${BP}.tar.bz2;name=crda \

#           http://wireless.kernel.org/download/wireless-regdb/regulatory.bins/2013.01.11-regulatory.bin;name=bi... \

#"

#Defined local source path by MELabs-Feb24,2015

#SRC_URI = "file://home/sijisunny/Desktop/Atoll/FreeScale/Build/imx/downloads/crda-1.1.3.tar.bz2;name=crda2;name=crda \

#           http://wireless.kernel.org/download/wireless-regdb/regulatory.bins/2013.01.11-regulatory.bin;name=bi... \

#"

#SRC_URI[crda.md5sum] = "4852ec6af7a01c1e34bba9c3e95552d9"

#SRC_URI[crda.sha256sum] = "027b3540c80b07c138f8ba37cb7d770b65845f92c20fe827f05619285eff0a70"

inherit python-dir pythonnative

# Recursive make problem !

EXTRA_OEMAKE = "MAKEFLAGS= DESTDIR=${D}"

do_compile() {

    oe_runmake all_noverify

}

do_install() {

    oe_runmake install

    install -d ${D}${libdir}/crda/

    install -m 0644 ${WORKDIR}/2013.01.11-regulatory.bin ${D}${libdir}/crda/regulatory.bin

}

RDEPENDS_${PN} = "udev"

FILES_${PN} += "${libdir}crda/regulatory.bin \

                ${base_libdir}/udev/rules.d/85-regulatory.rules \

0 Kudos