cat /dev/mtd/mtd1 > /sdcard/cat-boot.img
dump_image boot /sdcard/dump-boot.img
mtd: read all-zero block at 0x00240000; skipping mtd: read all-zero block at 0x002a0000; skipping mtd: read all-zero block at 0x002c0000; skipping
Then I ran unpackbootimg to unpack them. Neither worked, invalid gz files. So I took a look at the image files and instead of 2K header, it had a 4K header that had an extra 2K of 0's. Any idea why that might be?
I deleted the extra 2K of 0's and ran unpackbootimg again, both boot images provided identical gz's that worked.
I am able to test the gz's and extract the cpio, but how can I check if the kernel is good?
Since it seems to be malformed, it might have different spacing or something?
If I try to boot off of it using fastboot it just gives an error:
C:\android-sdk\tools>fastboot boot pulled\extracted\dump-boot.img-zImage creating boot image... creating boot image - 2263040 bytes downloading 'boot.img'... OKAY [ 2.687s] booting... FAILED (remote: invalid boot image) finished. total time: 2.687s
Could someone with some experience take a look and help? I'm doing my best
The attached file has the extra 2K of 0's in the header I mentioned already removed.
Edit: I did the dump while the phone was booted up normally. It doesn't have any recovery mode where I could otherwise do it. If I use "adb reboot recovery" it just formats the phone and reboots.
After doing a bunch of searching I tried this:
fastboot -b 400000 -n 4096 boot pulled\extracted\dump-boot.img-zImage pulled\extracted\dump-b oot.img-ramdisk.gz
Now I can try to port Clockwork Recovery
Edit 3: removed attachment, extracted version is attached to next post.