andersfugmann / t2-debian-kernel Goto Github PK
View Code? Open in Web Editor NEWThis project forked from t2linux/t2-ubuntu-kernel
Debian Kernel for T2 Macs.
This project forked from t2linux/t2-ubuntu-kernel
Debian Kernel for T2 Macs.
As the title says. I can supply more info as needed, but it's been a problem since at least 6.6.1
EDIT: Also, my WiFi card is unreliable, the keyboard backlight doesn't work, and the machine when in "sleep" mode has the battery die within 7 hours
Hello,
I am looking for the possibility of updating my Kernel proxmox (Linux 5.15.74-1-pve) with the patches and the T2 drivers. I use a macmini 8.1. Thanks
Hi
Could you test whether running this script is updating the kernel on Debian.
If yes, I could add it to the apt repo for Ubuntu/Debian
#!/bin/bash
#upgrading script apple linux T2 Kernel
if [ $USER != root ]
then
sudo chmod 755 $0
sudo $0 $1
exit 0
fi
set -e
cd /tmp
latest=$(curl -sL https://github.com/andersfugmann/T2-Debian-Kernel/releases/latest/ | grep "<title>Release" | awk -F " " '{print $2}' )
if [[ ${#latest} = 7 ]]
then
latestkver=$(echo $latest | cut -d "v" -f 2 | cut -d "-" -f 1 | awk '{print $1".0-1"}')
latestk=$(echo $latest | cut -c 2- | cut -d "-" -f 1 | awk '{print $1".0-t2"}')
else
latestkver=$(echo $latest | cut -d "v" -f 2)
latestk=$(echo $latest | cut -c 2- | cut -d "-" -f 1 | awk '{print $1"-t2"}')
fi
currentk=$(uname -r)
existingK=($(dpkg --list | grep linux-image- | grep 't2\|mbp' | cut -d ' ' -f 2-3 ))
if [ \( $latestk != $currentk \) ]; then
echo "Downloading new kernel $latest"
curl -L https://github.com/andersfugmann/T2-Debian-Kernel/releases/download/${latest}/linux-headers-${latestk}_${latestkver}_amd64.deb > headers.deb
curl -L https://github.com/andersfugmann/T2-Debian-Kernel/releases/download/${latest}/linux-image-${latestk}_${latestkver}_amd64.deb > image.deb
if [ -f headers.deb -a -f image.deb ]; then
#install
echo "Installing new kernel $latest"
apt install ./headers.deb
apt install ./image.deb
#shutdown -r 02:00 "reboot scheduled for the next 2am to update runnning kernel"
rm -f headers.deb image.deb
#uninstall old t2 kernels but preserve current version as a backup
for kernel in "${existingK[@]}"
do
if [ \( $kernel != linux-image-$currentk \) ]; then
echo "$kernel needs to be removed"
version=${kernel/#linux-image-}
#purge old t2 kernel
dpkg -P linux-headers-$version
dpkg -P linux-image-$version
fi
done
if [[ ($1 = --remove-current) ]]; then
echo "Current kernel linux-image-$currentk shall also be removed"
dpkg -P linux-headers-$currentk
dpkg -P linux-image-$currentk
fi
fi
else
echo "Kernel is up to date"
fi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.