summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-02-28 07:42:03 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-02-28 07:42:03 +0000
commitfab0184870f4b204b27b949109231e9890763ae2 (patch)
tree52cfe902a77f3a1ba8607ba74d921ba441bbda04 /tools
parent6c6c35231064ee0c586d7f507bb639a5b3ca559e (diff)
downloadrockbox-fab0184870f4b204b27b949109231e9890763ae2.tar.gz
rockbox-fab0184870f4b204b27b949109231e9890763ae2.tar.bz2
rockbox-fab0184870f4b204b27b949109231e9890763ae2.zip
Add support for iAudio M5 in the scramble tool
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12517 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r--tools/scramble.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/scramble.c b/tools/scramble.c
index ea91b9b034..ccd6712297 100644
--- a/tools/scramble.c
+++ b/tools/scramble.c
@@ -81,6 +81,7 @@ void usage(void)
"\t-iriver iRiver format\n"
"\t-iaudiox5 iAudio X5 format\n"
"\t-iaudiox5v iAudio X5V format\n"
+ "\t-iaudiom5 iAudio M5 format\n"
"\t-ipod3g ipod firmware partition format (3rd Gen)\n"
"\t-ipod4g ipod firmware partition format (4th Gen, Mini, Nano, Photo/Color)\n"
"\t-ipod5g ipod firmware partition format (5th Gen - aka Video)\n"
@@ -210,6 +211,8 @@ int main (int argc, char** argv)
modelnum = 15;
else if(!strcmp(&argv[1][5], "e200"))
modelnum = 16;
+ else if(!strcmp(&argv[1][5], "iam5"))
+ modelnum = 17;
else {
fprintf(stderr, "unsupported model: %s\n", &argv[1][5]);
return 2;
@@ -243,6 +246,11 @@ int main (int argc, char** argv)
oname = argv[3];
return iaudio_encode(iname, oname, "COWON_X5V_FW");
}
+ else if(!strcmp(argv[1], "-iaudiom5")) {
+ iname = argv[2];
+ oname = argv[3];
+ return iaudio_encode(iname, oname, "COWON_M5_FW");
+ }
else if(!strcmp(argv[1], "-ipod3g")) {
iname = argv[2];
oname = argv[3];