Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: Orbiter on August 16, 2017, 09:18:31 AM

Title: Rockbox without internal battery (Clip+)
Post by: Orbiter on August 16, 2017, 09:18:31 AM
The original Sansa Clip+ firmware works fine without the internal battery when plugged into an external USB power source. In the same situation Rockbox starts up, then says "Scanning disk" and turns the player off, sometimes saying that the battery is depleted. Obviously there is power and the player can work, but Rockbox deliberately shuts it down. Is there a setting that can allow it to work on external power only?
Title: Re: Rockbox without internal battery (Clip+)
Post by: johnb on August 16, 2017, 10:26:02 AM
Try this build:
https://www.mediafire.com/file/089cvsrp339mb7r/rockbox.clipplus.novoltageShutdown.zip

I had compiled it for myself for the same purpose.
Title: Re: Rockbox without internal battery (Clip+)
Post by: Orbiter on August 16, 2017, 11:26:23 AM
Thanks for the quick reply. Actually, I need a build that boots from external SD only and writes to external SD only. Currently I am using the following build:

Version: fc9c7d7M-170228
Binary: rockbox.sansa
Binary size: 618464
Features: alarm:crossfade:dircache:flash_storage:lcd_bitmap:lcd_invert:pitchscreen:
multivolume:multidrive_usb:quickscreen:radio:recording:recording_swcodec:
recording_mic:rtc:swcodec:tagcache:tc_ramcache:charging:large_plugin_buffer:
ab_repeat_buttons:lcd_flip:lcd_contrast:usb_power:usbstack:usb_hid:
play_frequency:boot_data

When I replaced this build with the build from your post, it failed to boot (from external SD). Looks like I'll have to create a custom build with all these features combined.
Title: Re: Rockbox without internal battery (Clip+)
Post by: Orbiter on August 18, 2017, 01:40:00 AM
I managed to install the rockbox build environment and get it to compile the default build. Now I suppose I need to apply the necessary patches. Could anybody please share the diff file for the USB power feature? Or at least give a hint where to look for the relevant lines of code?