Mageia Bugzilla – Attachment 12180 Details for
Bug 28011
add Rpi firmware in nonfree repo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Spec proposal
rpi-firmware.spec (text/plain), 6.23 KB, created by
Jybz
on 2021-01-04 15:39:10 CET
(
hide
)
Description:
Spec proposal
Filename:
MIME Type:
Creator:
Jybz
Created:
2021-01-04 15:39:10 CET
Size:
6.23 KB
patch
obsolete
># Run tests in check section >%bcond_without check >%global debug_package %{nil} > >%global gitsystem github.com >%global gitowners raspberrypi >%global gitreposi firmware ># https://github.com/raspberrypi/firmware > >%global tag 1.20201201 > > >%global common_description %{expand: >This repository contains pre-compiled binaries of the current Raspberry Pi >kernel and modules, userspace libraries, and bootloader/GPU firmware. } > > >Name: raspberrypi-firmware >Version: %{tag} >Release: %mkrel 1 >Summary: Nonfree firmware of raspberry pi >ExclusiveArch: armv7hl aarch64 ># BuildArch: noarch ># For a full list of valid (and invalid) licenses, see /usr/share/rpmlint/TagsCheck.py ># License: Distributable >License: Proprietary ># For other groups, see /usr/share/rpmlint/config.d/distribution.exceptions.conf >Group: System/Kernel and hardware > >URL: https://%{gitsystem}/%{gitowners}/%{gitreposi} >Source0: https://%{gitsystem}/%{gitowners}/%{gitreposi}/archive/%{version}.tar.gz > > >%description >%{common_description} > > >This package contains blob binaries to boot raspberry pi 2, 3 and 4. >%{name}. > > >%prep >%setup -q -n %{gitreposi}-%{version} > > >%build >cat <<EOT >./config.txt ># Get more options/information on http://elinux.org/RPiconfig ># or on https://www.raspberrypi.org/documentation/configuration/config-txt.md ># ># !!!!! This file will get overwritten by updates. Please use !!!!! ># !!!!! extraconfig.txt if you want to set additional !!!!! ># !!!!! configuration options or add dt overlays. !!!!! > ># Our kernels are located on a Linux partition. Chainload U-Boot to load them. >kernel=u-boot.bin > ># Use 32 MB for GPU for all RPis (Min 16 - Max 192 MB) ># We don't need that much memory reserved for it, because we drive most hardware ># from Linux, not the VPU OS >gpu_mem=32 > ># Turbo mode: 0 = enable dynamic freq/voltage - 1 = always max >force_turbo=0 ># Start in turbo mode for 30 seconds or until cpufreq sets a frequency >initial_turbo=30 > ># DO NOT overvoltage manually to not void warranty! >over_voltage=0 > ># Fix mini UART input frequency, and setup/enable up the UART. >enable_uart=1 > ># Disable warning overlays as they don't work well together with linux's graphical output >avoid_warnings=1 > ># This overlay fixes divergences between the RPi device tree and what ># upstream provides >dtoverlay=upstream > ># overscan is only needed on old TV sets and if analog gear is in the chain (e.g. DPI) >disable_overscan=1 > ># u-boot expects RPi's UART to have a compatible string not supported anymore in ># linux upstream, while this is fixed, make sure the name shows up in the ># device-tree. This is only needed for RPi, RPi2 and RPi0, but applied ># generally so as to avoid complexity. >dtoverlay=uboot-bcm2835-pl011 > >[pi1] >#!!! armv5 and armv6 is not supported by Mageia. ># # Max ARM freq (default 700 MHz) ># arm_freq=840 ># ># # Max core (GPU) freq (default 250 MHz) ># core_freq=375 ># ># # SDRAM freq (default 400) ># sdram_freq=400 > >[pi2] > ># Prevent bootcode.bin changing UART baudrate between loading u-boot and executing u-boot. ># gpu_freq=250 > >[pi3] > ># These are not applied automatically? Needed to use respective upstream drivers. >dtoverlay=vc4-kms-v3d,cma-default >dtoverlay=dwc2 > >[pi4] > >dtoverlay=disable-vc4 > >[all] > ># Allow u-boot to set arm_control >include ubootconfig.txt > ># Allow user overrides of config options >include extraconfig.txt >EOT > >cat <<EOT >./ubootconfig.txt ># Boot in AArch64 mode >arm_64bit=1 >EOT > >%install >install -d %{buildroot}/boot/overlays ># install -d %{buildroot}${_usrsrc}/${name} ># install -d %{buildroot}${_libdir}/${name} >install -d %{buildroot}%{_datadir}/%{name}/extra > >install -D -m 644 extra/dt-blob.dts %{buildroot}%{_datadir}/%{name}/extra/ >install -D -m 644 boot/bcm2709-rpi-2-b.dtb %{buildroot}/boot/ >install -D -m 644 boot/bcm2710-rpi-2-b.dtb %{buildroot}/boot/ >install -D -m 644 boot/bcm2710-rpi-3-b.dtb %{buildroot}/boot/ >install -D -m 644 boot/bcm2710-rpi-3-b-plus.dtb %{buildroot}/boot/ >install -D -m 644 boot/bcm2710-rpi-cm3.dtb %{buildroot}/boot/ >install -D -m 644 boot/bcm2711-rpi-400.dtb %{buildroot}/boot/ >install -D -m 644 boot/bcm2711-rpi-4-b.dtb %{buildroot}/boot/ >install -D -m 644 boot/bcm2711-rpi-cm4.dtb %{buildroot}/boot/ >install -D -m 644 boot/overlays/* %{buildroot}/boot/overlays > >#First blob not used by rpi4 >install -D -m 644 boot/bootcode.bin %{buildroot}/boot/ >install -D -m 644 ./config.txt %{buildroot}/boot/ >install -D -m 644 ./ubootconfig.txt %{buildroot}/boot/ > ># #Normal blob >install -D -m 644 boot/fixup.dat %{buildroot}/boot/ >install -D -m 644 boot/fixup4.dat %{buildroot}/boot/ >install -D -m 644 boot/start.elf %{buildroot}/boot/ >install -D -m 644 boot/start4.elf %{buildroot}/boot/ ># #Debug (implicitly used with start_debug=1) >install -D -m 644 boot/fixup_db.dat %{buildroot}/boot/ >install -D -m 644 boot/fixup4db.dat %{buildroot}/boot/ >install -D -m 644 boot/start4db.elf %{buildroot}/boot/ >install -D -m 644 boot/start_db.elf %{buildroot}/boot/ ># #Low GPU Memory (=16MB) >install -D -m 644 boot/fixup_cd.dat %{buildroot}/boot/ >install -D -m 644 boot/fixup4cd.dat %{buildroot}/boot/ >install -D -m 644 boot/start4cd.elf %{buildroot}/boot/ >install -D -m 644 boot/start_cd.elf %{buildroot}/boot/ ># #Testing versions (eXtra features) (like camera module) (implicitly used with start_x=1 ) : >install -D -m 644 boot/fixup_x.dat %{buildroot}/boot/ >install -D -m 644 boot/fixup4x.dat %{buildroot}/boot/ >install -D -m 644 boot/start4x.elf %{buildroot}/boot/ >install -D -m 644 boot/start_x.elf %{buildroot}/boot/ > > ># For files, be the more explicit >%files >%license boot/LICENCE.broadcom boot/COPYING.linux >%doc documentation/* >/boot/bootcode.bin >/boot/config.txt >/boot/ubootconfig.txt >/boot/fixup.dat >/boot/fixup4.dat >/boot/start.elf >/boot/start4.elf >/boot/fixup_db.dat >/boot/fixup4db.dat >/boot/start4db.elf >/boot/start_db.elf >/boot/fixup_cd.dat >/boot/fixup4cd.dat >/boot/start4cd.elf >/boot/start_cd.elf >/boot/fixup_x.dat >/boot/fixup4x.dat >/boot/start4x.elf >/boot/start_x.elf >%{_datadir}/%{name}/extra/dt-blob.dts >/boot/bcm2709-rpi-2-b.dtb >/boot/bcm2710-rpi-2-b.dtb >/boot/bcm2710-rpi-3-b.dtb >/boot/bcm2710-rpi-3-b-plus.dtb >/boot/bcm2710-rpi-cm3.dtb >/boot/bcm2711-rpi-400.dtb >/boot/bcm2711-rpi-4-b.dtb >/boot/bcm2711-rpi-cm4.dtb >/boot/overlays/*
# Run tests in check section %bcond_without check %global debug_package %{nil} %global gitsystem github.com %global gitowners raspberrypi %global gitreposi firmware # https://github.com/raspberrypi/firmware %global tag 1.20201201 %global common_description %{expand: This repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware. } Name: raspberrypi-firmware Version: %{tag} Release: %mkrel 1 Summary: Nonfree firmware of raspberry pi ExclusiveArch: armv7hl aarch64 # BuildArch: noarch # For a full list of valid (and invalid) licenses, see /usr/share/rpmlint/TagsCheck.py # License: Distributable License: Proprietary # For other groups, see /usr/share/rpmlint/config.d/distribution.exceptions.conf Group: System/Kernel and hardware URL: https://%{gitsystem}/%{gitowners}/%{gitreposi} Source0: https://%{gitsystem}/%{gitowners}/%{gitreposi}/archive/%{version}.tar.gz %description %{common_description} This package contains blob binaries to boot raspberry pi 2, 3 and 4. %{name}. %prep %setup -q -n %{gitreposi}-%{version} %build cat <<EOT >./config.txt # Get more options/information on http://elinux.org/RPiconfig # or on https://www.raspberrypi.org/documentation/configuration/config-txt.md # # !!!!! This file will get overwritten by updates. Please use !!!!! # !!!!! extraconfig.txt if you want to set additional !!!!! # !!!!! configuration options or add dt overlays. !!!!! # Our kernels are located on a Linux partition. Chainload U-Boot to load them. kernel=u-boot.bin # Use 32 MB for GPU for all RPis (Min 16 - Max 192 MB) # We don't need that much memory reserved for it, because we drive most hardware # from Linux, not the VPU OS gpu_mem=32 # Turbo mode: 0 = enable dynamic freq/voltage - 1 = always max force_turbo=0 # Start in turbo mode for 30 seconds or until cpufreq sets a frequency initial_turbo=30 # DO NOT overvoltage manually to not void warranty! over_voltage=0 # Fix mini UART input frequency, and setup/enable up the UART. enable_uart=1 # Disable warning overlays as they don't work well together with linux's graphical output avoid_warnings=1 # This overlay fixes divergences between the RPi device tree and what # upstream provides dtoverlay=upstream # overscan is only needed on old TV sets and if analog gear is in the chain (e.g. DPI) disable_overscan=1 # u-boot expects RPi's UART to have a compatible string not supported anymore in # linux upstream, while this is fixed, make sure the name shows up in the # device-tree. This is only needed for RPi, RPi2 and RPi0, but applied # generally so as to avoid complexity. dtoverlay=uboot-bcm2835-pl011 [pi1] #!!! armv5 and armv6 is not supported by Mageia. # # Max ARM freq (default 700 MHz) # arm_freq=840 # # # Max core (GPU) freq (default 250 MHz) # core_freq=375 # # # SDRAM freq (default 400) # sdram_freq=400 [pi2] # Prevent bootcode.bin changing UART baudrate between loading u-boot and executing u-boot. # gpu_freq=250 [pi3] # These are not applied automatically? Needed to use respective upstream drivers. dtoverlay=vc4-kms-v3d,cma-default dtoverlay=dwc2 [pi4] dtoverlay=disable-vc4 [all] # Allow u-boot to set arm_control include ubootconfig.txt # Allow user overrides of config options include extraconfig.txt EOT cat <<EOT >./ubootconfig.txt # Boot in AArch64 mode arm_64bit=1 EOT %install install -d %{buildroot}/boot/overlays # install -d %{buildroot}${_usrsrc}/${name} # install -d %{buildroot}${_libdir}/${name} install -d %{buildroot}%{_datadir}/%{name}/extra install -D -m 644 extra/dt-blob.dts %{buildroot}%{_datadir}/%{name}/extra/ install -D -m 644 boot/bcm2709-rpi-2-b.dtb %{buildroot}/boot/ install -D -m 644 boot/bcm2710-rpi-2-b.dtb %{buildroot}/boot/ install -D -m 644 boot/bcm2710-rpi-3-b.dtb %{buildroot}/boot/ install -D -m 644 boot/bcm2710-rpi-3-b-plus.dtb %{buildroot}/boot/ install -D -m 644 boot/bcm2710-rpi-cm3.dtb %{buildroot}/boot/ install -D -m 644 boot/bcm2711-rpi-400.dtb %{buildroot}/boot/ install -D -m 644 boot/bcm2711-rpi-4-b.dtb %{buildroot}/boot/ install -D -m 644 boot/bcm2711-rpi-cm4.dtb %{buildroot}/boot/ install -D -m 644 boot/overlays/* %{buildroot}/boot/overlays #First blob not used by rpi4 install -D -m 644 boot/bootcode.bin %{buildroot}/boot/ install -D -m 644 ./config.txt %{buildroot}/boot/ install -D -m 644 ./ubootconfig.txt %{buildroot}/boot/ # #Normal blob install -D -m 644 boot/fixup.dat %{buildroot}/boot/ install -D -m 644 boot/fixup4.dat %{buildroot}/boot/ install -D -m 644 boot/start.elf %{buildroot}/boot/ install -D -m 644 boot/start4.elf %{buildroot}/boot/ # #Debug (implicitly used with start_debug=1) install -D -m 644 boot/fixup_db.dat %{buildroot}/boot/ install -D -m 644 boot/fixup4db.dat %{buildroot}/boot/ install -D -m 644 boot/start4db.elf %{buildroot}/boot/ install -D -m 644 boot/start_db.elf %{buildroot}/boot/ # #Low GPU Memory (=16MB) install -D -m 644 boot/fixup_cd.dat %{buildroot}/boot/ install -D -m 644 boot/fixup4cd.dat %{buildroot}/boot/ install -D -m 644 boot/start4cd.elf %{buildroot}/boot/ install -D -m 644 boot/start_cd.elf %{buildroot}/boot/ # #Testing versions (eXtra features) (like camera module) (implicitly used with start_x=1 ) : install -D -m 644 boot/fixup_x.dat %{buildroot}/boot/ install -D -m 644 boot/fixup4x.dat %{buildroot}/boot/ install -D -m 644 boot/start4x.elf %{buildroot}/boot/ install -D -m 644 boot/start_x.elf %{buildroot}/boot/ # For files, be the more explicit %files %license boot/LICENCE.broadcom boot/COPYING.linux %doc documentation/* /boot/bootcode.bin /boot/config.txt /boot/ubootconfig.txt /boot/fixup.dat /boot/fixup4.dat /boot/start.elf /boot/start4.elf /boot/fixup_db.dat /boot/fixup4db.dat /boot/start4db.elf /boot/start_db.elf /boot/fixup_cd.dat /boot/fixup4cd.dat /boot/start4cd.elf /boot/start_cd.elf /boot/fixup_x.dat /boot/fixup4x.dat /boot/start4x.elf /boot/start_x.elf %{_datadir}/%{name}/extra/dt-blob.dts /boot/bcm2709-rpi-2-b.dtb /boot/bcm2710-rpi-2-b.dtb /boot/bcm2710-rpi-3-b.dtb /boot/bcm2710-rpi-3-b-plus.dtb /boot/bcm2710-rpi-cm3.dtb /boot/bcm2711-rpi-400.dtb /boot/bcm2711-rpi-4-b.dtb /boot/bcm2711-rpi-cm4.dtb /boot/overlays/*
View Attachment As Raw
Actions:
View
Attachments on
bug 28011
: 12180