Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,457 Members 51,814 Now Online
XDA Developers Android and Mobile Development Forum

Say hi to "CyanoBoot" -- a 2nd bootloader/w menu aka "ub2" - (WIP)

Tip us?
 
succulent
Old
(Last edited by succulent; 16th May 2012 at 03:51 AM.)
#71  
succulent's Avatar
Senior Member
Thanks Meter 448
Posts: 241
Join Date: Dec 2010
Triple boot on nook tablet, fun stuff.

http://www.youtube.com/watch?v=x6syVkhPQaM


Demo of triple boot on nook tablet using fattire's cyanoboot, chrmhoffmann's CM9 and my CM7.2 RC1. Don't expect anything out of this. I am just doing it for fun. I had to edit cm9 boot.img and rom to make this work.
The Following 2 Users Say Thank You to succulent For This Useful Post: [ Click to Expand ]
 
damnoregonian
Old
#72  
Senior Member
Thanks Meter 13
Posts: 109
Join Date: Jun 2007
Location: Seattle

 
DONATE TO ME
Quote:
Originally Posted by fattire View Post
If it's attempting to boot into recovery with every boot, this is due to an uncleared instruction in the /bootdata/bcb file that was NOT set by cyanoboot (it does not do this) and is not being cleared with every boot-- if you tried to boot into recovery from the reboot menu and do not have a valid recovery to boot into (and thus clear this instruction), this can happen...

Do you have a valid recovery image or other bootable SD? If you can boot into it, or any other valid image (boot off SD), this command from the shell should clear the bcb instruction:

dd if=/dev/zero of=/bootdata/BCB bs=1 count=1088
Aha! I needed this
I tried wiping out the BCB, making it empty... wasn't sure what would get it to stop looping.
I tried to go into recovery after my release had expired (to upgrade) - and apparently my recovery was not working.
Perhaps cyanoboot should still allow a hard-key override of BCB boot instructions?

scotty2
The Following User Says Thank You to damnoregonian For This Useful Post: [ Click to Expand ]
 
fattire
Old
#73  
fattire's Avatar
Recognized Developer - OP
Thanks Meter 4392
Posts: 1,522
Join Date: Oct 2010
Quote:
Originally Posted by damnoregonian View Post
Aha! I needed this
I tried wiping out the BCB, making it empty... wasn't sure what would get it to stop looping.
I tried to go into recovery after my release had expired (to upgrade) - and apparently my recovery was not working.
Perhaps cyanoboot should still allow a hard-key override of BCB boot instructions?

scotty2
scotty2--

Yeah there was talk of adding this, and in fact someone is working on it for nook color. So hopefully a clear bcb file option will show up. If it doesn't, I'll add it...
 
Rebellos
Old
#74  
Senior Recognized Developer
Thanks Meter 3423
Posts: 1,339
Join Date: May 2009
Location: Gdańsk

 
DONATE TO ME
https://github.com/Rebell/acclaim_cy...8c333130c02174
Added some more things I just remind:
Quote:
Added primitive VOLUP/VOLDOWN driver.
Ported .img detection from Encore - unavailable booting modes are greyed out, EMMC normal and EMMC recovery are always ON.
Added battery level & board rev info. Enabling battery charging in case of level < 30 - doesn't seem to work on my board (FIXME).
Lowered brightness to drain less battery power.
Turned off BN board charging procedure.
Change default booting source from Encore - still untested/unfinished.
Added OMAP4 IRQ header just in case.
Added Bauwks image generation script.
Please check it out.
Feedback on my development is highly appreciated, but first you should read this GUIDE and watch this MOVIE.

If you like my work - you can help me getting various cool stuff by clicking donation link in my profile. It's not required while pressing is, just appreciated.

Pretty owsom Android/Kernel dev tips&tricks: http://omappedia.org/wiki/Android_How-tos

Git HOW-TO by eagleeyetom: http://forum.xda-developers.com/show...php?p=31304826
15-minutes GIT introduction: http://try.github.com
If you want to submit patches to my git projects - use the guides above and make a pull request.
The Following 10 Users Say Thank You to Rebellos For This Useful Post: [ Click to Expand ]
 
fattire
Old
#75  
fattire's Avatar
Recognized Developer - OP
Thanks Meter 4392
Posts: 1,522
Join Date: Oct 2010
Quote:
Originally Posted by Rebellos View Post
https://github.com/Rebell/acclaim_cy...8c333130c02174
Added some more things I just remind:


Please check it out.
This is quite awesome stuff. People, test it!
 
meghd00t
Old
#76  
Senior Member
Thanks Meter 139
Posts: 112
Join Date: Jul 2011
Location: Bangalore
Quote:
Originally Posted by fattire View Post
This is quite awesome stuff. People, test it!
I just built rebellos' cyanoboot and booted it from sdcard, I can confirm vol keys up down select and boot internal emmc, emmc recovery, sdcard boot (twrp 2.2), sdcard recovery & sdcard altboot work fine, I have not installed /rom/altboot and so that remains greyed out. but I did change the KERNEL_OFFSET back to 0x120 before it would work

http://pastebin.com/znaEZy53

has my build steps

on the sdcard - format fat32, lba set bootable, copy MLO u-boot.bin from b&N 1.4.2 or 1.4.3 and add flashing_boot.img from the output of my script and whatever boot / recovery images you want to test
Thanks & best regards

-m

--
my files http://d-h.st/users/meghd00t/ or http://goo.im/devs/meghd00t/
The Following 5 Users Say Thank You to meghd00t For This Useful Post: [ Click to Expand ]
 
Rebellos
Old
#77  
Senior Recognized Developer
Thanks Meter 3423
Posts: 1,339
Join Date: May 2009
Location: Gdańsk

 
DONATE TO ME
Thanks meghd00t. Guess something with loading is broken so it cant handle 0x200 offset. We don't need it for now anyway I guess.

Oh yes. List of expected files it's looking for is of course:
/emmc/altboot.img
/sdcard/boot.img
/sdcard/recovery.img
/sdcard/altboot.img
Feedback on my development is highly appreciated, but first you should read this GUIDE and watch this MOVIE.

If you like my work - you can help me getting various cool stuff by clicking donation link in my profile. It's not required while pressing is, just appreciated.

Pretty owsom Android/Kernel dev tips&tricks: http://omappedia.org/wiki/Android_How-tos

Git HOW-TO by eagleeyetom: http://forum.xda-developers.com/show...php?p=31304826
15-minutes GIT introduction: http://try.github.com
If you want to submit patches to my git projects - use the guides above and make a pull request.
The Following 6 Users Say Thank You to Rebellos For This Useful Post: [ Click to Expand ]
 
fattire
Old
#78  
fattire's Avatar
Recognized Developer - OP
Thanks Meter 4392
Posts: 1,522
Join Date: Oct 2010
Quote:
Originally Posted by Rebellos View Post
Thanks meghd00t. Guess something with loading is broken so it cant handle 0x200 offset. We don't need it for now anyway I guess.

Oh yes. List of expected files it's looking for is of course:
/emmc/altboot.img
/sdcard/boot.img
/sdcard/recovery.img
/sdcard/altboot.img
so what's the consensus? Works?
 
succulent
Old
(Last edited by succulent; 14th July 2012 at 05:43 PM.)
#79  
succulent's Avatar
Senior Member
Thanks Meter 448
Posts: 241
Join Date: Dec 2010
Quote:
Originally Posted by fattire View Post
so what's the consensus? Works?
It work for the most part like you intended thanks to Rebellos, but not everything. The detection of altboot.img on emmc isn't working. It can detect if altboot.img and boot.img are present on sdcard. It grey out like it should if they are not present. The volume keys moves to next item and home key select. I don’t know why “0x200 offset” was added to bauwks’s script, but I didn’t use it.

Edit: Attached pic, CB with own edits.
Attached Thumbnails
Click image for larger version

Name:	IMG_0010.JPG
Views:	208
Size:	170.5 KB
ID:	1197892  
 
fattire
Old
(Last edited by fattire; 14th July 2012 at 09:23 PM.)
#80  
fattire's Avatar
Recognized Developer - OP
Thanks Meter 4392
Posts: 1,522
Join Date: Oct 2010
Quote:
Originally Posted by succulent View Post
It work for the most part like you intended thanks to Rebellos, but not everything. The detection of altboot.img on emmc isn't working. It can detect if altboot.img and boot.img are present on sdcard. It grey out like it should if they are not present. The volume keys moves to next item and home key select. I don’t know why “0x200 offset” was added to bauwks’s script, but I didn’t use it.

Edit: Attached pic, CB with own edits.
Anyway... there are a few offsets that we're talking about-- the 256 & 512 offset inthe boot.img and if I remember right there is the security header offset used for bauwks' workaround for the locked bootloader. I may have errantly confused them in IRC when talking to rebellos.

Also, who is "HD"? Not that it matters, but the menu itself was written first by j3mm4r, then I redid it for NC and redid it again for NT starting w/fresh BN/Den code, adding bauwks' bootloader hack, and menu-wise starting with a fresh menu.c. That version was enhanced by mik_os (fastboot and other mprovements), then the menu was ported back to NC by me and then refactored by "Ogilvy" on NC... and now "Rebellos" applied those refactoring and other changes back to NT. Phew! I don't know who "HD" is at all, but maybe someone will remind me...

Source is here btw and the NC version is here if anyone is curious of the history.

The Following User Says Thank You to fattire For This Useful Post: [ Click to Expand ]
Tags
acclaim, bootloader, cyanoboot, locked, u-boot
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes