forked from len0rd/rockbox
Initial (untested apart from device detection) support for 1st/2nd gen ipods (the original ones...).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14010 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d8873fbb7e
commit
6a20def805
2 changed files with 16 additions and 2 deletions
|
|
@ -1,13 +1,13 @@
|
|||
CFLAGS=-Wall
|
||||
|
||||
BOOT_H = ipod3g.h ipod4g.h ipodcolor.h ipodmini.h ipodmini2g.h ipodnano.h ipodvideo.h
|
||||
BOOT_H = ipod1g2g.h ipod3g.h ipod4g.h ipodcolor.h ipodmini.h ipodmini2g.h ipodnano.h ipodvideo.h
|
||||
|
||||
# Uncomment the next two lines to build with embedded bootloaders and the
|
||||
# --install option and interactive mode. You need the full set of Rockbox
|
||||
# bootloaders in this directory - download them from
|
||||
# http://download.rockbox.org/bootloader/ipod/bootloaders.zip
|
||||
|
||||
#BOOTSRC = ipod3g.c ipod4g.c ipodcolor.c ipodmini.c ipodmini2g.c ipodnano.c ipodvideo.c
|
||||
#BOOTSRC = ipod1g2g.c ipod3g.c ipod4g.c ipodcolor.c ipodmini.c ipodmini2g.c ipodnano.c ipodvideo.c
|
||||
#CFLAGS += -DWITH_BOOTOBJS
|
||||
|
||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||
|
|
@ -48,6 +48,9 @@ ipodpatcher-ppc: $(SRC) ipodio-posix.c $(BOOTSRC)
|
|||
ipod2c: ipod2c.c
|
||||
$(NATIVECC) $(CFLAGS) -o ipod2c ipod2c.c
|
||||
|
||||
ipod1g2g.c: bootloader-ipod1g2g.ipod ipod2c
|
||||
./ipod2c bootloader-ipod1g2g.ipod ipod1g2g
|
||||
|
||||
ipod3g.c: bootloader-ipod3g.ipod ipod2c
|
||||
./ipod2c bootloader-ipod3g.ipod ipod3g
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
#include "ipodpatcher.h"
|
||||
|
||||
#ifdef WITH_BOOTOBJS
|
||||
#include "ipod1g2g.h"
|
||||
#include "ipod3g.h"
|
||||
#include "ipod4g.h"
|
||||
#include "ipodmini.h"
|
||||
|
|
@ -1134,6 +1135,16 @@ int list_images(struct ipod_t* ipod)
|
|||
int getmodel(struct ipod_t* ipod, int ipod_version)
|
||||
{
|
||||
switch (ipod_version) {
|
||||
case 0x01:
|
||||
ipod->modelstr="1st or 2nd Generation";
|
||||
ipod->modelnum = 19;
|
||||
ipod->modelname = "1g2g";
|
||||
ipod->targetname = "ipod1g2g";
|
||||
#ifdef WITH_BOOTOBJS
|
||||
ipod->bootloader = ipod1g2g;
|
||||
ipod->bootloader_len = LEN_ipod1g2g;
|
||||
#endif
|
||||
break;
|
||||
case 0x02:
|
||||
ipod->modelstr="3rd Generation";
|
||||
ipod->modelnum = 7;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue