summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher
AgeCommit message (Collapse)AuthorFilesLines
2011-12-16sansapatcher, ipodpatcher: use MinGW C99 version of stdio functions.Dominik Riebeling1-1/+1
The MinGW versions know additional format identifiers. Use those versions to avoid warnings. See also http://article.gmane.org/gmane.comp.gnu.mingw.user/27539/ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31331 a1c6a512-1295-4272-9138-f99709370657
2011-12-16ipodpatcher: move linker only options out of CFLAGS.Dominik Riebeling1-1/+1
OS X requires some linker-only options. Remove them from CFLAGS to avoid a compiler warning. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31330 a1c6a512-1295-4272-9138-f99709370657
2011-12-16ipodpatcher: convert to use libtools.make.Dominik Riebeling1-60/+23
This allows building libipodpatcher, which will make it possible to stop building ipodpatcher files in Rockbox Utility directly. Move some OS X common values to libtools.make as well (might fix building libmkamsboot on OS X). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31324 a1c6a512-1295-4272-9138-f99709370657
2011-12-08Various adjustments for MSVC.Dominik Riebeling1-1/+6
- MSVC uses different namings in some places. Adjust the sources via the preprocessor if build with MSVC. - MSVC doesn't know about __func__, use name instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31185 a1c6a512-1295-4272-9138-f99709370657
2011-12-07ipodpatcher: guard platform specific files.Dominik Riebeling3-0/+10
Use the preprocessor to make platform specific files compile as empty files if built for a different platform. This removes the need to distinguish in the Makefile and simplifies creating a libipodpatcher. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31169 a1c6a512-1295-4272-9138-f99709370657
2011-11-06Bulk convert all DOS line endings to UNIX.Torne Wuff1-1/+1
For the git migration we want a nice clean repository with UNIX line endings. git does not use svn:eol-style, we just need the file contents to be sane. Sorry everybody. I know this messes up blame. Scumbag *NIX developer says migrating to git will make line ending issues go away; commits giant change to svn which changes line endings anyway. :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30924 a1c6a512-1295-4272-9138-f99709370657
2011-09-26Replace bootloader object rules with suffix rules.Dominik Riebeling1-26/+10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30607 a1c6a512-1295-4272-9138-f99709370657
2011-08-25Fix off-by-one memory corruption in ipodpatcher.Thomas Jarosch1-1/+1
strcpy() will terminate the string with zero, the boot sector/buffer has only space for eight characters. Credit goes to "cppcheck". git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30351 a1c6a512-1295-4272-9138-f99709370657
2010-12-19Check if creating the dictionary worked before accessing it, not afterwards.Dominik Riebeling1-3/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28860 a1c6a512-1295-4272-9138-f99709370657
2010-09-27Remove obsolete 2nd gen nano checkFrank Gevaerts1-9/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28178 a1c6a512-1295-4272-9138-f99709370657
2010-09-01Remove Ipod Video 64MB handling.Dominik Riebeling1-6/+1
Since the builds for the Ipod Video 32MB and 64MB are now unified there is no need to handle them separately in Rockbox Utility anymore. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27966 a1c6a512-1295-4272-9138-f99709370657
2010-05-25Bump ipodpatcher version number in preparation for a new ipod bootloader releasebootloader_ipodpatcher_v5Torne Wuff1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26284 a1c6a512-1295-4272-9138-f99709370657
2010-01-30Implement ipod_scsi_inquiry() on OS X.Dominik Riebeling2-12/+156
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-28Revert most of r24361 - it was committed in error.Dave Chapman4-4/+12
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24362 a1c6a512-1295-4272-9138-f99709370657
2010-01-28Update the comments describing how to build ipodpatcher - no functional changes.Dave Chapman5-13/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24361 a1c6a512-1295-4272-9138-f99709370657
2009-12-09Fix ipodpatcher to work with new target names introduced in r23883Dave Chapman2-6/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23906 a1c6a512-1295-4272-9138-f99709370657
2009-12-07Rename targets to be consistent in all places. (FS #10819). Take 2.Björn Stenberg2-7/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23883 a1c6a512-1295-4272-9138-f99709370657
2009-11-29Suppress unused warnings for functions that haven't been implemented.Dominik Riebeling1-0/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23785 a1c6a512-1295-4272-9138-f99709370657
2009-11-22FS#9833: Fix Ipods being wrongly detected as MacPods on OS XDominik Riebeling1-5/+11
- when scanning for Ipods save the complete ipod_t structure on match. Only saving the disk name can result in the structure holding a disk name not matching the rest of the structure. This lead to wrong detection of macpod on OS X, as Mac drives might get detected later. - reopen the Ipod in RW mode on scanning on W32 only. On OS X reopening also unmounts the player, which in turn makes resolving the mount point fail. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23707 a1c6a512-1295-4272-9138-f99709370657
2009-11-08Rename print_error() in ipodpatcher and sansapatcher.Dominik Riebeling4-15/+15
Both patchers use the same function name with one being removed when building for rbutil. This gets in the way trying to move the patchers to libraries, and it also results a linking dependency of sansapatcher on ipodpatcher. Renaming the function makes both more self-contained and avoids potential issues if the functions happen to not do the same. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23568 a1c6a512-1295-4272-9138-f99709370657
2009-11-07Fix a compile warning.Dominik Riebeling1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23558 a1c6a512-1295-4272-9138-f99709370657
2009-11-06Set svn:keywords property.Dominik Riebeling4-4/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23545 a1c6a512-1295-4272-9138-f99709370657
2009-10-13ipodpatcher and rbutil support for the Nano2G - FS#10609 with a few further ↵Dave Chapman4-32/+520
changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23142 a1c6a512-1295-4272-9138-f99709370657
2009-09-25Query RAM size when scanning for Ipods. Return the target string for Video ↵Dominik Riebeling1-1/+11
64MB when apropriate amount of RAM is detected. Makes Rockbox Utility detect it correctly for first time installs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22829 a1c6a512-1295-4272-9138-f99709370657
2009-09-20Always format error message using ANSI functions to get rid of type-punning ↵Dominik Riebeling1-3/+3
when building with rbutil. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22759 a1c6a512-1295-4272-9138-f99709370657
2009-08-07Fix SCSI inquiry on W32.Dominik Riebeling1-1/+4
W32 returns additional bytes containing garbage on pages returning the maximum amount (i.e. 255) of bytes. Ignoring those bytes makes the output being correct. Someone needs to find out why those additional bytes are indicated at all. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22199 a1c6a512-1295-4272-9138-f99709370657
2009-08-04Add support (on Linux and win32 only - I couldn't figure this out on OS X) ↵Dave Chapman8-7/+319
for reading the XML device information from ipods. This information includes the RAM size, which is potentially useful for rbutil to distinguish between the two ipod video builds. This is implemented as both a new --dump-xml option (to dump the entire XML to a file) and a new 'ramsize' field in struct ipod_t. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22165 a1c6a512-1295-4272-9138-f99709370657
2009-08-04Make ipodpatcher compile on *BSD and recent Linux distributions - ↵Dave Chapman1-28/+32
htole16/htole32 are standard BSD functions, and they now also appear in glibc 2.9 or later on Linux. As the functions are so simple, we just rename to avoid a clash instead of attempting to use the library versions on some platforms. Same as fix provided in FS#10428 by Alyssa Milburn. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22164 a1c6a512-1295-4272-9138-f99709370657
2009-05-01Make sure the global buffers for ipodpatcher and sansapatcher get allocated ↵Dominik Riebeling1-1/+1
and freed only once. Fixes segfaults when the bootloader install class was instanciated multiple times. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20835 a1c6a512-1295-4272-9138-f99709370657
2008-10-10Bump ipodpatcher version stringNils Wallménius1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18763 a1c6a512-1295-4272-9138-f99709370657
2008-08-30Apply FS#9337 - Header file in SRC in rbutil/ipodpatcher. The parttypes.h ↵Bertrik Sikken1-1/+1
header file apparently breaks compilation on some systems and is already #included in ipodpatcher.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18364 a1c6a512-1295-4272-9138-f99709370657
2008-06-30When scanning for Ipod / Sansa close the disc handle of every tried disc, ↵Dominik Riebeling1-0/+5
not only for successful checks. Fixes "no Sansa found" issues with rbutil on w32 after autodetection was used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17893 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg8-16/+32
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-06-17Rename variables sectorbuf and verbose to avoid clashes in rbutil. Cleanup ↵Dominik Riebeling4-103/+102
exports a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17730 a1c6a512-1295-4272-9138-f99709370657
2008-05-22Move C linkage binding for c++ to exporting header files instead of includes.Dominik Riebeling1-0/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17609 a1c6a512-1295-4272-9138-f99709370657
2008-05-05Fix a couple quirks from the previous commit.Nicolas Pennequin1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17370 a1c6a512-1295-4272-9138-f99709370657
2008-05-05Convert the whole codebase to UTF-8, except docs/COMMITTERS and ↵Nicolas Pennequin1-1/+1
tools/creative.c, which need checking. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17369 a1c6a512-1295-4272-9138-f99709370657
2008-05-04Check for permission denied error when trying to access the player and ↵Dominik Riebeling3-4/+24
inform the user that raw disc access permissions are required. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17351 a1c6a512-1295-4272-9138-f99709370657
2008-03-25Make sansapatcher and ipodpatcher compile on OS X 10.5.Barry Wardell1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16804 a1c6a512-1295-4272-9138-f99709370657
2008-01-06allow building ipodpatcher / sansapatcher with MinGW.Dominik Riebeling1-0/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16003 a1c6a512-1295-4272-9138-f99709370657
2007-11-06Hopefully fix Ipod bootloader installation on Windows with RbUtilQt, without ↵rbutilqt_v1.0.3Magnus Holmgren1-2/+2
breaking ipodpatcher. I don't have any Ipod to test with, but the change is easy to revert. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15498 a1c6a512-1295-4272-9138-f99709370657
2007-09-21Forgot to adapate 'make clean'Jens Arnold1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14797 a1c6a512-1295-4272-9138-f99709370657
2007-09-21Add a manifest to ipodpatcher.exe in order to make it request administrative ↵Jens Arnold3-2/+20
rights on windows vista. This will cause a separate cmd window to pop up. The proper solution will be to implement a check for administrative rights in the executable, and tell the user to start from an elevated command prompt if not. This solution will still need a (changed) manifest. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14796 a1c6a512-1295-4272-9138-f99709370657
2007-09-18Bump version to 2.0 ready for releasebootloader_ipods_v2Dave Chapman1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14744 a1c6a512-1295-4272-9138-f99709370657
2007-09-08Add functions to read and write the AUPD (flash update) image. "--read-aupd ↵Dave Chapman6-3/+537
aupd.bin" will read (and decrypt) the AUPD image, and "--write-aupd aupd.bin" will write (and encrypt) an image. Also fix a bug in the "diskmove" function which corrupted the AUPD image when a bootloader was installed. So in order to manipulate the aupd image, you need to restore a clean firmware partition, and install the bootloader with this version of ipodpatcher. Decryption functions based on the description and sample code at http://ipodlinux.org/Flash_Decryption git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14644 a1c6a512-1295-4272-9138-f99709370657
2007-09-01Mac OS X only - automatically unmount the FAT32 partition before attempting ↵Dave Chapman1-0/+24
to open the disk device for writing. This step can be removed from the manual when the next ipodpatcher version is released. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14569 a1c6a512-1295-4272-9138-f99709370657
2007-08-24ipodpatcher: adjust the targetname strings, so they match the names in rbutil.Dominik Wenger1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14447 a1c6a512-1295-4272-9138-f99709370657
2007-08-03Detect and reject 2nd Gen Nanos when scanning for ipods, instead of failing ↵Dave Chapman2-2/+31
quietly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14152 a1c6a512-1295-4272-9138-f99709370657
2007-07-29Yet more warning fixes - ipodpatcher should now be warning-free in rbutilqtDave Chapman1-2/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14068 a1c6a512-1295-4272-9138-f99709370657
2007-07-29Fix some more warnings (these only occurred on Mac OS X, so I missed them on ↵Dave Chapman1-3/+3
Linux/x86). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14067 a1c6a512-1295-4272-9138-f99709370657