阅读:831回复:0
wince4.2 如何能够得到4个物理分区(主分区)?
在原先系统只存在1个binfs和1个fat32分区的情况下,分区表中的信息是这样的:
ff ff ff ff ff ff ff ff ff ff ff ff ff ff 03 05 01 00 21 24 00 00 00 05 00 00 00 20 01 00 01 25 01 00 0b e2 00 00 00 25 01 00 00 be 0e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa 系统启动后也只能看到residentflash目录,整个容量是450M,这是正常的。 我想创建多个fat分区,因此,我修改了eboot程序,启动eboot后先格式化nandflash,后来多调用了一次BP_OpenPartition函数用来多创建一个fat32分区,调用如下: DWORD dwTemp = 100*1024*1024; // Length = 100M hPartEx = BP_OpenPartition( NEXT_FREE_LOC, SECTOR_TO_BLOCK_SIZE(FILE_TO_SECTOR_SIZE(dwTemp))*PAGES_PER_BLOCK, PART_DOS2_FAT, TRUE, PART_OPEN_ALWAYS); 结果分区表中的信息如下: ff ff ff ff ff ff ff ff ff ff ff ff ff ff 03 05 01 00 21 24 00 00 00 05 00 00 00 20 01 00 01 25 01 00 01 44 00 00 00 25 01 00 00 20 03 00 01 45 01 00 0b e3 00 00 00 45 04 00 00 9f 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa 可是系统启动后仍然只能看到residentflash目录,整个容量仍然是450M。 我想得到多个主分区的意图没有达到,能指点一下,问题在哪?我该怎么做呢? |
|