New package: rpi3-firmware-20170113
This commit is contained in:
parent
db0fe6eb1c
commit
5b983302f4
3 changed files with 49 additions and 0 deletions
1
srcpkgs/rpi3-firmware/files/cmdline.txt
Executable file
1
srcpkgs/rpi3-firmware/files/cmdline.txt
Executable file
|
@ -0,0 +1 @@
|
||||||
|
root=/dev/mmcblk0p2 rw rootwait console=ttyS0,115200 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 loglevel=4 elevator=noop
|
7
srcpkgs/rpi3-firmware/files/config.txt
Executable file
7
srcpkgs/rpi3-firmware/files/config.txt
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
# 64-bit mode
|
||||||
|
arm_control=0x200
|
||||||
|
|
||||||
|
enable_uart=1
|
||||||
|
|
||||||
|
device_tree=dtbs/bcm2837-rpi-3-b.dtb
|
||||||
|
kernel=vmlinux-rpi3
|
41
srcpkgs/rpi3-firmware/template
Normal file
41
srcpkgs/rpi3-firmware/template
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# Template file for 'rpi3-firmware'
|
||||||
|
_githash="6df93defc76d5b511838d6802a01a05072964582"
|
||||||
|
_gitshort="${_githash:0:7}"
|
||||||
|
|
||||||
|
pkgname=rpi3-firmware
|
||||||
|
version=20170113
|
||||||
|
revision=1
|
||||||
|
only_for_archs="aarch64 aarch64-musl"
|
||||||
|
wrksrc="firmware-${_githash}"
|
||||||
|
short_desc="Firmware files for the Raspberry Pi 3 (git ${_gitshort})"
|
||||||
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
|
license="3-clause-BSD"
|
||||||
|
homepage="https://github.com/raspberrypi/firmware"
|
||||||
|
distfiles="https://github.com/raspberrypi/firmware/archive/${_githash}.tar.gz"
|
||||||
|
checksum=45e243ce22d2f34f065328d52629cc9bbf52032a23862c6d4c1f044613fc0c48
|
||||||
|
nostrip=yes
|
||||||
|
|
||||||
|
conf_files="/boot/cmdline.txt /boot/config.txt"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
rm -f boot/*.img
|
||||||
|
rm -rf boot/overlays
|
||||||
|
rm -f boot/*.dtb
|
||||||
|
rm -f boot/COPYING.linux
|
||||||
|
|
||||||
|
vmkdir boot
|
||||||
|
cp -R boot/* ${DESTDIR}/boot
|
||||||
|
|
||||||
|
vmkdir usr/share/licenses/${pkgname}
|
||||||
|
mv ${DESTDIR}/boot/LICENCE.broadcom ${DESTDIR}/usr/share/licenses/${pkgname}
|
||||||
|
|
||||||
|
# Install configuration files.
|
||||||
|
vinstall ${FILESDIR}/cmdline.txt 644 boot
|
||||||
|
vinstall ${FILESDIR}/config.txt 644 boot
|
||||||
|
|
||||||
|
# Firmware for rpi3 wifi chip
|
||||||
|
for f in bin txt; do
|
||||||
|
$XBPS_FETCH_CMD https://archlinuxarm.org/builder/src/brcmfmac43430-sdio.${f}
|
||||||
|
vinstall brcmfmac43430-sdio.${f} 0644 usr/lib/firmware/brcm
|
||||||
|
done
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue