1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
|
diff -uNr cromwell-2.40/boot/LoadLinux.c cromwell-2.40-r2/boot/LoadLinux.c
--- cromwell-2.40/boot/LoadLinux.c 2004-12-05 02:14:26.000000000 +0000
+++ cromwell-2.40-r2/boot/LoadLinux.c 2005-10-26 09:28:44.000000000 +0000
@@ -33,10 +33,12 @@
void ExittoLinux(CONFIGENTRY *config);
-void startLinux(void* initrdStart, unsigned long initrdSize, const char* appendLine);
+void startLinux(void* initrdStart, unsigned long initrdSize, const char* appendLine, unsigned int entry);
void setup(void* KernelPos, void* PhysInitrdPos, unsigned long InitrdSize, const char* kernel_cmdline);
void I2CRebootSlow(void);
+void try_elf_boot (char* data, int len);
+
void BootPrintConfig(CONFIGENTRY *config) {
int CharsProcessed=0, CharsSinceNewline=0, Length=0;
@@ -69,6 +71,10 @@
unsigned int nSizeHeader=((*(kernelOrg + 0x01f1))+1)*512;
memcpy((u8 *)KERNEL_SETUP, kernelOrg, nSizeHeader);
memcpy((u8 *)KERNEL_PM_CODE,(kernelOrg+nSizeHeader),kernelSize-nSizeHeader);
+
+ /* Try to execute a pure ELF binary here, using the etherboot
+ * code. This is required for ELF kernels, such as FreeBSD */
+ try_elf_boot ((char*)kernelOrg, kernelSize);
}
@@ -313,9 +319,15 @@
configLoaded=1;
break;
}
+ dwConfigSize = BootIso9660GetFile(cdromId,"/linuxboot.cfg", (u8 *)KERNEL_SETUP, 0x800);
+ if (dwConfigSize>0) {
+ configLoaded=1;
+ break;
+ }
wait_ms(250);
}
+ //We couldn't read the disk, so we eject the drive so the user can insert one.
if (!configLoaded) {
//Needs to be changed for non-xbox drives, which don't have an eject line
//Need to send ATA eject command.
@@ -326,20 +338,29 @@
printk("\2Please insert CD and press Button A\n\n");
while(1) {
+ // Make button 'A' close the DVD tray
if (risefall_xpad_BUTTON(TRIGGER_XPAD_KEY_A) == 1) {
- I2CTransmitWord(0x10, 0x0c01); // close DVD tray
+ I2CTransmitWord(0x10, 0x0c01);
wait_ms(500);
break;
}
- wait_ms(10);
-
- //Keep trying to read, in case somebody puts the tray in manually, without pressing A
- dwConfigSize = BootIso9660GetFile(cdromId,"/linuxboo.cfg", (u8 *)KERNEL_SETUP, 0x800);
- if (dwConfigSize>0) {
- configLoaded=1;
+ else if (DVD_TRAY_STATE == DVD_CLOSING) {
+ //It's an xbox drive, and somebody pushed the tray in manually
+ wait_ms(500);
break;
}
- }
+ else if (BootIso9660GetFile(cdromId,"/linuxboo.cfg", (u8 *)KERNEL_SETUP, 0x800)>0) {
+ //It isnt an xbox drive, and somebody pushed the tray in manually, and
+ //the cd is valid.
+ break;
+ }
+ else if (BootIso9660GetFile(cdromId,"/linuxboot.cfg", (u8 *)KERNEL_SETUP, 0x800)>0) {
+ break;
+ }
+ wait_ms(10);
+ }
+
+ wait_ms(250);
VIDEO_ATTR=0xffffffff;
@@ -351,6 +372,11 @@
configLoaded=1;
break;
}
+ dwConfigSize = BootIso9660GetFile(cdromId,"/linuxboot.cfg", (u8 *)KERNEL_SETUP, 0x800);
+ if (dwConfigSize>0) {
+ configLoaded=1;
+ break;
+ }
wait_ms(250);
}
}
@@ -423,7 +449,7 @@
//Try for 4 seconds.
I2CTransmitWord(0x10, 0x0c01); // close DVD tray
for (n=0;n<16;++n) {
- if((BootIso9660GetFile(cdromId,"/image.bin", (u8 *)KERNEL_SETUP, 0x10)) >=0 ) {
+ if((BootIso9660GetFile(cdromId,"/image.bin", (u8 *)KERNEL_PM_CODE, 0x10)) >=0 ) {
cdPresent=1;
break;
}
@@ -454,7 +480,7 @@
// wait until the media is readable
while(1) {
- if((BootIso9660GetFile(cdromId,"/image.bin", (u8 *)KERNEL_SETUP, 0x10)) >=0 ) {
+ if((BootIso9660GetFile(cdromId,"/image.bin", (u8 *)KERNEL_PM_CODE, 0x10)) >=0 ) {
break;
}
wait_ms(200);
@@ -462,7 +488,7 @@
}
printk("CDROM: ");
printk("Loading bios image from CDROM:/image.bin. \n");
- dwConfigSize=BootIso9660GetFile(cdromId, "/image.bin", (u8 *)KERNEL_PM_CODE, 256*1024);
+ dwConfigSize=BootIso9660GetFile(cdromId, "/image.bin", (u8 *)KERNEL_PM_CODE, 256*1024);
if( dwConfigSize < 0 ) { //It's not there
printk("image.bin not found on CDROM... Halting\n");
@@ -508,12 +534,12 @@
VIDEO_ATTR=0xff9f9fbf;
printk(sz);
}
- I2cSetFrontpanelLed(I2C_LED_RED0 | I2C_LED_RED1 | I2C_LED_RED2 | I2C_LED_RED3 );
- startLinux((void*)INITRD_START, dwInitrdSize, config->szAppend);
+ setLED("rrrr");
+ startLinux((void*)INITRD_START, dwInitrdSize, config->szAppend, 0x100000);
}
-void startLinux(void* initrdStart, unsigned long initrdSize, const char* appendLine)
+void startLinux(void* initrdStart, unsigned long initrdSize, const char* appendLine, unsigned int entry)
{
int nAta=0;
// turn off USB
@@ -535,10 +561,7 @@
BootIdeSetTransferMode(1, 0x40 | nAta);
// orange, people seem to like that colour
- I2cSetFrontpanelLed(
- I2C_LED_GREEN0 | I2C_LED_GREEN1 | I2C_LED_GREEN2 | I2C_LED_GREEN3 |
- I2C_LED_RED0 | I2C_LED_RED1 | I2C_LED_RED2 | I2C_LED_RED3
- );
+ setLED("oooo");
// Set framebuffer address to final location (for vesafb driver)
(*(unsigned int*)0xFD600800) = (0xf0000000 | ((xbox_ram*0x100000) - FB_SIZE));
@@ -549,6 +572,8 @@
// clear idt area
memset((void*)IDT_LOC,0x0,1024*8);
+ __asm__ ("movl %0,%%ebx" : : "a" (entry)); /* ebx = entry */
+
__asm __volatile__ (
"wbinvd\n"
@@ -597,13 +622,15 @@
// Set the stack pointer to give us a valid stack
"movl $0x03BFFFFC, %esp \n"
- "xor %ebx, %ebx \n"
"xor %eax, %eax \n"
"xor %ecx, %ecx \n"
"xor %edx, %edx \n"
"xor %edi, %edi \n"
"movl $0x90000, %esi\n" // kernel setup area
- "ljmp $0x10, $0x100000\n" // Jump to Kernel protected mode entry
+ "pushl $0x10\n"
+ "pushl %ebx\n" // 0x10:ebx is the entry point
+ "xor %ebx,%ebx\n" // clean leftover ebx (held entry point)
+ ".byte 0xcb\n " // retf
);
// We are not longer here, we are already in the Linux loader, we never come back here
diff -uNr cromwell-2.40/boot_rom/bootrom.ld cromwell-2.40-r2/boot_rom/bootrom.ld
--- cromwell-2.40/boot_rom/bootrom.ld 2003-09-08 11:04:06.000000000 +0000
+++ cromwell-2.40-r2/boot_rom/bootrom.ld 2005-10-26 09:27:16.000000000 +0000
@@ -45,6 +45,7 @@
.rodata ( RAM_CODE + SIZEOF(.text) + SIZEOF(.data) ) : AT ( SIZEOF(.low_rom) + SIZEOF(.text) + SIZEOF(.data)) {
*(.rodata);
*(.rodata.str1.1);
+ *(.rodata.str1.4);
*(.rodata.str1.32);
*(.rodata.cst4);
*(.rodata.cst8);
diff -uNr cromwell-2.40/etherboot/core/exec_elf.c cromwell-2.40-r2/etherboot/core/exec_elf.c
--- cromwell-2.40/etherboot/core/exec_elf.c 1970-01-01 00:00:00.000000000 +0000
+++ cromwell-2.40-r2/etherboot/core/exec_elf.c 2005-10-26 09:31:32.000000000 +0000
@@ -0,0 +1,22 @@
+#include "etherboot.h"
+
+/*
+ * This is a helper function; it tries to execute an ELF image using
+ * the Etherboot code. This is because *BSD kernels are raw ELF files,
+ * which are unsupported when booting from CD-ROM or disk.
+ */
+void
+try_elf_boot (char* image, int len)
+{
+ os_download_t os_download;
+
+ /* do nothing if the ELF magic mismatches */
+ if (*(int*)image != 0x464c457f)
+ return;
+
+ os_download = probe_image (image, len);
+ if (os_download == 0)
+ return;
+
+ os_download (image, len, 1);
+}
diff -uNr cromwell-2.40/etherboot/core/Makefile cromwell-2.40-r2/etherboot/core/Makefile
--- cromwell-2.40/etherboot/core/Makefile 2004-03-26 23:29:21.000000000 +0000
+++ cromwell-2.40-r2/etherboot/core/Makefile 2005-10-26 09:31:47.000000000 +0000
@@ -1,4 +1,4 @@
-O_TARGET := nfs.o nic.o osloader.o proto_tftm.o xbox_misc.o xbox_pci.o etherboot_config.o xbox_main.o
+O_TARGET := nfs.o nic.o osloader.o proto_tftm.o xbox_misc.o xbox_pci.o etherboot_config.o xbox_main.o exec_elf.o
include $(TOPDIR)/Rules.make
diff -uNr cromwell-2.40/fs/cdrom/iso9660.c cromwell-2.40-r2/fs/cdrom/iso9660.c
--- cromwell-2.40/fs/cdrom/iso9660.c 2004-11-09 23:52:43.000000000 +0000
+++ cromwell-2.40-r2/fs/cdrom/iso9660.c 2005-10-26 09:29:06.000000000 +0000
@@ -10,7 +10,11 @@
2004-07-22 "Edgar Hucek"<hostmaster@ed-soft.at> Created
*/
+#ifndef STANDALONE
#include "boot.h"
+#else
+# define printk printf
+#endif
#include "iso_fs.h"
int isupper( int ch )
@@ -96,25 +100,31 @@
sprintf(newfilename, "%s/",filename);
iso9660_name_translate(newfilename + strlen(newfilename),
dir->name, (unsigned char)dir->name_len[0]);
-// printk("Read : Sector %d Filename %s %d\n",
-// *((unsigned long *)(dir->extent)), newfilename,
-// (unsigned char)dir->ext_attr_length[0]);
+#ifdef DEBUG_ISO
+ printk("Read : Sector %d Filename %s %d\n",
+ *((unsigned long *)(dir->extent)), newfilename,
+ (unsigned char)dir->ext_attr_length[0]);
+#endif
}
if(strlen(newfilename) <= strlen(search)) {
if(memcmp(newfilename, search, strlen(search)) == 0) {
sect = *((unsigned long *)(dir->extent));
memcpy(dir_found, dir, sizeof(struct iso_directory_record));
-// printk("Found : Sector %d Directory %s Filename %s %d %d \n",
-// sect, newfilename, search,
-// strlen(newfilename), strlen(search));
+#ifdef DEBUG_ISO
+ printk("Found : Sector %d Directory %s Filename %s %d %d \n",
+ sect, newfilename, search,
+ strlen(newfilename), strlen(search));
+#endif
// free(newfilename);
// free(buffer);
return sect;
}
}
if((*((char *)(dir->flags)) & IS_DIR) && (*((unsigned char *)(dir->name_len)) > 1)) {
-// printk("Directory %s Filename %s\n", newfilename, search);
+#ifdef DEBUG_ISO
+ printk("Directory %s Filename %s\n", newfilename, search);
+#endif
if (strlen(newfilename) < strlen(search) && !memcmp(search,newfilename,
strlen(newfilename)) && search[strlen(newfilename)]=='/') {
sect = read_dir(driveId, dir, search, newfilename, dir_found);
@@ -131,35 +141,46 @@
return sect;
}
-void read_file(int driveId, struct iso_directory_record *dir_read, char *buffer) {
+unsigned long read_file(int driveId, struct iso_directory_record *dir_read, char *buffer, unsigned int max_bytes_to_read) {
unsigned long read_size;
+ unsigned long bytes_read;
unsigned long offset;
int i;
char *tmpbuff;
+
offset = *((unsigned long *)(dir_read->extent));
tmpbuff = (char *) malloc(ISO_BLOCKSIZE);
+
+ if (max_bytes_to_read > *((unsigned int *)(dir_read->size)) ) {
+ read_size = *(unsigned long *)dir_read->size;
+ }
+ else read_size = *(unsigned long *)max_bytes_to_read;
+
+ bytes_read = read_size;
- read_size = *((unsigned long *)(dir_read->size));
if(read_size <= ISO_BLOCKSIZE) {
read_size = ISO_BLOCKSIZE;
} else {
read_size+=(ISO_BLOCKSIZE - (read_size % ISO_BLOCKSIZE));
}
-// printk(" read_file sector %d %d\n", offset, read_size);
-
+#ifdef DEBUG_ISO
+ printk(" read_file sector %d %d\n", offset, read_size);
+#endif
for(i = 0; i < (read_size >> ISOFS_BLOCK_BITS) ; i++) {
memset(tmpbuff, 0x0, ISO_BLOCKSIZE);
BootIdeReadSector(driveId, tmpbuff, offset , 0, ISO_BLOCKSIZE);
offset++;
if(((i+1) * ISO_BLOCKSIZE) > read_size) {
- memcpy(&buffer[i * ISO_BLOCKSIZE], tmpbuff, (i * ISO_BLOCKSIZE) - *((unsigned long *)(dir_read->size)));
+ memcpy(&buffer[i * ISO_BLOCKSIZE], tmpbuff, (i * ISO_BLOCKSIZE) - read_size);
} else {
memcpy(&buffer[i * ISO_BLOCKSIZE], tmpbuff, ISO_BLOCKSIZE);
}
}
free(tmpbuff);
+
+ return bytes_read;
}
int BootIso9660GetFile(int driveId, char *szcPath, unsigned char *pbaFile, unsigned int dwFileLengthMax) {
@@ -177,7 +198,9 @@
memset(dir,0x0,sizeof(struct iso_directory_record));
if(BootIdeReadSector(driveId, pvd, 16 , 0, ISO_BLOCKSIZE)) {
-// printk("BootIso9660GetFile : Error read Sector\n");
+#ifdef DEBUG_ISO
+ printk("BootIso9660GetFile : Error read Sector\n");
+#endif
free(pvd);
free(dir);
return -1;
@@ -187,14 +210,9 @@
offset = read_dir(driveId, rootd, szcPath, "", dir);
if(offset > 0) {
- if(*((unsigned long *)(dir->size)) > dwFileLengthMax) {
- free(pvd);
- free(dir);
- return -1;
- }
- read_file(driveId, dir, pbaFile);
- return *((unsigned long *)(dir->size));
+ return read_file(driveId, dir, pbaFile, dwFileLengthMax);
} else {
+ //Not found
free(pvd);
free(dir);
return -1;
diff -uNr cromwell-2.40/fs/grub/fsys_reiserfs.c cromwell-2.40-r2/fs/grub/fsys_reiserfs.c
--- cromwell-2.40/fs/grub/fsys_reiserfs.c 2004-06-06 14:50:43.000000000 +0000
+++ cromwell-2.40-r2/fs/grub/fsys_reiserfs.c 2005-10-26 09:27:16.000000000 +0000
@@ -367,7 +367,7 @@
static __inline__ unsigned long
-log2 (unsigned long word)
+reiser_log2 (unsigned long word)
{
__asm__ ("bsfl %1,%0"
: "=r" (word)
@@ -609,7 +609,7 @@
INFO->version = super.s_version;
INFO->blocksize = super.s_blocksize;
- INFO->fullblocksize_shift = log2 (super.s_blocksize);
+ INFO->fullblocksize_shift = reiser_log2 (super.s_blocksize);
INFO->blocksize_shift = INFO->fullblocksize_shift - SECTOR_BITS;
INFO->cached_slots =
(FSYSREISER_CACHE_SIZE >> INFO->fullblocksize_shift) - 1;
diff -uNr cromwell-2.40/include/boot.h cromwell-2.40-r2/include/boot.h
--- cromwell-2.40/include/boot.h 2004-11-26 00:39:31.000000000 +0000
+++ cromwell-2.40-r2/include/boot.h 2005-10-26 09:29:24.000000000 +0000
@@ -331,8 +331,8 @@
unsigned char *text1, int text1_length,
unsigned char *text2, int text2_length );
-char *HelpGetLine(char *ptr);
-void HelpGetParm(char *szBuffer, char *szOrig);
char *strrchr0(char *string, char ch);
+void setLED(void *pattern);
+
#endif // _Boot_H_
diff -uNr cromwell-2.40/include/config.h cromwell-2.40-r2/include/config.h
--- cromwell-2.40/include/config.h 2004-12-08 21:51:21.000000000 +0000
+++ cromwell-2.40-r2/include/config.h 2005-10-26 09:38:00.000000000 +0000
@@ -1,7 +1,7 @@
////////////////////// compile-time options ////////////////////////////////
//Cromwell version number
-#define VERSION "2.40"
+#define VERSION "2.40-r2"
// selects between the supported video modes, see boot.h for enum listing those available
//#define VIDEO_PREFERRED_MODE VIDEO_MODE_800x600
diff -uNr cromwell-2.40/lib/gzip/misc.c cromwell-2.40-r2/lib/gzip/misc.c
--- cromwell-2.40/lib/gzip/misc.c 2004-06-06 14:27:26.000000000 +0000
+++ cromwell-2.40-r2/lib/gzip/misc.c 2005-10-26 09:27:16.000000000 +0000
@@ -29,8 +29,6 @@
*
* Incomprehensible are the ways of bootloaders.
*/
-static void* memset(void *, int, size_t);
-static void* memcpy(void *, __const void *, size_t);
#define memzero(s, n) memset ((s), 0, (n))
typedef unsigned char uch;
@@ -138,25 +136,6 @@
free_mem_ptr = (long) *ptr;
}
-static void* memset(void* s, int c, size_t n)
-{
- int i;
- char *ss = (char*)s;
-
- for (i=0;i<n;i++) ss[i] = c;
- return s;
-}
-
-static void* memcpy(void* __dest, __const void* __src,
- size_t __n)
-{
- int i;
- char *d = (char *)__dest, *s = (char *)__src;
-
- for (i=0;i<__n;i++) d[i] = s[i];
- return __dest;
-}
-
/* ===========================================================================
* Fill the input buffer. This is called only when the buffer is empty
* and at least one byte is really needed.
diff -uNr cromwell-2.40/lib/misc/LED.c cromwell-2.40-r2/lib/misc/LED.c
--- cromwell-2.40/lib/misc/LED.c 1970-01-01 00:00:00.000000000 +0000
+++ cromwell-2.40-r2/lib/misc/LED.c 2005-10-26 09:27:37.000000000 +0000
@@ -0,0 +1,57 @@
+/**
+ * Xbox LED Pattern setting for Cromwell.
+ * Copyright (C) Thomas "ShALLaX" Pedley (gentoox@shallax.com)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+// Set the pattern of the LED.
+// The pattern must be 4 characters long and must consist
+// only of 'r', 'g', 'o' and 'x'.
+//
+// r = Red
+// g = Green
+// o = Orange
+// x = Off
+//
+// E.g. rgog will cycle through red, green, orange, green and then loop.
+//
+// If the pattern string isn't 4 characters in length, nothing is done.
+void setLED(char *pattern) {
+ char *x = pattern;
+ int r, g;
+
+ if(strlen(pattern) == 4) {
+ r = g = 0;
+ while (*x) {
+ r *= 2;
+ g *= 2;
+ switch (*x) {
+ case 'r':
+ r++;
+ break;
+ case 'g':
+ g++;
+ break;
+ case 'o':
+ r++;
+ g++;
+ break;
+ }
+ x++;
+ }
+ I2cSetFrontpanelLed(((r<<4) & 0xF0) + (g & 0xF));
+ }
+}
diff -uNr cromwell-2.40/lib/misc/Makefile cromwell-2.40-r2/lib/misc/Makefile
--- cromwell-2.40/lib/misc/Makefile 2003-05-02 12:22:00.000000000 +0000
+++ cromwell-2.40-r2/lib/misc/Makefile 2005-10-26 09:27:50.000000000 +0000
@@ -1,4 +1,4 @@
-O_TARGET := BootLibrary.o BootParser.o setup.o vsprintf.o
+O_TARGET := BootLibrary.o BootParser.o setup.o vsprintf.o LED.o
include $(TOPDIR)/Rules.make
diff -uNr cromwell-2.40/Makefile cromwell-2.40-r2/Makefile
--- cromwell-2.40/Makefile 2004-12-02 21:09:50.000000000 +0000
+++ cromwell-2.40-r2/Makefile 2005-10-26 09:31:57.000000000 +0000
@@ -10,7 +10,7 @@
-I$(TOPDIR)/startuploader -I$(TOPDIR)/drivers/cpu \
-I$(TOPDIR)/lib/jpeg/
-CFLAGS = -O2 -mcpu=pentium -Werror $(INCLUDE) -Wstrict-prototypes -fomit-frame-pointer -pipe
+CFLAGS = -O2 -mcpu=pentium -Werror $(INCLUDE) -Wstrict-prototypes -fomit-frame-pointer -pipe
# add the option for gcc 3.3 only
ifeq ($(GCC_3.3), 1)
@@ -107,6 +107,7 @@
OBJECTS-CROM += $(TOPDIR)/obj/BootEEPROM.o
OBJECTS-CROM += $(TOPDIR)/obj/BootParser.o
OBJECTS-CROM += $(TOPDIR)/obj/BootFATX.o
+OBJECTS-CROM += $(TOPDIR)/obj/LED.o
#USB
OBJECTS-CROM += $(TOPDIR)/obj/config.o
OBJECTS-CROM += $(TOPDIR)/obj/hcd-pci.o
@@ -137,6 +138,7 @@
OBJECTS-CROM += $(TOPDIR)/obj/etherboot_config.o
OBJECTS-CROM += $(TOPDIR)/obj/xbox_main.o
OBJECTS-CROM += $(TOPDIR)/obj/elf.o
+OBJECTS-CROM += $(TOPDIR)/obj/exec_elf.o
endif
RESOURCES = $(TOPDIR)/obj/backdrop.elf
|