summaryrefslogtreecommitdiffstats
path: root/bootloader/main-pp.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-03-16 14:36:14 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-03-16 14:36:14 +0000
commita91a35be74774742d8efc766a89ca33fcb880ab1 (patch)
treee124d537ba651a4da063a0f247bfe5fee98c59b0 /bootloader/main-pp.c
parent14ed3ca8d88a8f792e45b5453c9f089ffd8a975a (diff)
downloadrockbox-a91a35be74774742d8efc766a89ca33fcb880ab1.tar.gz
rockbox-a91a35be74774742d8efc766a89ca33fcb880ab1.tar.bz2
rockbox-a91a35be74774742d8efc766a89ca33fcb880ab1.zip
The hidden partition stuff is only used Sansa.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12803 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/main-pp.c')
-rw-r--r--bootloader/main-pp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c
index 64f9e79a93..4472a61aa8 100644
--- a/bootloader/main-pp.c
+++ b/bootloader/main-pp.c
@@ -208,6 +208,7 @@ int load_mi4(unsigned char* buf, char* firmware, unsigned int buffer_size)
return EOK;
}
+#ifdef SANSA_E200
/* Load mi4 firmware from a hidden disk partition */
int load_mi4_part(unsigned char* buf, struct partinfo* pinfo, unsigned int buffer_size)
{
@@ -262,6 +263,7 @@ int load_mi4_part(unsigned char* buf, struct partinfo* pinfo, unsigned int buffe
return EOK;
}
+#endif
void* main(void)
{
@@ -339,9 +341,10 @@ void* main(void)
a mi4 firmware decrypted and header stripped using mi4code.
*/
printf("Loading original firmware...");
-
- /* First try a hidden partition */
- printf("Trying hidden partition");
+
+#ifdef SANSA_E200
+ /* First try a (hidden) firmware partition */
+ printf("Trying firmware partition");
pinfo = disk_partinfo(1);
if(pinfo->type == PARTITION_TYPE_HIDDEN)
{
@@ -355,6 +358,7 @@ void* main(void)
} else {
printf("No hidden partition found.");
}
+#endif
printf("Trying /System/OF.mi4");
rc=load_mi4(loadbuffer, "/System/OF.mi4", MAX_LOADSIZE);