yashsingh1/xdaforums huggingface dataset:
[Motorola Droid RAZR] whirleyes:
Don't know how you ended up like this.

But if you can connect to adb from recovery,

do this

mount /system
mount /preinstall
rm -fr /system/bin/logwrapper
rm -fr /system/bin/logwrapper.bin
rm -fr /system/bin/hijack
cp /preinstall/bootmenu/misc/logwrapper.bin /system/bin/logwrapper.bin
cp /preinstall/bootmenu/misc/hijack /system/bin/hijack
chmod 755 /system/bin/hijack
chmod 755 /system/bin/logwrapper.bin
ln -s hijack /system/bin/logwrapper
[Motorola Droid RAZR] Aelyus:
That fixed it... From the log, apparently those directories didn't exist. Thank you whirleyes for your quick response! :o
[Motorola Droid RAZR] Sp_Ark:
Looking forward for your work. Boot menu is so far my fav recovery through many I have used in several devices. The reasons r known. Yesterday after all this time with bm I moved to ss3. Its a pity that bm right now its not the first option for someone that wants to flash the most supported ROMs for our RAZR. I loved twrp and its interface from my transformer, but except for being there as a wow feature and for testing roms of course, I don't see how the option for 4 ROMs is useful for the average flasher. I still like having my second ROM at the useless partition and of course being able to flash at first system. So my suggestion is to keep bm with the conversion option, if you sort out the storage problems. I would also love to see some progress for your awesome tweaker app. And of course, I believe we all want to see your rom, cause whatever you have worked on turned to be bug less and fantastic. Sry for my English. I don't want to sound like demanding things. This post is for thanking you once again for your effort and please don't abandon bm.
[Motorola Droid RAZR] Vatazhka:
I'm staying with BootMenu Manager because I don't feel like wasting 1+ GB of webtop - it's just perfect for playing around with custom firmwares. Please let us have an alternative to SS3 and continue to develop and support BMM :)

Sent from my XT910
[Motorola Droid RAZR] whirleyes:
that's what I think. Personally I only need one ROM for daily use, the 2nd for playing.

Right now the easiest possible way to have extra space for 2nd-system.

- cache for first system is moved to userdata (space here@3GB, shared)

- For 2nd-system :

cache (700MB) as system

webtop (1.3GB) as userdata

cdrom (200MB) as cache

Disadvantage, If you go to Motorola stock recovery & do factory reset. Your 2nd-system system & 1st-system userdata will be wiped.

- For 3rd-system : use external sd-card partition 2 as the storage pool (system,cache,data)

Advantage : You set the size for this space, Possible to put ubuntu/linux here

Disadvantage : Performance is effected by micro sdcard speed.

- Sorry no 4th-system

TWRP with GUI is nice to see, I used it on my TF too... but then it just a recovery.

I prefer CWM because of dedupe backup. I do backup often, with dedupe, there's no need for backup same file twice. It's more efficient.
[Motorola Droid RAZR] Jack'O:
2 systems are enough for me too.

The goal should be to install any kind of rom, with SS it's impossible to install MIUI, so if next BM allow this...

I got MIUI as my primary atm.
[Motorola Droid RAZR] raziel23x:
basically why I sent you that invite it is more of a play ground then a actual project just trying to make a device tree that was up to date with STS-DEV-TEAM but also contain bootmenu code making it bootmenu ready out of the box
[Motorola Droid RAZR] whirleyes:
yeah but I don't think to port the device tree from them. Their devtree is a little bit complicated for me. I prefer to start from scratch at local git repo.

Maybe if it's a success then only I make it public.

Right now the only big diff between BMM & SS3 is just how the partition are mount.

BMM -> bind mount (hack unused available storage)
SS3 -> loop mount (use emstorage to store partition image)

I think ROM Converter will be able to handle it.

For now, maybe a few overlay file is enough for you to make a BMM compatible CM10/AOKP/AOSP ROM. (I mean fork STS-Dev team repo & put overlay on top of it.)

Things will change as time permits.
[Motorola Droid RAZR] raziel23x:
I was thinking along the same lines as to I was looking at these test cases OASP/OAKP/CM10 and STS Versions of OASP/OAKP/CM10
[Motorola Droid RAZR] whirleyes:
Make some big changes yesterday. Now no need to convert a SS3 ROM for BMM

Changes to init script were made on-the-fly, just before boot.

Technically ROM backup with BMM can be restored to SS3 & vice versa.

1st-system

/dev/block/system -> /system (700Mb)

/dev/block/userdata -> /data (3.7Gb)

/data/media/cache.img -> /cache (300Mb)

2nd-system

/dev/block/cache -> /system (700Mb)

/dev/block/webtop-> /data (1.3Gb)

/dev/block/cdrom -> /cache (200Mb)

Problem left is how to handle updater_script without converting it (MIUI & SS2.11 only)
[Motorola Droid RAZR] falchetto68:
Hi Whirleyes,

Good to see that you're evolving BMM!

I don't want to move to SS3, although I'm tempted by the new interface... I prefer BMM also because I like MIUI and currently only BMM supports it so, please don't kill it!

Thanks for your great work,

Fabio
[Motorola Droid RAZR] [x]:
Thanks. I already had it turned on, but I checked just in case. I went into the app, and I realized that I have to slide to select. =) I thought I had to tap to select.
[Motorola Droid RAZR] HeroUser96:
hey all!

I'm here from the atrix forum and i have a question (especially to the devs of this)

the new atrix has a locked bootloader and at the moment there is no way to unlock it. so the question is wether it could be possible to get this app to work on the atrix too?

is there any possibility that this can work for the atrix too?
[Motorola Droid RAZR] razielpr:
Well i moved from razr to S3 and i love the freedom but i did enjoy your bootmenu it's the best custom recovery i have used i would love to have it in my S3 its better than cwm recovery and twrp combined so thank you for making my time on the razr very easy and pleasant.
[Motorola Droid RAZR] whirleyes:
Using above partition setup introduce new minor problem.

Situation : Let say you bricked your 1st-system & use fastboot to restore it.

During the initial boot, BMM isn't there to do the magic of reassign back above layout.

What happen is, stock Moto kernel will rewrite file permission in cache partition (your 2nd-system system).

This will result in unbootable 2nd-system. You will have no problem if you do daily backup.

(note : since data for 2nd-system is webtop partition, it will be left intact)

Personal wish : Make BMM apk to include auto backup option. (dedupe as backup format)

(Set time & frequency, it will reboot itself to recovery, do the incremental backup & erase older automatic backup)

Got an idea on how to bypass/solve problem for updater_script. (mount stuff)

How? Basically BMM Recovery will not use update_binary from the installer zip.

It will use it own, custom compile updater_binary which will ignore the extra option specified in the mount option. For example

mount([COLOR="Red"]"ext3", "EMMC", "/dev/block/system"[/COLOR], "/system");

BMM updater_binary just take the last argument & do the mount job. (red is ignored)

Although SS3 based ROM now use "/dev/block/system" (previous was /dev/block/mmcblk1pXX), it still doesn't allow for a dynamic mount option.

I've upgrade to ext4. Without hacking this mount option, installer zip still failing for me.

In my opinion, the updater_script doesn't need to handle the mount itself. It just need to ask the Recovery to do it.

Because for BMM, Recovery is the one that control where the partition is mounted.

tldr;

1. This only apply for future version of BMM (above 0.2.7)

2. Restore Fastboot system image will also destroy your 2nd-system system.

3. No longer need to patch updater_script. -> No need to convert ROM anymore.

4. Maybe automatically upgrade user partition from ext3 to fast ext4. (Only downgradeable by fastboot image)

5. To stay in this game, don't automatically accept OTA upgrade from Moto.

6. BMM is about using your Razr to the max. If you want safe, please use Safestrap.
[Motorola Droid RAZR] HSD-Pilot:
BMM is about using your Razr to the max

Sounds good for me :good:

I'm lurking for the Update (still use V0.2.7 for CM10 Roms)
[Motorola Droid RAZR] dtrail1:
@ Whirleyes: Safestrap 3 gives the option to convert storage to ext4...maybe that helps?

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] whirleyes:
Still can't produce a good bug free build to give away.

Haven't check it yet, but I think that just for the image file.

It won't make any performance improvement because the image file is still stored in internal storage which formatted as fat32.

Here's my phone partition

BMM@recovery:/ #blkid
/dev/block/loop5: UUID="6b56adc5-5335-4fda-844e-67ef924dc83e" TYPE="ext2"
/dev/block/mmcblk1p24: LABEL="userdata" UUID="5b8bf407-f6b2-469b-846b-43724580ec37" TYPE="ext4"
/dev/block/mmcblk1p23: LABEL="userdata2" UUID="8c737ce7-8e95-48e5-8727-373f8717c092" TYPE="ext4"
/dev/block/mmcblk1p22: LABEL="bmm" UUID="0abe70ea-0095-4c28-bf44-650bd7b3cdaf" TYPE="ext4"
/dev/block/mmcblk1p21: LABEL="system2" UUID="865685da-6720-4528-ae03-ff157d3ea0f9" TYPE="ext4"
/dev/block/mmcblk1p20: LABEL="system" UUID="7979f203-7a31-5467-cc10-871d0c9ccb4e" TYPE="ext3"
/dev/block/mmcblk1p16: LABEL="cache2" UUID="8b17be1a-fc2d-4e05-9317-80702bf71ab6" TYPE="ext4"
/dev/block/mmcblk1p7: LABEL="pds" UUID="815dbee8-d622-4b25-be44-6145026fac5c" TYPE="ext4"
BMM@recovery:/ #

I also figured a way to format system partition using mke2fs without freaking the bootloader.
[Motorola Droid RAZR] darkavenger_u2:
Guys i have a problem i erase cid so i can flash china software with new kernel but i cant bot to second system
[Motorola Droid RAZR] HSD-Pilot:
What about your Webtop? After the last China OTA I had to Fastboot the Webtop signed again.
[Motorola Droid RAZR] darkavenger_u2:
I dont use webtop i never use it but i love china system
[Motorola Droid RAZR] leisures:
I use Chinese as well as my base Rom ,I love it....somehow dunno why I can't make work the custom init ,I have to use bptool to boot it..

Fixed....I had to use 2.7 and custom init worked.

Enviado desde mi XT910 usando Tapatalk 2
[Motorola Droid RAZR] captkkk:
So easy to understand the logic behind and now feels (and actually is) a lot safer and can play with ROMs without the fear of screwing up the stock one.
[Motorola Droid RAZR] darkavenger_u2:
To boot first system is no problem to boot second is the problem i can only boot second with cm10 installed if i put miui or any other rom i can only boot win bptool this only occurs when cid is erased
[Motorola Droid RAZR] whirleyes:
Noted. I'll be reverting some changes in beta 0.2.8 back to 0.2.7.

0.2.9 beta coming soon.

Charging/batt stats in recovery now works.

- hex edit battd to load linker from /sbin/linker

- move battery data from /data to /pds (hopefully solve false battery stat between system1/system2)
[Motorola Droid RAZR] whirleyes:
0.2.9 alpha

OK here is BMM latest, bug less build I have.

Notes

- Please clean previous BMM installation. Starting from this version, preinstall partition will no be used to store BMM files. Now is /system/etc/bmm

- Biggest differences is partition setup. Refer previous post for partition setup used in this version.

Main system cache image is stored in /data. For XT912, maybe later will put it in /preinstall.

Prerequisite

- Since this version hacked cdrom partition for cache2 partition. Make sure you have fastboot cdrom.img ready. (prepare also webtop.img & system.img)

- Backup your important files.

What works

-Charging in recovery

-Install SS2/SS3/MIUI ROM as main system, without convert.

--> Have to manualy install BMM from System keeper after each zip install/backup restore.

What still doesn't

-BMM app is still broken. Not included in this version

-Make System2 battery data shared with main system automaticly

(For now, manually copy /system/etc/bmm/bin/battd from system1 to system2)

-2nd-init, Insecure ADBD need to be configure manually.

Both were set to on by default. So far MIUI with 2nd-init work flawless on mine.

(Plan to add these setting option at boot splash screen)

-no-kexec support ATM

-need system 3? on micro sd??

Install

Enable ADB debugging option, unzip, then run install.bat. (on main system)

For linux user, open and see what inside the install.bat

Update : I forgot to include ADB & it's dll. Put it in the same directory of install.bat

AS USUAL : DON'T MIRROR THIS FILE, link it to here
[Motorola Droid RAZR] raziel23x:
When will the APK FILE be ready
[Motorola Droid RAZR] Ramdanih:
yeah I am using custom rom china too..

I'm download from this site.. http://www.houcui.com/rom/Moto

can you share link custom rom china???

sry my bad english
[Motorola Droid RAZR] tarster:
It will be ready when he is done working in it.. Don't rush perfection. Whirley does great work. But sometimes greatness takes time.

From my Droid RAZR Maxx rooted with bootmenu and droid hd
[Motorola Droid RAZR] HSD-Pilot:
I can't install the Alpha. I tried it without and with Administration rights, but I only get an short Window that disappears after one second.
[Motorola Droid RAZR] whirleyes:
I forgot to include ADB & it's dll. Put it in the same directory of install.bat
[Motorola Droid RAZR] HSD-Pilot:
After i sent the Message, i thought about that. Up and running now. I'll try some stuff with it and report back.
[Motorola Droid RAZR] whirleyes:
bug so far :

- restore system backup of non-bmm backup won't auto install bmm. to be fix.
[Motorola Droid RAZR] Fekajo:
@Whirleyes

Is that you could put the same for both mmssms.db system? To avoid Backup and Restore Every time you going from the first to second system

If that is possible

And Thank for your works :)

( sry for my bad english :/ )
[Motorola Droid RAZR] lukas77:
I started playing around with ICS China, for now as second system but I will restore nandroid as first system. The only problem is huge battery drain (no deep sleep working). I using BMM v0.2.9a and as I understand second init is on by default?

Another question is related to KEXEC and partly BMM. Possible to load via KEXEC China kernel and boot China ICS? Profit = working call recorder and no booting via BP Tools.
[Motorola Droid RAZR] whirleyes:
To load stock kernel from Moto, maybe we need a minimal bootloader.. 2nd-boot??

I still load older XT909 ICS kernel.. because I don't want to upgrade cdt.bin just to load the new kernel..

STS kexec mod is something hard.. from what I can understand, it only can load custom made kernel.

p/s : I wish to be able to load a stock moto kernel, regardless of its cdt.bin/region..

we won't get JB directly from Moto.. How can we load a XT912 JB kernel?
[Motorola Droid RAZR] J.Y.Daddy:
To. whirleyes

Hi, long time no see.

You came back with amazing upgrade!

Congrats repaired of your phone.

There is no fastboot files in Korean RAZR.

So, afraid to test the new version.:crying:

Still, I will challenge.:D

Anyway, good work!
[Motorola Droid RAZR] whirleyes:
I'm just lucky because I didn't upgrade cdt.bin. Now I can use China fastboot system.img.

The only side effect is no more cdma style partition layout. (big preinstall partition)

This new version used cdrom partition. It is a signed partition just like system & webtop.

If bootloader detect something wrong with it, you'll get a boot failure

Invalid CG OTV (CG: cdrom): Invalid SP Data

My trick is to format this partition to the size of safe region specified in cdt.bin.

With that, security info is not overwritten & bootloader check won't be triggered.

As far as I've check (Analyze cdt.bin).. All Razr have the same cdrom partition size. (200MB)

but again it will be a big RISK for you to use this new version.

I think we won't get any leaked fastboot until EOL of this phone.

Better to have backup of all partition (ebr,mbr,bpsw&..) of your phone.

For me I know, erasing CID will allow me to flash different region file.

I don't know if it will work for yours
[Motorola Droid RAZR] J.Y.Daddy:
Bugger, complicated.:silly:

From now on, boot-loader unlocked phone will be comming.

I'd rather have that phone will enjoy.:D

Anyway.

Fortunately, 0.2.9.alpha works fine on my razr!

CM10, AOKP are installed and work well.

I'll waiting for official version.

Thanks for your good work!
[Motorola Droid RAZR] J.Y.Daddy:
Had found the case a problem occurs.

May be bigger or smaller.

When i edited to bootmenu.prop, second system is being lost.

I have modified properties is "default=stock". (default=second)

But, 1st-system is safe.;)

Good luck!
[Motorola Droid RAZR] whirleyes:
working fine here.

/system/etc/bmm/conf/bootmenu.prop

brightness=70
default=second
keypad_light=1
second_adbd=1
second_init=1
second_name=Another ICS ROM
stock_adbd=1
stock_init=1
stock_name=Motorola ROM
recovery_name=Custom Recovery
theme=default
timeout=3

default possible value : stock,second,recovery

Update : Support for Aroma File Manager is broken ATM. I will fix it in next update.

Maybe natively include it with BMM. (I think it wont be a problem)

- latest 1.8 include a terminal/console.. which is an awesome function to have while on the go
[Motorola Droid RAZR] J.Y.Daddy:
Yeah, I do. I had the same set.

But the lost at any moment.

Now it is working well.:o

I do not know how occurs in some cases.

Later, I'll let you know when I know.;)
[Motorola Droid RAZR] Sedariya11:
Hi,

I have been facing weird problem as when i install this app & after proving root access it opens up but says "Not enough free space Please clean/preinstall partition!" and gives only option to unistall this app without doing anything..

I had installed safetrap earlier but i unistall it and did sbf on my Razr Maxx however it still after sfb also giving the same problem.. pl help
[Motorola Droid RAZR] tarster:
Did you pay attention to the beginning of this thread and delete the partition before you installed and used bmm

From my Droid RAZR Maxx rooted with bootmenu and droid hd
[Motorola Droid RAZR] AndroidOL:
:confused:Delete Folder: /Preinstall/BootMenu
[Motorola Droid RAZR] Olao99:
I think I found a bug: Whenever I convert a ROM while being inside the app, after rom conversion the app force closes...
[Motorola Droid RAZR] Jack'O:
It's known on 0.2.7, solved on 0.2.8 beta2 or beta3 and 0.2.9alpha.
[Motorola Droid RAZR] leisures:
any news on this? i love the alpha :)
[Motorola Droid RAZR] whirleyes:
update is long overdue..

but I didn't have a very good build to release for public.

For me good build will results in less Q&A, confusion..

Here's latest screenshot of BMM

Changes:

- Touch button system just like bootmenu splash screen.

- Direct button to launch Aroma file manager & console.

What I'm up to lately~

- Learning android build automation. Just finish setup my old pc as buildbot.

- Porting 2nd-boot to omap4 (to run custom kernel & stock kernel (from other region) without erasing CID)

* kexec can only handle custom kernel. What if we want to use upcoming moto jb kernel from xt912?? China kernel??

- Make my own spyder device tree for CyanogenMod build.

* I want to learn making it from scratch.

- Rebase BMM to jb, clean-up code for automatic build.

Todo

- Finalize old BMM as 0.2.8. It won't be supported anymore.

* old BMM = the one that have ROM convertion & using preinstall partition

- Make jb-base BMM to support STS-Dev kexec.

* Kexec ramdisk convertion will done once upon 1st booting of the ROM.

* Note : 0.29a, 0.2.8 & below is base on ICS.

* Although I don't like kexec, I'll add this function to make BMM 100% compatible with SS3.
[Motorola Droid RAZR] sevenup30:
I m really impressed by your will of learning. I m in same case but i don t have the thing you have that make you understand all of this !!

Anyway as always i really like your job , you can count on me to help you in any way i can.really great job whirleyes
[Motorola Droid RAZR] lukas77:
I'm impressed too, my girlfriend has moto defy, quarx recently released rom with second boot feature, I was wandering if its possible to have it on RAZR but I thought its not possible. Now it is thanks too you whirleyes!

Great job!

Edit: Second boot loading kernels in zImage format so will be possible to just rename for example china kernel to load it? Or can we also load kexec kernel via second boot?
[Motorola Droid RAZR] whirleyes:
I start learning by understanding how thing work~ there's no shortcut for it

We should team-up in some ways. I can't have xt910 radio.

I've setup a github organization for this purpose. https://github.com/ProjectLense

It's not ready yet as I haven't upload my current work.

2nd-boot was made for omap3 & kernel 2.6. We have kernel 3.0.8 & omap4.

kexec kernel maybe needed to be boot using kexec module

It doesn't matter as BMM should boot anything you throw to it.

2nd-boot is the prefered way for me.

I've talk to Quarx.. hopefully I can team-up with him for Razr CM ROM development.

p/s: I still have more than a years to complete my Razr contract with provider. (2 years contract = Free Razr).

If I quit early, I have to pay for the remaining phone price. I better keep this phone.
[Motorola Droid RAZR] sevenup30:
I wonder if kholk is still over here, but it would be great to work with him on this . maybe PM him ??
[Motorola Droid RAZR] heblu:
This would be GREAT!
[Motorola Droid RAZR] cyberhern:
Woo hoo..

Getting pumped
[Motorola Droid RAZR] whirleyes:
Don't get a high hope. It just a dream ATM.

The first step to get 2nd-boot is to get uart debug working.
[Motorola Droid RAZR] [x]:
How do we upgrade if a new version is released? =)
[Motorola Droid RAZR] raziel23x:
BootMenu is on the Android market place so if you downloaded it from there you will automatically update if you have the checkbox selected on google play.

if you are using recovery 2.9a it will be updated automatically once the 2.9/3.0 BMM is released and uploaded to google play
[Motorola Droid RAZR] theZest:
Waa lao!

I'm really glad you guys are in touch.

And I think it's not big secret right now so I can say that Quarx has ordered RAZR recently. He will receive it soon.

So stay tuned everybody, development is only beginning.

Thank you all 4PDA.ru users who donated and made this real.

whirleyes, pls upload your current BMM revision, I know Quarx wants to see the source :D
[Motorola Droid RAZR] whirleyes:
Let just deal with currently active user here.

2nd-boot's hbootmod.ko uart debug is almost working.

I just need some help on disassembling mbm (bootloader) code.

Later. (next week++)

Still haven't finish generalizing / combining bootmenu & recovery.

The new touch button system is possibly working as add-on on any CWM-based recovery.

I'm going to make it available to other devices before publicizing the code.

Off topic :

BMM style multi boot & recovery will come to tegra (Asus TF101)

Next is snapdragon. Maybe buying HTC J Butterfly (Droid DNA?) for next device.

I'm keeping Razr as backup phone, car navigation, OBD & drive recorder.
[Motorola Droid RAZR] bigdee888:
Oh! This is great!

Sent from my Motorola RAZR Maxx.
[Motorola Droid RAZR] sevenup30:
Uart debug isnt like jtag for samsung devices ?? You have to connect pin to board no ?

I really regret to sold my tf100 now...
[Motorola Droid RAZR] whirleyes:
I'm glad I keep it. Now I'm used to it's battery drain problem~

TF101 is fun because of it's leaked sbk. More fun than having an unlocked bootloader.

Nope. Motorola omap uart is special. (Maybe Moto tegra also use this)

It just uart over micro usb pin. It can be enabled by asking CPCAP controller to redirecting uart output to usb pin.

It you dig kernel source code, you can see how it's done.

Note : omap3 (milestone/defy) use TI chip. Ours & most omap4 is ST Microelectronic.

Read more here http://droid-developers.org/wiki/UART

You'll need USB-to-TTL or RS232-TTL converter.

I use FTDI USB-TTL. It's from my arduino hacking days.
[Motorola Droid RAZR] SAJdroid:
Excellent work ! ...
[Motorola Droid RAZR] macroman8807:
Will this be available for the galaxy s3 at all?

sent from my Awesome MotoMaxx