Repack ramdisk issues - Android

Hi. I'm trying to edit my rom but seem to be having trouble repacking it. I can't seem to get it to make a good cpio.gz after I'm done. It always comes out much to small. I did find a way to get it to cpio, but when I gzip, its screwed... Please help a new dev in the making...
Sent from my SCH-R720 using xda premium

Related

[Q] Need help creating an Update.zip file

yo fellow XDA members
I am in need of help creating an update.zip file for a new rom I'm working on.
I'm not sure how to build a rom flashing script or even sign the update.zip
lemme know if you got anything for me
Take another update.zip, replace your files/tree with the one there. Done.
Sent from my SGH-T959V using XDA App

Editing a custom kernel

Is it possible for me to edit my kernel to allow higher clock frequencies? I am trying to achieve 1700-1800mhz
Can i extract the kernel from my ROM zip?
Do I simply edit 'scaling_available_frequencies','cpuinfo_max_freq' & 'UV_mV_table'?
If so how can I gain write access to this file? Any info appreciated!
SGSII
Latest cm7 nightly
13pointseven said:
Can i extract the kernel from my ROM zip?
Yes just open in win zip win rar etc and extract zimage .
jje
Click to expand...
Click to collapse
How do I open zimage
Sent from my GT-I9100 using xda premium
You can't unzip the zImage and make changes. You'll need to compile the kernel from source yourself.
Ok thanks for the reply. I am currently downloading the cm7 source code from github. Can you help with regard to overclocking?
Sent from my GT-I9100 using xda premium
You could try looking at the original overclocking commit and modifying it.
Why would you ever want 1.8GHz though? It'll almost certainly be unstable.
Sent from my GT-I9100
OK so what I've sussed out so far is as Oxygen ROM is cm7 based I can extract the boot.img from stable cm7 ROM (which is the kernel) and replace it with the Oxygen boot.img thus creating oxygen 2.3.1/wolverine, clockable to 1.6ghz.
I have found a tut on unpacking ramdisk, is this the boot.img?
If so can anybody tell me how id go about further increasing clock speed once unpacked?
Any help appreciated, cheers Andy
Sent from my GT-I9100 using xda premium
Like I said, it's not possible to change the available frequency steps in a compiled kernel. You can't unpack it and make changes, you've got to build it from source.
Thanks for the reply, I believe I have the source and instructions on compiling unsure what to edit. Am I rite in saying the kernel is generic to all devices and need tailoring to suite? Please forgive the noobness I like to dive in deep end. Hopefully studying comp sci in sept if I get my grades so maybe then ill be able to contribute to the forum a little better
Sent from my GT-I9100 using xda premium
As for why, my device runs real smooth even at 500mhz but have a friend who likes to gloat over a cf bench result id like to smash, that and learning more and as much as I can on android OS.
Sent from my GT-I9100 using xda premium

[Q] what is Boot.img? noob here....

Hello.. can anyone explain to me what is BOOT.IMG? and this is improtant on flashing ROM?
I'm not sure what it is, but it somehow manages the boot process. Every ROM has its particular boot.img. it is needed, but it is included in all roms around here. So if you flash a rom via cwm, boot.img is flashed to your phone automatically. Why do you need to know?
Wow... Its the kernel. For the OP. For the other replier. Please dont give false information.
Sent from my GT-I9300 using xda premium
Actually your both kind of right. A boot.img is a kernel smashed with a ramdisk. The kernel sets up internal hooks and initializations to the android os. The ramdisk contains a set of instructions and such to also create the hooks. In general a kernel is a binary image that contains all the drivers and such for a system to communicate with the hardware and the ramdisk initializes the hard ware
Please do not shoot people down. Some are just trying to be helpful.
Sent from my Galaxy Nexus using xda app-developers app
Edit. I mixed up my knowledge.
Sent from my GT-I9300 using xda premium

Edited build.prop now my samsung galaxy player 5.0 won't boot.

I wanna start off by saying i am such an idiot .I should have never edited the system files,Now the device that i enjoyed it unusable.:crying:
I can boot into recovery and others but i cant boot into my OS.I was so foolish.
I tried doing factory default and that didn't work now im desperate.All i want is to just use my device again.If any one has any advice please tell me how i can fix my device.
Can anyone make some suggestions on how to fix my device?
Thanks.
Download a stock ROM.zip file and replace the build.prop.
What did you change?
Sent from my HTC One V using xda premium
What i changed
CdTDroiD said:
Download a stock ROM.zip file and replace the build.prop.
What did you change?
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
I sent you a PM on the tutorial i fallowed.I changed the Build.Prop.How would i do that if i cannot boot into the OS? Were would i get the zip file and how would i put it on my device? If you can give me instructions on how to do it i would really appreciate it.Thank you for trying to help me i really appreciate it.

[TOOL] KDZ - Extract and Merge

I was looking on the web for some kind of kdz file extraction and re-zip tool that could help with inserting the root file AND possibly the V20B bootloader unlock function for all of our L9 variants. Being a P769 user I would definitely gravity to using our phone first! But I found this link in android and it shows you how to extract a kdz via LG UPTESTEX MOD. Sound familiar, well it should because that's what we use to offline flash our phones. So it's saying that we can extract, modify then merge the files back INTO A KDZ for flashing. If this is true then we can manipulate the ROM! but I'm no devy so I can't so do. Here is the link for anyone curious about it:
Oh my apologies if I didn't put this in the right forum. I always wan to place things in the general forum so that I get maximum eyeage. But I placed it here for dev's to see.
Thanks for sharing! I hope the devs here can use this to their advantage! :thumbup:
Sent from my LG-P769 using XDA Premium 4 mobile app
LaDY Vengeance said:
Thanks for sharing! I hope the devs here can use this to their advantage! :thumbup:
Sent from my LG-P769 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Maybe we can load up cyanogenmod with the stock kernel a-la 2nd init with this method. THANKS
Well nice thought, but I think it wont work. I think so for a simple reason. We already tried that over at the p970 forum. I dont really remember of the dev who tried it, but it was either navossoc or xonar, if I remember correctly. He said something like, it s possible to extract the bin files, but he receives some nonsense code and doesnt know, how to interpret and put them back together. If you need the source, pm me please and I ll look it up
Sent from my LG-P760 using xda app-developers app

Categories

Resources