I've adopted this package. For version 1.5, the PKGBUILD requires several makedepends that are available either from Parabola's libre repository or the AUR:
arm-linux-gnueabi-binutilssh-elf-gccsh-elf-newlibxtensa-elf-gcc
| Git Clone URL: | https://aur.archlinux.org/linux-libre-firmware.git (read-only, click to copy) |
|---|---|
| Package Base: | linux-libre-firmware |
| Description: | Firmware files for Linux-libre |
| Upstream URL: | https://jxself.org/firmware |
| Keywords: | firmware linux-firmware |
| Licenses: | LicenseRef-WHENCE |
| Conflicts: | linux-firmware, linux-firmware-git |
| Provides: | linux-firmware |
| Submitter: | onny |
| Maintainer: | ShinKouyo |
| Last Packager: | ShinKouyo |
| Votes: | 4 |
| Popularity: | 0.54 |
| First Submitted: | 2017-09-30 13:24 (UTC) |
| Last Updated: | 2026-06-16 11:41 (UTC) |
I've adopted this package. For version 1.5, the PKGBUILD requires several makedepends that are available either from Parabola's libre repository or the AUR:
arm-linux-gnueabi-binutils sh-elf-gcc sh-elf-newlib xtensa-elf-gcccan't compile. sprintf test fails in mpfr-4.1.0.
@dkaparis Do you want to take over the package? I am orphaning it.
It appears the issue is solved by adding --param=min-pagesize=0 to the CFLAGS in atusb/Makefile, see http://www.fsfla.org/pipermail/linux-libre/2022-June/003486.html.
I have created a patch to work around it and it builds successfully for me. It can be pulled from https://git.kaparis.name/dimitri/linux-libre-firmware.git, branch workaround-gcc-bug-105523.
Build currently seems to fail, due to error compiling a file in atusb module:
...
make[1]: Entering directory '/.../linux-libre-firmware-1.4/src/atusb'
CC atusb.o
CC board.o
In file included from board.c:26:
board.c: In function 'panic':
board.h:32:33: error: array subscript 0 is outside array bounds of 'volatile uint8_t[0]' {aka 'volatile unsigned char[]'} [-Werror=array-bounds]
32 | #define CLR_2(p, b) PORT##p &= ~(1 << (b))
| ^~
board.h:38:25: note: in expansion of macro 'CLR_2'
38 | #define CLR_1(p, b) CLR_2(p, b)
| ^~~~~
board.h:44:25: note: in expansion of macro 'CLR_1'
44 | #define CLR(n) CLR_1(n##_PORT, n##_BIT)
| ^~~~~
board.c:98:17: note: in expansion of macro 'CLR'
98 | CLR(LED);
| ^~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:165: board.o] Error 1
make[1]: Leaving directory '/.../linux-libre-firmware-1.4/src/atusb'
make: *** [Makefile:40: atusb] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I can't compile it: [code]make[4]: Leaving directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/ath9k_htc/target_firmware/build/magpie' make[4]: Entering directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/ath9k_htc/target_firmware/build/magpie' [ 93%] Generating fw.elf [ 96%] Generating fw.bin [100%] Generating htc_7010.fw make[4]: Leaving directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/ath9k_htc/target_firmware/build/magpie' [100%] Built target gen-firmware make[3]: Leaving directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/ath9k_htc/target_firmware/build/magpie' make[2]: Leaving directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/ath9k_htc/target_firmware/build/magpie' cp build/k2/htc_.fw build/magpie/htc_.fw . make[1]: Leaving directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/ath9k_htc/target_firmware' cd atusb && make atusb.dfu make[1]: Entering directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/atusb' CC atusb.o CC board.o CC board_app.o CC sernum.o CC spi.o CC descr.o CC ep0.o CC dfu_common.o CC usb.o CC app-atu2.o CC mac.o CC board_atusb.o make version.o make[2]: Entering directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/atusb' CC version.o make[2]: Leaving directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/atusb' CC atusb.elf avr-size atusb.elf text data bss dec hex filename 5776 156 691 6623 19df atusb.elf BUILD atusb.bin build #0, -rwxr-xr-x 1 user user 5932 Apr 28 12:40 atusb.bin cp atusb.bin atusb.dfu dfu-suffix -a atusb.dfu -d 0x0030 \ -p 0x1540 -v 0x20b7 dfu-suffix (dfu-util) 0.11
Copyright 2011-2012 Stefan Schmidt, 2013-2020 Tormod Volden This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Suffix successfully added to file make[1]: Leaving directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/atusb' cd av7110 && make make[1]: Entering directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/av7110' arm-linux-gnueabi-gcc -mbig-endian -c Boot.S make[1]: arm-linux-gnueabi-gcc: No such file or directory make[1]: [Makefile:8: bootcode.bin] Error 127 make[1]: Leaving directory '/home/user/.cache/yay/linux-libre-firmware/src/linux-libre-firmware-1.4/src/av7110' make: [Makefile:43: av7110] Error 2 ==> ERROR: A failure occurred in build(). Aborting... -> error making: linux-libre-firmware[/code]
Hello, this don't need to conflicts linux-firmware-git
@danisanti I don't know but in the previous version of *libre kernels we have to install ath9k module. But I don't know. I'm a newbee.
@xanc Can you please instruct how to install ath9k module? I don't seem to have an atheros wireless card. It is a Broadcom.
Pinned Comments
ShinKouyo commented on 2026-06-16 12:33 (UTC) (edited on 2026-06-17 07:20 (UTC) by ShinKouyo)
I've adopted this package. For version 1.5, the
PKGBUILDrequires severalmakedependsthat are available either from Parabola'slibrerepository or the AUR:arm-linux-gnueabi-binutilssh-elf-gccsh-elf-newlibxtensa-elf-gcc