Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: MGSoto on April 15, 2009, 02:14:15 AM

Title: Sansa e200 Bootloader + USB
Post by: MGSoto on April 15, 2009, 02:14:15 AM
Rockbox works fine and great, however, when I use a USB cable to charge the device (As in using the supplied USB cable and running only electricity through it) from it's off state, the boot load will run, the screen will turn a scan-line white, and then boot into the OF. Normally this isn't too big of a deal, but I want to use car adapter mode, and this obviously becomes a problem. I've tried using the RButil to reinstall the loader, but nothing helps. Any ideas?
Title: Re: Sansa e200 Bootloader + USB
Post by: saratoga on April 15, 2009, 02:15:30 AM
You can grab a bootloader off filespray that will boot into rockbox when you plug in.
Title: Re: Sansa e200 Bootloader + USB
Post by: MGSoto on April 15, 2009, 08:11:44 PM
Thanks for the tip, I'll give it a try once I get around to installing cygwin + tools. I tried downloading an older version of rockbox and tested to see if that fixed it, but unfortunately it didn't. I'm thinking it has something to do with the boot loader. I've also noticed that by holding select and viewing the loading process, the CRCs are different from when I turn it on by battery vs plugged in...
Title: Re: Sansa e200 Bootloader + USB
Post by: saratoga on April 15, 2009, 08:17:44 PM
I'm thinking it has something to do with the boot loader.

Isn't this what I just told you?

I've also noticed that by holding select and viewing the loading process, the CRCs are different from when I turn it on by battery vs plugged in...

It would be surprising if the OF and rockbox binaries had the same CRCs!
Title: Re: Sansa e200 Bootloader + USB
Post by: MGSoto on April 15, 2009, 08:27:28 PM
I'm thinking it has something to do with the boot loader.

Isn't this what I just told you?
Well, yes, I'm just not sure how using a patch that appears to modify the rockbox source files somehow manages to modify the bootloader as well. Unless I completely missed something in Filespray and I'm not looking at the right patch.

I've also noticed that by holding select and viewing the loading process, the CRCs are different from when I turn it on by battery vs plugged in...

It would be surprising if the OF and rockbox binaries had the same CRCs!

I was assuming that the boot loader attempts to load rockbox, fails, and then falls back to the OF.
Title: Re: Sansa e200 Bootloader + USB
Post by: saratoga on April 15, 2009, 08:44:13 PM
Well, yes, I'm just not sure how using a patch that appears to modify the rockbox source files somehow manages to modify the bootloader as well. Unless I completely missed something in Filespray and I'm not looking at the right patch.

Well I'm not sure what patch you're looking at, but the bootloader is part of the rockbox source (see the /bootloader folder).

Hopefully you're looking at the recent patch proposed (but not accepted) for 3.2 that changes the bootloaders to boot rockbox on USB insert.

I was assuming that the boot loader attempts to load rockbox, fails, and then falls back to the OF.

No, it never tries to load rockbox.  The current bootloader defaults to the OF on USB insert (you can see this yourself by plugging in a USB cable, you'll end up in the OF not Rockbox).
Title: Re: Sansa e200 Bootloader + USB
Post by: MGSoto on April 15, 2009, 09:07:42 PM
Well I'm not sure what patch you're looking at, but the bootloader is part of the rockbox source (see the /bootloader folder).

Hopefully you're looking at the recent patch proposed (but not accepted) for 3.2 that changes the bootloaders to boot rockbox on USB insert.
I was actually talking about the patch itself, it doesn't touch the bootloader folder. (6654 for patch in question)

No, it never tries to load rockbox.  The current bootloader defaults to the OF on USB insert (you can see this yourself by plugging in a USB cable, you'll end up in the OF not Rockbox).
Okay, that makes more sense.
Title: Re: Sansa e200 Bootloader + USB
Post by: saratoga on April 15, 2009, 09:24:58 PM
I was actually talking about the patch itself, it doesn't touch the bootloader folder. (6654 for patch in question)

That patch is:

1)  Many years older then USB support on the PP
2)  Already accepted in SVN

And yes, it does touch the bootloader!

Ok I'll do this for you.  The 3.2 bootloader task is "FS#9955 - Bootloaders for 3.2".  Just install the binary there.