little update

This commit is contained in:
Patrick Neumann 2021-11-09 15:34:37 +01:00
parent 13e88469ff
commit 05a96d057a
2 changed files with 52 additions and 29 deletions

View File

@ -52,8 +52,9 @@ FILES=()
HOOKS=(base udev block keyboard autodetect modconf filesystems fsck) HOOKS=(base udev block keyboard autodetect modconf filesystems fsck)
# COMPRESSION # COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression # Use this to compress the initramfs image. By default, zstd compression
# is used. Use 'cat' to create an uncompressed image. # is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="zstd"
#COMPRESSION="gzip" #COMPRESSION="gzip"
#COMPRESSION="bzip2" #COMPRESSION="bzip2"
#COMPRESSION="lzma" #COMPRESSION="lzma"

View File

@ -14,17 +14,27 @@
# Warranty: This program is distributed WITHOUT ANY WARRANTY # Warranty: This program is distributed WITHOUT ANY WARRANTY
# mapping archive to linux kernel version: # mapping archive to linux kernel version:
# - 1.20200902-1 = 5.4.51 # - 1.20211029 = 5.10.63 (https://github.com/raspberrypi/linux/archive/refs/tags/1.20211029.tar.gz)
# - 1.20200601+amd64-1 = 5.4.42 # - 1.20210831 = 5.10.60
# - 1.20200212-1 = 4.19.97 # - 1.20210805 = 5.10.52
# - 1.20200114-1 = 4.19.93 # - 1.20210527 = 5.10.17 (https://github.com/raspberrypi/linux/archive/refs/tags/raspberrypi-kernel_1.20210527-1.tar.gz)
# - 1.20190925-1 = 4.19.75 # - 1.20210201 = 5.10.11
# - 1.20190819-1 = 4.19.66 # - 1.20210111.master = 5.10.5 (https://github.com/raspberrypi/linux/archive/refs/tags/raspberrypi-kernel_1.20210111.master-1.tar.gz)
# - 1.20190718-1 = 4.19.58 # - 1.20210107.master = 5.10.4
# - 1.20190709-1 = 4.19.57 # - 1.20210108 = 5.4.83 (https://github.com/raspberrypi/linux/archive/refs/tags/raspberrypi-kernel_1.20210108-1.tar.gz)
# - 1.20190620-1 = 4.19.50 (32-Bit only!?) # - 1.20201201 = 5.4.79
# - 1.20190517-1 = 4.19.42 (32-Bit only!?) # - 1.20201022 = 5.4.72
# - 1.20190401-1 = 4.14.98 (32-Bit only!?) # - 1.20200902-1 = 5.4.51 (https://github.com/raspberrypi/linux/archive/refs/tags/raspberrypi-kernel_1.20200902-1.tar.gz)
# - 1.20200601+amd64-1 = 5.4.42 (https://github.com/raspberrypi/linux/archive/refs/tags/raspberrypi-kernel_1.20200601+arm64-1.tar.gz)
# - 1.20200212-1 = 4.19.97 (https://github.com/raspberrypi/linux/archive/refs/tags/raspberrypi-kernel_1.20200212-1.tar.gz)
# - 1.20200114-1 = 4.19.93
# - 1.20190925-1 = 4.19.75
# - 1.20190819-1 = 4.19.66
# - 1.20190718-1 = 4.19.58
# - 1.20190709-1 = 4.19.57
# - 1.20190620-1 = 4.19.50 (32-Bit only!?)
# - 1.20190517-1 = 4.19.42 (32-Bit only!?)
# - 1.20190401-1 = 4.14.98 (32-Bit only!?)
# check os: # check os:
readonly OS="Debian GNU/Linux 10" readonly OS="Debian GNU/Linux 10"
@ -75,26 +85,38 @@ fi
readonly CPUS="$( lscpu | awk '/^CPU\(s\):/ { print $NF; }' )" readonly CPUS="$( lscpu | awk '/^CPU\(s\):/ { print $NF; }' )"
readonly JOBS="$( echo "12 * 1.5 / 1" | bc )" readonly JOBS="$( echo "12 * 1.5 / 1" | bc )"
readonly RELEASES="1.20200114-1 readonly RELEASES="1.20211029
1.20200212-1 1.20210831
1.20200601+amd64-1 1.20210805
1.20200902-1 raspberrypi-kernel_1.20210527-1
1.20190925-1 raspberrypi-kernel_1.20210201-1
1.20190819-1 raspberrypi-kernel_1.20210111.master-1
1.20190718-1 raspberrypi-kernel_1.20210107.master-1
1.20190709-1 raspberrypi-kernel_1.20210108-1
1.20190620-1 raspberrypi-kernel_1.20211201-1
1.20190517-1 raspberrypi-kernel_1.20211022-1"
1.20190401-1 #raspberrypi-kernel_1.20200902-1
1.20190709-1 #1.20200601+amd64-1
1.20190620-1 #raspberrypi-kernel_1.20200212-1
1.20190517-1 #raspberrypi-kernel_1.20200114-1
1.20190401-1" #raspberrypi-kernel_1.20190925-1
#raspberrypi-kernel_1.20190819-1
#raspberrypi-kernel_1.20190718-1
#raspberrypi-kernel_1.20190709-1
#raspberrypi-kernel_1.20190620-1
#raspberrypi-kernel_1.20190517-1
#raspberrypi-kernel_1.20190401-1
#raspberrypi-kernel_1.20190709-1
#raspberrypi-kernel_1.20190620-1
#raspberrypi-kernel_1.20190517-1
#raspberrypi-kernel_1.20190401-1"
for release in ${RELEASES} ; do for release in ${RELEASES} ; do
# download, extract, version,... # download, extract, version,...
archive="raspberrypi-kernel_${release}.tar.gz" # archive="raspberrypi-kernel_${release}.tar.gz"
wget --timestamping "https://github.com/raspberrypi/linux/archive/${archive}" # wget --timestamping "https://github.com/raspberrypi/linux/archive/${archive}"
archive="${release}.tar.gz"
wget --timestamping "https://github.com/raspberrypi/linux/archive/refs/tags/${archive}"
[ -r "${archive}" ] || continue [ -r "${archive}" ] || continue
tar xzf "${archive}" tar xzf "${archive}"
rm "${archive}" rm "${archive}"