edit init.rd - HD2 Android Q&A, Help & Troubleshooting and Genera

Hi, i wanna edit my init.rd (tytungs kernel) but how i can edit/write on cpio file.
OS: Ubuntu 10.10
sorry if its the false SUB.

Underground Sound said:
Hi, i wanna edit my init.rd (tytungs kernel) but how i can edit/write on cpio file.
OS: Ubuntu 10.10
sorry if its the false SUB.
Click to expand...
Click to collapse
Which file? Any file is best edited with notepad ++ for windows and gedit on Ubuntu
Sent from my HTC HD2 using Tapatalk

elesbb said:
Which file? Any file is best edited with notepad ++ for windows and gedit on Ubuntu
Sent from my HTC HD2 using Tapatalk
Click to expand...
Click to collapse
i wanna edit the kernel from tytung (or so) but cant edit .cpio files :/ in the init.rd is a second init.rd file the second one is .cpio format and cant edit with any program.

Underground Sound said:
i wanna edit the kernel from tytung (or so) but cant edit .cpio files :/ in the init.rd is a second init.rd file the second one is .cpio format and cant edit with any program.
Click to expand...
Click to collapse
Well, kernel's cant be editted, they are built from source code which is C language. What exactly are you trying to accomplish? What is the expected outcome?

elesbb said:
Well, kernel's cant be editted, they are built from source code which is C language. What exactly are you trying to accomplish? What is the expected outcome?
Click to expand...
Click to collapse
ah, ok. i wanna edit dhcpcd et0 to dhcpcd but cant save it cuz no support to cpio.

Related

Kernel Header File??

Hello
I want to add something in my header file, where is it located?
Do i need recompile my kernel? Any instructions/tutorial?
EDIT:
I may not only need edit header! Anyone could tell me how to add SysV IPC to my Kernel?
Thanks.
hopkinskong said:
Hello
I want to add something in my header file, where is it located?
Do i need recompile my kernel? Any instructions/tutorial?
EDIT:
I may not only need edit header! Anyone could tell me how to add SysV IPC to my Kernel?
Thanks.
Click to expand...
Click to collapse
look up htc-linux.org.
to get and install the headers (default is on the host /usr/src/kernel)
make ARCH=arm CROSS_COMPILE=/path-to-toolchain/bin/arm-linux-gnueabi- install_headers_all <path_to_install>
plopper
plopper said:
look up htc-linux.org.
to get and install the headers (default is on the host /usr/src/kernel)
make ARCH=arm CROSS_COMPILE=/path-to-toolchain/bin/arm-linux-gnueabi- install_headers_all <path_to_install>
plopper
Click to expand...
Click to collapse
DELETE...
I can download the sources by the phone(70-80 Kib/s), but computer is 1Kib/s lol
What toolchain should i use???
Also, will chromium-browser(arm) will work on hd2?
Thanks.
hopkinskong said:
What toolchain should i use???
Also, will chromium-browser(arm) will work on hd2?
Thanks.
Click to expand...
Click to collapse
toolchain info
chrome for arm
plopper
plopper said:
toolchain info
chrome for arm
plopper
Click to expand...
Click to collapse
lol.. think you have a bit misunderstand me...
ok, i think i'm wrong, i want to ask "which" toolchain should i use...
in the startguide:
CROSS_COMPILE= env var is important. read more about it on toolchain page.
Click to expand...
Click to collapse
i goto the toolchain page, and there are few toolchain(codesourcery, gentoo, etc.), which one should i use?
thanks.
Problem sloved, another question have posted...
**PS: i didn't open THIS post also because of the chrome browser, now, i didn't use your link(cuz it need to compile a new chromium browser), i have used the normal arm chrome browser release...

Can anyone decompile The 4.0.4 system.img?

Can anyone please Decompile the System.img for Me?
I Have already tried it! But no luck for me!!!
I Want to make a flashable zip for this rom and for you guys But first i must have the system.img unpacked so that i can see the following folders:
App
Bin
etc
fonts
framwork
lib
media
tts
user
vendor
xbin
Thanks anyways!
Yes it's trivial (in linux anyhow). Use
Code:
simg2img system.img sys.img
mount sys.img /mnt
cd /mnt
zip -r /tmp/system.zip .
daveba said:
Yes it's trivial (in linux anyhow). Use
Code:
simg2img system.img sys.img
mount sys.img /mnt
cd /mnt
zip -r /tmp/system.zip .
Click to expand...
Click to collapse
Or just mount as loop using furius mount if on ubuntu.
Sent from my GT-P7510 using XDA Premium HD app
Yes i know it can all be done with linux/ubuntu but im running windows and dont want to install or dual boot that os!
safariking said:
Yes i know it can all be done with linux/ubuntu but im running windows and dont want to install or dual boot that os!
Click to expand...
Click to collapse
Ok, i will upload it for you and update this post, but i have a ridiculously slow upload speed so in about 1hr.
daveba said:
Ok, i will upload it for you and update this post, but i have a ridiculously slow upload speed so in about 1hr.
Click to expand...
Click to collapse
it's ok Thanks!
safariking said:
it's ok Thanks!
Click to expand...
Click to collapse
Ok here it is.
daveba said:
Ok here it is.
Click to expand...
Click to collapse
Many Thanks!
Sorry limited to 8 thanks per day LOlz
Does it mean that we can flash from CWM the update.zip in order to have the GT-P7510_XEU_P7510XXLPH_P7510XEULPH_P7510XXLPH ROM installed? if so THX!!!
ricciolo91 said:
Does it means that we can flash from CWM the update.zip inorder to have the GT-P7510_XEU_P7510XXLPH_P7510XEULPH_P7510XXLPH ROM installed? if so THX!!!
Click to expand...
Click to collapse
Im busy with it!
Im only missing the
Updater-script file
And the other file that's inside that folder (can't remember the name anymore lolz)
daveba said:
Ok here it is.
Click to expand...
Click to collapse
Could someone deodex it as well i would but ive lost my laptop charger! I was thinking about changing (read:fixing) those ugly system bar icons. What were samsung thinking! Its hideous!
Sent from my GT-P7510 using XDA Premium HD app
safariking said:
Im busy with it!
Im only missing the
Updater-script file
And the other file that's inside that folder (can't remember the name anymore lolz)
Click to expand...
Click to collapse
Just use the script (obviously not the binaries) from the tasks P7510 CWM thread and add the modem.bin to the script.
---------- Post added at 08:46 AM ---------- Previous post was at 08:45 AM ----------
scaryshark said:
Could someone deodex it as well i would but ive lost my laptop charger! I was thinking about changing (read:fixing) those ugly system bar icons. What were samsung thinking! Its hideous!
Sent from my GT-P7510 using XDA Premium HD app
Click to expand...
Click to collapse
Is there deodexing script for Linux ? I will happily do it as i have some spare time (work's dead during Ramadan)

[Q] Repack boot.img

working on my port for the galaxy 10.1 and get this error while repacking: No such file or directory at repack-bootimg.pl line 13
and using this in command: perl repack-bootimg.pl ../path to kernel ../path to ramdisk directory ../path to outfile
and using this perl script:https://www.dropbox.com/s/aqv22sdrhzd86f7/repack-bootimg.pl
any help would be greatly appreciated, BTW im using ubuntu 12.04
------i have tried to put in the path to kernal ect in the command line:/path to kernel
----or better yet, pm me and i will give ou the files if you can repack them and send them back to me
Use the kitchen.
civato said:
Use the kitchen.
Click to expand...
Click to collapse
can you link it thanks, big fan civato
jnktechstuff said:
can you link it thanks, big fan civato
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=633246

(Q)How To Change CWM Install Script Text

Please help me I make a iconpack but ı'm dont know this thing please help me (
Deopolos14 said:
Please help me I make a iconpack but 03'm dont know this thing please help me (
Click to expand...
Click to collapse
I think you want to change the text that's shown in CWMR while flashing. For that you should edit the updater script present in META-INF/com/google/android/updater-script.
Sameer N. Soni said:
I think you want to change the text that's shown in CWMR while flashing. For that you should edit the updater script present in META-INF/com/google/android/updater-script.
Click to expand...
Click to collapse
Thanks man but what can i use for this thing i mean which tool
Sent from my e-tab4 using XDA Free mobile app
Deopolos14 said:
Thanks man but what can i use for this thing i mean which tool
Sent from my e-tab4 using XDA Free mobile app
Click to expand...
Click to collapse
you can just open the update script in notepad++ (different from windows notepad)
http://notepad-plus-plus.org/
marcussmith2626 said:
you can just open the update script in notepad++ (different from windows notepad)
http://notepad-plus-plus.org/
Click to expand...
Click to collapse
When i used this tool i see very different codes in script what can i do ?
Sent from my e-tab4 using XDA Free mobile app
Deopolos14 said:
When i used this tool i see very different codes in script what can i do ?
Sent from my e-tab4 using XDA Free mobile app
Click to expand...
Click to collapse
the updater-script in the meta-inf folder is plain text in a flashable zip and you can just open it
if you are trying to open up anything else for example an xml file in an apk you must decompile the apk first
marcussmith2626 said:
the updater-script in the meta-inf folder is plain text in a flashable zip and you can just open it
if you are trying to open up anything else for example an xml file in an apk you must decompile the apk first
Click to expand...
Click to collapse
Okey thanks i will upload my icon pack in two days good night sir
Sent from my e-tab4 using XDA Free mobile app
((
marcussmith2626 said:
the updater-script in the meta-inf folder is plain text in a flashable zip and you can just open it
if you are trying to open up anything else for example an xml file in an apk you must decompile the apk first
Click to expand...
Click to collapse
I Cant do it true man :crying: now zip gives status 6 error Can you do it true on pm ? i'm give credits to you on my thread
Deopolos14 said:
I Cant do it true man :crying: now zip gives status 6 error Can you do it true on pm ? i'm give credits to you on my thread
Click to expand...
Click to collapse
status 6 means incorrect update script - you have made an error and there is incorrect syntax
I suggest you look at other icon packs and compare updater scripts so you get an understanding on what it should look like
for example here is an icon pack thread
http://forum.xda-developers.com/showthread.php?t=2470700
Its eurovision night here so theres no chance of me doing anything sorry!

[Help] notepad++ won't read any XML in rom

I am building a ROM but my notepad++ won't read any .XML file from any ROM.. Please explain me how to fix this thing?
livecouk said:
I am building a ROM but my notepad++ won't read any .XML file from any ROM.. Please explain me how to fix this thing?
Click to expand...
Click to collapse
Did you decompile the apks with apktool?
Sent from my Scorpion Mini
NO
ATTACK said:
Did you decompile the apks with apktool?
Sent from my Scorpion Mini
Click to expand...
Click to collapse
no i did't i just extracted them with 7Zip and Also it wont read some usual APK which are not in APK such as androidmanifest.apk....
livecouk said:
no i did't i just extracted them with 7Zip and Also it wont read some usual APK which are not in APK such as androidmanifest.apk....
Click to expand...
Click to collapse
Then that is your problem. You need to decompile first in order to edit any file other then images.
Yup that was it! Thanks ATTACK and Tecknofreak for help!

Categories

Resources