mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
The hidden partition stuff is only used Sansa.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12803 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
14ed3ca8d8
commit
a91a35be74
1 changed files with 7 additions and 3 deletions
|
@ -208,6 +208,7 @@ int load_mi4(unsigned char* buf, char* firmware, unsigned int buffer_size)
|
||||||
return EOK;
|
return EOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SANSA_E200
|
||||||
/* Load mi4 firmware from a hidden disk partition */
|
/* Load mi4 firmware from a hidden disk partition */
|
||||||
int load_mi4_part(unsigned char* buf, struct partinfo* pinfo, unsigned int buffer_size)
|
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;
|
return EOK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void* main(void)
|
void* main(void)
|
||||||
{
|
{
|
||||||
|
@ -339,9 +341,10 @@ void* main(void)
|
||||||
a mi4 firmware decrypted and header stripped using mi4code.
|
a mi4 firmware decrypted and header stripped using mi4code.
|
||||||
*/
|
*/
|
||||||
printf("Loading original firmware...");
|
printf("Loading original firmware...");
|
||||||
|
|
||||||
/* First try a hidden partition */
|
#ifdef SANSA_E200
|
||||||
printf("Trying hidden partition");
|
/* First try a (hidden) firmware partition */
|
||||||
|
printf("Trying firmware partition");
|
||||||
pinfo = disk_partinfo(1);
|
pinfo = disk_partinfo(1);
|
||||||
if(pinfo->type == PARTITION_TYPE_HIDDEN)
|
if(pinfo->type == PARTITION_TYPE_HIDDEN)
|
||||||
{
|
{
|
||||||
|
@ -355,6 +358,7 @@ void* main(void)
|
||||||
} else {
|
} else {
|
||||||
printf("No hidden partition found.");
|
printf("No hidden partition found.");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
printf("Trying /System/OF.mi4");
|
printf("Trying /System/OF.mi4");
|
||||||
rc=load_mi4(loadbuffer, "/System/OF.mi4", MAX_LOADSIZE);
|
rc=load_mi4(loadbuffer, "/System/OF.mi4", MAX_LOADSIZE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue