WEC7: I am trying to create a third partition on my NAND but my approach is not working...my objective is (Part00 40MB, Part01 60MG and Part02 for remaining). I am also not sure on how to implement dwNumSectors. Will appreciate any guidance.
In SRC\Eboot\Sdmemory\flash.c of BLConfigureFlashPartitions() method
hPartition = BP_OpenPartition((DWORD)NEXT_FREE_LOC, dwBootPartitionSectorCount, PART_BOOTSECTION, FALSE, PART_CREATE_NEW);
if (hPartition == INVALID_HANDLE_VALUE)
{
OALLog(L"Error creating OS partition!!\r\n");
goto cleanUp;
}
// Create FAT partition of XXMB partition for system files.....(dwNumSectors ??? must define somewhere)
hPartition = BP_OpenPartition((DWORD)NEXT_FREE_LOC, (DWORD)0x9FFF, PART_DOS32, FALSE, PART_CREATE_NEW);
if (hPartition == INVALID_HANDLE_VALUE)
{
OALLog(L"Error creating file partition2!!\r\n");
goto cleanUp;
}
//OALLog(L"Flash format complete!\r\n");
// Create FAT partition on remaining flash (can be automatically mounted)....partition for user data files
hPartition = BP_OpenPartition((DWORD)NEXT_FREE_LOC, (DWORD)USE_REMAINING_SPACE, PART_DOS32, FALSE, PART_CREATE_NEW);
if (hPartition == INVALID_HANDLE_VALUE)
{
OALLog(L"Error creating file partition2!!\r\n");
goto cleanUp;
}
OALLog(L"Flash format complete!\r\n");