MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.

25/Jul r1 BootBuilder for PulseMini (ALPHA Release)

13 posts in this topic

Posted (edited) · Report post

BootBuilder for PulseMini

Announcing a set of linux basic tools for unpacking and extracting the contents of the Pulse Mini boot.img allowing more customisation capability for the PulseMini custom roms.

To use-

1. Extract the tar file to your file system.

2. Place the source boot.img into the 'bootworkspace' folder.

3. In a shell, change directory to the 'Scripts' folder.

4. In the shell, enter './Unpack-bootimg' to unpack the boot.img.

5. Modify the ramdisk as required in the 'bootworkspace/boot.img-ramdisk' folder.

6. In the shell, enter './Build-ramdisk' to build the ramdisk.

7. In the shell, enter ./Build-bootimg to build the new boot-new.img.

To test / install, boot the phone into fastboot - turn if off, then tap the powerbutton while holding the 'Volume Down' and 'End (Red)' keys.

From your favourite operating system, run the following to test-

fastboot boot boot-new.img

Or the following to flash the new boot image-

fastboot flash boot boot-new.img

Download

CREDITS

------------

Too many to mention, sadly I can't remember who to credit for the perl unpacking file.

NOTES

----------

* Use with caution, bricking devices is a possibility with custom roms / boot images.

* The process requires an understanding of the Android and boot.img files.

* Tested on Ubuntu 10.4 LTS.

* If Fastboot is required, the Fastboot binaries can be found in any of the custom recovery downloads.

* Source for the mkboot tools is included in the 'BootBuilder/Tools/mkboot' folder, it may need to be rebuild on certain operating systems.

* Requires perl to be installed.

Known Issues

-----------------

* The boot.img build process does not put the correct values into the boot image header resulting in an image file that will not boot. Still investigating the cause.

Copying the first 16 bytes (bytes 0x00 to 0x0f) and the ram image offset (bytes 0x14-0x17) from an out of the box image to the new image appears to fix it using Notepad++ for example with the Hex Editor plugin.

Edited by m2te
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Did you resolve the issue? Or how did you create a modified boot.img for your rom?

best! G

forget about it...didn't see the 2nd sentence with how you can fix it :(

Edited by gforums
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Did you resolve the issue? Or how did you create a modified boot.img for your rom?

best! G

forget about it...didn't see the 2nd sentence with how you can fix it :(

Could you please give some more information.. I don't realy get it.. from were do i need to adjust?

I have used your tool to make a new boot.img i have adjust the init.rc for ap2sd direct methode.

then i repacked everything with your tool and than you are telling to adjust the new boot img with a hex editor and at that point im stuck..

could anyone take a look at this? it for a vodafone 845 phone (huawei 8210)

I have uploaded the orginal and the new one.

http://www.mediafire.com/file/ik54u4d0i8jdxa4/Bootrom.rar

Edited by freddyemmer
0

Share this post


Link to post
Share on other sites

Posted · Report post

Maybe someone could explane this line?

Coping the first 16 bytes (bytes 0x00 to 0x0f) and the ram image offset (bytes 0x14-0x17)

0

Share this post


Link to post
Share on other sites

Posted · Report post

Maybe someone could explane this line?

Coping the first 16 bytes (bytes 0x00 to 0x0f) and the ram image offset (bytes 0x14-0x17)

Apologies, I will get around to answering you, I've got a spam problem at the moment though

0

Share this post


Link to post
Share on other sites

Posted · Report post

Apologies, I will get around to answering you, I've got a spam problem at the moment though

You don't have to aplogies i just being unpatient :( Thanx in advance!!

0

Share this post


Link to post
Share on other sites

Posted · Report post

You don't have to aplogies i just being unpatient :( Thanx in advance!!

I'm using Notepad++

http://notepad-plus-plus.org/

And the hex editor plugin from-

http://sourceforge.net/projects/npp-plugins/files/

I open the boot.img file in Notepad++, change the view by clicking on the 'Plugins' menu follwed by 'HEX-Editor' then 'View in HEX'. You should get a view something like-

Adress	0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f   Dump

00000000 41 4e 44 52 4f 49 44 21 d0 22 24 00 00 80 20 00   ANDROID!........

00000010 08 8c 02 00 00 00 20 01 00 00 00 00 00 00 10 01   ................

00000020 00 01 20 00 00 08 00 00 00 00 00 00 00 00 00 00   ................

I have been copying the first sixteen bytes (41 4e 44 52 4f 49 44 21 d0 22 24 00 00 80 20 00) from the working boot.img to the rebuilt boot.img and the four bytes as position 0x14 to 0x17 (00 00 20 01).

Without doing this the boot.img doesn't seem to boot; for me anyway, I don't know how gforums got on with rebuilding the boot.img. For some reason the mkbootimg tool doesn't seem to get the header correct.

You may not need to do any of this, you can try booting the boot.img from within fastboot without actually flashing it. Connect the phone to your computer, start it up in fastboot then use the command 'fastboot boot <boot.img file name>' on your computer. This should download the boot.img file to the phone and boot it, if it works flash it, if it doesn't try tweaking the boot.img file.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

m2te,

thanx for your explanation now i get it ;-)

yes it works just fine for the vodafone845...

Edited by freddyemmer
0

Share this post


Link to post
Share on other sites

Posted · Report post

cant build boot.img in win7 with cygwin. Build-ramdisk asks for some binaries *shrug*

0

Share this post


Link to post
Share on other sites

Posted · Report post

well...a full ubuntu/linux still is the best choice :D

0

Share this post


Link to post
Share on other sites

Posted · Report post

well...a full ubuntu/linux still is the best choice :D

bah shared folders in VBox with linux guest is horrible :D

if u are up to, mod this boot.img with usual crap. flibs memory tweaks, a2sd .....

boot.img

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Known Issues

-----------------

* The boot.img build process does not put the correct values into the boot image header resulting in an image file that will not boot. Still investigating the cause.

Copying the first 16 bytes (bytes 0x00 to 0x0f) and the ram image offset (bytes 0x14-0x17) from an out of the box image to the new image appears to fix it using Notepad++ for example with the Hex Editor plugin.

Add "--base 200000" to the mkbootimg command. That gave me a header identical to the superboot img. However my device (U8100) refuses to boot my img not matter if I copy with hexedit or use the --base switch. The superboot image worked though.

All I did was extracting the superboot image, replaced Superuser with latest version and created a new image but it says it's invalid when I try to fastboot it.

Edited by kallt_kaffe
0

Share this post


Link to post
Share on other sites

Posted · Report post

If anyone is struggling with mkbootimg and Vodafone 845 Android Cell Phone, i figured that this cell phone expects the boot.img to have 2048 bytes extra after the 2048 bytes header block.

I have created this script which builds "correct" images for this device:

mkbootimg-v845.sh:

-----------------------------------------------------------------------------------------------------

KERNEL="$1"

RAMDISK="$2"

OUTPUT="$3"

CMDLINE="mem=211M console=ttyMSM2,115200n8 androidboot.hardware=qcom console=ttyUSBCONSOLE0 androidboot.console=ttyUSBCONSOLE0"

BASE="0x200000"

mkbootimg --kernel "$KERNEL" --ramdisk "$RAMDISK" --cmdline "$CMDLINE" --base "$BASE" -o "$OUTPUT"

dd if="$OUTPUT" of="$OUTPUT-v845.img" bs=2048 count=1

dd if=/dev/zero of="$OUTPUT-v845.img" bs=2048 count=1 seek=1

dd if="$OUTPUT" of="$OUTPUT-v845.img" bs=2048 skip=1 seek=2

-----------------------------------------------------------------------------------------------------

Then run

chmod +x mkbootimg-v845.sh

./mkbootimg-v845.sh zImage ramdisk.cpio.gz newboot.img

fastboot boot newboot.img-v845.img

And you should be booting your new boot.img!

If anyone is interested, i have built a C program that extracts kernel, ramdisk and second image according to the android header specification, reading the kernel, ramdisk and second images size from the header and extracting it accordingly. Of course this doesn't work on the boot images generated by this script, however i could add a switch for taking into account the extra 2048 bytes.

Happy hacking!

--

Pedro Ramalhais

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.