Commit d3760e119385a179765f43a50a8e051a44127c25

Authored by tim
Committed by Phil Elwell
1 parent ff86c6de

Don't load bootcode from the overlay directory

Also add extra logging to indicate where the file was loaded
from to make it more obvious where a file is loaded from.

Update Windows installer
... ... @@ -470,7 +470,9 @@ FILE * check_file(const char * dir, const char *fname, int use_fmem)
470 470  
471 471 if(dir)
472 472 {
473   - if(overlay&&(pathname[0] != 0))
  473 + if(overlay && (pathname[0] != 0) &&
  474 + (strcmp(fname, "bootcode4.bin") != 0) &&
  475 + (strcmp(fname, "bootcode.bin") != 0))
474 476 {
475 477 strcpy(path, dir);
476 478 strcat(path, "/");
... ... @@ -478,6 +480,8 @@ FILE * check_file(const char * dir, const char *fname, int use_fmem)
478 480 strcat(path, "/");
479 481 strcat(path, fname);
480 482 fp = fopen(path, "rb");
  483 + if (fp)
  484 + printf("Loading: %s\n", path);
481 485 memset(path, 0, sizeof(path));
482 486 }
483 487  
... ... @@ -487,6 +491,8 @@ FILE * check_file(const char * dir, const char *fname, int use_fmem)
487 491 strcat(path, "/");
488 492 strcat(path, fname);
489 493 fp = fopen(path, "rb");
  494 + if (fp)
  495 + printf("Loading: %s\n", path);
490 496 }
491 497 }
492 498  
... ... @@ -508,6 +514,8 @@ FILE * check_file(const char * dir, const char *fname, int use_fmem)
508 514 else if(strcmp(fname, "start.elf") == 0)
509 515 fp = fmemopen(msd_start_elf, msd_start_elf_len, "rb");
510 516 }
  517 + if (fp)
  518 + printf("Loading embedded: %s\n", fname);
511 519 }
512 520  
513 521 return fp;
... ...
win32/rpiboot_setup.exe
No preview for this file type