yashsingh1/xdaforums huggingface dataset:
[Xperia Arc Android Development] ShyamSasi:
Found a way to do this with Windows

http://www.freeyourandroid.com/guide/extract-edit-repack-boot-img-windows

You need Android Kitchen setup through :) I was trying to add Recovery to new ICS Kernel .. I took the recovery from RAM Disk from Doom's pervious kernel but I can't get into recovery the key combination doesn't work .. Finally gave up :(
[Xperia Arc Android Development] Ninolina:
That's the link I already give in previous tread about unpacking Kernel. I use that procedure to change the Splash screen of Doom Kernel and it worked. I only have a problem with newest Doom Kernel v 19 as after repacking I can't get to any recovery included in original Kernel v 19.
[Xperia Arc Android Development] Bazoocaze:
Just to contribute:

I use this utility (debian/linux) to pack/repack/extract/create the boot.img file:

abootimg:

https://launchpad.net/ubuntu/natty/i386/abootimg/0.3-1
[Xperia Arc Android Development] KingWickedd:
Boot.img has a kernel image [zImage] and a ramdisk.

Is there a way to extract/unpack the zImage ?? :confused:
[Xperia Arc Android Development] paxChristos:
Nope
[Xperia Arc Android Development] Ninolina:
Did anybody tried to change logo.rle on newer DoomKernel's? When I try to change it on v19 and v20 my phone boot up but there is on way I can get into recovery or boot manager. When I did same changes in v18 and lower I didn't have any problems...:-)

Can anybody help me with this?

Thanks in advance...:-)
[Xperia Arc Android Development] KingWickedd:
What is the size of your logo.rle??
[Xperia Arc Android Development] zangetsu2188:
I tried the v20. I grabbed the sony logo from ics beta. It didn't work on my try at v19, though.
[Xperia Arc Android Development] Ninolina:
It's 593 kb large but I have the same problem even if I try just to remove original logo.rle so I assume that the size of logo.rle is not the issue. Did anybody managed to change logo.rle in DooMKernel V19 or v20 with success?

Thanks...:)
[Xperia Arc Android Development] jonke11:
Can i use mobile terminal emulator to unpack boot.img?

Becouse in mobile terminal emulator there isnt cmd like ,,perl,,

Va Taip Va Blet

Sent From MT15i
[Xperia Arc Android Development] paxChristos:
No, you NEED a Linux pc .
[Xperia Arc Android Development] cowsquad:
So the mkbootimg file on the OP, is for linux 32bit right? I am using ubuntu 11.10 32bit but when I tried to set up permissions with chmod 755 /bin/mkbootimg the system gives me the following error: mkbootimg not found.

what am I doing wrong?

thanks in advande
[Xperia Arc Android Development] zangetsu2188:
Yes, iridaki's attached files are for 32 bit.

Are you in the right directory of your terminal?

cd first to the downloaded files. ;)
[Xperia Arc Android Development] cowsquad:
I did. I thinks its working now. Now my questions is, do I have to have mkbooting and repack_booting.pl on the same directory before starting to repacking.

I don't see any command with mkbooting. Why do we need this file for?

Thanks
[Xperia Arc Android Development] iridaki:
Basically, you don't see most of the commands. :D They are in the perl scripts and mkbootimg is used in repacking.

iR¡D@k!* via Tapatalk
[Xperia Arc Android Development] cowsquad:
Lol but do I have to have mkbootimg on my working folder along with repack and booting.pl?
[Xperia Arc Android Development] cowsquad:
Excuse my ignorance but why do we need step 5. We can simply repack the boot.img-kernel and its components. Could anyone explain that?
[Xperia Arc Android Development] pvyParts:
depends on the script you use :)

You don't have to do that step for the attached repack script :)

Pvy.
[Xperia Arc Android Development] iridaki:
Instructions about how to install mkbootimg are in the OP.
[Xperia Arc Android Development] cowsquad:
Thank you. I finally figured everything out :?P
[Xperia Arc Android Development] championswimmer:
i like the CENSORED thingy !!!! ha ha ha

thanks for this... gonna use this to do some stuff... ha ha... (you know stuff right?? tinkering with kernels untill they become buggy enough to be un-useable)

btw this can be used to tinker with x10 kernels too right??
[Xperia Arc Android Development] ascariz:
good post for xperia s development
[Xperia Arc Android Development] championswimmer:
i was looking into this a little (for x10)

if you can get hold of cwm sources and compile it, then you just need the binary (recovery.CWM5)...

that's the only advantage i see from this...that you do not need to compile whole kernel and ramdisk ...just compile yourself a cwm
[Xperia Arc Android Development] pvyParts:
not only that there is alot you can do from the ramdisk, enable init.d, auto root, ect ect. look at dooms ASK kernel that is all ramdisk mods

also there is a bit more to it than just adding the binary.

pvy.
[Xperia Arc Android Development] championswimmer:
ya ya i know that...

(see my sig, id been integrating doom's recovery system to fxp kernels...lol.)

he was asking about editing cmw5, so i said that...

i mean if cwm is already present, then i suppose recovery triggers and shell files for runninh cwm are already in place...just put the newly compiled cwm binary blob in place of old (ofcourse if some dependency too if needed)
[Xperia Arc Android Development] pvyParts:
Yeah I had just found your thread and was gonna edit my post but you beet me too it lol.

Pvy

Sent from my TEAM powered Arc S
[Xperia Arc Android Development] LinixAndroid:
Can't exec "mkbootimg": No such file or directory at repack-bootimg.pl line 19.
[Xperia Arc Android Development] cowsquad:
First of all, are you using ubuntu? If yes, is it 32 or 64bit? Make sure you download mkbooting that matches ur op system bit, them move that to /bin directory and give it permissions.
[Xperia Arc Android Development] LinixAndroid:
I'm using Linux Mint 64 bit, that pretty much a based ubuntu right? Where do i get teh 64 ver?
[Xperia Arc Android Development] cowsquad:
Yes. You should google mkbootimg 64 bit
[Xperia Arc Android Development] championswimmer:
anyone has a link? please post.

i wanted too

and @iris if you could include 64 bit mkbootimg in op?
[Xperia Arc Android Development] mohoram:
I'm testing to change the kernel logo, and I have some little problem.

I tried with the kernel [ARC / ARC S] DooMKernel CM7 (v02) modCWM-v2 [For: CM7-FXP044 / 5] and everything has gone well. But now I've done tests with a different kernel with a top and no way, when you should leave the logo, the screen goes black and the time is reset.

I follow both equally.

Any ideas?
[Xperia Arc Android Development] championswimmer:
@iris

sudo apt-get install abootimg

!!!

no more problems of 32 or 64 bit :p

the usage of abootimg is a little differnt though.

instead of base address, it's called kerneladdr

abootimg boot.img -c "kerneladdr=0x00020000" -k zimage -r ramdisk.cpio.gz

and abootimg can spilt boot.img too
[Xperia Arc Android Development] mohoram:
Doing more tests, I took a kernel version author and do not remember, I've unpacked and packed again has the size has not changed in size, but when viewing a program in hexadecimal, if there are changes in the file, so the kernel does not work properly repack.:(:(:(
[Xperia Arc Android Development] SimonZ:
My new Boot logo:

ArcBoot4.png

I shared it in the file below.
[Xperia Arc Android Development] mohoram:
Why change the colors of the logo to go out on the phone?

an example the kernel doomlord logo, the mobile face is yellow, but when unzip out of light blue, for me it's the same with a picture that would put me in there most of the original yellow and when it appears in the lyrics is most blue.:confused::confused:

Another little thing I had problems to change the logo in the kernel have been fixed by changing the method of reconversion to rle.:)
[Xperia Arc Android Development] seljachina:
i stuck on the bigining

when i enter this line:

perl split_bootimg.pl boot.img

terminal return to me:

Android Magic not found in boot.img. Giving up.

some help?
[Xperia Arc Android Development] championswimmer:
if you are on ubuntu,

there's an easier method

sudo apt-get install abootimg

abootimg -x boot.img
[Xperia Arc Android Development] zohaib0001:
please help

i successfully unpack ram disk

problem in final step when i want to make my newboot.img file its give me error here below is my command and error attached

my command

Error i got

please can some one tell me how to repack kernel img file
[Xperia Arc Android Development] iridaki:
You need to put the ramdisk folder in the repack command!
[Xperia Arc Android Development] I_@m_me:
Could we use use this to theme the recovery and the charging screen?
[Xperia Arc Android Development] championswimmer:
for charging screen change

/system/usr/semc folder....no change to ramdisk needed....

xrecovery background image can be changed using this method of course...not the text colour
[Xperia Arc Android Development] I_@m_me:
Does this applies to all se s1 devices
[Xperia Arc Android Development] championswimmer:
only if your kernel doesnt boot then only add that filler file....

and i dont think this applies to x10 though
[Xperia Arc Android Development] I_@m_me:
So it means it will not mind my images being mbs bigger?
[Xperia Arc Android Development] championswimmer:
the boot partition does have an upper limit but i have run kernels upto 9mb in size... larger than that....i have no idea....
[Xperia Arc Android Development] I_@m_me:
so I'm threading dangerous waters with a 12.1 mob ram disk am I? Given 2011 devs have 12 mb as other partition limit is there a way to repartition?
[Xperia Arc Android Development] championswimmer:
if its too large...it wont boot.... just that...btw are you editing a locked bootloadet kernel?

for x10...usually boot.img is not used
[Xperia Arc Android Development] I_@m_me:
Nope unlocked kernel though I'm not getting much progress repacking kernel.sin
[Xperia Arc Android Development] zohaib0001:
ok i did it as you said but still get an error

please help me to repack boot img

my command is

error got this time with this command
[Xperia Arc Android Development] championswimmer:
replace "Untitled Folder" with "Untit*" in your commands....

also start with ~/Desktop instead of /root/Desktop

(ofcourse without quotes)
[Xperia Arc Android Development] zohaib0001:
please help

this is the step 5 command

please tell me what i write in place of ../

in command you did not tell that what we will write against it ../
[Xperia Arc Android Development] paxChristos:
../ means to put it in the directory directly outside the one you're working in (i.e. kernel/ramdisk/working/ would put it in ramdisk/ )

Pax
[Xperia Arc Android Development] zohaib0001:
ok now i rename the folder

this time again i got error
[Xperia Arc Android Development] championswimmer:
where is your mkbootimg file?

you need to place it inside /bin folder
[Xperia Arc Android Development] I_@m_me:
Searching for 64 mkboot
[Xperia Arc Android Development] ramezzidane:
i'v a question

i'v followed the instructions and every thing works fine

except kernel logo color changed !!!!???

the same photo i picked but its color changed

any idea ?

btw i used this tool to convert the picture

http://xdaforums.com/showthread.php?t=1140406
[Xperia Arc Android Development] zohaib0001:
please help me

i need 64 bit mkbootimg file

can some one provide me by upload here or provide a download link

i will be very thankful to you guys
[Xperia Arc Android Development] championswimmer:
download the sources and compile yourself
[Xperia Arc Android Development] zohaib0001:
How can i compile it for 64 bit ??

please define a method
[Xperia Arc Android Development] dannyqanaah:
Hellllppppp

thanks
[Xperia Arc Android Development] championswimmer:
hi guys....

you could use this as an alternative

http://xdaforums.com/showthread.php?p=26229528

works on linux and cygwin both
[Xperia Arc Android Development] ChaosFirZen:
Thanks Iridaki Know I Have My MASS DESTRUCTION KERNEL>>> :))))
[Xperia Arc Android Development] CosmicDan:
Does the Arc also have no ability to read kernel cmdline from boot.img header just like other Xperia's? :(
[Xperia Arc Android Development] zanky:
ok so i've got a question and a request. The SE boot logo included in first post (with init.rle file), is it the old Sony ericsson logo, or the new Sony logo post ICS since the new ones only say SONY at startup instead of SE and the logo. If its the old SE one, is it possible to have an init.rle included for the new sony logo. i cant find the proper one anywhere.

Now the request. And i know the main post said no requests. I've read quite a few guides, and i've read the process to unpack and repack full boot.img file. But i've also read in one of the posts that instead of repacking and flashing the full boot.img file, one can simply include a flashable file that only contains init.rle to be flashed to the phone.

I don't have linux and all this is too advanced for me. i took 3 months just to flash cm9 to my xperia ray. So would it be possible for someone to make a flashable file with the new sony logo to replace init.rle. Like i said, instead of repacking the full boot.img you can just make an update zip. this way the rest of us who just want the sony logo instead of the freexperia logo that shows up when we install cm9 can use this file.

the links ive read, apart from the current thread) are:

http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images

http://xdaforums.com/showthread.php?t=443431

http://androidforums.com/optimus-m-all-things-root/492758-boot-logo-help-me-change.html
[Xperia Arc Android Development] rivelta:
thanks pal , im gonna try it

sent from my security handy talkie . talk free no pay
[Xperia Arc Android Development] D-dy:
can i use this to modify kernel sony live with walkman ?

thx
[Xperia Arc Android Development] D-dy:
Never mind. it work on lww too :D
[Xperia Arc Android Development] tinyXperia:
What did I do wrong :eek:

I always get the error /ramdisk/ no such directory found. (ignore the other errors) See the last line.

USER@USER-VirtualBox:~$ sudo cp mkbootimg /bin/
[sudo] password for USER:
cp: cannot stat `mkbootimg': No such file or directory
USER@USER-VirtualBox:~$ cd ~/Downloads/
USER@USER-VirtualBox:~/Downloads$ sudo cp mkbootimg /bin/
USER@USER-VirtualBox:~/Downloads$ sudo chmod 755 /bin/mkbootimg
USER@USER-VirtualBox:~/Downloads$ perl split_bootimg.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 3853620 (0x003acd34)
Ramdisk size: 1893115 (0x001ce2fb)
Second size: 0 (0x00000000)
Board name:
Command line:
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
USER@USER-VirtualBox:~/Downloads$ mkdir ramdisk
USER@USER-VirtualBox:~/Downloads$ cd ramdisk
USER@USER-VirtualBox:~/Downloads/ramdisk$ gzip -dc ../boot.img-ramdisk.gz | cpio -i
5535 blocks
USER@USER-VirtualBox:~/Downloads/ramdisk$ find . | cpio -o -H newc | gzip > ../newramdisk.cpio.gz
5246 blocks
USER@USER-VirtualBox:~/Downloads/ramdisk$ cd
USER@USER-VirtualBox:~$ cd ~/Downloads/
USER@USER-VirtualBox:~/Downloads$ perl repack-bootimg.pl '~/Downloads/boot.img-kernel' '~/Downloads/ramdisk' newboot.img
[b]~/Downloads/ramdisk No such file or directory at repack-bootimg.pl line 13[/b]
[Xperia Arc Android Development] pvyParts:
Add a /

`~/Downloads/ramdisk/`

Think that's it.

Pvy
[Xperia Arc Android Development] eojlicec:
Anyone happened to find out a 64bit mkbootimg. Plz share desperately googling it. New to all these :banghead:

Device : ST15i

ROM : Pureness v5

Kernel : Lupus v9

Selling ST15i. Getting LT26i :)
[Xperia Arc Android Development] Ghostfreak NB:
+1 to this

Also @Iris

Can you add it in Op if you happen to find one?
[Xperia Arc Android Development] Ghostfreak NB:
Deleted

Xda app bug!
[Xperia Arc Android Development] Ghostfreak NB:
Deleted :rolleyes:

My posts are getting posted here instead!

Damn!

My bad

I apologize!
[Xperia Arc Android Development] Louis235:
Hi!

I hope my question fits to this thread. Otherwise, please delete.

I tried to set up DSIXDA's Kitchen and everything seemed to work. But now, when I trie to open kitchen typing cd: kitchen >enter<

i get the message "-bash: cd: kitchen: no such file or directory"....can anybody tell me what I did wrong? I think maybe it's got to do with the package directory? But I don't know where to change it or whatever.

I would be very happy about help, as I would like to trie to modify a Kernel and these are my first steps with kitchen.

Greets
[Xperia Arc Android Development] eojlicec:
As the statement says the path from which you are trying to kick the app and where the app is present are not the same.

Use the below commands

Pwd - shows your current folder

Ls - lists the files and folders under your current folder.

Google for basic Unix scripts.

Device : ST15i

ROM : Pureness v5

Kernel : Lupus v9

Selling ST15i. Getting LT26i :)
[Xperia Arc Android Development] werty100:
error

Android Magic not found in boot.img. Giving up. this is the error.

What is bad?
[Xperia Arc Android Development] PikachuCLS:
I suppose everything goes well when you have a pagesize of 2048 like yours iridaki, but for those of us who have larger pagesizes (mine is 8192), it is no-mans land. I've searched on Google for mkbootimg that supports 8192, but people who do solve the problem are rather vague and say that they've simply edited the mkbootimg binary to support 8192 and don't go into the specifics. It's rather frustrating. Does anyone know the solution?

Also, please tell me if this question doesn't go here.
[Xperia Arc Android Development] razoraniruddh1998:
Error..

Some one please help me.. I am continuously getting this error.. tried a 1000 times.. I have attached the screenshot..
[Xperia Arc Android Development] :
Can I just work with my boot.img-kernel so I can just modify the cpu_max_freq and recompile, done?

Thanks
[Xperia Arc Android Development] underskyzx:
I dont know either!
[Xperia Arc Android Development] ^I'm_With_Stupid:
Hey, when I try to extract boot.img, terminal gives me this error. Hopefully someone can help me :p

./edit-kernel/bootimg/unpack: line 33: $BOOT_CONFIG_NAME.cfg: ambiguous redirect
./edit-kernel/bootimg/unpack: line 34: $BOOT_CONFIG_NAME.cfg: ambiguous redirect
cp: target ‘play’ is not a directory
Page size: 131072 (0x00020000)
Kernel size: 3394316 (0x0033cb0c)
Ramdisk size: 4107987 (0x003eaed3)
Second size: 0 (0x00000000)
Board name:
Command line:
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.

gzip: ../boot.img-ramdisk.gz: not in gzip format
cpio: premature end of archive
Find zImage, initrd.img, xperia play.cfg and ramdisk-contents inside 'bootimg-contents' in output folder

edit: nevermind, found a relevant thread
[Xperia Arc Android Development] patraanjan23:
how to add filler file?

can you please tell me how can I add filler file? I tried but the ramdisk keeps being compressed to 177 kb. I need to add 3.8 mb of filler. please help
[Xperia Arc Android Development] Restl3ss:
Slight problem, I'm attempting to rebuild the boot.img and every time I get this error:

-bash: /bin/mkbootimg: cannot execute binary file

now I AM using a bash terminal instead of a standard sh, but it's worked fine thus far, only hiccuping on the last step. Any suggestions?
[Xperia Arc Android Development] pepitoff:
Does anybody can change for me this boot.img bootlogo with original SONY logo?

This is boot.img from CM11 LX KitKat 20140113 anzu build.

I'm using Windows and cant do it by myself...

Thanks in advance!
[Xperia Arc Android Development] Dvalin21:
You will find it in the bootloader.fex file.
[Xperia Arc Android Development] dd_command:
Hi everyone

I have a general question about boot.img it should apply to any model of phone people are using

I tried to split my boot.img i read plenty of treads, downloaded many tools for linux and windows but non of the tools gave me a result it was failed and error all over again i was close to give up but i found out i was able to unpack boot.img manually. If somebody wants to know how to unpack boot.img please let me know i can make post about that. But my question is about repacking my ramdisk.

Question is:

So i did that on hex editor. I know the exact length of gziped file extract it using dd command. And then when i repacked cpio and gzip again.

If i will make new gzip smaller than original one, is it possible to put this new file in same place where original one was using dd command again? Without all this commands

mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --base 0x20000000 --cmdline 'no_console_suspend=1' -o new_boot.img

because non of them was not changed i think. Do you thing guys that will be good?
[Xperia Arc Android Development] zameer_yus:
hello sir thanks for such a great tool

can you make a same tool to unpack and repack hidden.img file or please guide me how to unpack and repack hidden.img and cache.img file

thanks
[Xperia Arc Android Development] zameer_yus:
Error whie extracting boot.img-ramdish.gz

gzip: ../unpack/boot.img-ramdisk.gz: not in gzip format

cpio: premature end of archive

ahmad@ubuntu:~/Desktop/boot-tools$ tools/unpackbootimg -i source_img/boot.img -o unpack

BOARD_KERNEL_CMDLINE

BOARD_KERNEL_BASE ffff9000

BOARD_PAGE_SIZE 0000100c

ahmad@ubuntu:~/Desktop/boot-tools$ cd boot

ahmad@ubuntu:~/Desktop/boot-tools/boot$ gzip -dc ../unpack/boot.img-ramdisk.gz | cpio -i

gzip: ../unpack/boot.img-ramdisk.gz: not in gzip format

cpio: premature end of archive

i tried same command with s5360 boot.img work perfect but other models doesnt work
[Xperia Arc Android Development] Black_Eyes:
[MENTION=426752]iridaki[/MENTION] same here

Getting this error "gzip: ../unpack/boot.img-ramdisk.gz: not in gzip format

cpio: premature end of archive"
[Xperia Arc Android Development] napstersnook:
help please... modify boot image

Hi all!

Please can anyone do me a favor of modifying the boot images i have... I just need the touchscreen driver be transferred from the boot image to the other if somehow possible... I have a Mocordroid 2.3.5 W12.20.P20.01 Android 4.0.4 phone as indicated on the factory test mode and L3035D GT-I9082 V03.03B01 as indicated on the motherboard of the same phone. What happened was that the phone is unusable due to possible corruption so I had to reflash it with the .pac files available from the net but unfortunately I only found two pac files that seemed to work, one with touchscreen not working and one with touchscreen working but volume up and down not working. Please let me know if anyone can help. Thanks in advance.
[Xperia Arc Android Development] johnvuong1999:
sounds great, thank you.
[Xperia Arc Android Development] Shoaib05:
mkbootimg: no such file or directory

I have been getting the above mentioned error whenever I try to repack my zImage and ramdisk folder. Please, can someone tell me the solution for this problem? :( I really want to use my 1st successfully compiled kernel on my device. :crying:
[Xperia Arc Android Development] Artemis00:
You are trying to run a x86 binary on an 64-bit linux. Either get the x86 binary here (http://xdaforums.com/showthread.php?t=2319018) or run it on a 32-bit linux.

---------- Post added at 11:49 PM ---------- Previous post was at 11:47 PM ----------

lzma -dc ../unpack/boot.img-ramdisk.gz | cpio -i

---------- Post added at 11:52 PM ---------- Previous post was at 11:49 PM ----------

I have recently tried to modify the ramdisk from boot.img (inside Kernel .zip) in linux by unpacking (splitting), changing all images from CWM (without modifying filenames or adding/removing files) and repacking it back together, first as boot.img then replacing that inside the .zip. Everything went smooth without any errors/warnings. However, everytime I try to flash it and boot into recovery it gets stuck at Samsung logo.

Something else I noticed:

Even if the images (/boot/ramdisk/res/images/) are smaller than the originals, the final boot.img is about 1MB larger than the original.
[Xperia Arc Android Development] MM365:
remote: dtb not found

Hi,

when running "fastboot boot newboot.img"

i receive the error:

downloading 'boot.img'...
OKAY [ 3.152s]
booting ...
FAILED (remote: dtb not found)
finished. total time: 3.229s

Any suggestions how to solve this?