[oe] How to copy Ralink RT2571w firmware image to /lib/firmware folder

Elvis Dowson elvis.dowson at mac.com
Fri Jun 5 07:03:07 UTC 2009


Hi,
	I have created a bitbake recipe for the Ralink RT2571w 1.6.4 WiFi  
network module.

Part of the installation process requires me to copy the a firmware  
file called rt73.bin to the /lib/firmware folder.

How can I do this?

Here is a link to the firmware file: http://www.ralinktech.com.tw/data/RT71W_Firmware_V1.8.zip

Here is a copy of my bitbake recipe:

Filename: rt2570-k2wrlz_1.6.4.bb

DESCRIPTION = "Enhanced Driver for Ralink rt2570 USB 802.11g WiFi  
sticks"
HOMEPAGE = "http://homepages.tu-darmstadt.de/~p_larbig/wlan"
SECTION = "kernel/modules"
LICENSE = "GPL"

PR = "r1"

SRC_URI = "http://homepages.tu-darmstadt.de/~p_larbig/wlan/${PN}-$ 
{PV}.tar.bz2"

inherit module

S = "${WORKDIR}/${PN}-${PV}/Module/"

do_compile_prepend_arm () {
   MAKE_TARGETS="arm"
}

do_compile() {
   export KERNDIR=${STAGING_KERNEL_DIR}
   module_do_compile
}

do_install() {
	install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
	install -m 0644 rt2570${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/ 
modules/${KERNEL_VERSION}/extra/
}


Best regards,

Elvis





More information about the Openembedded-devel mailing list