TheDude23
Posts: 2
Joined: Wed Feb 04, 2015 5:53 pm

get git_hash of running SMP kernel of RPI 2

Wed Feb 04, 2015 6:14 pm

Dear Raspberry-Pro's,

I would like to compile some additional modules to the actual linux kernel on a raspberry pi 2. I have easily managed to do so on the raspberry pi 1 with:
zcat /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | grep '* firmware as of' | head -n 1 | sed -e 's/\ \*\ firmware as of \(.*\)$/\1/'
and getting the git_hash-file by browsing for it in:
https://github.com/raspberrypi/firmware ... BOVE/extra
The downloading the actual kernel with git:
git clone --depth 100 https://github.com/raspberrypi/linux.git
and doing a checkout with the content of the git_hash
Then cross compiling and adding the modules to the lib directory and executing:
sudo depmod -a

But how can I get the hash of the armv7-version of the kernel to perform the same ticks with for the Pi2?

Thanks in advance!

Return to “Advanced users”