Skip to contentSkip to conversation

linux-firmware: split into bus specific packages.

PATCH Superseded Filip Zyzniewski 6 participants 21 messages Feb 13, 2011 – Feb 23, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-firmware: split into bus specific packages.

The whole reposotiry is about 24MB in size and it's rarely needed whole. It is now splitted into bus specific subpackages (and some device-specific for devices on a bus like SPI or SBUS) all depended on by the linux-firmware package.

---
 recipes/linux-firmware/linux-firmware_git.bb |  144 +++++++++++++++++++++++++-
 1 files changed, 142 insertions(+), 2 deletions(-)
recipes/linux-firmware/linux-firmware_git.bb +142 -2
index 7bff379..1b22c79 100644
@@ -1,7 +1,8 @@
 DESCRIPTION = "Firmware files for use with Linux kernel"
 
+PR = "r1"
 PR_append = "+gitr${SRCREV}"
-SRCREV = "80a203275fc368db0a5f166c42dd35a4a22f2453"
+SRCREV = "2fab48391fda8a914b55c8ac265eb3b6ee10ace8"
 
 SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git;protocol=git"
 
@@ -16,7 +17,146 @@ do_install() {
 	cp -RpP * ${D}/lib/firmware/
 }
 
-FILES_${PN} += "/lib/firmware/*"
+SUBPACKAGES = "${PN}-i2c \
+	${PN}-isa \
+	${PN}-pci \
+	${PN}-pcmcia \
+	${PN}-sdio \
+	${PN}-usb \
+	${PN}-agere \
+	${PN}-dsp56k \
+	${PN}-gspi8682 \
+	${PN}-gspi8686 \
+	${PN}-gspi8688 \
+	${PN}-myri-sbus \
+	${PN}-qlogicpti \
+	${PN}-wl12xx \
+	${PN}-yam"
+
+RDEPENDS += "${SUBPACKAGES}"
+PACKAGES += "${SUBPACKAGES}"
+
 PACKAGE_ARCH = "all"
 
+RDEPENDS_${PN}-pci += "${PN}-agere ${PN}-i2c"
+RDEPENDS_${PN}-pcmcia += "${PN}-agere"
+RDEPENDS_${PN}-sdio += "${PN}-gspi8686 ${PN}-wl12xx"
+RDEPENDS_${PN}-usb += "${PN}-agere ${PN}-i2c"
+
+
+FILES_${PN}-i2c = "/lib/firmware/dvb-fe-xc5000-1.6.114.fw \
+	/lib/firmware/lgs8g75.fw"
+
+FILES_${PN}-isa = "/lib/firmware/sb16 \
+	/lib/firmware/tr_smctr.bin \
+	/lib/firmware/yamaha/yss225_registers.bin"
+
+FILES_${PN}-pci = "/lib/firmware/3com \
+	/lib/firmware/RTL8192E \
+	/lib/firmware/acenic \
+	/lib/firmware/adaptec \
+	/lib/firmware/advansys \
+	/lib/firmware/atmsar11.fw \
+	/lib/firmware/av7110 \
+	/lib/firmware/bnx2 \
+	/lib/firmware/bnx2x*.fw \
+	/lib/firmware/brcm/bcm43xx*.fw \
+	/lib/firmware/cxgb3 \
+	/lib/firmware/e100 \
+	/lib/firmware/ess/maestro3_*.fw \
+	/lib/firmware/intelliport2.bin \
+	/lib/firmware/iwlwifi-*.ucode \
+	/lib/firmware/korg/k1212.dsp \
+	/lib/firmware/matrox \
+	/lib/firmware/mwl8335_duplex.fw \
+	/lib/firmware/mwl8k \
+	/lib/firmware/phanfw.bin \
+	/lib/firmware/ql2*_fw.bin \
+	/lib/firmware/qlogic/1040.bin \
+	/lib/firmware/qlogic/12160.bin \
+	/lib/firmware/qlogic/1280.bin \
+	/lib/firmware/qlogic/sd7220.fw \
+	/lib/firmware/r128 \
+	/lib/firmware/radeon \
+	/lib/firmware/rt2561.bin \
+	/lib/firmware/rt2561s.bin \
+	/lib/firmware/rt2661.bin \
+	/lib/firmware/rt2860.bin \
+	/lib/firmware/rt3090.bin \
+	/lib/firmware/rtl_nic/rtl8168d-*.fw \
+	/lib/firmware/rtlwifi/rtl8192defw.bin \
+	/lib/firmware/rtlwifi/rtl8192sefw.bin \
+	/lib/firmware/slicoss \
+	/lib/firmware/sun/cassini.bin \
+	/lib/firmware/sxg \
+	/lib/firmware/tehuti \
+	/lib/firmware/tigon/tg3*.bin \
+	/lib/firmware/tlg2300_firmware.bin \
+	/lib/firmware/v4l-cx23418-*.fw \
+	/lib/firmware/v4l-cx23885-*.fw \
+	/lib/firmware/v4l-cx25840.fw \
+	/lib/firmware/vxge/X3fw*.ncf \
+	/lib/firmware/yamaha/ds1*.fw"
+
+FILES_${PN}-pcmcia = "/lib/firmware/cis \
+	/lib/firmware/libertas/cf8385*.bin \
+	/lib/firmware/ositech/Xilinx7OD.bin"
+
+FILES_${PN}-sdio = "/lib/firmware/brcm/bcm4329-fullmac-4-218-248-5.bin \
+	/lib/firmware/libertas/sd*.bin"
+
+FILES_${PN}-usb ="/lib/firmware/ar7010.fw \
+	/lib/firmware/ar7010_1_1.fw \
+	/lib/firmware/ar9170-*.fw \
+	/lib/firmware/ar9271.fw \
+	/lib/firmware/ath3k-*.fw \
+	/lib/firmware/cpia2 \
+	/lib/firmware/dabusb \
+	/lib/firmware/dvb-usb-dib0700-1.20.fw \
+	/lib/firmware/edgeport \
+	/lib/firmware/emi26 \
+	/lib/firmware/emi62 \
+	/lib/firmware/f2255usb.bin \
+	/lib/firmware/i2400m-fw-usb-*.sbcf \
+	/lib/firmware/i6050-fw-usb-1.5.sbcf \
+	/lib/firmware/kaweth \
+	/lib/firmware/keyspan \
+	/lib/firmware/keyspan_pda \
+	/lib/firmware/libertas/usb*.bin \
+	/lib/firmware/mts_*.fw \
+	/lib/firmware/rt2870.bin \
+	/lib/firmware/rt3070.bin \
+	/lib/firmware/rt3071.bin \
+	/lib/firmware/rt73.bin \
+	/lib/firmware/rtlwifi/rtl8192cfw.bin \
+	/lib/firmware/rtlwifi/rtl8192cufw.bin \
+	/lib/firmware/rtlwifi/rtl8712u.bin \
+	/lib/firmware/s2250*.fw \
+	/lib/firmware/ti_3410.fw \
+	/lib/firmware/ti_5052.fw \
+	/lib/firmware/ttusb-budget \	
+	/lib/firmware/ueagle-atm \
+	/lib/firmware/usbdux_firmware.bin \
+	/lib/firmware/usbduxfast_firmware.bin \
+	/lib/firmware/v4l-cx231xx-avcore-01.fw \
+	/lib/firmware/vicam/firmware.fw \
+	/lib/firmware/vntwusb.fw \
+	/lib/firmware/whiteheat*.fw"
+
+FILES_${PN}-agere = "/lib/firmware/agere_*_fw.bin"
+
+FILES_${PN}-dsp56k = "/lib/firmware/dsp56k/bootstrap.bin"
+
+FILES_${PN}-gspi8682 = "/lib/firmware/libertas/gspi8682*.bin"
+
+FILES_${PN}-gspi8686 = "/lib/firmware/libertas/gspi8686*.bin"
+
+FILES_${PN}-gspi8688 = "/lib/firmware/libertas/gspi8688*.bin" 
+
+FILES_${PN}-myri-sbus = "/lib/firmware/myricom/lanai.bin"
+
+FILES_${PN}-qlogicpti = "/lib/firmware/qlogic/isp1000.bin"
+
+FILES_${PN}-wl12xx = "/lib/firmware/ti-connectivity/wl1271-*.bin"
 
+FILES_${PN}-yam = "/lib/firmware/yam"
Signature · 1 line
1.7.1
#1 lore raw
Quoted 4 lines · Filip Zyzniewski

The whole reposotiry is about 24MB in size and it's rarely needed whole. It is now splitted into bus specific subpackages (and some device-specific for devices on a bus like SPI or SBUS) all depended on by the linux-firmware package.

I agree that this ought to be split but I think that it should be done by vendor:
realtek, ralink and so on.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#2 lore raw
Quoted 3 lines · Otavio Salvador

I agree that this ought to be split but I think that it should be done by vendor:
realtek, ralink and so on.

What would be the point of such split?

I have split it by buses, because currently having full support for PCMCIA devices on my Jornada 720, I have to install 13MB of PCI firmwares and 8.5MB of USB firmwares, which I will never use (because I have neither PCI nor USB bus on it) just to have available the 200kB of PCMCIA firmwares.

Most of the firmwares in the repository are for removable devices - we (as the OE/distrubution maintainers) are by definition not able to know whose products will the user plug in.

bye,
Filip Zyzniewski

#3 lore raw
Quoted 14 lines · Filip Zyzniewski
Quoted 3 lines · Otavio Salvador

I agree that this ought to be split but I think that it should be done by vendor:
realtek, ralink and so on.

What would be the point of such split?

I have split it by buses, because currently having full support for PCMCIA devices on my Jornada 720, I have to install 13MB of PCI firmwares and 8.5MB of USB firmwares, which I will never use (because I have neither PCI nor USB bus on it) just to have available the 200kB of PCMCIA firmwares.

Quoted 3 lines

Most of the firmwares in the repository are for removable devices - we (as the OE/distrubution maintainers) are by definition not able to know whose products will the user plug in.

Right but usually we'll have drivers/modules for one, two or three vendors that are used or demanded to be supported and then those firmware needs to be supported as well.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#4 lore raw
Quoted 3 lines · Otavio Salvador

Right but usually we'll have drivers/modules for one, two or three vendors that are used or demanded to be supported and then those firmware needs to be supported as well.

Can you give an example?
If you are building a distro for a device with USB host - on what basis do you choose whose products to support?

bye,
Filip Zyzniewski

#5 lore raw
Quoted 9 lines · Filip Zyzniewski
Quoted 3 lines · Otavio Salvador

Right but usually we'll have drivers/modules for one, two or three vendors that are used or demanded to be supported and then those firmware needs to be supported as well.

Can you give an example?
If you are building a distro for a device with USB host - on what basis do you choose whose products to support?

Honestly, I think we need bus and vendor in the split. I do want the firmware for my ralink USB WiFi dongle but not all of the other vendors and I'd un-install what I could un-install.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#6 lore raw
Quoted 3 lines · Tom Rini

Honestly, I think we need bus and vendor in the split. I do want the firmware for my ralink USB WiFi dongle but not all of the other vendors and I'd un-install what I could un-install.

Yeah, agreed. Or even a split down to individual devices/drivers since each of the Ralink firmware binaries is quite large in itself.

p.

#7 lore raw
Quoted 2 lines · Phil Blundell

Yeah, agreed. Or even a split down to individual devices/drivers since each of the Ralink firmware binaries is quite large in itself.

Yeah, I agree it is a good idea, it just isn't needed for us.

So could this be done in two steps:
1) this patch (by me) - split into buses;
2) second patch (by whoever needs this) - furtherly split bus packages by devices?

bye,
Filip Zyzniewski

#8 lore raw
Quoted 10 lines · Filip Zyzniewski
Quoted 2 lines · Phil Blundell

Yeah, agreed. Or even a split down to individual devices/drivers since each of the Ralink firmware binaries is quite large in itself.

Yeah, I agree it is a good idea, it just isn't needed for us.

So could this be done in two steps:
1) this patch (by me) - split into buses;
2) second patch (by whoever needs this) - furtherly split bus packages by devices?

I think that's fine. See my other email just now and we'll push v2, assuming I'm remembering how upgrades work, right :)

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#9 lore raw

PATCH v2 1/1 image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclass

In reply to Filip Zyzniewski

This function generates feed configuration for opkg and as such should be used only for images using ipk, not rpm or deb.

---
 classes/image.bbclass      |   32 --------------------------------
 classes/rootfs_ipk.bbclass |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 32 deletions(-)
classes/image.bbclass +0 -32
index 9765442..9621614 100644
@@ -172,9 +172,6 @@ fakeroot do_rootfs () {
 
 	rootfs_${IMAGE_PKGTYPE}_do_rootfs
 
-	[ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ] && \
-		insert_feed_uris
-
 	${IMAGE_PREPROCESS_COMMAND}
 
 	ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = ${IMAGE_EXTRA_SPACE} + $1; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'`
@@ -194,35 +191,6 @@ do_deploy_to () {
 	cp "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${IMAGE_FSTYPES}" ${DEPLOY_TO}
 }
 
-insert_feed_uris () {
-
-	echo "Building feeds for [${DISTRO}].."
-
-	for line in ${FEED_URIS}
-	do
-		# strip leading and trailing spaces/tabs, then split into name and uri
-		line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`"
-		feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`"
-		feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`"
-
-		echo "Added $feed_name feed with URL $feed_uri"
-
-		# insert new feed-sources
-		echo "src/gz $feed_name $feed_uri" >> ${IMAGE_ROOTFS}/etc/opkg/${feed_name}-feed.conf
-	done
-
-	# Allow to use package deploy directory contents as quick devel-testing
-	# feed. This creates individual feed configs for each arch subdir of those
-	# specified as compatible for the current machine.
-	# NOTE: Development-helper feature, NOT a full-fledged feed.
-	if [ -n "${FEED_DEPLOYDIR_BASE_URI}" ]; then
-	    for arch in ${PACKAGE_ARCHS}
-	    do
-		echo "src/gz local-$arch ${FEED_DEPLOYDIR_BASE_URI}/$arch" >> ${IMAGE_ROOTFS}/etc/opkg/local-$arch-feed.conf
-	    done
-	fi
-}
-
 log_check() {
 	set +x
 	for target in $*
classes/rootfs_ipk.bbclass +33 -0
index 92f521d..b173184 100644
@@ -104,8 +104,41 @@ fakeroot rootfs_ipk_do_rootfs () {
 
 	log_check rootfs 	
 	rm -rf ${IPKG_TMP_DIR}
+
+	[ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ] && \
+		rootfs_ipk_insert_feed_uris
 }
 
+rootfs_ipk_insert_feed_uris () {
+
+	echo "Building feeds for [${DISTRO}].."
+
+	for line in ${FEED_URIS}
+	do
+		# strip leading and trailing spaces/tabs, then split into name and uri
+		line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`"
+		feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`"
+		feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`"
+
+		echo "Added $feed_name feed with URL $feed_uri"
+
+		# insert new feed-sources
+		echo "src/gz $feed_name $feed_uri" >> ${IMAGE_ROOTFS}/etc/opkg/${feed_name}-feed.conf
+	done
+
+	# Allow to use package deploy directory contents as quick devel-testing
+	# feed. This creates individual feed configs for each arch subdir of those
+	# specified as compatible for the current machine.
+	# NOTE: Development-helper feature, NOT a full-fledged feed.
+	if [ -n "${FEED_DEPLOYDIR_BASE_URI}" ]; then
+	    for arch in ${PACKAGE_ARCHS}
+	    do
+		echo "src/gz local-$arch ${FEED_DEPLOYDIR_BASE_URI}/$arch" >> ${IMAGE_ROOTFS}/etc/opkg/local-$arch-feed.conf
+	    done
+	fi
+}
+
+
 rootfs_ipk_log_check() {
 	target="$1"
         lf_path="$2"
Signature · 1 line
1.7.1
#10 lore raw

Re: [PATCHv2] image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclass

Quoted 2 lines · Filip Zyzniewski

This function generates feed configuration for opkg and as such should be used only for images using ipk, not rpm or deb.

Uh, sorry, this wasn't supposed to land here :).

bye,
Filip Zyzniewski

#11 lore raw
In reply to Otavio Salvador

Hi,

Quoted 11 lines · Otavio Salvador
Quoted 4 lines · Filip Zyzniewski

The whole reposotiry is about 24MB in size and it's rarely needed whole. It is now splitted into bus specific subpackages (and some device-specific for devices on a bus like SPI or SBUS) all depended on by the linux-firmware package.

I agree that this ought to be split but I think that it should be done by vendor:
realtek, ralink and so on.

also there is an other version of this recipe in recipes/firmwares/linux-firmware.inc
which is already splitted in small packages for some firmware such as :
firmware-atheros-ar9271.bb firmware-marvell-sd8688_10.38.1-p25.bb

Eric

#12 lore raw
In reply to Filip Zyzniewski
Quoted 4 lines · Filip Zyzniewski

The whole reposotiry is about 24MB in size and it's rarely needed whole. It is now splitted into bus specific subpackages (and some device-specific for devices on a bus like SPI or SBUS) all depended on by the linux-firmware package.

[snip]

Quoted 1 line

+RDEPENDS += "${SUBPACKAGES}"

Given the previous threads, I think we still have a problem, which is that this should be RDEPENDS_${PN} += "${SUBPACKAGES}"
so that there's a valid upgrade path.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#13 lore raw

PATCH v2 1/1 linux-firmware: split into bus specific packages.

In reply to Filip Zyzniewski

The whole reposotiry is about 24MB in size and it's rarely needed whole. It is now splitted into bus specific subpackages (and some device-specific for devices on a bus like SPI or SBUS) all depended on by the linux-firmware package.

Suggested improvement - split bus packages furtherly into device packages (so that we can either pull in a whole bus or just one device).

---
 recipes/linux-firmware/linux-firmware_git.bb |  144 +++++++++++++++++++++++++-
 1 files changed, 142 insertions(+), 2 deletions(-)
recipes/linux-firmware/linux-firmware_git.bb +142 -2
index 7bff379..14dc1b6 100644
@@ -1,7 +1,8 @@
 DESCRIPTION = "Firmware files for use with Linux kernel"
 
+PR = "r1"
 PR_append = "+gitr${SRCREV}"
-SRCREV = "80a203275fc368db0a5f166c42dd35a4a22f2453"
+SRCREV = "2fab48391fda8a914b55c8ac265eb3b6ee10ace8"
 
 SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git;protocol=git"
 
@@ -16,7 +17,146 @@ do_install() {
 	cp -RpP * ${D}/lib/firmware/
 }
 
-FILES_${PN} += "/lib/firmware/*"
+SUBPACKAGES = "${PN}-i2c \
+	${PN}-isa \
+	${PN}-pci \
+	${PN}-pcmcia \
+	${PN}-sdio \
+	${PN}-usb \
+	${PN}-agere \
+	${PN}-dsp56k \
+	${PN}-gspi8682 \
+	${PN}-gspi8686 \
+	${PN}-gspi8688 \
+	${PN}-myri-sbus \
+	${PN}-qlogicpti \
+	${PN}-wl12xx \
+	${PN}-yam"
+
+RDEPENDS_${PN} += "${SUBPACKAGES}"
+PACKAGES += "${SUBPACKAGES}"
+
 PACKAGE_ARCH = "all"
 
+RDEPENDS_${PN}-pci += "${PN}-agere ${PN}-i2c"
+RDEPENDS_${PN}-pcmcia += "${PN}-agere"
+RDEPENDS_${PN}-sdio += "${PN}-gspi8686 ${PN}-wl12xx"
+RDEPENDS_${PN}-usb += "${PN}-agere ${PN}-i2c"
+
+
+FILES_${PN}-i2c = "/lib/firmware/dvb-fe-xc5000-1.6.114.fw \
+	/lib/firmware/lgs8g75.fw"
+
+FILES_${PN}-isa = "/lib/firmware/sb16 \
+	/lib/firmware/tr_smctr.bin \
+	/lib/firmware/yamaha/yss225_registers.bin"
+
+FILES_${PN}-pci = "/lib/firmware/3com \
+	/lib/firmware/RTL8192E \
+	/lib/firmware/acenic \
+	/lib/firmware/adaptec \
+	/lib/firmware/advansys \
+	/lib/firmware/atmsar11.fw \
+	/lib/firmware/av7110 \
+	/lib/firmware/bnx2 \
+	/lib/firmware/bnx2x*.fw \
+	/lib/firmware/brcm/bcm43xx*.fw \
+	/lib/firmware/cxgb3 \
+	/lib/firmware/e100 \
+	/lib/firmware/ess/maestro3_*.fw \
+	/lib/firmware/intelliport2.bin \
+	/lib/firmware/iwlwifi-*.ucode \
+	/lib/firmware/korg/k1212.dsp \
+	/lib/firmware/matrox \
+	/lib/firmware/mwl8335_duplex.fw \
+	/lib/firmware/mwl8k \
+	/lib/firmware/phanfw.bin \
+	/lib/firmware/ql2*_fw.bin \
+	/lib/firmware/qlogic/1040.bin \
+	/lib/firmware/qlogic/12160.bin \
+	/lib/firmware/qlogic/1280.bin \
+	/lib/firmware/qlogic/sd7220.fw \
+	/lib/firmware/r128 \
+	/lib/firmware/radeon \
+	/lib/firmware/rt2561.bin \
+	/lib/firmware/rt2561s.bin \
+	/lib/firmware/rt2661.bin \
+	/lib/firmware/rt2860.bin \
+	/lib/firmware/rt3090.bin \
+	/lib/firmware/rtl_nic/rtl8168d-*.fw \
+	/lib/firmware/rtlwifi/rtl8192defw.bin \
+	/lib/firmware/rtlwifi/rtl8192sefw.bin \
+	/lib/firmware/slicoss \
+	/lib/firmware/sun/cassini.bin \
+	/lib/firmware/sxg \
+	/lib/firmware/tehuti \
+	/lib/firmware/tigon/tg3*.bin \
+	/lib/firmware/tlg2300_firmware.bin \
+	/lib/firmware/v4l-cx23418-*.fw \
+	/lib/firmware/v4l-cx23885-*.fw \
+	/lib/firmware/v4l-cx25840.fw \
+	/lib/firmware/vxge/X3fw*.ncf \
+	/lib/firmware/yamaha/ds1*.fw"
+
+FILES_${PN}-pcmcia = "/lib/firmware/cis \
+	/lib/firmware/libertas/cf8385*.bin \
+	/lib/firmware/ositech/Xilinx7OD.bin"
+
+FILES_${PN}-sdio = "/lib/firmware/brcm/bcm4329-fullmac-4-218-248-5.bin \
+	/lib/firmware/libertas/sd*.bin"
+
+FILES_${PN}-usb ="/lib/firmware/ar7010.fw \
+	/lib/firmware/ar7010_1_1.fw \
+	/lib/firmware/ar9170-*.fw \
+	/lib/firmware/ar9271.fw \
+	/lib/firmware/ath3k-*.fw \
+	/lib/firmware/cpia2 \
+	/lib/firmware/dabusb \
+	/lib/firmware/dvb-usb-dib0700-1.20.fw \
+	/lib/firmware/edgeport \
+	/lib/firmware/emi26 \
+	/lib/firmware/emi62 \
+	/lib/firmware/f2255usb.bin \
+	/lib/firmware/i2400m-fw-usb-*.sbcf \
+	/lib/firmware/i6050-fw-usb-1.5.sbcf \
+	/lib/firmware/kaweth \
+	/lib/firmware/keyspan \
+	/lib/firmware/keyspan_pda \
+	/lib/firmware/libertas/usb*.bin \
+	/lib/firmware/mts_*.fw \
+	/lib/firmware/rt2870.bin \
+	/lib/firmware/rt3070.bin \
+	/lib/firmware/rt3071.bin \
+	/lib/firmware/rt73.bin \
+	/lib/firmware/rtlwifi/rtl8192cfw.bin \
+	/lib/firmware/rtlwifi/rtl8192cufw.bin \
+	/lib/firmware/rtlwifi/rtl8712u.bin \
+	/lib/firmware/s2250*.fw \
+	/lib/firmware/ti_3410.fw \
+	/lib/firmware/ti_5052.fw \
+	/lib/firmware/ttusb-budget \	
+	/lib/firmware/ueagle-atm \
+	/lib/firmware/usbdux_firmware.bin \
+	/lib/firmware/usbduxfast_firmware.bin \
+	/lib/firmware/v4l-cx231xx-avcore-01.fw \
+	/lib/firmware/vicam/firmware.fw \
+	/lib/firmware/vntwusb.fw \
+	/lib/firmware/whiteheat*.fw"
+
+FILES_${PN}-agere = "/lib/firmware/agere_*_fw.bin"
+
+FILES_${PN}-dsp56k = "/lib/firmware/dsp56k/bootstrap.bin"
+
+FILES_${PN}-gspi8682 = "/lib/firmware/libertas/gspi8682*.bin"
+
+FILES_${PN}-gspi8686 = "/lib/firmware/libertas/gspi8686*.bin"
+
+FILES_${PN}-gspi8688 = "/lib/firmware/libertas/gspi8688*.bin" 
+
+FILES_${PN}-myri-sbus = "/lib/firmware/myricom/lanai.bin"
+
+FILES_${PN}-qlogicpti = "/lib/firmware/qlogic/isp1000.bin"
+
+FILES_${PN}-wl12xx = "/lib/firmware/ti-connectivity/wl1271-*.bin"
 
+FILES_${PN}-yam = "/lib/firmware/yam"
Signature · 1 line
1.7.1
#14 lore raw

Hi,

Quoted 8 lines · Filip Zyzniewski

The whole reposotiry is about 24MB in size and it's rarely needed whole. It is now splitted into bus specific subpackages (and some device-specific for devices on a bus like SPI or SBUS) all depended on by the linux-firmware package.

Suggested improvement - split bus packages furtherly into device packages (so that we can either pull in a whole bus or just one device).

Is there anything going on with http://patches.openembedded.org/patch/589/?
It's been in 'Under Review' state for a couple of days now...

bye,
Filip Zyzniewski

#15 lore raw
In reply to Filip Zyzniewski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 14 lines · Filip Zyzniewski

The whole reposotiry is about 24MB in size and it's rarely needed whole. It is now splitted into bus specific subpackages (and some device-specific for devices on a bus like SPI or SBUS) all depended on by the linux-firmware package.

Suggested improvement - split bus packages furtherly into device packages (so that we can either pull in a whole bus or just one device).

---
 recipes/linux-firmware/linux-firmware_git.bb |  144 +++++++++++++++++++++++++-
 1 files changed, 142 insertions(+), 2 deletions(-)

Review

Quoted 2 lines
(quoted diff) +2 -0
+
+FILES_${PN}-wl12xx = "/lib/firmware/ti-connectivity/wl1271-*.bin"

The wl12xx files need to go into /lib/firmware, not /lib/firmware/ti-connectivity

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFNZKpWMkyGM64RGpERAgnPAKC4Yxrzomw/SWENX3F7t329lYvW8ACePhwJ ttjmMyrgkry0bjZh5Derjp0=
=9TpP
-----END PGP SIGNATURE-----

#16 lore raw
Quoted 2 lines · Koen Kooi

The wl12xx files need to go into /lib/firmware, not /lib/firmware/ti-connectivity

This layout is copied verbatim from the linux-firmware git repository. Maybe I'll just report it upstream?

bye,
Filip Zyzniewski

#17 lore raw

Hi Filip,

Quoted 8 lines · Filip Zyzniewski
Quoted 2 lines · Koen Kooi

The wl12xx files need to go into /lib/firmware, not /lib/firmware/ti-connectivity

This layout is copied verbatim from the linux-firmware git repository. Maybe I'll just report it upstream?

I'm not sure the linux-firmare repo is intendeed to be used as is. Original goal was just to collect the firmwares :
http://lwn.net/Articles/294308/

As already said before, there is an other version of this recipe in recipes/firmwares/linux-firmware.inc
which is already splitted in small packages for some firmware such as :
firmware-atheros-ar9271.bb firmware-marvell-sd8688_10.38.1-p25.bb

Eric

#18 lore raw
Quoted 5 lines · Eric Benard

As already said before, there is an other version of this recipe in recipes/firmwares/linux-firmware.inc
which is already splitted in small packages for some firmware such as :
firmware-atheros-ar9271.bb firmware-marvell-sd8688_10.38.1-p25.bb

So you suggest removing recipes/linux-firmware altogether? If so, recipes/firmwares/linux-firmware.inc would need a lot of reshaping to provide what I need (bus specific packages).

bye,
Filip Zyzniewski

#19 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 10 lines · Filip Zyzniewski
Quoted 5 lines · Eric Benard

As already said before, there is an other version of this recipe in recipes/firmwares/linux-firmware.inc
which is already splitted in small packages for some firmware such as :
firmware-atheros-ar9271.bb firmware-marvell-sd8688_10.38.1-p25.bb

So you suggest removing recipes/linux-firmware altogether? If so, recipes/firmwares/linux-firmware.inc would need a lot of reshaping to provide what I need (bus specific packages).

I have no strong opinion on that, but I need a wl12xx package before the end of the week due to deadlines, so I added that to the existing linux-firmware recipe.

FWIW, if the split goes thru, proper licensing info needs to get added to the subpackages as well.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFNZRlxMkyGM64RGpERAnZiAJ9zUQNuUAMJ/BCnUNQ7j9SoIMFjRACaAtVR /crz6+iArTErc59iLcP/yUA=
=idnZ
-----END PGP SIGNATURE-----

#20 lore raw

PATCH v2 1/1 linux-firmware: split into bus specific packages.

In reply to Koen Kooi

Hi,

we've come across this issue with linux-firmware:

---------- Forwarded message ----------
From: Koen Kooi <[email protected]>
Date: Wed, 23 Feb 2011 07:33:58 +0100
Subject: Re: [oe] [PATCHv2] linux-firmware: split into bus specific packages.
To: [email protected]

The wl12xx files need to go into /lib/firmware, not /lib/firmware/ti-connectivity
-----------------------------------------------------

Grepping through kernel sources shows that that's the case:

filip.zyzniewski@jlime:/home/git/linux-hpc/drivers$ grep -r 'wl12.*\.bin' .
./net/wireless/wl1251/wl1251.h:#define WL1251_FW_NAME "wl1251-fw.bin"
./net/wireless/wl1251/wl1251.h:#define WL1251_NVS_NAME "wl1251-nvs.bin"
./net/wireless/wl12xx/wl1271.h:#define WL1271_FW_NAME "wl1271-fw.bin"
./net/wireless/wl12xx/wl1271.h:#define WL1271_NVS_NAME "wl1271-nvs.bin"
filip.zyzniewski@jlime:/home/git/linux-hpc/drivers$

Could you move these files to a location requested by the kernel?

bye,
Filip Zyzniewski