Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,869 Members 39,444 Now Online
XDA Developers Android and Mobile Development Forum

[Q] SM-G900F build custom boot.img

Tip us?
 
cloooned
Old
#1  
Member - OP
Thanks Meter 0
Posts: 30
Join Date: Mar 2013
Default [Q] SM-G900F build custom boot.img

Hi

I am used to rebuild boot images with unkmbootimg/mkbootimg on my S4 mini. When I repack a G900F a working stock boot.img and flash it with Odin, the device boots into download mode. I didn't made any changes in the ramfs, the sources are binary the same, but when I repack it to the boot.img it's different to the stock.

Is my bootloader locked? Do I need a special mkbootimg to enable SEAndroid enforcing? It does not matter if I disable it in the ramfs. Do I have to modify the kernel too?

Regards
 
cloooned
Old
#2  
Member - OP
Thanks Meter 0
Posts: 30
Join Date: Mar 2013
It seems, that not the boot image is the problem but the cpio initramfs.

I can use the command

Code:
Select Code
abootimg -u boot.img -r initrd.img
to replace the ramdisk in a working boot image. This works only if a replace the current initramfs with the original initramfs. If I unpack the initramfs too and repack the exact same sources, it won't boot. The sources are binary the same, but the packed initramfs is totally different.

I use the following command to repack my initramfs:

Code:
Select Code
find . | cpio -o -H newc | gzip > ../initrd.img
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes