Commit graph

1015 commits

Author SHA1 Message Date
Dominik Riebeling
0978b427ee Save values set in voice window before calling configuration dialog.
This fixes the values set in the voice window getting overwritten with the
initial values when opening the configuration dialog from the window via the
"Change" button.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24963 a1c6a512-1295-4272-9138-f99709370657
2010-02-28 11:06:49 +00:00
Dominik Riebeling
dd0a571c49 Use the data partition device node when trying to resolve the mountpoint.
The stricter matching for device nodes introduced with r24802 broke resolving
the mountpoint during autodetection as sansapatcher and ipodpatcher return the
device node of the player instead of its data partition.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24936 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 11:27:13 +00:00
Robert Menes
43e95cf7e5 Have the Mac OS X port of Rockbox Utility actually be called Rockbox Utility instead of just rbutilqt.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24931 a1c6a512-1295-4272-9138-f99709370657
2010-02-26 20:09:18 +00:00
Thomas Martitz
f6540e800d Sansa Fuzev2: Add mkamsboot and dualboot support. The bootloader doesn't work, but pressing |<< or inserting USB to boot the OF does.
It should be pretty safe to run test code on it now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24924 a1c6a512-1295-4272-9138-f99709370657
2010-02-26 13:55:17 +00:00
Rafaël Carré
3b53fe0485 mkamsboot: make sure files depending on dualboot.h are updated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24915 a1c6a512-1295-4272-9138-f99709370657
2010-02-25 18:08:16 +00:00
Rafaël Carré
c36a644cc6 mkamsboot: use version.sh properly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24843 a1c6a512-1295-4272-9138-f99709370657
2010-02-22 05:41:09 +00:00
Dominik Riebeling
b1cc087a67 Be more strict when when resolving devices and allow hfs too.
On OS X HFS is a valid filesystem on an Ipod. When resolving device node to
mountpoints and vice versa also check mounts of hfs partitions. This results in
trying to install the bootloader on a MacPod to show the (intended) MacPod
warning instead of failing with a "could not open ipod" error because no valid
device node could be retrieved. Also, be more strict on matching to prevent
problems with one name being a subset of another.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24802 a1c6a512-1295-4272-9138-f99709370657
2010-02-20 22:46:58 +00:00
Dominik Riebeling
7709113b6a Add missing class prefix to logging call.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24801 a1c6a512-1295-4272-9138-f99709370657
2010-02-20 22:46:55 +00:00
Dominik Riebeling
7f33b7d9fa Recognize and handle MacPods during autodetection.
Previously MacPods were detected but the mountpoint can't get resolved due to
the different partition layout, thus having a MacPod would only detect the Ipod
itself but not the mountpoint. Rockbox does not support MacPods, so inform the
user as soon as possible.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24799 a1c6a512-1295-4272-9138-f99709370657
2010-02-20 22:11:11 +00:00
Dominik Riebeling
5998a5507d Update an outdated comment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24798 a1c6a512-1295-4272-9138-f99709370657
2010-02-20 22:11:08 +00:00
Dominik Riebeling
773de4a150 If the Ipod has been recognized as MacPod always consider no bootloader installed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24797 a1c6a512-1295-4272-9138-f99709370657
2010-02-20 22:11:04 +00:00
Rafaël Carré
8b1bbdb013 rbutil: link to the Sansa forums when the user is requested to download a Sansa AMS firmware
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24778 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 23:45:29 +00:00
Rafaël Carré
b6c20c17e4 mkamsboot: prevents 2 potential problems
We checked if the new firmware block (bootloader+ucl function+packed
bootloader & OF) fit in the OF file, but not if it would run properly.

For example the Clipv2 OF is bigger than 0x50000 bytes uncompressed, but
it fitted in this space when packed and concatenated to a packed
bootloader + ucl function and dualboot code (but we use 1MB of RAM and
not 0x50000 anyway).

Now we check that both bootloader and OF are small enough to be unpacked
at runtime: the unpacked data must be smaller than available memory and
not overlap with ucl function and packed data (although the unpacked and
packed data could probably overlap a bit, I don't know how to calculate
this and this could be quite complex).

total_size() is replaced by check_sizes() which will perform all the
checks and set an error string if the firmware can't be patched.
(both mkamsboot and rbutilqt modified accordingly)

The second problem is that dualboot.S assumed r3 and r5 were left
untouched in the device specific checks. This was undocumented and very
error prone when modifying these checks.

r3 is the last byte of packed copy (bootloader or OF)
r5 is the entry point of uclunpack function derived from r3, so move r5
calculation after the device specific code.

Even if r3 is currently unused in the device specific code, we store it
in memory after copying the ucl function, when it points to the last byte
of packed data (not yet copied at this point since we didn't chose if we
boot the OF or the bootloader), and restore it just before using it so no
restriction is placed on registers usage in device specific code.

Add a new variable ucl_dest in dualboot.S set by mkamsboot.c, which
represents the last bound of buffer where we copy the ucl function, and
then the packed data (bootloader or OF).

RAM_SIZE definition is moved from dualboot.S to mkamsboot.c new
model_memory_size(), where it is a bit better documented.

Tested on e200v2 and Clip+

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24772 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 14:10:26 +00:00
Björn Stenberg
b4f6c6ffba Tweaked dependencies a bit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24770 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 08:09:41 +00:00
Rafaël Carré
75919d5f3d Revert r24763 : LIBOBJS is already included in OBJS
The problem seems related to dependency on a directory

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24765 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 07:16:51 +00:00
Rafaël Carré
a63b225a14 mkamsboot binary depends on the same object files than libmkamsboot
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24763 a1c6a512-1295-4272-9138-f99709370657
2010-02-19 07:05:39 +00:00
Dominik Wenger
963fdc340b rbutil: fix voice downloads.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24758 a1c6a512-1295-4272-9138-f99709370657
2010-02-18 19:47:09 +00:00
Rafaël Carré
40e833af5f Clip+ remove setting GPIOB PIN0, it seems needed only for power
Also only use 0x50000 bytes of memory since the files just fit in.
TODO: make mkamsboot abort if the decompressed OF or bootloader doesn't
fit in RAM / or overlap on compressed data or uclunpack function

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24727 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 18:27:50 +00:00
Rafaël Carré
7c8dbf46a8 mkamsboot: update dualboot.c / dualboot.h in place
This removes the need for copying these files to ../ and removes the
risk of only copying one of the files (which led to bricking 2 c200v2
already)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24719 a1c6a512-1295-4272-9138-f99709370657
2010-02-17 14:37:06 +00:00
Dominik Riebeling
d2cead083f Start with mountpoint as folder to talk selection if old value is invalid.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24704 a1c6a512-1295-4272-9138-f99709370657
2010-02-16 21:38:00 +00:00
Dominik Riebeling
7e91332e39 Use QFileDialog::getExistingDirectory() for path selection.
This makes it possible for native dialogs to get used on Windows and OS X. The
mountpoint selection dialog needs special handling and still uses the
BrowseDirtree class for now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24703 a1c6a512-1295-4272-9138-f99709370657
2010-02-16 21:34:39 +00:00
Dominik Riebeling
e5b63c61ab Rename InstallFrm to InstallWindowFrm.
The Install class has been renamed recently to InstallWindow. Rename the
form too so it uses the same class basename again.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24698 a1c6a512-1295-4272-9138-f99709370657
2010-02-16 18:30:24 +00:00
Dominik Riebeling
4d6b1b6eb3 Remove column from tree widget -- this is set up by the caller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24697 a1c6a512-1295-4272-9138-f99709370657
2010-02-16 18:30:21 +00:00
Bertrik Sikken
b4fd5d852a Include dualboot.h in dualboot.c as an additional compile time sanity check
Author: Tobias Diedrich
Flyspray: FS #11009


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24636 a1c6a512-1295-4272-9138-f99709370657
2010-02-13 18:53:29 +00:00
Dominik Riebeling
a583f7661f Update Rockbox Utility version to 1.2.5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24626 a1c6a512-1295-4272-9138-f99709370657
2010-02-12 20:56:04 +00:00
Dominik Riebeling
4c9fc9cb7e Fix problems with platform retrieval.
- handle disabled platforms also for for variant and base groups.
- make variant detection more strict to prevent variants that are a substring
  of other variants to match. Happened e.g. for iriverh10 and iriverh100.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24625 a1c6a512-1295-4272-9138-f99709370657
2010-02-12 20:38:17 +00:00
Dominik Riebeling
9a256c96f7 Rockbox Utility polish translation update.
Author: Daniel Kluz
Flyspray: FS#11003 

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24623 a1c6a512-1295-4272-9138-f99709370657
2010-02-12 19:01:16 +00:00
Dominik Riebeling
80cc3d489e Remove turkish from the languages bundled in the binary. The translation is broken on file level (all non-ASCII characters are broken).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24609 a1c6a512-1295-4272-9138-f99709370657
2010-02-11 22:26:38 +00:00
Dominik Riebeling
22056a9c37 Don't close the disk handle to the ipod too early.
ipodInitialize() is not supposed to close but only to open the disk handle. Fixes a segfault when trying to install the ipod bootloader on windows.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24608 a1c6a512-1295-4272-9138-f99709370657
2010-02-11 22:19:34 +00:00
Dominik Riebeling
d868bfe521 Rockbox Utility russian translation update.
Author: Simon Zhukovsky
Flyspray: FS#10985

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24604 a1c6a512-1295-4272-9138-f99709370657
2010-02-11 21:24:54 +00:00
Dominik Riebeling
446eda80c9 Restore the default message handler on application shutdown. Fixes sporadic segfaults on exit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24599 a1c6a512-1295-4272-9138-f99709370657
2010-02-11 19:51:50 +00:00
Dominik Riebeling
552a54d87f Restore width of the Autodetect button.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24597 a1c6a512-1295-4272-9138-f99709370657
2010-02-11 18:50:49 +00:00
Jack Halpin
aa8da2333e Sansa Clip+: Unset B0 correctly in dualboot.S
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24582 a1c6a512-1295-4272-9138-f99709370657
2010-02-10 14:35:52 +00:00
Jack Halpin
74c48090ac Sansa Clip+: Unset pin B0 correctly in dualboot.S
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24573 a1c6a512-1295-4272-9138-f99709370657
2010-02-09 22:29:23 +00:00
Jack Halpin
de3489a6c8 Sansa Clip+ : Add dualboot support for sansa clip+ to mkamsboot.
Dualboot works on the sansa clip+ by holding either the left "|<<" or home buttons.
The USB pin is still undiscovered at this point and should replace the home button when found.
By including the home button for dualboot we avoid bricking due to a single button failure.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24561 a1c6a512-1295-4272-9138-f99709370657
2010-02-08 06:43:47 +00:00
Dominik Riebeling
a9ab407f84 Add option to show disabled targets in the configuration dialog.
Note that disabled targets support is not intended for use by end users.
This is to make development (and testing of svn) easier and should get
disabled for releases.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24513 a1c6a512-1295-4272-9138-f99709370657
2010-02-04 21:10:20 +00:00
Dominik Riebeling
7ea659221d Bump rbutil version to 1.2.4.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24499 a1c6a512-1295-4272-9138-f99709370657
2010-02-03 20:20:39 +00:00
Dominik Riebeling
1bef3a98e6 Update Português Brasileiro translation for Rockbox Utility.
Author: Adilson Xavier
Flyspray: FS#10963

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24488 a1c6a512-1295-4272-9138-f99709370657
2010-02-03 17:57:59 +00:00
Dominik Riebeling
24de239d3d Fix stupid typo in my last commit. How did I miss that?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24472 a1c6a512-1295-4272-9138-f99709370657
2010-02-02 21:20:10 +00:00
Dominik Riebeling
a54cacb508 Add italian to the list of language names.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24468 a1c6a512-1295-4272-9138-f99709370657
2010-02-02 20:19:28 +00:00
Dominik Riebeling
107ce4ed32 Disable D2 in rbutil as discussed in IRC.
Bootloader installation for the D2 is still not end-user ready for the upcoming release.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24467 a1c6a512-1295-4272-9138-f99709370657
2010-02-02 20:19:24 +00:00
Dominik Riebeling
156c75cec3 Update german rbutil translation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24464 a1c6a512-1295-4272-9138-f99709370657
2010-02-02 20:03:21 +00:00
Dominik Riebeling
47dbdf4cf8 OSX: Add CFBundleName to display a nicer name in the menu bar. Replace deprecated CFBundleGetInfoString.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24442 a1c6a512-1295-4272-9138-f99709370657
2010-02-01 22:05:08 +00:00
Dominik Riebeling
b659936ca5 Give the user a hint on where find the required bootloader file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24441 a1c6a512-1295-4272-9138-f99709370657
2010-02-01 20:30:22 +00:00
Dominik Riebeling
ea4130fd2d Extend SystemInfo to allow distinguishing between platforms and variants.
Doing so removes the need to loop over all targets to fill in values for
target variants in ServerInfo.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24427 a1c6a512-1295-4272-9138-f99709370657
2010-01-31 21:57:45 +00:00
Dominik Riebeling
1c6cada297 Fix typos in messages.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24419 a1c6a512-1295-4272-9138-f99709370657
2010-01-31 15:06:45 +00:00
Dominik Riebeling
56ac38265e Rename About menu to Help.
The About menu name was off since the introduction of the
Troubleshooting submenu. Renaming it should make it more obvious to look
at it in case of problems.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24418 a1c6a512-1295-4272-9138-f99709370657
2010-01-31 14:45:00 +00:00
Dominik Riebeling
c8d13b6a7d Implement ipod_scsi_inquiry() on OS X.
This implements the basic functionality for sending inquiries on OS X.
The current implementation has some limitations:
- it will not respect the selected device but pick the first Ipod found.
- it is inefficient due to the way ipodpatcher expects this which doesn't
  really match how it works on OS X.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24382 a1c6a512-1295-4272-9138-f99709370657
2010-01-30 17:02:37 +00:00
Dominik Riebeling
4239273108 Minimize unnecessary accesses to SystemInfo and RbSettings.
With the separation of the SystemInfo values accessing all the values
will create traces, making them rather noisy due to unnecessary multiple
accesses.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24373 a1c6a512-1295-4272-9138-f99709370657
2010-01-29 22:46:40 +00:00
Dominik Riebeling
64ead78a9f Adjust to the buildserver now using ipod4g instead of ipod4gray.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24372 a1c6a512-1295-4272-9138-f99709370657
2010-01-29 22:46:35 +00:00