Support and General Use > Hardware

How to boot Sansa into Rockbox with USB connected

(1/3) > >>

jsiddall:
I understand the reason these things boot into original firmware when USB is connected.  The problem is the assumption seems to have been that USB is only used for downloading.  However, when it is used in a car and USB is only used for charging then the default behaviour is not right and it really mucks up car mode.

Is it possible to have it look at what is connected to the USB port before deciding which firmware to boot?  Can anyone share some pointers on how I can disable the auto boot into original firmware when USB is connected?

UPDATE: Although I am not a developer I had a look at the source anyway.  Can I do something simple like comment out this?:

#define USB_HANDLED_BY_OF

FlynDice:
Does anyone actually make use of the mmu and i/dcache info on the ViewHW info debug page anymore?  I'm thinking of removing that and adding  some more voltage related info that will be more helpful for future use.


@jsiddall:

I don't know if this will completely solve your problem but you can charge while running rockbox by holding a button down when connecting the usb cable.  You didn't mention which player so I don't know if telling you that it's the select button for an e200v2 helps....
It would be in the manual though.

jsiddall:
@FlynDice:

I have a Clip V1.  The problem with having to hold down a button when the thing boots is that it pretty much defeats the usefulness of car mode for me -- and that defeats one of the main reasons for using RockBox at all.  My goal is to have the thing totally hands-off.  Throw it in the glove box and forget about it.  When I stop the car it stops too.  When I start the car, it picks up where it left off.

According to the docs RockBox doesn't do the turning on when plugged in part, but because the design of the Clip automatically turns on the device when USB is connected I _almost_ have the perfect solution -- except for starting the OF when USB is plugged in.

saratoga:

--- Quote from: jsiddall on January 27, 2010, 04:15:42 PM ---The problem with having to hold down a button when the thing boots is that it pretty much defeats the usefulness of car mode for me

--- End quote ---

Good news.  You can't hold down a button to boot rockbox when powering on from external power.  You will always get the OF.


--- Quote from: jsiddall on January 27, 2010, 04:15:42 PM ---According to the docs RockBox doesn't do the turning on when plugged in part, but because the design of the Clip automatically turns on the device when USB is connected I _almost_ have the perfect solution -- except for starting the OF when USB is plugged in.

--- End quote ---

You can edit mkamsboot to do this.  Be very careful if you decide to do so, any mistake there will brick your clip with no chance of recovery. 

jsiddall:

--- Quote from: saratoga on January 27, 2010, 04:37:13 PM ---
--- Quote from: jsiddall on January 27, 2010, 04:15:42 PM ---The problem with having to hold down a button when the thing boots is that it pretty much defeats the usefulness of car mode for me

--- End quote ---

Good news.  You can't hold down a button to boot rockbox when powering on from external power.  You will always get the OF.


--- Quote from: jsiddall on January 27, 2010, 04:15:42 PM ---According to the docs RockBox doesn't do the turning on when plugged in part, but because the design of the Clip automatically turns on the device when USB is connected I _almost_ have the perfect solution -- except for starting the OF when USB is plugged in.

--- End quote ---

You can edit mkamsboot to do this.  Be very careful if you decide to do so, any mistake there will brick your clip with no chance of recovery. 

--- End quote ---

Thanks for the tips.  Despite the fact that this all sounds precarious I really do want car mode to work so I am willing to risk the bricking.

I am not a programmer though so this is all a bit daunting.  I had a look at the code in rbutil/mkamsboot/dualboot/dualboot.S and near as I can tell if I change row 89 from this:

#elif defined(SANSA_CLIP) || defined(SANSA_CLIPV2)

to this:

#elif defined(SANSA_CLIPV2)

...and recompiled mkamsboot I should get what I am looking for.  Can anyone who knows this stuff confirm my guess?

Navigation

[0] Message Index

[#] Next page

Go to full version