xbianonpi / xbian

XBMC on Raspberry Pi, Bleeding Edge
https://xbian.org
GNU General Public License v3.0
294 stars 44 forks source link

Kernel firmware files missing #595

Closed CurlyMoo closed 9 years ago

CurlyMoo commented 10 years ago

I noticed that the kernel repository is missing a lot of firmware files that are present on my Raspberry Pi.

root@pi:~# ls -AlR /lib/firmware/
/lib/firmware/:
total 824
drwxr-xr-x 1 root root    252 Aug  6 19:56 3.12.20+
drwxr-xr-x 1 root root    532 Feb 13  2013 ar3k
-rw-r--r-- 1 root root  70624 Jan  6  2013 ar7010_1_1.fw
-rw-r--r-- 1 root root  70624 Jan  6  2013 ar7010.fw
-rw-r--r-- 1 root root  15944 Jan  6  2013 ar9170.fw
-rw-r--r-- 1 root root  51312 Jan  6  2013 ar9271.fw
-rw-r--r-- 1 root root 246804 Jan  6  2013 ath3k-1.fw
drwxr-xr-x 1 root root     56 Feb 13  2013 brcm
-rw-r--r-- 1 root root  13388 Jan 14  2013 carl9170-1.fw
-rw-r--r-- 1 root root   8128 Jun  1  2013 dvb-usb-it9135-01.fw
-rw-r--r-- 1 root root   5817 Jun  1  2013 dvb-usb-it9135-02.fw
-rw-r--r-- 1 root root  72992 Jan  6  2013 htc_7010.fw
-rw-r--r-- 1 root root  51272 Jan  6  2013 htc_9271.fw
-rw-r--r-- 1 root root 118888 Jan  6  2013 lbtf_usb.bin
drwxr-xr-x 1 root root    650 Feb 13  2013 libertas
lrwxrwxrwx 1 root root     19 Jan  1  1970 libertas_cs.fw -> libertas/cf8385.bin
lrwxrwxrwx 1 root root     26 Jan  1  1970 libertas_cs_helper.fw -> libertas/cf8385_helper.bin
drwxr-xr-x 1 root root    156 Feb 13  2013 mwl8k
-rw-r--r-- 1 root root   8192 Jan  6  2013 rt2561.bin
-rw-r--r-- 1 root root   8192 Jan  6  2013 rt2561s.bin
-rw-r--r-- 1 root root   8192 Jan  6  2013 rt2661.bin
-rw-r--r-- 1 root root   8192 Jan  6  2013 rt2860.bin
-rw-r--r-- 1 root root   8192 Jan  6  2013 rt2870.bin
lrwxrwxrwx 1 root root     10 Jan  1  1970 rt3070.bin -> rt2870.bin
-rw-r--r-- 1 root root   4096 Jan  6  2013 rt3071.bin
lrwxrwxrwx 1 root root     10 Jan  1  1970 rt3090.bin -> rt2860.bin
-rw-r--r-- 1 root root   2048 Jan  6  2013 rt73.bin
drwxr-xr-x 1 root root     48 Feb 13  2013 RTL8192E
drwxr-xr-x 1 root root     28 Feb 13  2013 RTL8192SU
drwxr-xr-x 1 root root    208 Feb 13  2013 rtl_nic
drwxr-xr-x 1 root root    236 Aug  6 19:56 rtlwifi
lrwxrwxrwx 1 root root     19 Jan  1  1970 sd8385.bin -> libertas/sd8385.bin
lrwxrwxrwx 1 root root     26 Jan  1  1970 sd8385_helper.bin -> libertas/sd8385_helper.bin
lrwxrwxrwx 1 root root     22 Jan  1  1970 sd8686.bin -> libertas/sd8686_v8.bin
lrwxrwxrwx 1 root root     29 Jan  1  1970 sd8686_helper.bin -> libertas/sd8686_v8_helper.bin
lrwxrwxrwx 1 root root     19 Jan  1  1970 sd8688.bin -> libertas/sd8688.bin
lrwxrwxrwx 1 root root     26 Jan  1  1970 sd8688_helper.bin -> libertas/sd8688_helper.bin
lrwxrwxrwx 1 root root     23 Jan  1  1970 usb8388.bin -> libertas/usb8388_v5.bin

/lib/firmware/3.12.20+:
total 112
drwxrwxr-x 1 root root    30 Aug  6 19:56 cpia2
drwxrwxr-x 1 root root    78 Aug  6 19:56 edgeport
drwxrwxr-x 1 root root    64 Aug  6 19:56 emi26
drwxrwxr-x 1 root root    72 Aug  6 19:56 emi62
drwxrwxr-x 1 root root   128 Aug  6 19:56 kaweth
drwxrwxr-x 1 root root    54 Aug  6 19:56 keyspan_pda
-rw-r--r-- 1 root root 13847 May 25 23:16 mts_cdma.fw
-rw-r--r-- 1 root root 14067 May 25 23:16 mts_edge.fw
-rw-r--r-- 1 root root 13847 May 25 23:16 mts_gsm.fw
-rw-r--r-- 1 root root 13765 May 25 23:16 ti_3410.fw
-rw-r--r-- 1 root root 13764 May 25 23:16 ti_5052.fw
-rw-r--r-- 1 root root 23554 May 25 23:16 whiteheat.fw
-rw-r--r-- 1 root root  5626 May 25 23:16 whiteheat_loader.fw
drwxrwxr-x 1 root root    32 Aug  6 19:56 yam

/lib/firmware/3.12.20+/cpia2:
total 4
-rw-r--r-- 1 root root 824 May 25 23:16 stv0672_vp4.bin

/lib/firmware/3.12.20+/edgeport:
total 72
-rw-r--r-- 1 root root  7042 May 25 23:16 boot2.fw
-rw-r--r-- 1 root root  7250 May 25 23:16 boot.fw
-rw-r--r-- 1 root root 16566 May 25 23:16 down2.fw
-rw-r--r-- 1 root root 12942 May 25 23:16 down3.bin
-rw-r--r-- 1 root root 18098 May 25 23:16 down.fw

/lib/firmware/3.12.20+/emi26:
total 136
-rw-r--r-- 1 root root 104858 May 25 23:16 bitstream.fw
-rw-r--r-- 1 root root  28070 May 25 23:16 firmware.fw
-rw-r--r-- 1 root root   1942 May 25 23:16 loader.fw

/lib/firmware/3.12.20+/emi62:
total 168
-rw-r--r-- 1 root root 104858 May 25 23:16 bitstream.fw
-rw-r--r-- 1 root root   1910 May 25 23:16 loader.fw
-rw-r--r-- 1 root root  28798 May 25 23:16 midi.fw
-rw-r--r-- 1 root root  28606 May 25 23:16 spdif.fw

/lib/firmware/3.12.20+/kaweth:
total 16
-rw-r--r-- 1 root root 3276 May 25 23:16 new_code.bin
-rw-r--r-- 1 root root  622 May 25 23:16 new_code_fix.bin
-rw-r--r-- 1 root root  182 May 25 23:16 trigger_code.bin
-rw-r--r-- 1 root root   22 May 25 23:16 trigger_code_fix.bin

/lib/firmware/3.12.20+/keyspan_pda:
total 8
-rw-r--r-- 1 root root 1914 May 25 23:16 keyspan_pda.fw
-rw-r--r-- 1 root root 2018 May 25 23:16 xircom_pgs.fw

/lib/firmware/3.12.20+/yam:
total 16
-rw-r--r-- 1 root root 5302 May 25 23:16 1200.bin
-rw-r--r-- 1 root root 5302 May 25 23:16 9600.bin

/lib/firmware/ar3k:
total 220
-rw-r--r-- 1 root root 55244 Jan  6  2013 AthrBT_0x01020001.dfu
-rw-r--r-- 1 root root 40724 Jan  6  2013 AthrBT_0x01020200.dfu
-rw-r--r-- 1 root root 19164 Jan  6  2013 AthrBT_0x01020201.dfu
-rw-r--r-- 1 root root 36828 Jan  6  2013 AthrBT_0x11020000.dfu
-rw-r--r-- 1 root root 40652 Jan  6  2013 AthrBT_0x31010000.dfu
-rw-r--r-- 1 root root  1224 Jan  6  2013 ramps_0x01020001_26.dfu
-rw-r--r-- 1 root root  1274 Jan  6  2013 ramps_0x01020200_26.dfu
-rw-r--r-- 1 root root  1204 Jan  6  2013 ramps_0x01020200_40.dfu
-rw-r--r-- 1 root root   264 Jan  6  2013 ramps_0x01020201_26.dfu
-rw-r--r-- 1 root root   264 Jan  6  2013 ramps_0x01020201_40.dfu
-rw-r--r-- 1 root root  1796 Jan  6  2013 ramps_0x11020000_40.dfu
-rw-r--r-- 1 root root  1926 Jan  6  2013 ramps_0x31010000_40.dfu

/lib/firmware/brcm:
total 100
-rw-r--r-- 1 root root 97344 Jan  6  2013 bcm43xx-0.fw
-rw-r--r-- 1 root root   180 Jan  6  2013 bcm43xx_hdr-0.fw

/lib/firmware/libertas:
total 1732
-rw-r--r-- 1 root root  95132 Jan  6  2013 cf8381.bin
-rw-r--r-- 1 root root   2132 Jan  6  2013 cf8381_helper.bin
-rw-r--r-- 1 root root  97128 Jan  6  2013 cf8385.bin
-rw-r--r-- 1 root root   2140 Jan  6  2013 cf8385_helper.bin
lrwxrwxrwx 1 root root     15 Jan  1  1970 gspi8686.bin -> gspi8686_v9.bin
lrwxrwxrwx 1 root root     22 Jan  1  1970 gspi8686_hlp.bin -> gspi8686_v9_helper.bin
-rw-r--r-- 1 root root 126652 Jan  6  2013 gspi8686_v9.bin
-rw-r--r-- 1 root root   2140 Jan  6  2013 gspi8686_v9_helper.bin
-rw-r--r-- 1 root root 261596 Jan  6  2013 gspi8688.bin
-rw-r--r-- 1 root root   2140 Jan  6  2013 gspi8688_helper.bin
-rw-r--r-- 1 root root  96716 Jan  6  2013 sd8385.bin
-rw-r--r-- 1 root root   2140 Jan  6  2013 sd8385_helper.bin
-rw-r--r-- 1 root root 122800 Jan  6  2013 sd8686_v8.bin
-rw-r--r-- 1 root root   2464 Jan  6  2013 sd8686_v8_helper.bin
-rw-r--r-- 1 root root 124188 Jan  6  2013 sd8686_v9.bin
-rw-r--r-- 1 root root   2516 Jan  6  2013 sd8686_v9_helper.bin
-rw-r--r-- 1 root root 259172 Jan  6  2013 sd8688.bin
-rw-r--r-- 1 root root   2616 Jan  6  2013 sd8688_helper.bin
-rw-r--r-- 1 root root 127824 Jan  6  2013 usb8388_olpc.bin
-rw-r--r-- 1 root root 100292 Jan  6  2013 usb8388_v5.bin
-rw-r--r-- 1 root root 126644 Jan  6  2013 usb8388_v9.bin
-rw-r--r-- 1 root root 174332 Jan  6  2013 usb8682.bin

/lib/firmware/mwl8k:
total 276
-rw-r--r-- 1 root root 101976 Jan  6  2013 fmimage_8366_ap-2.fw
-rw-r--r-- 1 root root  96664 Jan  6  2013 fmimage_8366.fw
-rw-r--r-- 1 root root  73252 Jan  6  2013 fmimage_8687.fw
-rw-r--r-- 1 root root   2476 Jan  6  2013 helper_8366.fw
-rw-r--r-- 1 root root   2476 Jan  6  2013 helper_8687.fw

/lib/firmware/RTL8192E:
total 52
-rw-r--r-- 1 root root   344 Jan  6  2013 boot.img
-rw-r--r-- 1 root root   848 Jan  6  2013 data.img
-rw-r--r-- 1 root root 42944 Jan  6  2013 main.img

/lib/firmware/RTL8192SU:
total 68
-rw-r--r-- 1 root root 68368 Jan  6  2013 rtl8192sfw.bin

/lib/firmware/rtl_nic:
total 36
-rw-r--r-- 1 root root 2076 Jan  6  2013 rtl8105e-1.fw
-rw-r--r-- 1 root root 1492 Jan  6  2013 rtl8168d-1.fw
-rw-r--r-- 1 root root 1324 Jan  6  2013 rtl8168d-2.fw
-rw-r--r-- 1 root root 5500 Jan  6  2013 rtl8168e-1.fw
-rw-r--r-- 1 root root 3920 Jan  6  2013 rtl8168e-2.fw
-rw-r--r-- 1 root root 3872 Jan  6  2013 rtl8168e-3.fw
-rw-r--r-- 1 root root 3136 Jan  6  2013 rtl8168f-1.fw
-rw-r--r-- 1 root root 1232 Jan  6  2013 rtl8168f-2.fw

/lib/firmware/rtlwifi:
total 312
-rw-r--r-- 1 root root  13904 Dec 13  2013 rtl8188eufw.bin
-rw-r--r-- 1 root root  13540 Jan  6  2013 rtl8192cfw.bin
-rw-r--r-- 1 root root  14800 Jan  6  2013 rtl8192cfwU_B.bin
-rw-r--r-- 1 root root  14818 Jan  6  2013 rtl8192cfwU.bin
-rw-r--r-- 1 root root  16014 Jan  6  2013 rtl8192cufw.bin
-rw-r--r-- 1 root root  20526 Jan  6  2013 rtl8192defw.bin
-rw-r--r-- 1 root root  88856 Jan  6  2013 rtl8192sefw.bin
-rw-r--r-- 1 root root 122328 Jan  6  2013 rtl8712u.bin

I at least need the rt2870.bin to get my DX wlan to work (on the Hummingboard).

anaconda commented 10 years ago

Try firmware-ralink in Debian.

CurlyMoo commented 10 years ago

If that's true, then just make a dependency.

mk01 commented 10 years ago

some are part of standard packages all distributions provide like this

atmel-firmware - Firmware for Atmel at76c50x wireless networking chips.
bluez-firmware - Firmware for Bluetooth devices
dahdi-firmware-nonfree - DAHDI non-free firmware
ovmf - UEFI firmware for virtual machines
firmware-crystalhd - Crystal HD Video Decoder (firmware)
firmware-adi - Binary firmware for Analog Devices Inc. DSL modem chips
firmware-atheros - Binary firmware for Atheros wireless cards
firmware-bnx2 - Binary firmware for Broadcom NetXtremeII
firmware-bnx2x - Binary firmware for Broadcom NetXtreme II 10Gb
firmware-brcm80211 - Binary firmware for Broadcom 802.11 wireless cards
firmware-intelwimax - Binary firmware for Intel WiMAX Connection
firmware-ipw2x00 - Binary firmware for Intel Pro Wireless 2100, 2200 and 2915
firmware-ivtv - Binary firmware for iTVC15-family MPEG codecs (ivtv and pvrusb2 drivers)
firmware-iwlwifi - Binary firmware for Intel Wireless cards
firmware-libertas - Binary firmware for Marvell Libertas 8xxx wireless cards
firmware-linux - Binary firmware for various drivers in the Linux kernel (meta-package)
firmware-linux-nonfree - Binary firmware for various drivers in the Linux kernel
firmware-myricom - Binary firmware for Myri-10G Ethernet adapters
firmware-netxen - Binary firmware for QLogic Intelligent Ethernet (3000 and 3100 Series)
firmware-qlogic - Binary firmware for QLogic IBA7220, QLA1xxx, ISP2xxx and SP2x2
firmware-ralink - Binary firmware for Ralink wireless cards
firmware-realtek - Binary firmware for Realtek wired and wireless network adapters
firmware-samsung - Binary firmware for Samsung MFC video codecs
firmware-ti-connectivity - Binary firmware for TI Connectivity wireless network adapters
libertas-firmware - Firmware for Marvell's libertas wireless chip series (dummy package)
midisport-firmware - Firmware loader for M-Audio's MidiSport devices
firmware-zd1211 - binary firmware for the zd1211rw wireless driver
zd1211-firmware - transitional dummy package for firmware-zd1211

others are kernel version driver dependent (were part of kernel package once, are useless now), others are assembled inside zImage directly since few last recompilations. other group is supplied into /lib/firmware with kernel compilation and modules install.

Extra fw's should be just such which are not part of distros fw packages or part of kernel. Putting the distros packages as dependency is a way but all the packages would take up to 50MB space.

mk01 commented 10 years ago

btw curly I added realtek and ralink. it really shounld be there. btw: can you check 3.14 wifi modules configs ? I have the feeling it wasn't online at the time of your .config change o maybe you an just take the previous and merge int o3.14

CurlyMoo commented 10 years ago

btw curly I added realtek and ralink. it really shounld be there.

Then don't put it in but add the packages in the suggest list.

btw: can you check 3.14 wifi modules configs ? I have the feeling it wasn't online at the time of your .config change o maybe you an just take the previous and merge int o3.14

The pull request was to all kernel versions...

mk01 commented 10 years ago

actually the idea at the beginning was relevant ... first time install without eth0 and without FWs to wlan impossible.

CurlyMoo commented 9 years ago

Solves by installing the firmware-* packages by default.