+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Administrator LeshaK is on a distinguished road
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,712

    Default How to create zImage from bml4 dump

    How to create bml4 dump
    Code:
    cat /dev/bml4 > /sdcard/bml4

    Now create zImage
    Run any HEX editor and open bml4


    at address 0x24 - you can find magic number (DWORD) - 0x016f2818 = zImage magic number
    and
    at address 0x2C - size of zImage (for example = 0x004e34bc)
    simple resize bml4 for this size and save as zImage

    next put it to tar and flash by Odin
    Twitter | Devices: Samsung Spica i5700 - SamdroidMod 2.0.1 Froyo | Nexus One - Android 2.2 Froyo | Nexus S CyanogenMod 7.1
    If you like my stuff, buy me a beer!

  2. #2
    Junior Member starfish
    Join Date
    Jan 2010
    Posts
    1

    Default Re: How to create zImage from bml4 dump

    Darn, I'm too deft to understand this.
    I got the bml4 on my computer, opened it with an hexeditor and checked the size ( 0xe10f2000).
    But how do you resize the file to that length and what do you use the magic number for?

    /Starfish

  3. #3
    Administrator LeshaK is on a distinguished road
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,712

    Default Re: How to create zImage from bml4 dump

    Magic number - it's only to identify zImage
    For resize:
    1. I use Hex Editor Neo
    2. I main neum "Edit->Change File size" simple enter size from offset 0x2C
    Twitter | Devices: Samsung Spica i5700 - SamdroidMod 2.0.1 Froyo | Nexus One - Android 2.2 Froyo | Nexus S CyanogenMod 7.1
    If you like my stuff, buy me a beer!

  4. #4
    Junior Member Nuxx is on a distinguished road
    Join Date
    Jan 2010
    Posts
    23

    Default

    Quote Originally Posted by LeshaK View Post
    Magic number - it's only to identify zImage
    For resize:
    1. I use Hex Editor Neo
    2. I main neum "Edit->Change File size" simple enter size from offset 0x2C
    Leshak, I did exactly as said, then I renamed the file to zImage, and put into TAR with 7-Zip. When I try to reflash this original kernel on my phone, and select the TAR under PDA Tab in Odin, i get an "Invalid Image Type" error.

    Please help

  5. #5
    Administrator LeshaK is on a distinguished road
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,712

    Default

    Quote Originally Posted by Nuxx View Post
    Leshak, I did exactly as said, then I renamed the file to zImage, and put into TAR with 7-Zip. When I try to reflash this original kernel on my phone, and select the TAR under PDA Tab in Odin, i get an "Invalid Image Type" error.
    Please help
    You should RESIZE it! before put into TAR!

    and I don't know about 7-Zip's TAR, I use tar from Linux.
    Twitter | Devices: Samsung Spica i5700 - SamdroidMod 2.0.1 Froyo | Nexus One - Android 2.2 Froyo | Nexus S CyanogenMod 7.1
    If you like my stuff, buy me a beer!

  6. #6
    Junior Member husq510 is on a distinguished road
    Join Date
    Jun 2010
    Location
    italy
    Posts
    6

    Default

    is this valid for samsung galaxy S i9000 too ? offset at 0x2C is valid only for zImage or also for RFS like want to extract RFS from bml5 or bml6 whatever..


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts