android-kernel


Unable to checkout msm source code for Android Hammerhead kernel


To checkout source code for msm Hammerhead android kernel, I followed the following steps.
[1] Downloaded msm kernel source for android.
$ git clone https://android.googlesource.com/kernel/msm.git
[2] Checked commit message for Hammerhead kernel in my AOSP.
commit 8b392a30f1228e890fa0f7b39598f3b1c73cea94
Author: The Android Open Source Project
Date: Thu Dec 5 15:38:00 2013 -0800
Snapshot to fc777b6d3b2b20ba7270059dd2df284c94844abf
Change-Id: I81ee5ccb10876cbc1413442a7bc256e888c0fcdd
[3] In msm directory where i downloaded source code in [1],
git checkout fc777b6d3b2b20ba7270059dd2df284c94844abf
I get the following error
fatal: reference is not a tree: fc777b6d3b2b20ba7270059dd2df284c94844abf
How can i get the correct SHA1 for msm kernel corresponding to kernel binaries ?
Finally found the solution.
Google changed the way they are adding new kernel binaries to AOSP code.
Instead of using SHA1 as commit message, they are using snapshot id.
Below are the steps to checkout the correct version of msm code.
[1] Run the following command on your existing kernel binary found in device/lge/hammerhead-kernel.
bzgrep -a 'Linux version' vmlinux.bz2
[2] This will give you the following output. May be a different SHA1 in your case.
Linux version 3.4.0-gadb2201 (android-build#vpbs1.mtv.corp.google.com) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Wed Nov 20 14:42:53 PST 2013
Linux version CIFS VFS Client for Linux<7>%s: sess setup type %d
[3] The required SHA1 ID is adb2201. Note: skip the letter 'g'.
[4] Now checkout with this SHA1 in your msm directory.
git checkout adb2201
Now you are on the same branch in kernel source as the kernel binary in AOSP code.

Related Links

what is the battery driver function and power_supply class function?
How to patch android kernel for using an external wifi adapter
How do I change the path while executing make file_defconfig Android kernel?
Android kernel : How to create /dev/video0 before ueventd daemon gets started?
Is it possible to write an app to interface and activate the underlying linux kernel device driver?
Unable to checkout msm source code for Android Hammerhead kernel

Categories

HOME
google-api-php-client
hashmap
spagobi
framework7
elm
ravendb
uber-api
pheatmap
gnupg
numeral.js
spring-tool-suite
size
systemc
libtiff
after-effects
django-admin
conemu
jasonette
csrf-protection
telerik-reporting
wijmo
opennlp
poltergeist
pingfederate
minitab
vision
quote
lightswitch-2013
preg-match
media-queries
stormpath
preg-match-all
data-manipulation
siesta-swift
phpfreechat
mapbox-gl
mmenu
force-layout
disassembling
qwerty
dynamics-crm-2013
xenforo
android-fingerprint-api
texmaker
thin
cubic-spline
apache-fop
upstart
zip4j
errordocument
paxos
forever
sybase-asa
objective-c-swift-bridge
medium.com
httplistener
log4c
py2app
qpid
disque
packagist
associative-array
pyke
srand
comobject
wireshark-dissector
purge
varargs
census
remobjects
dereference
tween
jsonpickle
cdt
nsbutton
p4java
expected-exception
app42
monomac
prettify
c18
wsdl-2.0
trusted
propertyeditor
dbproviderfactories
xmlspy
xdomainrequest
disclosure
propagation
xsdobjectgen
castle-monorail
meego
sector
signal-handling

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile