summaryrefslogtreecommitdiff
path: root/bootloader/e200.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/e200.c')
-rw-r--r--bootloader/e200.c53
1 files changed, 7 insertions, 46 deletions
diff --git a/bootloader/e200.c b/bootloader/e200.c
index efbbfe8ae0..639c564ca9 100644
--- a/bootloader/e200.c
+++ b/bootloader/e200.c
@@ -7,12 +7,8 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2005 by Dave Chapman 10 * Copyright (C) 2006 Daniel Stenberg
11 * 11 *
12 * Based on ipod.c by Dave Chapman
13 * Based on Rockbox iriver bootloader by Linus Nielsen Feltzing
14 * and the ipodlinux bootloader by Daniel Palffy and Bernard Leach
15 *
16 * All files in this archive are subject to the GNU General Public License. 12 * All files in this archive are subject to the GNU General Public License.
17 * See the file COPYING in the source tree root for full license agreement. 13 * See the file COPYING in the source tree root for full license agreement.
18 * 14 *
@@ -40,50 +36,15 @@
40#include "power.h" 36#include "power.h"
41#include "file.h" 37#include "file.h"
42 38
43#define XSC(X) #X
44#define SC(X) XSC(X)
45
46#define DRAM_START 0x10000000
47
48#define BUTTON_LEFT 1
49#define BUTTON_MENU 2
50#define BUTTON_RIGHT 3
51#define BUTTON_PLAY 4
52#define BUTTON_HOLD 5
53
54/* Size of the buffer to store the loaded Rockbox/Linux image */
55#define MAX_LOADSIZE (4*1024*1024)
56
57char version[] = APPSVERSION;
58
59typedef struct _image {
60 unsigned type; /* '' */
61 unsigned id; /* */
62 unsigned pad1; /* 0000 0000 */
63 unsigned devOffset; /* byte offset of start of image code */
64 unsigned len; /* length in bytes of image */
65 void *addr; /* load address */
66 unsigned entryOffset; /* execution start within image */
67 unsigned chksum; /* checksum for image */
68 unsigned vers; /* image version */
69 unsigned loadAddr; /* load address for image */
70} image_t;
71
72extern image_t boot_table[];
73
74int line=0;
75
76void main(void) 39void main(void)
77{ 40{
78 char buf[256];
79 int imageno=0;
80 int i; 41 int i;
81 int rc; 42
82 int padding = 0x4400; 43 volatile unsigned short *ptr = (unsigned short *)0x14700000;
83 image_t *tblp = boot_table; 44
84 void* entry; 45 for(i=0; i< 10000; i++)
85 struct partinfo* pinfo; 46 *ptr++=i;
86 unsigned short* identify_info; 47 while(1);
87} 48}
88 49
89/* These functions are present in the firmware library, but we reimplement 50/* These functions are present in the firmware library, but we reimplement