Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP fattire

16th May 2012, 03:03 AM   |  #71  
succulent's Avatar
Senior Member
Thanks Meter: 448
 
241 posts
Join Date:Joined: 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.
Last edited by succulent; 16th May 2012 at 04:51 AM.
The Following 2 Users Say Thank You to succulent For This Useful Post: [ View ]
4th June 2012, 05:47 AM   |  #72  
Senior Member
Flag Seattle
Thanks Meter: 13
 
110 posts
Join Date:Joined: Jun 2007
Donate to Me
More
Quote:
Originally Posted by fattire

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: [ View ]
4th June 2012, 09:54 PM   |  #73  
fattire's Avatar
OP Recognized Developer
Thanks Meter: 4,807
 
1,759 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by damnoregonian

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...
13th July 2012, 12:24 AM   |  #74  
Senior Recognized Developer
Flag Gdańsk
Thanks Meter: 3,438
 
1,340 posts
Join Date:Joined: May 2009
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.
The Following 10 Users Say Thank You to Rebellos For This Useful Post: [ View ]
13th July 2012, 01:59 AM   |  #75  
fattire's Avatar
OP Recognized Developer
Thanks Meter: 4,807
 
1,759 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by Rebellos

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!
13th July 2012, 07:34 AM   |  #76  
Senior Member
Flag Bangalore
Thanks Meter: 140
 
112 posts
Join Date:Joined: Jul 2011
Quote:
Originally Posted by fattire

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
The Following 5 Users Say Thank You to meghd00t For This Useful Post: [ View ]
13th July 2012, 10:19 AM   |  #77  
Senior Recognized Developer
Flag Gdańsk
Thanks Meter: 3,438
 
1,340 posts
Join Date:Joined: May 2009
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
The Following 6 Users Say Thank You to Rebellos For This Useful Post: [ View ]
14th July 2012, 11:57 AM   |  #78  
fattire's Avatar
OP Recognized Developer
Thanks Meter: 4,807
 
1,759 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by Rebellos

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?
14th July 2012, 06:16 PM   |  #79  
succulent's Avatar
Senior Member
Thanks Meter: 448
 
241 posts
Join Date:Joined: Dec 2010
Quote:
Originally Posted by fattire

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  
Last edited by succulent; 14th July 2012 at 06:43 PM.
14th July 2012, 10:06 PM   |  #80  
fattire's Avatar
OP Recognized Developer
Thanks Meter: 4,807
 
1,759 posts
Join Date:Joined: Oct 2010
Tablet
Quote:
Originally Posted by succulent

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.
Last edited by fattire; 14th July 2012 at 10:23 PM.

The Following User Says Thank You to fattire For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
acclaim, bootloader, cyanoboot, locked, u-boot
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes