FORUMS
Remove All Ads from XDA

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

2,279 posts
Thanks Meter: 6,474
 
Post Reply Email Thread
14th July 2012, 10:39 PM |#81  
TheForceUnleashed's Avatar
Senior Member
Flag Louisiana
Thanks Meter: 282
 
More
"HD" is succulent bro :P
14th July 2012, 11:06 PM |#82  
fattire's Avatar
OP Inactive Recognized Developer
Thanks Meter: 6,474
 
Donate to Me
More
Quote:
Originally Posted by NookTabletsPower

"HD" is succulent bro :P

Hah! That explains the top billing

j/k
14th July 2012, 11:34 PM |#83  
succulent's Avatar
Senior Member
Thanks Meter: 449
 
More
Quote:
Originally Posted by fattire

Hah! That explains the top billing

j/k

Yea, it's just my initial and all I did was the menu. I've added Ogilvy to credits.

Anyway, I've fixed the emmc altboot problem by introducing char vax with my little knowledge of programming. Emmc Altboot is now detected and it worked.
Code:
int check_device_image(enum image_dev device, const char* file) {
    char res = ((device == DEV_SD) ? 0 : 1); //0=sdcard, 1=emmc
    char vax = ((device == DEV_SD) ? 1 : 5); //1=p1, 5=p5 (bootdata partition)
    lcd_is_enabled = 0;
    sprintf(buf, "mmcinit %d; fatload mmc %d:%d 0x%08x %s 1", res, res, vax, &res, file);
    if (run_command(buf, 0)) { //no such file
        res = 0;
    } else {
        res = 1;
    }
    lcd_is_enabled = 1;
    return res;
}
The Following 2 Users Say Thank You to succulent For This Useful Post: [ View ] Gift succulent Ad-Free
15th July 2012, 12:29 AM |#84  
Senior Recognized Developer
Flag Gdańsk
Thanks Meter: 3,469
 
Donate to Me
More
Thank you. Added your code and added your initials (HD) in the bottom lines.

Binaries built previously this day had just hit repo so new menu will show-up in all future builds.
Could anyone test out flashing_boot.img ? (the SD card one)
15th July 2012, 03:25 AM |#85  
fattire's Avatar
OP Inactive Recognized Developer
Thanks Meter: 6,474
 
Donate to Me
More
Quote:
Originally Posted by succulent

Yea, it's just my initial and all I did was the menu. I've added Ogilvy to credits.

Nice job on the coding. I guess I was considering the whole of "cyanoboot" as the "menu" (even though it's way more than that, obviously). It all started because on the very first version of any menu j4mm3r included his name so I kept the tradition as I went along. So it started out with only two names specific to a very basic boot menu, but at this point so many people have pitched in that I don't think we really need any credit up front or the list will get ridiculously long. If someone wants to add a credits menu option, we can put whatever we want there.

I would argue though that we should keep the timestamp for sure as it is very helpful for debugging (ie, "which version are you using") since without it, there's no real way to tell from a simple CB binary.

This is really exciting to see how it's coming together.
15th July 2012, 03:44 AM |#86  
succulent's Avatar
Senior Member
Thanks Meter: 449
 
More
Quote:
Originally Posted by Rebellos

Thank you. Added your code and added your initials (HD) in the bottom lines.

Binaries built previously this day had just hit repo so new menu will show-up in all future builds.
Could anyone test out flashing_boot.img ? (the SD card one)

I only test with the sdcard one (flashing_boot.img) and it work.

One more thing, I think "mmc 1:2" need to be "mmc 1:5" in menu.c. mmc 1:2 on NC is rom partition, on NT it's bootloader partition. 1:5 point to bootdata on NT even though p5 is rom partition. I haven't test u-boot.device/u-boot.altboot so I can't verify that this work.

Code:
char read_u_boot_file(const char* file) {
    char res;
    lcd_is_enabled = 0;
    //sprintf(buf, "mmcinit 1; fatload mmc 1:2 0x%08x %s 1", &res, file);
    sprintf(buf, "mmcinit 1; fatload mmc 1:5 0x%08x %s 1", &res, file); 
    if (run_command(buf, 0)) { //no such file
        res = 'X'; // this is going to mean no such file, or I guess the file could have 'X'...
    }
    lcd_is_enabled = 1;
    return res;
}


int write_u_boot_file(const char* file, char value) {
    lcd_is_enabled = 0;
    //sprintf(buf, "mmcinit 1; fatsave mmc 1:2 0x%08x %s 1", &value, file);
    sprintf(buf, "mmcinit 1; fatsave mmc 1:5 0x%08x %s 1", &value, file);       
    if (run_command(buf, 0)) {
        printf("Error: Cannot write /bootdata/%s.\n", file);
        value = 0;
    }
    lcd_is_enabled = 1;
    return value;
}
The Following 2 Users Say Thank You to succulent For This Useful Post: [ View ] Gift succulent Ad-Free
15th July 2012, 03:52 AM |#87  
fattire's Avatar
OP Inactive Recognized Developer
Thanks Meter: 6,474
 
Donate to Me
More
Quote:
Originally Posted by succulent

I only test with the sdcard one (flashing_boot.img) and it work.

One more thing, I think "mmc 1:2" need to be "mmc 1:5" in menu.c. mmc 1:2 on NC is rom partition, on NT it's bootloader partition. 1:5 point to bootdata on NT even though p5 is rom partition. I haven't test u-boot.device/u-boot.altboot so I can't verify that this work.

That's exactly right. /rom is p2 on NC... so that's probably a (minor) bug.
16th July 2012, 09:07 PM |#88  
Senior Recognized Developer
Flag Gdańsk
Thanks Meter: 3,469
 
Donate to Me
More
Commited patch. Together with fix for fastboot screen corruption during loading big files (moved framebuffer far away from it).
Binaries are already in ics and jb branch.
The Following 8 Users Say Thank You to Rebellos For This Useful Post: [ View ]
17th July 2012, 06:02 AM |#89  
fattire's Avatar
OP Inactive Recognized Developer
Thanks Meter: 6,474
 
Donate to Me
More
Quote:
Originally Posted by Rebellos

Commited patch. Together with fix for fastboot screen corruption during loading big files (moved framebuffer far away from it).
Binaries are already in ics and jb branch.

You rock.. thx!

(that last part means those binaries should automatically show up in new cm10 builds from chrmhoffmann.. )
23rd August 2012, 06:15 PM |#90  
Senior Member
Flag Bentonville
Thanks Meter: 44
 
Donate to Me
More
I was wondering if someone could post CyanoBoot up again? The link is dead.. Thanks
23rd August 2012, 10:30 PM |#91  
Demetris's Avatar
Recognized Developer
Flag Limassol
Thanks Meter: 9,476
 
Donate to Me
More
Quote:
Originally Posted by michaelmab88

I was wondering if someone could post CyanoBoot up again? The link is dead.. Thanks

https://github.com/CMNookTablet/acclaim_cyanoboot
The Following User Says Thank You to Demetris For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
acclaim, bootloader, cyanoboot, locked, u-boot

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes