Hey guys,I am here to show you how to compile AOKP JB for Pico.
Currently there is no AOKP JB device tree that will work.But this will help in future if someone is interested.
What you need:
Ubuntu 12.04 or 12.10 (64bit,will not work on 32bit)
Terminal
Decent hardware (at least 4GB RAM and dual-core CPU)
Required packages
Attention
Brain
Click to expand...
Click to collapse
Installing the packages
Just copy-paste this in terminal:
apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev zlib1g-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc pngcrush
Click to expand...
Click to collapse
Setup Java
In terminal,copy-paste this:
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java6-installer
apt-get install oracle-java6-set-default
Click to expand...
Click to collapse
Download Google repo tool and sync the source
-Google repo tool
mkdir ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Click to expand...
Click to collapse
Now reboot your computer.
-Sync AOKP source
mkdir ~/aokp_jb
cd ~/aokp_jb
repo init -u git://github.com/AOKP/platform_manifest.git -b jb
repo sync
Click to expand...
Click to collapse
Now get a coffe,or two,or three...or go to sleep.Will take some time.
After repo sync:
-Setup the vendor tree
Download the vendor tree and extract proprietary folder in archive to /aokp_jb/android/system/vendor/htc/pico (create the folders manually)
Click to expand...
Click to collapse
-Setup the device tree
Here is the problem.Currently the device tree will just not compile.Devs could help.Isn't really hard,need to modify the CM10 device tree.
Click to expand...
Click to collapse
-Setup the kernel source
Download the kernel 3.0 source and extract files and folders in archive to /aokp_jb/android/system/kernel/htc/pico (create folders manually)
Click to expand...
Click to collapse
Download links in 2nd post
Now you are ready to build.
Copy-paste this in terminal
. build/envsetup.sh
brunch aokp_pico-userdebug -jX
replace x with your cpu cores number +1-2
Click to expand...
Click to collapse
Now go out with friends.If you succesfully got a build,locate the build in /aokp_jb/android/system/out
I make this guide for people who want to compile AOKP JB .I don't have this device anymore but I could help for device tree.
Vendor tree:
https://github.com/sakindia123/ics-vendor-pico/archive/master.zip
Kernel 3.0 source:
https://github.com/sakindia123/htc_pico_kernel_3.x/archive/master.zip
1. No need for each ROM new guide!
2. U copied half a tut from me (other half is just rewrite..)
Sent from a chocolate cake.
1. No need for each ROM new guide!<br />
2. U copied half a tut from me (other half is just rewrite..)<br />
<br />
Sent from a chocolate cake.
Click to expand...
Click to collapse
Oh,Really? -_-
Sent from my LG-F160K using xda app-developers app
oblikas said:
Oh,Really? -_-
Sent from my LG-F160K using xda app-developers app
Click to expand...
Click to collapse
Thanks for the guide but no offence ...seriously no need for tutorials on all the ROMs. Then this forum will become a guide thread. Any who.. thanks.
Sent from my HTC Explorer A310e using xda app-developers app
3gb ram would do
Sent from my HTC Explorer A310e using xda premium
subh98 said:
3gb ram would do
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
use linux swap to increase the ram
russelldias said:
use linux swap to increase the ram
Click to expand...
Click to collapse
I have 3gb ram and a swap partition if 3gb on my hard drive..
Do I still need to make a swap on the use drive (more ram) ..
Sent from my HTC Explorer A310e using xda app-developers app
artistaditya said:
I have 3gb ram and a swap partition if 3gb on my hard drive..
Do I still need to make a swap on the use drive (more ram) ..
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
better safe than sorry
ngoralph said:
better safe than sorry
Click to expand...
Click to collapse
I mean isn't a 3gb swap on hard drive more than enough for a pc with 3gb ddr3 ram..??
Sent from my HTC Explorer A310e using xda app-developers app
artistaditya said:
I mean isn't a 3gb swap on hard drive more than enough for a pc with 3gb ddr3 ram..??
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
hmmm i have 3gb swap for 6gb ram
Related
I want a script I'm making to download an app and transfer... But wget wont work?
Android>iOS... Android FTW!
Bump?...
Android>iOS... Android FTW!
Have you tried apt-get
Sent from my Inspire 4G using xda premium
Gizmoe said:
Have you tried apt-get
Sent from my Inspire 4G using xda premium
Click to expand...
Click to collapse
So apt-get + url?
Android>iOS... Android FTW!
apt-get not found...
Android>iOS... Android FTW!
Josepho1997 said:
apt-get not found...
Android>iOS... Android FTW!
Click to expand...
Click to collapse
apt-get install -d URL will just download with the -d command. Works on Linux but not 100% sure about android.
Sent from my Inspire 4G using xda premium
Gizmoe said:
apt-get install -d URL will just download with the -d command. Works on Linux but not 100% sure about android.
Sent from my Inspire 4G using xda premium
Click to expand...
Click to collapse
I'll try it. I'll post the results later because study hall is about to end.
Android>iOS... Android FTW!
Still,apt-get not found
Android>iOS... Android FTW!
I'm also working on another script, but its not working. Here it is:
Code:
#!/system/bin/sh
busybox mount -o remount,rw /system
cd /system/framework
cp framework-res.apk /sdcard
rm /system/framework/framework-res.apk
cd /sdcard
mv framework-res.apk /system/framework
chmod 644 /system/framework/framework-res.apk
Android>iOS... Android FTW!
I get an error like cross-device link or something...
Android>iOS... Android FTW!
I got the framework-res.apk script to work. Now can somebody please help me with the download command.
Android>iOS... Android FTW!
Hi all
I have created a simple tool to help automate the CM7/9/10 build from source, this tool sets up everything.. just check it out and give some feedback
Open terminal, navigate to cm tool dir and type ./CM_tool
For source code please PM me
Cheers,
h4ck3dm1nd.
h4ck3dm1nd said:
Hi all
I have created a simple tool to help automate the CM7/9/10 build from source, this tool sets up everything.. just check it out and give some feedback
Open terminal, navigate to cm tool dir and type ./CM_tool
For source code please e-mail me to [email protected].
Cheers,
h4ck3dm1nd.
Click to expand...
Click to collapse
now that's what I call an excellent first post
well done +1
not working
unable to execute the binary file. did chmod on the file.. still not working. is the binary from 64bit linux os?. I am using Ubuntu 12.04 32bit version..
See d following output:
$ ./CM_tool
bash: ./CM_tool: cannot execute binary file
$ sudo chmod a+x CM_tool
$ ./CM_tool
bash: ./CM_tool: cannot execute binary file
Yes this is a 64bit binary.
Sent from my GT-N7000 using xda app-developers app
I can build this tool for 32bit systems but the problem is that this tool config all your OS to be ready to build AOSP so i think that to build AOSP in 32bit you need some other deb packages, i will work on this and port this APP to 32bit but i cant test it because i only have 64bit systems here @ my home. I will work on this tomorow and when its complete i will post it here for tests.
Sent from my GT-N7000 using xda app-developers app
I've just checked in AOSP website...
"For Gingerbread (2.3.x) and newer versions, including the master branch, a 64-bit environment is required. Older versions can be compiled on 32-bit systems."
So there is no point in porting this to 32bit unless some one explain me how to set up ubuntu 32bits to build AOSP 2.3.x+.
Sent from my GT-N7000 using xda app-developers app
h4ck3dm1nd said:
Hi all
I have created a simple tool to help automate the CM7/9/10 build from source, this tool sets up everything.. just check it out and give some feedback
Open terminal, navigate to cm tool dir and type ./CM_tool
For source code please e-mail me to [email protected].
Cheers,
h4ck3dm1nd.
Click to expand...
Click to collapse
I think this is not N7000 specific, post it in Android Gen section, you will get more audience there, just a suggestion
I dont wont to double post so if a mod por an admin can move the threat i will be grateful
Sent from my GT-N7000 using xda app-developers app
From the Moderator
Good work !!!.......... and your wish is done..... Moved to Android General
~~ Oka1
h4ck3dm1nd said:
I dont wont to double post so if a mod por an admin can move the threat i will be grateful
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
h4ck3dm1nd said:
I dont wont to double post so if a mod por an admin can move the threat i will be grateful
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
No problem, moved to android development and hacking general.
original_ganjaman said:
No problem, moved to android development and hacking general.
Click to expand...
Click to collapse
Thanks!
I will apreciate any feedback to improve this tool
Cheers.
h4ck3dm1nd
Guys, can someone help me with syncing source for AOKP ICS/JB??
JB preferred...
Also, a link on how to add it to my laptop.. I am new at compiling.. Currently I'm syncing the repo for CM9, acc to the tutorial made by sakindia123...
I found a few tutorials on XDA & google, but they didnt make sense to me.. Maybe someone can help me in a simpler language..
Thanks...
hi m8........
http://rootzwiki.com/topic/31166-tutorial-so-you-want-to-build-aokp-jb-ubuntu-1204/
the "Add directory for repo binary to your path" you need to have terminal open and type:
Code:
gedit ~/.bashrc
then add the line:
Code:
PATH=~/bin:$PATH
the "Start the build" section you need the device tree and vendor and adjust them accordingly (can use sakindia`s or lirokoa`s device tree with changes)
if you need anymore help with it, just post
LiVeRpOoL-FaN said:
hi m8........
http://rootzwiki.com/topic/31166-tutorial-so-you-want-to-build-aokp-jb-ubuntu-1204/
the "Add directory for repo binary to your path" you need to have terminal open and type:
Code:
gedit ~/.bashrc
then add the line:
Code:
PATH=~/bin:$PATH
the "Start the build" section you need the device tree and vendor and adjust them accordingly (can use sakindia`s or lirokoa`s device tree with changes)
if you need anymore help with it, just post
Click to expand...
Click to collapse
I have done the stuff upto editing bashrc...I tried to sync CM9 source, but it gave me some errors, so I cancelled it.. Plus I'm getting single digit download speeds with syncing.. But thats not my concern.. My question is, how to sync device specific code?? For eg, if I want AOKP(or lets say CM10, would be easier for me) for Pico, would I have to first sync the whole AOKP/CyanogenMod JB repo, and then use the device tree?? I tried to clone sakindia's cm10 github, but that was only around 56 mb.. So i sensed some incomplete work on my end..
Could you provide a simple language tutorial?? On using github and syncing repos?? I tried the one given in the android software hacking forum... But its way too advanced for me..
Also, about the packages needed before doing anything.. are they supposed to be common, or do i need different packages for different roms??
And you can keep more than one repo synced up right?? Like cm9 n cm10 together, on the same hard drive??
Sent from my HTC Explorer A310e using xda app-developers app
bhargz16 said:
And you can keep more than one repo synced up right?? Like cm9 n cm10 together, on the same hard drive??
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
Yes you can but just in different folder...
Sent from my HTC Explorer A310e using xda premium
---------- Post added at 09:33 AM ---------- Previous post was at 09:30 AM ----------
bhargz16 said:
I have done the stuff upto editing bashrc...I tried to sync CM9 source, but it gave me some errors, so I cancelled it.. Plus I'm getting single digit download speeds with syncing.. But thats not my concern.. My question is, how to sync device specific code?? For eg, if I want AOKP(or lets say CM10, would be easier for me) for Pico, would I have to first sync the whole AOKP/CyanogenMod JB repo, and then use the device tree?? I tried to clone sakindia's cm10 github, but that was only around 56 mb.. So i sensed some incomplete work on my end..
Could you provide a simple language tutorial?? On using github and syncing repos?? I tried the one given in the android software hacking forum... But its way too advanced for me..
Click to expand...
Click to collapse
Yes 1st sync the whole repo and then add the device tree of pico in it and adjust the device tree accordingly to compile properly...
Sent from my HTC Explorer A310e using xda premium
---------- Post added at 09:38 AM ---------- Previous post was at 09:33 AM ----------
bhargz16 said:
Also, about the packages needed before doing anything.. are they supposed to be common, or do i need different packages for different roms??
Click to expand...
Click to collapse
No packages needed from other roms...everything you need for compiling will be there after you sync the repo...
Sent from my HTC Explorer A310e using xda premium
Mate this should be in the Q/A section.
sent from xda premium using my fingers
Re: Source for AOKP ICS/JB
hsn97 said:
Mate this should be in the Q/A section.
sent from xda premium using my fingers
Click to expand...
Click to collapse
My bad.. will ask the moderator to move it...
Sent from my HTC Explorer A310e using xda app-developers app
Edit : Done...
immortal_yash said:
Yes you can but just in different folder...
Sent from my HTC Explorer A310e using xda premium
---------- Post added at 09:33 AM ---------- Previous post was at 09:30 AM ----------
Yes 1st sync the whole repo and then add the device tree of pico in it and adjust the device tree accordingly to compile properly...
Sent from my HTC Explorer A310e using xda premium
---------- Post added at 09:38 AM ---------- Previous post was at 09:33 AM ----------
No packages needed from other roms...everything you need for compiling will be there after you sync the repo...
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
Thanks man... Cleared up a lot.. thanks a lot..
Sent from my HTC Explorer A310e using xda app-developers app
SO, I WAS READING ( as i always do) AND CAME ACROSS A GROUP OF DEVELOPERS WHO HAVE MANAGED TO GET UBUNTU,LINUX,BACKTRACK 5 AND OTHER OS's TO RUN ON ANDROID.
THE GOOD NEWS IS THAT U DONT HAVE TO FLASH IT AS A ROM OR ANYTHING. AND IT ALSO DOESNT MESS UP YOUR ANDROID SYSTEM. ITS WORKS LIKE A VIRTUAL MACHINE, TO BREAK IT DOWN IT RUNS ON TOP OF YOUR ANDROID OS JUST LIKE ANY APPLICATION WOULD DO. BUT IT NEEDS A KERNEL THAT SUPPORTS LOOP DEVICES.(Dont really know what that is)
I PERNSONALLY TRIED IT ON THE MYTOUCH 4G AND IT WORKS VERY WELL, ONLY FOR A LITTLE BIT OF SLOWNESS (that happens when u have lots of apps running in the background.) SO I SUGGEST YOU RUN IT AFTER A REBOOT.
I TESTED IT ON THESE ROMS AND KERNELS
ROM KERNEL
***DARK UNICORN RESURECTED**** ****COMB_KERNEL_WOB****** (dont know about the rest of thier kernels).
***PACman_GLACIER v22.0.1********* ************3.0.66_CODERZS_KERNEL_2************
*****CYANOGENMOD 7.2*************** ************ COMB_KERNEL_WOB*****
THERE MIGHT BE OTHER ROMS AND KERNELS THAT MIGHT WORK. SO YOU HAVE TO TEST THEM AND FIND OUT.
NOW HERE IS A LINK TO THE WEBSITE
[[ http://linuxonandroid.org/ ]]
FOR IT TO WORK YOU WOULD HAVE TO DOWNLOAD THE LUNCH APP (Its an APK file). THEN YOU DOWNLOAD THE IMAGE OF YOUR CHOICE BEING IT UBUNTU, LINUX,DEBIAN,BACKTRACK5 ETC....
FOR DOWNLOADS, YOU CAN VISIT THESE SITES:
FOR THE APK OR THE LUNCH APP VISIT
HERE: [[ http://sourceforge.net/projects/lin...omplete_Linux_Installer_08012013.apk/download ]]
OR
[[ https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid ]]
FOR THE IMAGES YOU CAN VISIT
HERE: [[ http://linuxonandroid.org/downloads/ ]]
OR FOR SPECIFIC IMAGES, YOU CAN VIST THESE SITES
NOTE: SOME OF THE OS's HAVE CORE,SMALL AND FULL IMAGES. THE CORE IMAGES, WELL CONTAIN THE CORE FILES WITH JUST A COUPLE OF APPS INSTALLED.(I wont post the link for the core images but if you want it visit the link posted above). THE SMALL IMAGE HAS LIMITED SOFTWARES PRE-INSTALLED WHILES THE FULL HAS MANY OR A WIDE RANGE OF SOFTWARES PRE-INSTALLED.
**********UBUNTU*******************
FULL IMAGE
LINK: [[ http://sourceforge.net/projects/lin...tu/12.04/full/ubuntu1204-v4-full.zip/download ]]
SMALL IMAGE
LINK: [[ http://sourceforge.net/projects/lin.../12.04/small/ubuntu1204-v4-small.zip/download ]]
**********BACKTRACK*************
IMAGE
LINK: [[ http://sourceforge.net/projects/lin...ktrack/Image/backtrack-v10-image.zip/download ]]
**********FEDORA****************
FULL IMAGE
LINK: [[ http://sourceforge.net/projects/lin...ktrack/Image/backtrack-v10-image.zip/download ]]
SMALL IMAGE
LINK: [[ http://sourceforge.net/projects/linuxonandroid/files/Fedora/Small/fedora-BETA-small.zip/download ]]
********OPENSUSE*******
CORE IMAGE (its the only image available at the moment)
LINK: [[ http://sourceforge.net/projects/lin...nSUSE/Core/opensuse-ALPHA-core.zip/download]]
*********DEBIAN**********
SMALL IMAGE
LINK: [[ http://sourceforge.net/projects/linuxonandroid/files/Debian/Image/Small/debian-v4-small.zip/download ]]
FULL IMAGE
LINK: [[ http://sourceforge.net/projects/linuxonandroid/files/Debian/Image/Large/debian-v4-large.zip/download ]]
*******ARCHLINUX*********
SMALL IMAGE
LINK: [[ http://sourceforge.net/projects/lin...Linux/Small/archlinux-BETA-small.zip/download ]]
FULL IMAGE
LINK: [[ http://sourceforge.net/projects/lin...Linux/Large/archlinux-BETA-large.zip/download ]]
THATS ABOUT IT FOR THE IMAGES FOR NOW.
NOTE: FOR THIS TO WORK ROOT IS NEED AND A FULL INSTALLATION OF BUSYBOX AND TERMINAL EMULATOR AND ANDROID VNC VIEWER. AND ALSO, I TAKE NO CREDIT FOR THIS, I AM JUST HELPING OUT SO THAT PEOPLE CAN KNOW ABOUT IT.
HELP IS GIVEN IN THE APK. SO HOW HARD CAN IT BE
SO I THINK THATS ALL FOR NOW GUYS.
IF I HAVE HELP YOU, PLEASE USE THE THANKS BUTTON.
Why are you yelling?
THEindian said:
Why are you yelling?
Click to expand...
Click to collapse
you mean the CAPS?? Sorry Lol.
Lol. Yeah you don't need all capitals calm down xD.
Sent from my MyTouch 4G using xda app-developers app
Nice find
Sent from my HTC Sensation 4G using xda app-developers app
I'm gonna install Ubuntu and see how it is.
Sent from my MyTouch 4G using xda app-developers app
N_otori0us_ said:
I'm gonna install Ubuntu and see how it is.
Sent from my MyTouch 4G using xda app-developers app
Click to expand...
Click to collapse
Sure. Go ahead and try. its nice. And after messing around with it you would like it.
And most of its commands work on android in the terminal emulator.
Haha I actually like it. But how do I find wifi in Ubuntu small image.
Sent from my MyTouch 4G using xda app-developers app
http://maddox.xmission.com/keyboard4.jpg
You have to open the terminal in Ubuntu. Then u type
"sudo -s" (it would ask for your password, enter it.)
Then type
"iwlist scan"
It would give you a whole number of interfaces. But WiFi should be on "p2p0".
Or u can type
"sudo -s"
"iwlist p2p0 scanning"
Sent from my myTouch 4g using xda app-developers app
estallings15 said:
http://maddox.xmission.com/keyboard4.jpg
Click to expand...
Click to collapse
Ahahah
Sent from my HTC Merge using xda app-developers app
coderzs said:
Ahahah
Sent from my HTC Merge using xda app-developers app
Click to expand...
Click to collapse
Very Funny
I try backtrack working fine.
Tip: due to small screen size you can install vnc viewer on desktop and connect your android Linux.
Sent from my myTouch 4g using xda app-developers app
loading issues
I followed all the instructions but this is what i get
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
<inuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/backtrack.img
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device
Error: Unable to mount the loop device!
sh-3.2#
Sorry if the solution is obvious im new to this
HÆÐÉS said:
I followed all the instructions but this is what i get
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
<inuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/backtrack.img
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device
Error: Unable to mount the loop device!
sh-3.2#
Sorry if the solution is obvious im new to this
Click to expand...
Click to collapse
What did you try to run.
Sent from my myTouch 4g using xda app-developers app
HÆÐÉS said:
I followed all the instructions but this is what i get
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
<inuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/backtrack.img
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device
Error: Unable to mount the loop device!
sh-3.2#
Sorry if the solution is obvious im new to this
Click to expand...
Click to collapse
Its because your current kernel doesn't support loop device. You have to flash a new kernel. If you are using a mytouch 4g, and you using a non sense ROM, you can flash coderz 3.66 kernel or try other kernels.
Sent from my myTouch 4g using xda app-developers app
N_otori0us_ said:
What did you try to run.
Sent from my myTouch 4g using xda app-developers app
Click to expand...
Click to collapse
I tried to run backtrack
---------- Post added at 09:14 AM ---------- Previous post was at 09:03 AM ----------
mickeyasamoah said:
Its because your current kernel doesn't support loop device. You have to flash a new kernel. If you are using a mytouch 4g, and you using a non sense ROM, you can flash coderz 3.66 kernel or try other kernels.
Sent from my myTouch 4g using xda app-developers app
Click to expand...
Click to collapse
Doesnt this mean im supposed to be able to support loop devices
sh-3.2$ fgrep loop /proc/devices
7 loop
sh-3.2$
HÆÐÉS said:
I tried to run backtrack
---------- Post added at 09:14 AM ---------- Previous post was at 09:03 AM ----------
Doesnt this mean im supposed to be able to support loop devices
sh-3.2$ fgrep loop /proc/devices
7 loop
sh-3.2$
Click to expand...
Click to collapse
I guess its the scripts that comes with the app,these same scripts are the ones which launches the backtrack distro. I personally faced some problems with the new scripts but i have the old version which works fine on my device. I would try uploading it or you could search for an old version of the apk.
Edit
Do you have busybox installed??
Pls install it if u don't have it.
Sent from my myTouch 4g using xda app-developers app
After messing around with it i've got a new problem
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
sh-3.2# sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/bt5.img
sh: applet not found
sh-3.2#
What applet is it
HÆÐÉS said:
After messing around with it i've got a new problem
sh-3.2$
sh-3.2$ cd /sdcard/external_sd/backtrack
sh-3.2$ su
sh-3.2# sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /sdcard/external_sd/backtrack/bt5.img
sh: applet not found
sh-3.2#
What applet is it
Click to expand...
Click to collapse
I Dont really know but i guess it has something to do with busy box.
What ROM are u running and do u have busy box installed?
Sent from my myTouch 4g using xda app-developers app
Can anyone with kernel knowledge and linux knowledge help me pack the ramdisk folder
i want the ramdisk.cpio file and then
the boot.img
my linux partition is corrupt so i can't do it
if anyone could help? i would provide the files
AlphaBeta said:
Can anyone with kernel knowledge and linux knowledge help me pack the ramdisk folder
i want the ramdisk.cpio file and then
the boot.img
my linux partition is corrupt so i can't do it
if anyone could help? i would provide the files
Click to expand...
Click to collapse
if your linux is corrupt google for android image kitchen and use that
btw if you build you got ramdisk.cpio dont you??
Sent from my C2105 using XDA Free mobile app
I tried using android kitchen but the cpio doesnot get properly built and thus kernel doesnot boot :/
And i get the cpio but i need to open it up as i have to do some changes in it
So if you could just pack the cpio file only maybe ?
Sent from my C2104 using XDA Free mobile app
SdtBarbarossa said:
if your linux is corrupt google for android image kitchen and use that
btw if you build you got ramdisk.cpio dont you??
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
And i am not building a kernel i am actually porting rom so i need to perform kernel level changes but android kitchen won't pack the cpio properly so if you could just pack the cpio only?
Sent from my C2104 using XDA Free mobile app
AlphaBeta said:
And i am not building a kernel i am actually porting rom so i need to perform kernel level changes but android kitchen won't pack the cpio properly so if you could just pack the cpio only?
Sent from my C2104 using XDA Free mobile app
Click to expand...
Click to collapse
ok send me....
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
ok send me....
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
http://d-h.st/UbBv
here is the boot extracted folder
which is having the ramdisk folder in sbin
you have to covert that folder into ramdisk.cpio
and if you have any other xperia L kk kernel compare the permissions of that cpio file with them.i guess the permissions also effect the booting
also i can provide you the files i edited if you can somewhat replace them directly inside the cpio without extracting it? :\
becuase the permissions are the main issue i am getting :\
EDIT:
Here are the files i have edited basically
init.rc and init.environ.rc
if you find it easier you can also replace both the files in any kk kernel
http://d-h.st/m6ix
http://d-h.st/Tb0j
see whatever suits you better or is easier for you
thankyou
AlphaBeta said:
http://d-h.st/UbBv
here is the boot extracted folder
which is having the ramdisk folder in sbin
you have to covert that folder into ramdisk.cpio
and if you have any other xperia L kk kernel compare the permissions of that cpio file with them.i guess the permissions also effect the booting
also i can provide you the files i edited if you can somewhat replace them directly inside the cpio without extracting it? :\
becuase the permissions are the main issue i am getting :\
Click to expand...
Click to collapse
ok best would be to send me the git link of sourcecode.... and your changes to merge.... so i can build from source
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
ok best would be to send me the git link of sourcecode.... and your changes to merge.... so i can build from source
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
well the changes i made are in the init.rc and init.environ.rc files
both the files are atached above
here is varun's source
https://github.com/varunchitre15/android_kernel_sony_msm8930/tree/cm-11.0
AlphaBeta said:
well the changes i made are in the init.rc and init.environ.rc files
both the files are atached above
here is varun's source
https://github.com/varunchitre15/android_kernel_sony_msm8930/tree/cm-11.0
Click to expand...
Click to collapse
ok will build after syncing.... can take a while
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
ok will build after syncing.... can take a while
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
sure and thankyou
btw the specific changes in the files are
add this to end of init.rc
Code:
#service for shelld
service shelld /system/xbin/shelld
class main
#service for su
service su_daemon /system/xbin/su --daemon
class main
oneshot
service lbesec /system/xbin/lbesec
class main
oneshot
and change this line in init.environ.rc
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar:/system/framework/telephony-msim.jar:/system/framework/qcmediaplayer.jar:/data/app/com.miui.sdk-1.apk:/data/app/com.miui.sdk-2.apk:/system/app/miui.apk:/data/app/com.miui.framework-1.apk:/data/app/com.miui.framework-2.apk:/system/app/MiuiFramework.apk
im already snycing and will build it....BUT when i started sync i saw i still got a project left in sync.... approximiated time : 4hours.... so dont await an answer before
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
im already snycing and will build it....BUT when i started sync i saw i still got a project left in sync.... approximiated time : 4hours.... so dont await an answer before
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
Sure take your time..i have listed the specific changes as well
Sent from my C2104 using XDA Free mobile app
AlphaBeta said:
Sure take your time..i have listed the specific changes as well
Sent from my C2104 using XDA Free mobile app
Click to expand...
Click to collapse
so have synced it.... now please give me the build config....
and btw i cant find those init files in source...where is it placed??
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
so have synced it.... now please give me the build config....
and btw i cant find those init files in source...where is it placed??
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
inside the ramdisk folder most probably
though i have very less knowledge about source building
but it should be present in the ramdisk/sbin/ramdisk.cpio
here will be the 2 files
edit them then build the .cpio and then build the kernel
AlphaBeta said:
inside the ramdisk folder most probably
though i have very less knowledge about source building
but it should be present in the ramdisk/sbin/ramdisk.cpio
here will be the 2 files
edit them then build the .cpio and then build the kernel
Click to expand...
Click to collapse
bro...thats not source files... those files are already builded ones that will be created .... but ok give me the whole "builded" kernel and i will do what you want....
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
bro...thats not source files... those files are already builded ones that will be created .... but ok give me the whole "builded" kernel and i will do what you want....
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
the first link i gave you has all the files
you just need to make a cpio of the ramdisk folder in it
and then repack the boot.img
AlphaBeta said:
the first link i gave you has all the files
you just need to make a cpio of the ramdisk folder in it
and then repack the boot.img
Click to expand...
Click to collapse
hope that one will boot......are you trying to porting something?
(MuiUi?)
www.sdtbarbarossa.bplaced.net your file is called "rapacked.rar" (available in ~5min .....damn upload speed^^)
Edit: up^^
SdtBarbarossa said:
hope that one will boot......are you trying to porting something?
(MuiUi?)
www.sdtbarbarossa.bplaced.net your file is called "rapacked.rar" (available in ~5min .....damn upload speed^^)
Edit: up^^
Click to expand...
Click to collapse
Yes i am porting miui
And once the kernel issues are gone it won't be difficult porting it
Sent from my C2104 using XDA Free mobile app
AlphaBeta said:
Yes i am porting miui
And once the kernel issues are gone it won't be difficult porting it
Sent from my C2104 using XDA Free mobile app
Click to expand...
Click to collapse
cool the ramdisk.cpio you can find in the ramdisk.cpio.gz <<< you have to extract that
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
cool the ramdisk.cpio you can find in the ramdisk.cpio.gz <<< you have to extract that
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
well you din't pack it correctly
firstly ramdisk.cpio need not contain sbin and other folders
it should only have ramdisk folder contents
and the ramdisk folder directory should also not be present
see the image attached
ramdisk.cpio should just have the contents of ramdisk folder only
not even the directory
so that as soon we open the cpio file
we get all that is shown in image
the link i gave you move inside sbin/ramdisk/
now pack all the content present here in ramdisk.cpio not the rest
just use that ramdisk folder
here use this link
extract it and it will contain just the ramdisk folder
now put the files in the ramdisk folder in cpio file
http://d-h.st/qNKV