Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit fb59274

Browse files
committed
added install script
1 parent 0855ab7 commit fb59274

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

install.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apt-get install bc
2+
echo "cloning kernel source"
3+
git clone https://github.com/raspberrypi/linux kernel
4+
cd kernel
5+
FIRMWARE_HASH=$(zgrep "* firmware as of" /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | head -1 | awk '{ print $5 }')
6+
KERNEL_HASH=$(wget https://raw.github.com/raspberrypi/firmware/$FIRMWARE_HASH/extra/git_hash -O -)
7+
echo "checking out branch"
8+
git checkout $KERNEL_HASH
9+
echo "cleaning kernel source"
10+
make mrproper
11+
echo "applying kernel configuration"
12+
sudo modprobe configs
13+
zcat /proc/config.gz > .config
14+
make -j6 oldconfig
15+
echo "building kernel"
16+
make -j6
17+
cd ..
18+
echo "builing module"
19+
make -j6 -C kernel M=$(pwd) modules
20+
21+
22+
23+
24+
25+
26+
27+

0 commit comments

Comments
 (0)