How do I get the source for the Nexus 7? - Nexus 7 Q&A, Help & Troubleshooting

I'm really only interested in the kernel source. I've downloaded the device/Asus/grouper and kernel/tegra repos, and honestly I can't make sense of either of them. I did see the hidden directory in /tegra -- I just couldn't figure out what to do with the contents. I'm looking to compare the stock kernel to a slightly modded one, I think for Android 4.1.x. I think the kernels are all 3.1.10, but I don't want to get distracted by any insignificant (for my purposes) changes.
Thanks,
Josh
Sent from my IdeaTabA2109A using XDA Premium HD app

$ git clone https://android.googlesource.com/kernel/tegra.git
$ git clone https://android.googlesource.com/platform/prebuilt
$ export PATH=$(pwd)/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
Sent from my MB525 using xda app-developers app

Harry GT-S5830 said:
$ git clone https://android.googlesource.com/kernel/tegra.git
$ git clone https://android.googlesource.com/platform/prebuilt
$ export PATH=$(pwd)/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
Sent from my MB525 using xda app-developers app
Click to expand...
Click to collapse
Thanks Harry, but I already downloaded the kernel/tegra repo. There is only one file that could contain the source -- /tegra/.git/objects/pack/pack-e87b183b176e2edfb220e041e98db2f565d5c725.pack. My system tells me it's a Pack200 Java archive, and that I don't have an application installed for it.
Since you said kernel/tegra was the correct repo, I guess I have the source. I'm sure the kernel is C, with some assembler thrown in, so it can't be a Java archive. So now my question is: how do I extract the source from this file?
Thanks,
Josh

Refer to http://forum.xda-developers.com/showthread.php?t=1748297. From what I gather (never build for N7) you use the prebuilt toolchain, the AOSP kernel and then the grouper patches
Sent from my MB525 using xda app-developers app

Harry GT-S5830 said:
Refer to http://forum.xda-developers.com/showthread.php?t=1748297. From what I gather (never build for N7) you use the prebuilt toolchain, the AOSP kernel and then the grouper patches
Sent from my MB525 using xda app-developers app
Click to expand...
Click to collapse
Will do. Thanks. By the way, do you know how I can extract that .pack file?

GTabJosh said:
Will do. Thanks. By the way, do you know how I can extract that .pack file?
Click to expand...
Click to collapse
Compilation process should do it automagically
Sent from my MB525 using xda app-developers app

Related

Calling on nexus devs, themers, please read

As some of you know a friend and team member parabola from acs is a java developer and he wrote an app called the acs updater. Now the app is from acs but the intention is for any dev to showcase their work. If you would like to have your work included in the app please visit here:
http://forum.xda-developers.com/showthread.php?t=1174964
And choose submit theme, app, rom, kernel etc to make it publicly available.
This app downloads the mod and flashes it for you.
Sent from my crespo4g using Tapatalk
Matr1x submitted... thanks dreams!
Np!
Sent from my crespo4g using Tapatalk
Where is the difference between ACS and ROM Manager?
Themes Apple Will also see of i have a nexus 4g or a regular nexus s?
Sent from my Nexus S using XDA Premium App
Bandis710 said:
Themes Apple Will also see of i have a nexus 4g or a regular nexus s?
Sent from my Nexus S using XDA Premium App
Click to expand...
Click to collapse
Yes it checks for the build info you shouldn't see my rom but you should see my themes. It should identify you as crespo when you start it
Sent from my crespo4g using Tapatalk
brainmaster said:
Where is the difference between ACS and ROM Manager?
Click to expand...
Click to collapse
Very similar so far the dev just got started. Its actually building into something that will keep people that use our work in the loop and provide a simple means of flashing. The thing its since we don't store the rom itself there no reason to not let any dev post work.
Sent from my crespo4g using Tapatalk
Nice and good idea but i guess it would be very hard to maintain( no offence intended).
Only checking the build prop is okay for roms but will be problematic concerning kernel and themes.
why is that? I'm not saying you wrong I'm not seeing why not
Sent from my crespo4g using Tapatalk
Interesting idea, does it do a proper flash for things? I heard somewhere that RM doesn't flash properly for certain things (cant remember what exactly).
Was there a reason to develop your own updater? I'm tempted to use it for my stuff though.
Sent from my Nexus S
Jonathon Grigg said:
Interesting idea, does it do a proper flash for things? I heard somewhere that RM doesn't flash properly for certain things (cant remember what exactly).
Was there a reason to develop your own updater? I'm tempted to use it for my stuff though.
Sent from my Nexus S
Click to expand...
Click to collapse
So far I've flashed the themes and rom. The original idea was he was building a in house updater to package all of acs's work. A central location to have it all but recently he decided to add in anyone who wanted to be included.
Sent from my crespo4g using Tapatalk
dreamsforgotten said:
So far I've flashed the themes and rom. The original idea was he was building a in house updater to package all of acs's work. A central location to have it all but recently he decided to add in anyone who wanted to be included.
Sent from my crespo4g using Tapatalk
Click to expand...
Click to collapse
Oh ok. Would you have any idea what the Extended Commands requirement is? Or an example? I always wondered how stuff was sent by RM.
Sent from my Nexus S
Jonathon Grigg said:
Oh ok. Would you have any idea what the Extended Commands requirement is? Or an example? I always wondered how stuff was sent by RM.
Sent from my Nexus S
Click to expand...
Click to collapse
I'll ask for you
Sent from my crespo4g using Tapatalk

How do i deodex a rom

Im running stock odex eh06
how do i deodex it? im bored with the look but am completely satisfied with performance. Been running it since leak and dont wanna flash the deodexed one in android development because of all the problems reported.
Is it as simple as deleting the .odex files? i delete them always when a new rom comes out. Ill be a real happy camper if its that simple
Sent from my SPH-D700 using XDA Premium App
No... You have to decompile the .odex files with baksmali.jar and then recompile them with smali.jar and then put them inside the aplication/jar... Search on google how to deodex a rom using baksmali... And one of the first ones should be a sdx wiki that tells you everything to do... Make sure you use the latest baksmali.jar and smali.jar whick i think is 1.2.8
Sent from my SPH-D710 using XDA App
deano0714 said:
No... You have to decompile the .odex files with baksmali.jar and then recompile them with smali.jar and then put them inside the aplication/jar... Search on google how to deodex a rom using baksmali... And one of the first ones should be a sdx wiki that tells you everything to do... Make sure you use the latest baksmali.jar and smali.jar whick i think is 1.2.8
Sent from my SPH-D710 using XDA App
Click to expand...
Click to collapse
Thanks deano always a great help
Sent from my SPH-D700 using XDA Premium App
A_Flying_Fox said:
Thanks deano always a great help
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
No problem... Waiting for root for the ET4G lol..
Sent from my SPH-D710 using XDA App
i coulda sworn i saw a topic under the "Most Recent" tab when i got on the xda app about root on the ET4G. but the post that was shown was "This is actually really entertaining." so idk if it was about them brainstorming or actually implementing it lol i didnt open it cuz i dont like to be jealous
http://forum.xda-developers.com/showthread.php?t=990238

[HELP][i9506]Need help to finish my PAC Man rom

Okay so im trying to build a ROM from source, im using ubuntu 14.04, and im having a problem using breakfast command, it doesnt find 9506 codename (that being said, im talking about typing ks01lte after breakfast command) on github, so im kinda stuck, can someone help me out?
Sorry about my english :F
Sent from my GT-I9506 using XDA Free mobile app
diegodu27 said:
Okay so im trying to build a ROM from source, im using ubuntu 14.04, and im having a problem using breakfast command, it doesnt find 9506 codename (that being said, im talking about typing ks01lte after breakfast command) on github, so im kinda stuck, can someone help me out?
Sorry about my english :F
Sent from my GT-I9506 using XDA Free mobile app
Click to expand...
Click to collapse
why do you use breakfast at all?
pac gets build with the build-pac.sh you dont need to run anything at all
sorry if i missed something :>
I dont know, i just started, im a noobie so i dont understand too much about it, I tough I would need to use breakfast a select my device codename to make it work, and about what you just answered, I'm completely lost lol
PAC rom imho is the easierst rom to build from source.
have a look at
https://github.com/PAC-man/pacman#getting-started
basically you have to
init a repo
sync the repo
run build-pac.sh
thats it.
make sure you have all needed programs installed for this but you should be able to find tutorials of which software you need to build android on ubuntu.
But what about the device codename? Don't need it at all?
Sent from my GT-I9506 using XDA Free mobile app
diegodu27 said:
But what about the device codename? Don't need it at all?
Sent from my GT-I9506 using XDA Free mobile app
Click to expand...
Click to collapse
have a look at the link i posted.
yes you need the device codename
if your device codename is ks01lte then you have to run:
build-pac.sh ks01lte
but please read the tutorial i posted, its <30 lines of text and explains ~99.9% of the build process
Thank you, if i still having trouble ill PM you
Sent from my GT-I9506 using XDA Free mobile app
diegodu27 said:
Thank you, if i still having trouble ill PM you
Sent from my GT-I9506 using XDA Free mobile app
Click to expand...
Click to collapse
you're welcome.
Sure do that
Just a little question, is there any chance that my device isnt supported? I'm afraid of getting an error as it did when I type breakfast command.
Sent from my GT-I9506 using XDA Free mobile app
diegodu27 said:
Just a little question, is there any chance that my device isnt supported? I'm afraid of getting an error as it did when I type breakfast command.
Sent from my GT-I9506 using XDA Free mobile app
Click to expand...
Click to collapse
I'm almost positive that is not supported by pac yet.
If it is supported by CM it shouldnt be a problem, iirc the script will get the needed files by cm.
If there is only an unofficial build of cm you can add the device like it is explained in the tutorial i posted.
so i think you are just hours / days away of your i9506 port of PAC.
if you've done everything correct you can be the maintainer of this rom, and then it will get official supported in nightlies ....
Souds good sounds good! Thanks once again
Sent from my GT-I9506 using XDA Free mobile app
diegodu27 said:
Souds good sounds good! Thanks once again
Sent from my GT-I9506 using XDA Free mobile app
Click to expand...
Click to collapse
i just did a test run:
http://jenkins.pac-rom.com/job/volletest/device=ks01lte,label=volletest/71/console
so its not working out of the box and there seems to be no official supprt by cm yet.
you will have to add the device manually, for this the tutorial will help you.
have a look at http://forum.xda-developers.com/showthread.php?t=2590142, thats an unofficial port of cm that might help you.
i haven't done this yet so i cant help you anymore sorry... but is is possible and you'll learn something by doing it. you can drop a message in the g+ community, maybe some out there can give you a hand...
Thanks, you already help me a lot dude
Sent from my GT-I9506 using XDA Free mobile app

[Calling All Developers] CyanogenMod 11 BringUp for HTC Desire 816

Hello All,
I have been working CyanogenMod bring up for Desire 816 since a few weeks now. Currently, I have prepared the device tree and the vendor tree that I guess should be enough to get it booted(Or bootloop atleast ), except one thing -
> I'm having troubles implementing dt.img in the device tree to use with kernel/recovery and I did used the flag to use the dtb but, when I tested it with recovery, it got stuck on "Entering Recovery" screen for a few seconds and then rebooting and I'm pretty sure that it'd be a single silly mistake stopping from it to boot. And if recovery boots, theb most probably kernel boots(Using a prebuilt one) amd therefore increasing the chances for the ROM to boot!
EDIT - We are using prebuilts but we got recovery to boot. Here are the latest trees - https://github.com/desire816-dev
Great... Im no developer but..... Thanks for ur efforts.. And all the best for further development...
Sent from my HTC Desire 816 dual sim using XDA Free mobile app
Not sure, but I think you are using the wrong recovery fstab style. This is the cm 10.1 style, not cm 11
It needs to looks somewhat more like this
You don't have the kernel source, right?
dummie999 said:
Not sure, but I think you are using the wrong recovery fstab style. This is the cm 10.1 style, not cm 11
It needs to looks somewhat more like this
You don't have the kernel source, right?
Click to expand...
Click to collapse
This is the fstab that my boardconfig links to - https://github.com/v-superuser/android_device_htc_a5dwg/blob/cm-11.0/rootdir/etc/fstab.qcom
The other one's useless.
Sent from my HTC Desire 816 dual sim using Tapatalk
My mistake.
Try tearing apart your current recovery and check for differences.
Make sure you have the correct offsets for the ramdisk and devtree image
https://github.com/JackpotClavin/an...72f80986171c7e401528457942/BoardConfig.mk#L34
JackpotClavin said:
Make sure you have the correct offsets for the ramdisk and devtree image
https://github.com/JackpotClavin/an...72f80986171c7e401528457942/BoardConfig.mk#L34
Click to expand...
Click to collapse
Sorry for a late reply but, ramdisk offset and other stuff is right. Must be something else. Wondering why @kinghunki doesn't shares his trees.
View /proc/last_msg after it reboots
Sent from my LG-VS980 using XDA Free mobile app
JackpotClavin said:
View /proc/last_msg after it reboots
Sent from my LG-VS980 using XDA Free mobile app
Click to expand...
Click to collapse
Here is the last_kmsg - https://www.mediafire.com/?m2h8f54qbic6llz
That doesn't look like the last kmsg of the failed boot
Sent from my LG-VS980 using XDA Free mobile app
JackpotClavin said:
That doesn't look like the last kmsg of the failed boot
Sent from my LG-VS980 using XDA Free mobile app
Click to expand...
Click to collapse
IDK, I flashed recovery, it got stuck on Entering Recovery, rebooted, and I pulled the last_kmsg just after it rebooted to system.
Okay then it seems that the kernel never booted far enough to initialize the ram console. I'd double check your devtree offsets.
Sent from my LG-VS980 using XDA Free mobile app
i will pm Grarak he is great developer maybe he can help you
Is the kernel source already available? If yes please upload it to github
Can anyone send me stock boot.img?
Sent from my GT-I9205 using XDA Free mobile app
Grarak said:
Is the kernel source already available? If yes please upload it to github
Can anyone send me stock boot.img?
Sent from my GT-I9205 using XDA Free mobile app
Click to expand...
Click to collapse
There's no kernel source yet. Here's the stock boot.img http://www.androidfilehost.com/?fid=23501681358558515 !
you don't have any devtree offset, that's your problem
should be:
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02008000 --dt device/htc/htc_a5dwg/prebuilt/dt.img --tags_offset 0x01e00000
JackpotClavin said:
you don't have any devtree offset, that's your problem
should be:
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02008000 --dt device/htc/htc_a5dwg/prebuilt/dt.img --tags_offset 0x01e00000
Click to expand...
Click to collapse
Oh, well, I'll check and post. Thanks a lot.
Sent from my HTC Desire 816 dual sim using Tapatalk
I just forked your tree
https://github.com/Grarak/android_device_htc_a5dwg
You really need a clean up
Almost all files are useless and you should also use 8960-common tree
I will send you some pull request or you can just pick my commits if you want
Grarak said:
I just forked your tree
https://github.com/Grarak/android_device_htc_a5dwg
You really need a clean up
Almost all files are useless and you should also use 8960-common tree
I will send you some pull request or you can just pick my commits if you want
Click to expand...
Click to collapse
The device uses MSM8226 chipset!
Thanks for your efforts.
v_superuser said:
The device uses MSM8226 chipset!
Thanks for your efforts.
Click to expand...
Click to collapse
Yes I know
But I checked other htc snapdragon 400 (actually only found htc one mini msm8930) they use msm8960 common tree
But I guess you're right
I will try to put everything in one single tree
Sent from my GT-I9205 using XDA Free mobile app

[DEV] Custom kernel info

https://mega.co.nz/#!gUQR1YCa!40Jek-QVjYMWc5AEt5hPeh0S-48kMxv7lOVl1xXhBZw
here is a flashable kernel, nothing has been done to it except compile from stock sources. no i wont make any changes, i dont plan on doing a custom kernel for a phone i dont even know what it looks like. this is purely so that people who actually have teh phone can learn on how to make a kernel. if you decide to flash this make sure to do a backup first as it has different modules for wifi etc.
source can be found at https://mega.co.nz/#!URh0HJyT!41SiQTCPO_wkd13wVd4l-36bRJoT5yeUms70uduGGBM i used the ML4 tar.
Not booting fone vibrate once and stuck in bootloop .
Sent from my SM-G7102 using Tapatalk 2
alright ill try again tomorrow. i have a feeling its my dtb files. can someone post the stock boot.img?
shabbypenguin said:
alright ill try again tomorrow. i have a feeling its my dtb files. can someone post the stock boot.img?
Click to expand...
Click to collapse
Here is the stock boot.img
http://d-h.st/gZY
Sent from my SM-G7102 using Tapatalk 2
lets see how that works https://mega.co.nz/#!pcJwgJLK!bBtJu2wUoHTER3XHdorUsgVX3WdgwoYMgjC1TC7r3uc
shabbypenguin said:
lets see how that works https://mega.co.nz/#!pcJwgJLK!bBtJu2wUoHTER3XHdorUsgVX3WdgwoYMgjC1TC7r3uc
Click to expand...
Click to collapse
link not working
Sent from my SM-G7102 using Tapatalk 2
balliboxer said:
link not working
Sent from my SM-G7102 using Tapatalk 2
Click to expand...
Click to collapse
Link is working fine for me.
mukulsoni said:
Link is working fine for me.
Click to expand...
Click to collapse
Then pls upload it to some other site .
Sent from my SM-G7102 using Tapatalk 2
balliboxer said:
Then pls upload it to some other site .
Sent from my SM-G7102 using Tapatalk 2
Click to expand...
Click to collapse
here you go http://www.mediafire.com/download/d30sc2e98e37eb3/Shabby-Beta-g7102.zip
Edit :
Just flashed the it successfully and booted but no wifi
Yup wifi is not working as said by balliboxer.....
Sent from my SM-G7102 using XDA Free mobile app
shabbypenguin said:
lets see how that works https://mega.co.nz/#!pcJwgJLK!bBtJu2wUoHTER3XHdorUsgVX3WdgwoYMgjC1TC7r3uc
Click to expand...
Click to collapse
Tested no kernel version shown no wifi .Also SE for Android status is disabled .
Sent from my SM-G7102 using Tapatalk 2
@shabbypenguin, you made my work easier?
Sent from my GT-I9082 using Tapatalk
someone who has the stock kernel
adb shell
su
cat /proc/config.gz > /sdcard/config.gz
and
ls -l /system/lib/modules
upload that please, seems the wifi module isnt being built and the defconfig doesnt have any info on it surprisingly.
shabbypenguin said:
someone who has the stock kernel
adb shell
su
cat /proc/config.gz > /sdcard/config.gz
and
ls -l /system/lib/modules
upload that please, seems the wifi module isnt being built and the defconfig doesnt have any info on it surprisingly.
Click to expand...
Click to collapse
no such file found in /proc/ folder
Sent from my SM-G7102 using Tapatalk 2
balliboxer said:
no such file found in /proc/ folder
Sent from my SM-G7102 using Tapatalk 2
Click to expand...
Click to collapse
sorry, no .gz in teh first one
cat /proc/config > /sdcard/config.gz
shabbypenguin said:
sorry, no .gz in teh first one
cat /proc/config > /sdcard/config.gz
Click to expand...
Click to collapse
still same result .
Check ss .
Sent from my SM-G7102 using Tapatalk 2
Im getting like this.....
Sent from my SM-G7102 using XDA Free mobile app
ok so you guys have a prima wifi chip that had its source excluded from the kernel source, as well as a few other things. trying to merge in some of the stuff and see if i can get the modules to compile.
shabbypenguin said:
ok so you guys have a prima wifi chip that had its source excluded from the kernel source, as well as a few other things. trying to merge in some of the stuff and see if i can get the modules to compile.
Click to expand...
Click to collapse
and also , how can i put dtb files inside the boot.img??
##W4TCH0UT## said:
and also , how can i put dtb files inside the boot.img??
Click to expand...
Click to collapse
as part of your mkbootimg command, if you run mkbootimg it will tell ya.

Categories

Resources