66 lines
2.3 KiB
Bash
Executable File
66 lines
2.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# 18.04 bionic buster
|
|
# 17.10 artful stretch
|
|
|
|
# To obtain the source from which they are built fetch the commit below:
|
|
|
|
# git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack v5.7-rc6
|
|
|
|
# https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7-rc6/
|
|
|
|
|
|
KERNEL_VERSION="5.7.0"
|
|
|
|
URL=kernel.ubuntu.com
|
|
RELEASE=bionic
|
|
APP=~kernel-ppa
|
|
PPA_KEY="17C622B0"
|
|
VERSION=mainline # ppa
|
|
packages="
|
|
linux-headers-${KERNEL_VERSION} \
|
|
linux-image-${KERNEL_VERSION} \
|
|
linux-modules-${KERNEL_VERSION} \
|
|
"
|
|
|
|
#sudo echo "deb http:/${URL}/${APP}/${VERSION} ${RELEASE} main" > /etc/apt/sources.list-available/${APP}.list
|
|
#sudo echo "deb-src http://${URL}/${APP}/${VERSION} ${RELEASE} main" >> /etc/apt/sources.list-available/${APP}.list
|
|
#
|
|
#sudo ln -sf /etc/apt/sources.list-available/${APP}.list /etc/apt/sources.list.d/${APP}.list
|
|
#
|
|
## Bypass apt-proxy for mkusb packages
|
|
#if [ -d /etc/apt/apt.conf.d/02proxy ]; then
|
|
# if [ ! -z $(grep ${URL}) ]; then
|
|
# echo "Acquire::http::Proxy { \"${URL}\" DIRECT; };" >> /etc/apt/apt.conf.d/02proxy
|
|
# fi
|
|
#else
|
|
# echo "Acquire::http::Proxy { \"${URL}\" DIRECT; };" >> /etc/apt/apt.conf.d/02proxy
|
|
#fi
|
|
#
|
|
#
|
|
#sudo apt update
|
|
#
|
|
#sudo apt install -y --no-install-recommends $packages
|
|
|
|
ARCH=amd64
|
|
ARCH=arm64
|
|
|
|
sudo apt-get upgrade
|
|
sudo apt-get update
|
|
cd /tmp/
|
|
|
|
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7-rc6/linux-headers-5.7.0-050700rc6_5.7.0-050700rc6.202005172030_all.deb
|
|
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7-rc6/linux-headers-5.7.0-050700rc6-generic_5.7.0-050700rc6.202005172030_${ARCH}.deb
|
|
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7-rc6/linux-image-unsigned-5.7.0-050700rc6-generic_5.7.0-050700rc6.202005172030_${ARCH}.deb
|
|
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7-rc6/linux-modules-5.7.0-050700rc6-generic_5.7.0-050700rc6.202005172030_${ARCH}.deb
|
|
|
|
# https://gitlab.com/ayufan-repos/rock64/linux-mainline-kernel/-/tree/mainline-master
|
|
wget -c http://github.com/ayufan-rock64/linux-mainline-kernel/releases/download/5.6.0-1137-ayufan/linux-headers-5.6.0-1137-ayufan-ge57f05e7bf8f_5.6.0-1137-ayufan_arm64.deb
|
|
wget -c http://github.com/ayufan-rock64/linux-mainline-kernel/releases/download/5.6.0-1137-ayufan/linux-image-5.6.0-1137-ayufan-ge57f05e7bf8f_5.6.0-1137-ayufan_arm64.deb
|
|
|
|
sudo dpkg -i *.deb
|
|
sudo apt-get update
|
|
|
|
|
|
|