Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Custom Bootloader
« previous next »
  • Print
Pages: [1]

Author Topic: Custom Bootloader  (Read 3340 times)

Offline digerati1338

  • Member
  • *
  • Posts: 60
  • Geek Genius
Custom Bootloader
« on: March 24, 2007, 07:50:08 PM »
I have an idea for a sansa bootloader that would load the original firmware by default, and rockbox if you hold |<< instead of the other way around.

I have some coding experience and have built rockbox before.  Is this something that would be easy to do or is it too difficult to be worthwhile?  If someone could point me in the right direction that would be great.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Custom Bootloader
« Reply #1 on: March 25, 2007, 01:28:08 PM »
Its pretty easy to do this on most ports.  I haven't tried the sansa, but looking at the bootloader, theres a simple block like so:

if()
  printf("Loading original firmware...");
...
else
 printf("Loading Rockbox...");

Looks like all you need to do is negate the condition inside the if and you'd have it.
Logged

Offline digerati1338

  • Member
  • *
  • Posts: 60
  • Geek Genius
Re: Custom Bootloader
« Reply #2 on: March 27, 2007, 09:20:04 PM »
I thought it would be really simple like that.  Ill try it later tonight when I have some time.  Thanks.
Logged

Offline digerati1338

  • Member
  • *
  • Posts: 60
  • Geek Genius
Re: Custom Bootloader
« Reply #3 on: March 27, 2007, 11:38:23 PM »
Found the file and changed it, but I can't seem to find any helpful information for building a bootloader and I'm a little bit confused.  

From what I've read, it isn't recommended because bugs in the code could brick your player.  I'm not too worried about this since I can just use recovery mode if it bricks.

To compile it do I just make a build dir and then run ../tools/configure, select my target, hit B to build bootloader, and then run make?  Do I need to run make zip or make install?
Logged

Offline 007quick

  • Member
  • *
  • Posts: 70
Re: Custom Bootloader
« Reply #4 on: March 28, 2007, 11:00:27 AM »
It is to my experience that you are correct. Just run configure select B then run make. You should get the appropriate file in your build dir.
Logged

Offline digerati1338

  • Member
  • *
  • Posts: 60
  • Geek Genius
Re: Custom Bootloader
« Reply #5 on: March 28, 2007, 11:47:47 PM »
The build worked like a charm.  Thanks for the help.  
Logged

Offline dylan21223

  • Member
  • *
  • Posts: 5
Re: Custom Bootloader
« Reply #6 on: April 06, 2007, 09:55:22 PM »
Could you post it online with the link?
Logged

Offline digerati1338

  • Member
  • *
  • Posts: 60
  • Geek Genius
Re: Custom Bootloader
« Reply #7 on: April 07, 2007, 09:35:07 PM »
I posted it in the Unsupported builds section.

http://forums.rockbox.org/index.php?topic=9792.0
« Last Edit: April 08, 2007, 12:17:40 PM by digerati1338 »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Custom Bootloader
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.082 seconds with 15 queries.