Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37514235
en ru br
Репозитории ALT

Группа :: Система/Настройка/Прочее
Пакет: rpi4-boot-switch

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define noub rpi4-boot-nouboot
%define ubfw rpi4-boot-uboot-fw
%define uboot rpi4-boot-uboot
%define ftrigger rpi4-boot-nouboot.filetrigger
%define ftrgrname rpi4-boot-nouboot-filetrigger
%define ftrigger2 rpi4-boot-uboot.filetrigger
%define ftrgrname2 rpi4-boot-uboot-filetrigger
%define vars rpi4-boot-vars
%define rpicommon rpi4-boot-common
%define rpiconf config.txt
%define rpicmd cmdline.txt

Name: rpi4-boot-switch
Version: 0.12
Release: alt1
Summary: Switch of boot mode for Raspberry Pi 4
License: GPL-2.0-or-later
Group: System/Configuration/Other
Packager: Dmitry Terekhin <jqt4 at altlinux.org>
Url: https://git.altlinux.org/people/jqt4/packages/rpi4-boot-switch.git
ExclusiveArch: %arm aarch64
Source0: %noub
Source1: %ubfw
Source2: %uboot
Source3: README.ru
Source4: README.en
Source5: %ftrigger
Source6: %ftrigger2
Source8: %vars
Source9: %rpicommon
Source10: %rpiconf
Source11: %rpicmd

%description
Switch of boot mode for Raspberry Pi 4
In Alt, it is customary to load the kernel, dtb and initrd
using u-boot and configuration in extlinux.conf,
or using grub.
Firmware Raspberry Pi 4 loads and modifies dtb
according to config.txt configuration.
U-boot and grub can't do that.
The scripts in this package allow you to switch boot modes:
- Firmware loads the kernel, dtb, and initrd. U-boot is not used.
armv7l (armh) 32-bit system only:
- Firmware loads dtb. U-boot loads the kernel and initrd.
- U-boot loads the kernel, dtb, and initrd.
aarch64 64-bit system only:
- U-boot loads grub, grub loads kernel, dtb and initrd.

%description -l ru_RU.UTF-8
п÷п╣я─п╣п╨п╩я▌я┤п╟я┌п╣п╩я▄ я─п╣п╤п╦п╪п╬п╡ п╥п╟пЁя─я┐п╥п╨п╦ п╢п╩я▐ Raspberry Pi 4
п▓ п░п╩я▄я┌ п©я─п╦п╫я▐я┌п╬ п╥п╟пЁя─я┐п╤п╟я┌я▄ я▐п╢я─п╬, dtb п╦ initrd
я│ п©п╬п╪п╬я┬я▄я▌ u-boot п╦я│п©п╬п╩я▄п╥я┐я▐ п╨п╬п╫я└п╦пЁя┐я─п╟я├п╦я▌ п╡ extlinux.conf,
п╦п╩п╦ я│ п©п╬п╪п╬я┴я▄я▌ grub.
Firmware Raspberry Pi 4 п╥п╟пЁя─я┐п╤п╟п╣я┌ п╦ п╪п╬п╢п╦я└п╦я├п╦я─я┐п╣я┌ dtb
п╡ я│п╬п╬я┌п╡п╣я┌я│п╡п╦п╦ я│ п╨п╬п╫я└п╦пЁя┐я─п╟я├п╦п╣п╧ config.txt.
U-boot п╦ grub я┌п╟п╨ п╫п╣ я┐п╪п╣я▌я┌.
п║п╨я─п╦п©я┌я▀ п╡ я█я┌п╬п╪ п©п╟п╨п╣я┌п╣ п©п╬п╥п╡п╬п╩я▐я▌я┌ п©п╣я─п╣п╨п╩я▌я┤п╟я┌я▄ я─п╣п╤п╦п╪я▀ п╥п╟пЁя─я┐п╥п╨п╦:
- Firmware п╥п╟пЁя─я┐п╤п╟п╣я┌ я▐п╢я─п╬, dtb п╦ initrd. U-boot п╫п╣ п╦я│п©п╬п╩я▄п╥я┐п╣я┌я│я▐.
п╒п╬п╩я▄п╨п╬ 32-п╠п╦я┌п╫п╟я▐ я│п╦я│я┌п╣п╪п╟ armv7l (armh):
- Firmware п╥п╟пЁя─я┐п╤п╟п╣я┌ dtb. U-boot п╥п╟пЁя─я┐п╤п╟п╣я┌ я▐п╢я─п╬ п╦ initrd.
- U-boot п╥п╟пЁя─я┐п╤п╟п╣я┌ я▐п╢я─п╬, dtb п╦ initrd.
п╒п╬п╩я▄п╨п╬ 64-п╠п╦я┌п╫п╟я▐ я│п╦я│я┌п╣п╪п╟ aarch64:
- U-boot п╥п╟пЁя─я┐п╤п╟п╣я┌ grub, grub п╥п╟пЁя─я┐п╤п╟п╣я┌ я▐п╢я─п╬, dtb п╦ initrd.

%package -n %ftrgrname
Summary: Do a kernel update on /mnt/FIRMPART or /boot/efi
Group: System/Configuration/Other
Requires: %name

%description -n %ftrgrname
This filetrigger executes "rpi4-boot-nouboot --default"
to do a kernel update on /mnt/FIRMPART or /boot/efi

%package -n %ftrgrname2
Summary: Do a u-boot and firmware update on /mnt/FIRMPART or /boot/efi
Group: System/Configuration/Other
Requires: %name

%description -n %ftrgrname2
This filetrigger executes "rpi4-boot-uboot --update-uboot-only"
to do a u-boot and firmware update on files in directories
/usr/share/u-boot/rpi_3/ and /usr/share/u-boot/rpi_4/
armv7l (armh) 32-bit system only:
/usr/share/u-boot/rpi_3_32b/kernel7.img is rename to
uboot-rpi_3_32b.bin
/usr/share/u-boot/rpi_4_32b/kernel7.img is rename to
uboot-rpi_4_32b.bin
aarch64 64-bit system only:
/usr/share/u-boot/rpi_3/kernel8.img is rename to
uboot-rpi_3.bin
/usr/share/u-boot/rpi_4/kernel8.img is rename to
uboot-rpi_4.bin

%install
install -Dpm 0755 %SOURCE0 %buildroot%_sbindir/%noub
install -Dpm 0755 %SOURCE1 %buildroot%_sbindir/%ubfw
install -Dpm 0755 %SOURCE2 %buildroot%_sbindir/%uboot
install -m 644 %SOURCE3 ./
install -m 644 %SOURCE4 ./
install -Dpm 0755 %SOURCE5 %buildroot%_rpmlibdir/%ftrigger
install -Dpm 0755 %SOURCE6 %buildroot%_rpmlibdir/%ftrigger2
install -Dpm 0644 %SOURCE8 %buildroot%_sbindir/%vars
install -Dpm 0644 %SOURCE9 %buildroot%_sbindir/%rpicommon
mkdir -p %buildroot%_datadir/%name
install -Dpm 0644 %SOURCE10 %buildroot%_datadir/%name/%rpiconf
install -Dpm 0644 %SOURCE11 %buildroot%_datadir/%name/%rpicmd

%ifarch %arm
sed -i 's/^arm_64bit=/# arm_64bit=/ ; s/.bin/_32b.bin/g' \
%buildroot%_datadir/%name/%rpiconf
%endif

%files
%doc README.ru README.en
%_sbindir/%noub
%_sbindir/%ubfw
%_sbindir/%uboot
%_sbindir/%vars
%_sbindir/%rpicommon
%_datadir/%name/
%_datadir/%name/%rpiconf
%_datadir/%name/%rpicmd

%files -n %ftrgrname
%_rpmlibdir/%ftrigger

%files -n %ftrgrname2
%_rpmlibdir/%ftrigger2

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin