Reverse Engineered Redbend - Fascinate Android Development

Presenting bmlunlock. Unlocks bml7 for writing to it via dd.
http://github.com/CyanogenMod/android_device_samsung_bmlunlock

Nice! Thanks Koush.. it's about time you did some actual work around here..

lol brandon. you know better. he pushed out 2 updates to CWM for us in less than ten minutes last night!

Yeah, I was just kidding. What really makes this useful is this bmunlock and the updated adb access via recovery. Very slick.

BHey would it be possible to use this to flash the kernel of a facinate from a mac? If so could you guys give a quick explanation of how. Us mac users are itching to get ready for roms.

If someone can do the terminal write up for the bmunlock kernel flash on windows we can probably figure out how to do it on our macs..... anyone? Please.

Well first somebody needs to cross-compile that .c source from github for android.
I don't have the tools to do that ATM, but I'll work on that.
From the README on koush's github it looks like you just run the bmunlock executable on the device, which unlocks the partition and then use dd to flash the kernel zImage contained within the tar.zip posted here: forum.xda-developers.com/showthread.php?t=787168
I'll work on this on my Fasc and post clearer instructions if I'm successful.

You rule Koush! Missing your work since i switched from the Droid to Fascinate. Thanks a lot keep it up!

I'm sorry, but what exactly is this?

If you don't know, you don't need it.
It allows devs to flash kernels directly.

adrynalyne said:
If you don't know, you don't need it.
It allows devs to flash kernels directly.
Click to expand...
Click to collapse
Well... guess I don't need it. LMFAO! ... Moving on.

The fascinate needs it.
Sent from my SCH-I500 using XDA App

keith.mcintyre26 said:
The fascinate needs it.
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
Redbend works as well.
Sent from my SCH-I500 using XDA App

adrynalyne said:
If you don't know, you don't need it.
It allows devs to flash kernels directly.
Click to expand...
Click to collapse
Ah. Then I don't need it. I appreciate the work Koush, but I don't know a thing about programming and I'm not a dev.

How do I compile it for the GB kernel? Do I just need to use the cross compiler?
We have an issue with the Pop Plus (GT-S5570I) flashing kernels via zip files. Sometime they do not flash at all. Others they do. It is a real pain in the butt.

Miche1asso said:
How do I compile it for the GB kernel? Do I just need to use the cross compiler?
We have an issue with the Pop Plus (GT-S5570I) flashing kernels via zip files. Sometime they do not flash at all. Others they do. It is a real pain in the butt.
Click to expand...
Click to collapse
Look at the date of the last response... 2010...
For gingerbread, you can use bmlwrite instead of redbend:
https://github.com/CyanogenMod/andr...s-common/blob/gingerbread/bmlutils/bmlwrite.c

bhundven said:
Look at the date of the last response... 2010...
For gingerbread, you can use bmlwrite instead of redbend:
https://gist.github.com/CyanogenMod...s-common/blob/gingerbread/bmlutils/bmlwrite.c
Click to expand...
Click to collapse
I know… But that is what we have in our custom ROMs and I was hoping someone could still answer, as you did.
I'll check bmlwrite. Thanks!!

Related

Bootloader Partially Locked?

I noticed that the community has not successfully made a Kernel thats works without doing a boot-loop. Could it be possible that there is E-Fusish type security measure, like the Droid 2 and X, that prevents users from loading custom kernels that Verizon implemented? Thats the only explanation I can think of why we are having issues with our Galaxy versus other carrier's versions.
Sent from my SCH-I500 using XDA App
Samsung gave us a BUNK defconfig
the bootloader's not locked, kernel isn't signed
I've got a working kernel that boots, but the accelerometer is screwed up
jt1134 said:
Samsung gave us a BUNK defconfig
the bootloader's not locked, kernel isn't signed
I've got a working kernel that boots, but the accelerometer is screwed up
Click to expand...
Click to collapse
Sorry for my next noobish question but has anybody sent an email to Samsung about getting a fixed source code or is it pointless until 2.2 drops?
Sent from my SCH-I500 using XDA App
pointless? I guess that depends on who you ask. But yes, Samsung has received much electronic mail from smartphone enthusiasts over the past few weeks.
jt1134 said:
pointless? I guess that depends on who you ask. But yes, Samsung has received much electronic mail from smartphone enthusiasts over the past few weeks.
Click to expand...
Click to collapse
I will talk to my Samsung rep to see if there is anybody I could escalate this to in their North America branch to get this fixed but highly unlikely thou.
Sent from my SCH-I500 using XDA App
@Jt
I will be back on irc tommorow, but I have the accelerometer fixed on my kernel just no wifi, bluetooth or sound still. Have you found a fix for any of these, or are you still using my config?
AFAICT everything works now. I started with your config as a base
jt1134 said:
AFAICT everything works now. I started with your config as a base
Click to expand...
Click to collapse
This is good news, no?
Very nice gang.. I will block off some time for sure to stop in and see what's shakin' this evening..
Dirrk.. what initramfs are you using? I was able to compile with yamaha_b5 and your ramdisk, then I got the no sound/orientation/etc.. However it seems when JT compiles, he uses koush's ramdisk, and gets sound (orientation still off).
If I compile with b5_yamah + koush ramdisk (from his git), Odin fails to flash every time. If I switch back to your ramdisk, odin flashes, kernel boots, etc..
Sounds like you guys are making some good progress. Thanks for your hard work. Can't wait to be able to overclock this sucker.
jt1134 said:
AFAICT everything works now. I started with your config as a base
Click to expand...
Click to collapse
Are you using a different ramdisk to get it fixed as mentioned below v
namebrandon said:
Very nice gang.. I will block off some time for sure to stop in and see what's shakin' this evening..
Dirrk.. what initramfs are you using? I was able to compile with yamaha_b5 and your ramdisk, then I got the no sound/orientation/etc.. However it seems when JT compiles, he uses koush's ramdisk, and gets sound (orientation still off).
If I compile with b5_yamah + koush ramdisk (from his git), Odin fails to flash every time. If I switch back to your ramdisk, odin flashes, kernel boots, etc..
Click to expand...
Click to collapse
Can you send me koush's ramdisk. I have been out of town working for the past few days
Dirrk said:
Can you send me koush's ramdisk. I have been out of town working for the past few days
Click to expand...
Click to collapse
Maybe JT or someone at a linux box can tar it up if you need it as an archive.. I don't have any git software here at work..
http://github.com/koush/fascinate_initramfs
namebrandon said:
Maybe JT or someone at a linux box can tar it up if you need it as an archive.. I don't have any git software here at work..
http://github.com/koush/fascinate_initramfs
Click to expand...
Click to collapse
Thanks man wow after rereading ur op it says its on koush's git lol
Quick question, i've gotten rom building down with CWM and Amon Ra but now I want to dabble in kernel modding but I want to get a general preference on where everybody started at.
Sent from my SCH-I500 using XDA App

Easy Kernel Installer

Hi all.
I have created for users a kernel installer, to take out the hassle of typing out commands yourself.
For this to work, there are some requirements that must be met.
1-you have bootloader unlocked
2-you have fastboot drivers already installed. if you dont, please install them
This was created on windows 7, and i am yet to find out if it works on anything else. So please let me know.
I currently have 2 versions. The first is just the installer itself. Where you add your kernel (the boot.img) to the folder yourself. The second, is set up to install DooMLords latest kernel (version 3).
In the future, I am hoping to also create (with the developers permission), a one click installer for custom ROM's.
To use, just extract the folder, if necessary add your boot.img, then double click "FLASH KERNEL" and plug your phone in. The installer reboots the phone into the correct mode itself and wait
Plain installer (no kernel)
http://www.4shared.com/file/pJZy6Osc/kernel_flasher.html?
DooMLords DooMKerneL auto installer
http://www.4shared.com/file/WlrTYOxa/doomkernel-version3-autoinstal.html?
Credits:
DooMLord for his amazing work on kernels and many other releases
and many others who's names i cant think of right now, but the developers should know who they are!!
you are all amazing and a great inspiration!!
EDIT:
i am currently running androhero's ROM and dooms kernel on my phone, which were both installed via this method. if all goes well and i have no issues with the ROM, and i hear back from androhero with permission, i may soon be able to roll out easy installers for custom roms
Can this work for CM7 kernel? (if there is one)
I used the XDA App to post this, what did you use?
Cat_On_Droid said:
Can this work for CM7 kernel? (if there is one)
I used the XDA App to post this, what did you use?
Click to expand...
Click to collapse
that's the kernel i was using when i built the code
just download the kernel from the cm7 thread, download the plain installer, add the boot.img to the extracted folder, and BOOM!!! cm7 kernel installer!!
No disrespect but is it so much easyer than type this few fastboot commands?
^ I also thought about that, but users with winxp will find it helpful
I used the XDA App to post this, what did you use?
IE-coRe said:
No disrespect but is it so much easyer than type this few fastboot commands?
Click to expand...
Click to collapse
some people dont feel comfortable doing it, or get it wrong. and may mess things up. this allows people to do it in a simple way.
and also, i plan to expand this into a one click type of installer to take out the hassle (and mistakes) of installing custom roms.
in essence, the less a noob has to do, the less they can get wrong and then we might have fewer people on the forum saying "i broke my phone :'(" etc. hehe.
okay thats true
Cat_On_Droid said:
^ I also thought about that, but users with winxp will find it helpful
I used the XDA App to post this, what did you use?
Click to expand...
Click to collapse
I just copy the address line in the folder window and 'cd' + paste (folder address) in the cmd window and you're good to go with issuing commands. Some .exe files also works when drag and drop into the cmd window on winxp. Pretty sure it works with fastboot.exe and i know that bunzip2/bzip2 works that way on winxp.
Then again i feel comfy doing things from a cmd window and think it's more fun that way. Well flashing from recovery is also a nice way to do things, comes in handy when out and about. Used it alot with my HTC Desire HD.
Anyway nice move @solitarymonkey i think it'll come in handy for some users that don't feel comfy in all this cmd/fastboot thingy
Regards Dousan...
solitarymonkey said:
some people dont feel comfortable doing it, or get it wrong. and may mess things up. this allows people to do it in a simple way.
and also, i plan to expand this into a one click type of installer to take out the hassle (and mistakes) of installing custom roms.
in essence, the less a noob has to do, the less they can get wrong and then we might have fewer people on the forum saying "i broke my phone :'(" etc. hehe.
Click to expand...
Click to collapse
[CONSTRUCTIVE CRITICISM]
I dont like the idea of real nooby noobs installing custom roms.
If they cant copy-paste a few commands i think it is a bad idea to have them run custom roms.
I would however like to see a stock rom + kernel installer, that wipes the cache and data(option), and relocks the bootloader(option).
[/CONSTRUCTIVE CRITICISM]
Azeazezar said:
[CONSTRUCTIVE CRITICISM]
I dont like the idea of real nooby noobs installing custom roms.
If they cant copy-paste a few commands i think it is a bad idea to have them run custom roms.
I would however like to see a stock rom + kernel installer, that wipes the cache and data(option), and relocks the bootloader(option).
[/CONSTRUCTIVE CRITICISM]
Click to expand...
Click to collapse
i understand what you are saying. but in a way, shouldnt something that's open source be available to everyone?
and when i get the chance, i'll have a look into your suggestion. although flashtool can do that if you have both the ftf of the official rom that you want, and the bootloader lock file from blagus' tutorial thread ^_^
Ok so I'm one of the n00bs that this type of program will help.
I was wondering: is it 1) possible and 2) beneficial/additive to install something like doomlord's kernel while on the stock ROM?
I would really like to my phone to run faster, have better battery life, and have the ability to overclock and I think doomlords accomplishes all that.
What do you think?
btw r800x verizon unlocked bootloader by Alejandrissimo
Dyelon said:
Ok so I'm one of the n00bs that this type of program will help.
I was wondering: is it 1) possible and 2) beneficial/additive to install something like doomlord's kernel while on the stock ROM?
I would really like to my phone to run faster, have better battery life, and have the ability to overclock and I think doomlords accomplishes all that.
What do you think?
btw r800x verizon unlocked bootloader by Alejandrissimo
Click to expand...
Click to collapse
Sorry, no dice. Doomlords's kernel won't work with the stock r800x Rom.
Sent from my R800x using xda premium
antEris said:
Sorry, no dice. Doomlords's kernel won't work with the stock r800x Rom.
Sent from my R800x using xda premium
Click to expand...
Click to collapse
Hm. well thanks anyway man....I'll probably wait until cyanogen doesn't have any profound deficiencies then
This is a nice tool you put together!
I understand where the other guys are coming from but i think this too will save me some time for sure!
DrROBschiz said:
This is a nice tool you put together!
I understand where the other guys are coming from but i think this too will save me some time for sure!
Click to expand...
Click to collapse
Indeed. For people who regularly flash different roms and need different kernels for them, it removes the tedious and repetitive task of typing the same thing again and again. And it gave me something to do and experiment with for you guys ^_^
Sent from my R800i using xda premium

Rom+Kernel now that we have s-off ?

Now that we have s-off can the devs please start adding the kernel to the rom so we can flash it all in one?
I just think that it will make it easier for the average user.
Devs have become accustomed to packaging roms this way for quite some time and many users are still having issues getting S-Off.
I wouldn't be surprised if the next round of updates packaged the Kernel/Rom together.
I due time my friend.
Sent from my ADR6425LVW
Be nice if someone familiar with the process or the script could just post how to add the boot.IMG to current roms so we could add them in and flash in recovery. Think con posted templates, but assuming we would still need a script added. Otherwise, I am patient
Sent from my ADR6425LVW using xda premium
mjh68 said:
Be nice if someone familiar with the process or the script could just post how to add the boot.IMG to current roms so we could add them in and flash in recovery. Think con posted templates, but assuming we would still need a script added. Otherwise, I am patient
Sent from my ADR6425LVW using xda premium
Click to expand...
Click to collapse
It should work if you just put the boot.img inside the kernel folder of the roms zip. I just flashed a kernel with cons template and it worked perfectly
The way I have done it to my GB ROM is to add the following code to the updater-script and remove the previous code written by con. It worked fine in GB but so far I have had no luck with ICS. I have PMed a couple of the pros for a little assistance and try and figure out what the issue could be.
This is the code used in previous ROMs:
Code:
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
The Devs already know how to do it..just a matter of implementation.
Sent from my ADR6425LVW
Marcismo55 said:
The Devs already know how to do it..just a matter of implementation.
Sent from my ADR6425LVW
Click to expand...
Click to collapse
Well I'm still waiting for them to let me in on the big secret. Con said the code should work and he would look into it if/when he gets time. Also brought it up with scott and I believe he was going to look at it as well. I do know of another way of doing it (like they do on the Xoom) but I would need some additional information.
for anyone interested the ROM with the kernel (flashes when you flash the ROM) is posted here as a test:
http://forum.xda-developers.com/showpost.php?p=25228652&postcount=78
My 3.6 ROM has both versions now. Give it a try and let me know how it works for you.
NilsP said:
My 3.6 ROM has both versions now. Give it a try and let me know how it works for you.
Click to expand...
Click to collapse
Ya i'm not doing both versions in my ROMs. I just don't see it as being necessary. If you have the kernel in place already there is no need to reflash it. All it does is make me want to blow my brains out every time I can't boot into recovery because of the damn PH98IMG. Thats just me though its good to see you supporting both. Reality is I would rather just post the kernels separate then to have the phone create the images.
zone23 said:
Ya i'm not doing both versions in my ROMs. I just don't see it as being necessary. If you have the kernel in place already there is no need to reflash it. All it does is make me want to blow my brains out every time I can't boot into recovery because of the damn PH98IMG. Thats just me though its good to see you supporting both. Reality is I would rather just post the kernels separate then to have the phone create the images.
Click to expand...
Click to collapse
Same here...
TB13 said:
Same here...
Click to expand...
Click to collapse
Glad I'm not the only one..
Due to the nature of the s-off method many people decided to forego s-off. Getting s-off was quite difficult and many people are still having issues with the timing. I don't see devs switching to adding the kernel to their .zips unless they put downloads for both s-off and s-on devices.
Sent from my ADR6425LVW using XDA

so why is there no modems..

that fascinate (VZW) users can flash via CWM?
is it possible to make on easily? id like to be able to flash via CWM and see if that fixes problems on ported ROMs im trying to use for personal use
ztotherad said:
that fascinate (VZW) users can flash via CWM?
is it possible to make on easily? id like to be able to flash via CWM and see if that fixes problems on ported ROMs im trying to use for personal use
Click to expand...
Click to collapse
Actually there is, there is a thread on here about it, and you.had to do them in a specific order.
Odin is quicker and easier...
OhioYJ said:
Actually there is, there is a thread on here about it, and you.had to do them in a specific order.
Odin is quicker and easier...
Click to expand...
Click to collapse
odin may be quicker and easier, but it doesn't help when I'm using xubuntu 75% of the time...
I'm dual booting Windows 7 and Xubuntu 12.04, btw.
ztotherad said:
odin may be quicker and easier, but it doesn't help when I'm using xubuntu 75% of the time...
I'm dual booting Windows 7 and Xubuntu 12.04, btw.
Click to expand...
Click to collapse
Its called heimdall, look it up.
Sent from my SCH-I500 using xda premium
or adb...
Huntredgo said:
Its called heimdall, look it up.
Sent from my SCH-I500 using xda premium
Click to expand...
Click to collapse
i have heimdall, just dont wanna screw my phone up if i flash something in the wrong order
also rudemuch?
droidstyle said:
or adb...
Click to expand...
Click to collapse
noob question: how in the hell would i use adb? ive heard of fastboot, but theres no .img files for the radio & such
ztotherad said:
noob question: how in the hell would i use adb? ive heard of fastboot, but theres no .img files for the radio & such
Click to expand...
Click to collapse
look it up on the cyanogen website...thats where I learned to use it!!
droidstyle said:
look it up on the cyanogen website...thats where I learned to use it!!
Click to expand...
Click to collapse
will fershur look it up, thnx!
btw, youre awesome

[ROM][7/5/2013] - VZW Dev Phone Stock Rooted ROM - De-Odex - I545OYUAMDK

This is the VZW Dev Phone Stock Rooted De-Odex ROM.
Its a dump from the Dev Phone and is made for the Dev phone. But see post #2 ;c)
Features
The ROM is NOT loki'ed!! If you dont understand what that means then dont download it!
This is pretty much an identical base to the Standard phone. I dont believe there is any advantage to this unless you have a Dev Phone!
Stock VZW Dev Phone ROM (I545OYUAMDK)
De-Odex
Zip Aligned
Busybox
init.d
adb as root
Removed: Knox, How to Videos and CD Installer
MD5: CEC076E3025C73543F622AAE6D4127AB
Thanks out to markwebb for the dump!
Download HERE
MOD EDIT: Download link removed with OP's permission.
Hit Thanks! Its free!​
Because I know people are going to try and flash this to the standard phone.... I might as well just tell you how ;c)
Flash ROM like Normal, use LokiDoki to flash the protection hack. You can find it here: http://tau.shadowchild.nl/attn1/?p=483
Flash the modules attached.
Once again, these instructions are for people who are going to ignore me and try to flash this to the standard phone.
If you are on a Dev phone just flash and go...
Uploading now....
Be back in a bit... Doing this via remote desktop from work... :angel:
Is this what you will be basing CR 2.0 off of? I have the itch to flash but all the warnings above say not to. 1.6.5 is running solid for me but the itch is there. Damn.....see how your mind loves playing tricks?!?!
Sent from my SCH-I545 using Tapatalk 4 Beta
lancem71 said:
Is this what you will be basing CR 2.0 off of? I have the itch to flash but all the warnings above say not to. 1.6.5 is running solid for me but the itch is there. Damn.....see how your mind loves playing tricks?!?!
Sent from my SCH-I545 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Its the same thing as the regular phone but its a newer build by three weeks.
Its just as bloated.
Read post #2 to understand how to flash.
I see that but how would I get back to regular loki if needed
Sent from my SCH-I545 using Tapatalk 4 Beta
lancem71 said:
I see that but how would I get back to regular loki if needed
Sent from my SCH-I545 using Tapatalk 4 Beta
Click to expand...
Click to collapse
You dont understand how Loki works. It just modifies the boot.img of the ROM file. So your not really changing Loki... Its this ROM was not created with the loki patch.
The patch that I linked to is a file that signs the boot.img with the loki signature tick. The Dev Phones dont need this because they are unlocked.
So if someone wants to run this Dev Phone ROM (which I know they will) they just need to falsh the proper modules (because of a slight difference in radios) then flash the loki patch because it will loki the boot.img which is part of the ROM.
I dont know if that made it more confusing or less... lol
File is up!
If Anyone wants the odex version let me know. I may post if the demand is high enough.
scrosler said:
You dont understand how Loki works. It just modifies the boot.img of the ROM file. So your not really changing Loki... Its this ROM was not created with the loki patch.
The patch that I linked to is a file that signs the boot.img with the loki signature tick. The Dev Phones dont need this because they are unlocked.
So if someone wants to run this Dev Phone ROM (which I know they will) they just need to falsh the proper modules (because of a slight difference in radios) then flash the loki patch because it will loki the boot.img which is part of the ROM.
I dont know if that made it more confusing or less... lol
Click to expand...
Click to collapse
Clear as mud now
Sent from my SCH-I545 using Tapatalk 4 Beta
Downloading now..! Thanks!
lancem71 said:
Clear as mud now
Sent from my SCH-I545 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Ok, I guess to answer your question more simplistically...
If you want to go back to "regular" loki you just flash which ever ROM has it.
Now that should clarify it.
I know someone will understand the prio technical info
scrosler said:
Ok, I guess to answer your question more simplistically...
If you want to go back to "regular" loki you just flash which ever ROM has it.
Now that should clarify it.
I know someone will understand the prio technical info
Click to expand...
Click to collapse
Downloading now. Thanks Scott
Sent from my SCH-I545 using Tapatalk 4 Beta
thanks dev!!!
Running pretty smooth, thanks for letting us check it out!
Sent from my SCH-I545 using xda premium
Great job! Smooth and snappy with less bloat.
WizeGuyDezignz said:
Running pretty smooth, thanks for letting us check it out!
Sent from my SCH-I545 using xda premium
Click to expand...
Click to collapse
Thank Mark, he pulled it from the phone! I just did what comes naturally.
BUt do you really think its any smoother than the regular base?
I kinda thought it was but did have time to check it out much as I had to work today...
scrosler said:
Thank Mark, he pulled it from the phone! I just did what comes naturally.
BUt do you really think its any smoother than the regular base?
I kinda thought it was but did have time to check it out much as I had to work today...
Click to expand...
Click to collapse
To be completely honest with you, I didn't see much difference. Of course it's bloated, but I don't think it's much smoother if at all compared to the older base. Just my opinion and findings, ymmv.
Sent from my SCH-I545 using xda premium
Thanks Scott!
As soon as my Dev Edition S4 arrives, this will be going on it!
Just out of curiosity, is it in any way possible to flash the aboot.img from the Dev Edition to the standard carrier phone, similar to what was done on the S3 to unlock it?
guyd said:
Thanks Scott!
As soon as my Dev Edition S4 arrives, this will be going on it!
Just out of curiosity, is it in any way possible to flash the aboot.img from the Dev Edition to the standard carrier phone, similar to what was done on the S3 to unlock it?
Click to expand...
Click to collapse
no not at all the s3's unlock was a prototype aboot from the stock i535 not the dev edition
beanstown106 said:
no not at all the s3's unlock was a prototype aboot from the stock i535 not the dev edition
Click to expand...
Click to collapse
Beans, as always thanks for the input!
Too bad its not that easy... Would be sweet though!

Categories

Resources