On 04/04/2013 09:31 PM, Jon Medhurst (Tixy) wrote:
> On Wed, 2013-04-03 at 16:08 +0000, Young, Chad wrote:
>> I am looking for the kernel source 3.5.0-rc7 for the ARM versatile express 
>> system, does anyone know where I can find it?
> 
> I've found another trick, if you can actually booting a Linaro kernel
> that you want the source for then early during boot you should see on
> the serial console something like:
> 
> [    0.000000] Linux version 3.9.0-rc3-00212-g0f66281 ...
> 

You won't get the commit ID always. It basically prints the commit ID if
current HEAD is not signed-tagged (or something like that). That is why,
the hwpack kernels print like this.

Linux version 3.9.0-1-linaro-arndale

> or if you have a console running on the device entering
> 
>    uname -a
> 
> will give the same result. The part of the name after the '-g' part is
> the SHA1 of the git commit from which the kernel was built, e.g. in the
> above example it is 0f66281.
> 
> You can then use this commit hash at the end of the URL for the gitweb
> interface of the to the git repo like this:
> 
> https://git.linaro.org/gitweb?p=kernel/linux-linaro-tracking.git;a=commit;h=0f66281
> 
> and if the kernel was indeed built from that git repo then you should
> see the tip commit of the kernel source used to build the kernel.
> 
> Now, I don't know how long our kernel names have included the SHA1 of
> the commit, so for old kernels this may not work. Also, some kernel
> releases didn't come out of the main Linaro kernel git. So this method
> isn't foolproof.
> 


-- 
Tushar Behera

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to