Posts: 15
Joined: Tue Mar 28, 2017 9:58 pm

1.20170703-1 kernel packages

Thu Aug 03, 2017 8:13 pm

Does anyone know which git commit was used to build the kernel in the 1.20170703-1 version of raspberypi-kernel?

There are git tags corresponding to older builds of the kernel, but there's no tag for 1.20170703-1.

User avatar
Posts: 36105
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: 1.20170703-1 kernel packages

Thu Aug 03, 2017 8:30 pm

Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Posts: 15
Joined: Tue Mar 28, 2017 9:58 pm

Re: 1.20170703-1 kernel packages

Fri Aug 04, 2017 3:29 am

Aha, you're on to something there. The firmware git contains kernel builds, too. (Though, I'm going to look at the official one under github.com/raspberrypi/firmware)

Helpfully, there's a commit in firmware/ labelled "Bump to 4.9.35" (which is the version in 1.20170703-1). I compared the kernel7.img file from that commit with the one running on my Pi and they're the same. Even more helpfully, there's a file "extra/git_hash" which contains the commit (in github.com/raspberrypi/linux) used to build the kernel. Exactly what I was looking for!

Code: Select all

heath@hsandbox:~/src/rpi/firmware$ git status
HEAD detached at 715f2d9
nothing to commit, working directory clean
heath@hsandbox:~/src/rpi/firmware$ cksum boot/kernel7.img 
3746036631 4579248 boot/kernel7.img
heath@hsandbox:~/src/rpi/firmware$ ssh pi@raspberrypi cksum /boot/kernel7.img
pi@raspberrypi's password: 
3746036631 4579248 /boot/kernel7.img
heath@hsandbox:~/src/rpi/firmware$ cat extra/git_hash 
heath@hsandbox:~/src/rpi/firmware$ cd ../linux
heath@hsandbox:~/src/rpi/linux$ git checkout -b local-1.20170703-1 be2540e540f5442d7b372208787fb64100af0c54
Checking out files: 100% (473/473), done.
Switched to a new branch 'local-1.20170703-1'
heath@hsandbox:~/src/rpi/linux$ echo BOOM

Return to “Raspbian”