FS#10096 - rbutil: use selected mountpoint for installing ipod / sansa bootloader

Attached to Project: Rockbox
Opened by Dominik Riebeling (bluebrother) - Saturday, 04 April 2009, 22:12 GMT
Last edited by Dominik Riebeling (bluebrother) - Thursday, 30 April 2009, 19:14 GMT
Task Type Patches
Category Rbutil
Status Closed
Assigned To Dominik Riebeling (bluebrother)
Operating System All players
Severity Low
Priority Normal
Reported Version Version 3.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This patch modifies the installation for ipod and sansa bootloaders to not scan for a device (and use the one found) but use the one pointed to by the mountpoint. This is necessary if we add support for choosing from multiple detected devices (FS#9485) as otherwise having two ipods / sansas would make the bootloader installation fail. Furthermore, users should be able to expect that the correct player gets used if they chose from a list upon detection.

Issues of the current implementation:
- w32 only. I'm going to add linux support in a later version.
- if f.e. a sansa is connected with a wrong mountpoint set the bootloader gets first downloaded before an error (i.e. mountpoint not poining to the correct player) is detected. Not sure if this is that much of an issue as the only drawback is the additional download.
This task depends upon

Closed by  Dominik Riebeling (bluebrother)
Thursday, 30 April 2009, 19:14 GMT
Reason for closing:  Accepted
Additional comments about closing:  committed as r20832.
Comment by Dominik Riebeling (bluebrother) - Sunday, 05 April 2009, 14:08 GMT
- add support for Linux (OSX and BSD untested)
- sync against svn

Note: it looks like sansapatcher is behaving differently than ipodpatcher thus the forcing not working correctly. Further testing is needed.
Comment by Dominik Riebeling (bluebrother) - Sunday, 05 April 2009, 14:46 GMT
Latest tests with two sansas showed that the device forcing is in fact working as expected but the debug output got me confused thus the above patch is complete in terms of functionality (except the untested OSes).