0
点赞
收藏
分享

微信扫一扫

11B SLIM版本不插T卡如何在浏览器中显示图片


1. 配置Widget image cache 的地址映射 
需要修改的文件: vendor\framework\obigo_q03c\adaptation\integration\source\Hdi_file.c 

typedef struct 

{

char *int_name; // Internal path

kal_uint8 ext_drive; // Mapping external drive

char *ext_name; // Mapping external path

int hidden; // Flag: Hidden or not.

} fs_map_table_struct;



We need to modify the mapping drive accordingly.



static fs_map_table_struct fs_map_table[NUM_FS_MAP_TABLE_ENTRY] =

{

.

.

.

#ifdef SLIM_WAP_MMS

{WIDGET_RAWFILE_DIRECTORY, WAP_STORAGE_REMOVABLE, "\\@wcache\\", 0},

{WIDGET_RAWFILE_MMS_DIRECTORY, WAP_STORAGE_REMOVABLE, "\\@wcache\\", 0},

#else

{WIDGET_RAWFILE_DIRECTORY, WAP_STORAGE_SYSTEM, "\\@wcache\\", 0},

{WIDGET_RAWFILE_MMS_DIRECTORY, WAP_STORAGE_SYSTEM, "\\@wcache\\", 0},

#endif /* */

.

.

.

};

WAP_STORAGE_REMOVABLE Maps to SD card.

WAP_STORAGE_SYSTEM Maps to System drive.



2. 修改FS_Quota

Refer file: \custom\common\fs_quota.c

Modify the entry

#ifndef SLIM_WAP_MMS

{"Z:\\@wcache\\", FS_QP_DEL_ENUM, 50*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE},

#endif /* SLIM_WAP_MMS */


 
如果上面条目存在,那么 @wcache 文件夹会固定的在文件系统中占用最小 50*1024 bytes.
 
可以根据需要修改quota中这个文件夹预留空间的大小. 
NOTE:修改FS_Quota的大小,会直接影响到ROM的大小。 
 
 3. ROM大小的变化 
修改导致的ROM空间增加大致等于quota中配置的@wcache文件夹的大小

举报

相关推荐

0 条评论