Changeset 403


Ignore:
Timestamp:
05/21/08 11:51:54 (5 years ago)
Author:
EWAVR
Message:

+ IXUS700(SD500) - added multipartition support (due to low FAT16 performance)

Location:
trunk
Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/camera.h

    r395 r403  
    349349    #define CAM_SHOW_OSD_IN_SHOOT_MENU  1 
    350350    #undef  CAM_HAS_IS 
     351    #define CAM_MULTIPART               1 
    351352 
    352353//---------------------------------------------------------- 
  • trunk/platform/generic/wrappers.c

    r395 r403  
    451451 
    452452#if CAM_MULTIPART 
    453 static char mbr_buf[512]; 
     453 
     454#define SECTOR_SIZE 512 
     455char *mbr_buf; 
    454456static unsigned long drive_sectors; 
    455457 
     
    462464 if ((mbr_sector[0x1FE]!=0x55) || (mbr_sector[0x1FF]!=0xAA)) return 0; // signature check  
    463465 
    464  _memcpy(mbr_buf,mbr_sector,512); 
     466 mbr_buf=_AllocateUncacheableMemory(SECTOR_SIZE); 
     467 _memcpy(mbr_buf,mbr_sector,SECTOR_SIZE); 
    465468 drive_sectors=drive_total_sectors; 
    466469 
     
    507510  mbr_buf[i+0x1CE]=c; 
    508511 } 
    509  _WriteSDCard(0,0,1,&mbr_buf); 
     512 _WriteSDCard(0,0,1,mbr_buf); 
    510513} 
    511514 
     
    514517 char type; 
    515518 
    516  _memset(mbr_buf,0,sizeof(mbr_buf)); 
     519 _memset(mbr_buf,0,SECTOR_SIZE); 
    517520  
    518  start=1; length=2*1024*1024/512; //2 Mb 
     521 start=1; length=2*1024*1024/SECTOR_SIZE; //2 Mb 
    519522 type=1; // FAT primary 
    520523 mbr_buf[0x1BE + 4]=type; 
     
    530533 mbr_buf[0x1FE]=0x55; mbr_buf[0x1FF]=0xAA; // signature; 
    531534 
    532  _WriteSDCard(0,0,1,&mbr_buf); 
     535 _WriteSDCard(0,0,1,mbr_buf); 
    533536} 
    534537 
  • trunk/platform/ixus700_sd500/main.c

    r357 r403  
    9494        } 
    9595        if (my_ncmp(name, "tInitFileM", 10) == 0){ 
    96             taskfsprev = (void*)(*entry); 
    97             *entry = (long)task_fs; 
     96         //   taskfsprev = (void*)(*entry); 
     97            *entry = (long)init_file_modules_task; 
    9898        } 
    9999 
  • trunk/platform/ixus700_sd500/sub/101a/Makefile

    r379 r403  
    11topdir=../../../../ 
    22 
    3 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    4 STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    55 
    66include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus700_sd500/sub/101a/stubs_auto.S

    r379 r403  
    1616STUB(FF811AEC) 
    1717STUB(FF811B18) 
     18STUB(FF812954) 
     19STUB(FF8129A0) 
    1820STUB(FF813E68) 
    1921STUB(FF81FDA0) 
     
    2830STUB(FF82952C) 
    2931STUB(FF829C08) 
     32STUB(FF82DC30) 
     33STUB(FF82DCA8) 
     34STUB(FF85ED80) 
     35STUB(FF8663A4) 
     36STUB(FF866D84) 
     37STUB(FF868100) 
     38STUB(FF868EE8) 
     39STUB(FF868FEC) 
     40STUB(FF869720) 
     41STUB(FF869770) 
     42STUB(FF869818) 
     43STUB(FF869968) 
     44STUB(FF869A84) 
     45STUB(FF869B0C) 
     46STUB(FF869C84) 
     47STUB(FF87CDB4) 
    3048STUB(FF898CA0) 
    3149STUB(FF898D4C) 
     
    7795STUB(FF964D9C) 
    7896STUB(FF98D144) 
     97STUB(FF9A332C) 
     98STUB(FF9A333C) 
    7999STUB(FFA49210) 
     100STUB(FFA96858) 
     101STUB(FFA96870) 
    80102STUB(FFAA17D4) 
    81103STUB(FFAAF2A0) 
  • trunk/platform/ixus700_sd500/sub/101a/stubs_entry_2.S

    r333 r403  
    3939NHSTUB(GetDrive_TotalClusters, 0xFF86A18C) 
    4040NHSTUB(GetDrive_FreeClusters, 0xFF86A1C8) 
     41NHSTUB(WriteSDCard, 0xFF87CACC) 
  • trunk/platform/ixus700_sd500/sub/101b/Makefile

    r379 r403  
    11topdir=../../../../ 
    22 
    3 OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o 
    4 STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c 
     3OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o 
     4STUBS_AUTO_DEPS=boot.c capt_seq.c movie_rec.c mount.c 
    55 
    66include $(topdir)/platform/makefile_sub.inc 
  • trunk/platform/ixus700_sd500/sub/101b/stubs_auto.S

    r379 r403  
    1616STUB(FF811AEC) 
    1717STUB(FF811B18) 
     18STUB(FF812954) 
     19STUB(FF8129A0) 
    1820STUB(FF813E68) 
    1921STUB(FF81FDA0) 
     
    2830STUB(FF82952C) 
    2931STUB(FF829C08) 
     32STUB(FF82DC30) 
     33STUB(FF82DCA8) 
     34STUB(FF85ED80) 
     35STUB(FF8663A4) 
     36STUB(FF866D84) 
     37STUB(FF868100) 
     38STUB(FF868EE8) 
     39STUB(FF868FEC) 
     40STUB(FF869720) 
     41STUB(FF869770) 
     42STUB(FF869818) 
     43STUB(FF869968) 
     44STUB(FF869A84) 
     45STUB(FF869B0C) 
     46STUB(FF869C84) 
     47STUB(FF87CDB4) 
    3048STUB(FF898CA0) 
    3149STUB(FF898D4C) 
     
    7795STUB(FF964DEC) 
    7896STUB(FF98D194) 
     97STUB(FF9A337C) 
     98STUB(FF9A338C) 
    7999STUB(FFA49260) 
     100STUB(FFA968A8) 
     101STUB(FFA968C0) 
    80102STUB(FFAA1824) 
    81103STUB(FFAAF2F0) 
  • trunk/platform/ixus700_sd500/sub/101b/stubs_entry_2.S

    r333 r403  
    3939NHSTUB(GetDrive_TotalClusters, 0xFF86A18C) 
    4040NHSTUB(GetDrive_FreeClusters, 0xFF86A1C8) 
    41  
    42  
    43  
    44  
     41NHSTUB(WriteSDCard, 0xFF87CACC) 
Note: See TracChangeset for help on using the changeset viewer.