Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Jun 15, 2021
1 parent 8e5b0bc commit 0e76787
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export DIST_NAME=RealtimePi
export DIST_VERSION=0.5.0
export MODULES="base(network,kernel(realtimepi), usage-statistics)"
export MODULES="base(network,realtimepi, usage-statistics)"
export KERNEL_SOURCE_CLEANUP="yes"

export BASE_IMAGE_ENLARGEROOT=2000
Expand Down
37 changes: 37 additions & 0 deletions src/modules/realtimepi/start_chroot_script
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env bash
# RealtimePi script
# Written by Guy Sheffer <guysoft at gmail dot com>
# GPL V3
########

set -x
set -e

# Source error handling, leave this in place
source /common.sh
install_cleanup_trap

wget https://github.com/kdoren/linux/releases/download/5.10.35-rt39-scarlett-2/linux-image-5.10.35-rt39-v7l+_5.10.35-8_armhf.deb
wget https://github.com/kdoren/linux/releases/download/5.10.35-rt39-scarlett-2/linux-libc-dev_5.10.35-8_armhf.deb

KERN=5.10.35-rt39-v7l+
mkdir -p /boot/$KERN/overlays/
cp -d /usr/lib/linux-image-$KERN/overlays/* /boot/$KERN/overlays/
cp -dr /usr/lib/linux-image-$KERN/* /boot/$KERN/
touch /boot/$KERN/overlays/README
mv /boot/vmlinuz-$KERN /boot/$KERN/
mv /boot/System.map-$KERN /boot/$KERN/
cp /boot/config-$KERN /boot/$KERN/
cat >> /boot/config.txt << EOF
[all]
kernel=vmlinuz-$KERN
# initramfs initrd.img-$KERN
os_prefix=$KERN/
overlay_prefix=overlays/
[all]
EOF

dpkg -i *.deb
rm -v *.deb

0 comments on commit 0e76787

Please sign in to comment.