Jump to content

To: flibblesan and BigBearMDC, why Repacked boot.img can't boot?


Recommended Posts

Guest mryongzhang
Posted

Hi, flibblesan and BigBearMDC and this forum's everybody.

Thank you for your excellent work and MoDaCo forum, I'm a new pulse's user from China.

I've been using the T-mobile official 2.1 update for one week, and I like it.

Now I want to install A2SD by myself. Firstly in recovery mode I flash the A2SD's install ZIP,

then I want to edit boot.img to mount ext2 partition.

I successfully unpack boot.img, Extract the ramdisk, and edit default.prop to following:

ro.secure=0

ro.allow.mock.location=0

ro.debuggable=1

persist.service.adb.enable=1
and I edit init.rc to following:
export TERMINFO /system/etc/terminfo

   ...

start sysinit

on property:cm.filesystem.ready=1

   ...

# Execute files in /etc/init.d before booting

service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d

disabled

oneshot
then I use the mkbootfs binary to recreate the ramdisk(new-ramdisk), and run the following command to repack the boot.img.
$ mkbootimg --cmdline 'mem=128M console=ttyMSM2,115200n8 androidboot.hardware=qcom console=ttyUSBCONSOLE0 androidboot.console=ttyUSBCONSOLE0' --kernel ./boot.img-kernel --ramdisk ./new-ramdisk -o /new-boot.img

Every step's result seems success, and the new boot.img's size is same as the FLB's custom ROM.

But when I flash the new boot.img to my pulse, the pulse can't boot.

Then I flash the boot.img from FLB1.4's custom rom, the pulse can't boot too.

Is there any wrong in my unpack and repack steps? Or code edit?

Thanks , sorry for my poor english.

Guest BigBearMDC
Posted
Hi, flibblesan and BigBearMDC and this forum's everybody.

Thank you for your excellent work and MoDaCo forum, I'm a new pulse's user from China.

I've been using the T-mobile official 2.1 update for one week, and I like it.

Now I want to install A2SD by myself. Firstly in recovery mode I flash the A2SD's install ZIP,

then I want to edit boot.img to mount ext2 partition.

I successfully unpack boot.img, Extract the ramdisk, and edit default.prop to following:

ro.secure=0
ro.allow.mock.location=0
ro.debuggable=1
persist.service.adb.enable=1[/code] and I edit init.rc to following:
[code]export TERMINFO /system/etc/terminfo
...
start sysinit
on property:cm.filesystem.ready=1
...
# Execute files in /etc/init.d before booting
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
then I use the mkbootfs binary to recreate the ramdisk(new-ramdisk), and run the following command to repack the boot.img.
$ mkbootimg --cmdline 'mem=128M console=ttyMSM2,115200n8 androidboot.hardware=qcom console=ttyUSBCONSOLE0 androidboot.console=ttyUSBCONSOLE0' --kernel ./boot.img-kernel --ramdisk ./new-ramdisk -o /new-boot.img

Every step's result seems success, and the new boot.img's size is same as the FLB's custom ROM.

But when I flash the new boot.img to my pulse, the pulse can't boot.

Then I flash the boot.img from FLB1.4's custom rom, the pulse can't boot too.

Is there any wrong in my unpack and repack steps? Or code edit?

Thanks , sorry for my poor english.

Use gzip to create the ramdisk, that works fine for me.

I don't know the exact command right now, but I'll post it in anfewnhours if that's ok. You can also have a look at the official Android side from google, just google 'unpack and repack boot.img', the gzip command to repack the ramdisk is there :huh:

Best regards,

BB

Guest mryongzhang
Posted (edited)

thank you very much.

I just unpack and repack boot.img according to the following link's method.

http://android-dls.com/wiki/index.php?titl...ack_Boot_Images

and now I will try to use gzip to create the ramdisk.like this:

find . | cpio -o -H newc | gzip > ../new-ramdisk.cpio.gz

hope to success. :huh:

Edited by mryongzhang
Guest BigBearMDC
Posted
thank you very much.

I just unpack and repack boot.img according to the following link's method.

http://android-dls.com/wiki/index.php?titl...ack_Boot_Images

and now I will try to use gzip to create the ramdisk.like this:

find . | cpio -o -H newc | gzip > ../new-ramdisk.cpio.gz

hope to success. :huh:

Exactly thatls the right command ;)

If it still refuses to boot (maybe because you tried to mount the wrong partition) you can run 'adb shell' and have a look at the output from logcat, bugreport, dmesg and kmsg (kmesg is in /proc, run cat /proc/kmsg).

Best regards,

BB

Guest Chinese farmers
Posted

搞鸡巴 我也是中国人 你在中国哪个论坛混啊 交流交流啊

用google翻译看了一下 听别人说 好像是mkbootimg这个工具的原因 这个工具一定要是8220的

我去你妈的鸟文

Guest BigBearMDC
Posted
搞鸡巴 我也是中国人 你在中国哪个论坛混啊 交流交流啊

用google翻译看了一下 听别人说 好像是mkbootimg这个工具的原因 这个工具一定要是8220的

我去你妈的鸟文

I think I need an interpreter here.

Google translater fails epic while translating this, sorry :huh:

Best regards,

BB

Guest mryongzhang
Posted
搞鸡巴 我也是中国人 你在中国哪个论坛混啊 交流交流啊

用google翻译看了一下 听别人说 好像是mkbootimg这个工具的原因 这个工具一定要是8220的

我去你妈的鸟文

哥们儿,虽然你是在英文论坛用汉语打字,但是你也最好不

Guest mryongzhang
Posted (edited)
I think I need an interpreter here.

Google translater fails epic while translating this, sorry :huh:

Best regards,

BB

haha,Chinese farmers said: Maybe there's some wrong with mkbooting, the mkbooting muse be pulse's mkbooting.

Is that right?

so, where can I download a pulse's mkbooting tool?

BigBearMDC, can you send me one?

thanks.

Edited by mryongzhang
Guest Chinese farmers
Posted
哥们儿,虽然你是在英文论坛用汉语打字,但是你也最好不
Guest mryongzhang
Posted
外国人要是能把我说的 看懂了 哪我在也不来这论坛了 哈哈

支持你啊 我好像学啊 就是看不懂 鸟文 烦啊

太烦了

你在bbs.hiapk.com叫什么

在安卓网的ID跟这个是一样的,也叫mryongzhang

Guest mryongzhang
Posted
thank you very much.

I just unpack and repack boot.img according to the following link's method.

http://android-dls.com/wiki/index.php?titl...ack_Boot_Images

and now I will try to use gzip to create the ramdisk.like this:

find . | cpio -o -H newc | gzip > ../new-ramdisk.cpio.gz

hope to success. :huh:

I have tried gzip,but I still fail too..........

Guest mryongzhang
Posted (edited)

According to Darktremor Apps2SD's install guide, to add Apps2SD support to custom Rom, we will need to know phone's kernel base address.

Does anybody know Pulse's base address?

Edited by mryongzhang
Guest mryongzhang
Posted

Today I download Phoenix-Kernel, and found mkbootimg in package.

But I use that mkbootimg to Repack the boot.img, it's still fail to boot.

Now I have to give up.

Guest BigBearMDC
Posted
Today I download Phoenix-Kernel, and found mkbootimg in package.

But I use that mkbootimg to Repack the boot.img, it's still fail to boot.

Now I have to give up.

Okay, try repacking the FLB MOD kernel image. If that works you just made an error in your init.rc. I should have plenty of time to help you the following week (maybe even tomorrow afternoon UTC+2).

Best regards,

BB

Posted
Today I download Phoenix-Kernel, and found mkbootimg in package.

But I use that mkbootimg to Repack the boot.img, it's still fail to boot.

Now I have to give up.

If you upload the failing image we might be able to identify the problem.

Guest mryongzhang
Posted
If you upload the failing image we might be able to identify the problem.

I just upload the boot.img made by myself, could you make a look?

thank you very much.

boot_new.img

Guest mryongzhang
Posted
Okay, try repacking the FLB MOD kernel image. If that works you just made an error in your init.rc. I should have plenty of time to help you the following week (maybe even tomorrow afternoon UTC+2).

Best regards,

BB

thanks BigBear for your paient reply, I will try FLB MOD.

Guest twrock
Posted
According to Darktremor Apps2SD's install guide, to add Apps2SD support to custom Rom, we will need to know phone's kernel base address.

Does anybody know Pulse's base address?

I have the same question. I assume it is different for 1.5 and 2.1, and maybe even different for different updates of those two rom versions.

Does anyone know how to find that information off of a particular phone?

Guest Chinese farmers
Posted

楼主啊 你在不在啊

你的mkbootimg能用了吗

能不能给一个给我啊

我想把Recovery中文了

可以加你QQ吗 有很多菜鸟问题想请教你

谢谢

Posted
I have the same question. I assume it is different for 1.5 and 2.1, and maybe even different for different updates of those two rom versions.

Does anyone know how to find that information off of a particular phone?

The base address is always 0 (so using mkbootimg you don't need to specify a base).

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.