diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-04-26 21:40:16 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-04-26 21:40:16 +0000 |
commit | 28d54c6016459ffe93c0be2efea7de27c38d783c (patch) | |
tree | 9a7a71481f0a82599616a3e9f4e5bdad9fee8d6c /rbutil/mkmpioboot/main.c | |
parent | b09d3aec392538ca0934644ff6357c41aaa4c323 (diff) | |
download | rockbox-28d54c6016459ffe93c0be2efea7de27c38d783c.tar.gz rockbox-28d54c6016459ffe93c0be2efea7de27c38d783c.zip |
Add MPIO HD200 port - new files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25725 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkmpioboot/main.c')
-rw-r--r-- | rbutil/mkmpioboot/main.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/rbutil/mkmpioboot/main.c b/rbutil/mkmpioboot/main.c new file mode 100644 index 0000000000..38e6d25288 --- /dev/null +++ b/rbutil/mkmpioboot/main.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id:$ | ||
9 | * | ||
10 | * Copyright (C) 2010 by Marcin Bukat | ||
11 | * | ||
12 | * code taken mostly from mkboot.c | ||
13 | * Copyright (C) 2005 by Linus Nielsen Feltzing | ||
14 | * | ||
15 | * This program is free software; you can redistribute it and/or | ||
16 | * modify it under the terms of the GNU General Public License | ||
17 | * as published by the Free Software Foundation; either version 2 | ||
18 | * of the License, or (at your option) any later version. | ||
19 | * | ||
20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
21 | * KIND, either express or implied. | ||
22 | * | ||
23 | ****************************************************************************/ | ||
24 | |||
25 | #include <stdio.h> | ||
26 | #include <stdlib.h> | ||
27 | #include "mkmpioboot.h" | ||
28 | |||
29 | static void usage(void) | ||
30 | { | ||
31 | printf("usage: mkmpioboot <firmware file> <boot file> <output file>\n"); | ||
32 | exit(1); | ||
33 | } | ||
34 | |||
35 | int main(int argc, char *argv[]) | ||
36 | { | ||
37 | char *infile, *bootfile, *outfile; | ||
38 | int origin = 0xe0000; /* MPIO HD200 bootloader address */ | ||
39 | |||
40 | if(argc < 3) { | ||
41 | usage(); | ||
42 | } | ||
43 | |||
44 | infile = argv[1]; | ||
45 | bootfile = argv[2]; | ||
46 | outfile = argv[3]; | ||
47 | |||
48 | return mkmpioboot(infile, bootfile, outfile, origin); | ||
49 | } | ||