Build MFG Client driver ,and it can't work in my i.MX28 EVK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Build MFG Client driver ,and it can't work in my i.MX28 EVK

1,467 次查看
garylijs
Contributor II

Hi,

I rebuilt the MFG Client driver (iMX28-EVK-PDK1_9-UUT), and renamed the nk_ivt.sb to uce_ivt.sb, then copied it to "mfgtools\Profiles\MX28 WinCE Update\OS firmware".

When I used this new uce_ivt.sb to update my firmware(eboot_ivt.sb, nk_ivt.sb) and file(sandy.mp3) to SD/MMC, I found MFG client driver didn't create MBR section in SD/MMC, so it can't write the file(sandy.mp3) to disk.

BUT if I use ORIGINAL uce_ivt.sb in the "mfgtools\Profiles\MX28 WinCE Update\OS firmware", it works fine.

So I don't know why my built uce_ivt.sb can't work? I don't change any configuration of iMX28-EVK-PDK1_9-UUT, I only SYSGEN it in the first time.

Thanks,

Gary

标签 (1)
0 项奖励
回复
4 回复数

1,171 次查看
garylijs
Contributor II

Hi all,

============================================

There are 3 partitions.

EBOOT Partition 0:64MB done!

NK Partition 1:32MB done!

File Partition 2:0MB done!

WriteMBR: Write MBR to SDHC Finished!

Sleep 100 ms.

Sleep 200 ms.

Sleep 300 ms.

Sleep 400 ms.

Sleep 500 ms.

Sleep 600 ms.

Reopen disk DSK1: after SD/MMC virtual plugin.

ReCreate g_pWriteBufferPool successfully!

====================================================

From above original MFG client driver debug log, I check my wince BSP(WCE600_10.08.02_SDK.msi),I don't find any code to support above highlight. maybe this is one reason that MFG tool can't write file(sandy.mp3) to SD.

So, where to download the wince6.0 SDK which support to write MBR to SD section, maybe what I used BSP is too old or too new.

Regards,

Gary

0 项奖励
回复

1,171 次查看
Yuri
NXP Employee
NXP Employee


  Please check if iMX28-EVK-PDK1_9-UUT configuration supports FAT.

Also, for SD boot, we need write some data to sector 0 of the SD card,
this will destroy the SD card's MBR, then the card's file system can't work.

So, the MBR should be created as final stage. 


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,171 次查看
garylijs
Contributor II

Hi Yuri,

Follow is about my iMX28-EVK-PDK1_9-UUT configuration to supports FAT, but the MBR still can't be written to sector 0 of the SD card.

fat.png

Best Regards,

Gary

0 项奖励
回复

1,171 次查看
garylijs
Contributor II

1. The SDK for iMX28 is "WCE600_10.08.02_SDK.msi" download from the freescale website.SO I don't know if this SDK is not apply to my iMX28 EVK.

2. Follow is about the MFG client driver debug log, I can't find any "Create MBR" info in the debug log.AND some MFG debug logs have not been shown.

HTLLC

BATT:4.24V

B

5

U

LLCBSP Clock Configuration:

    PLL0        =  480000000 Hz

    PLL1        =  480000000 Hz

    PLL2        =          0 Hz

    REF_CPU     =  480000000 Hz

    REF_EMI     =  392727272 Hz

    REF_IO0     =  480000000 Hz

    REF_IO1     =  480000000 Hz

    REF_PIX     =  480000000 Hz

    REF_HSADC   =  480000000 Hz

    REF_GPMI    =  480000000 Hz

    REF_PLL     =  480000000 Hz

    REF_XTAL    =   24000000 Hz

    REF_ENET_PLL=          0 Hz

    P_CLK       =  240000000 Hz

    H_CLK       =   80000000 Hz

    X_CLk       =   24000000 Hz

    ETM         =   24000000 Hz

    EMI         =  196363636 Hz

    SSP0        =   24000000 Hz

    SSP1        =   24000000 Hz

    SSP2        =   24000000 Hz

    SSP3        =   24000000 Hz

    GPMI        =   24000000 Hz

    HSADC       =   26666666 Hz

    LCDIF       =   24000000 Hz

    SPDIF       =  120000000 Hz

    UTMI0       =  480000000 Hz

    UTMI1       =  480000000 Hz

    UART24MHZ   =   24000000 Hz

    PWM24MHZ    =   24000000 Hz

    TIMROT32K   =      32000 Hz

Windows CE Kernel for ARM (Thumb Enabled) Built on May  7 2012 at 12:47:43

INFO:OALLogSetZones: dpCurSettings.ulZoneMask: 0xb

OALInitCpuHclkClock:Update CPU clock to 454MHz!

WARN: Boot arguments not found, use defaults

DeviceId................. MX280

pArgs->flags............. 0xC

pArgs->devLoc.IfcType.... 0

pArgs->devLoc.LogicalLoc. 0x80080000

pArgs->devLoc.PhysicalLoc 0x80080000

pArgs->devLoc.Pin........ 0

pArgs->ip4address........ 0

pDevice->Name............  s

pDevice->ifcType......... 0

pDevice->id.............. 0x80080000

pDevice->resource........ 0

pDevice->type............ 2

pDevice->pDriver......... 0x8049902C

WARN: OALKitlInit: KITL Disabled

FSDMGR: File security disabled.

reset GPMI module

enable bch module

ERROR: C:\WINCE600\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V2_PDK1_9\NAND\FMDCOMMON\BIG_SECTOR_INTERLEAVE\.\fmd.cpp line 203: no NAND type matched!

BOT_InternalInit with Drivers\Active\06

SDHC: + DllEntry, Enter

UFN_ATTACH with key = Drivers\Active\06

UFN_CONFIGURED: BOT_OpenInterface again

UTP command:Media type: SDMMC.

UTP command:Check if disk is ready.

Please be patient to wait...

Send storage Friendly name: SD Memory Card.

Send time out: 10.

Find Store Device Name is DSK1:

Find Store Friendly Name is SD Memory Card

Info:Find Store by Friendly Name SD Memory Card

Get Store disk name:DSK1: by Friendly name SD Memory Card.

GetStoreList:szDisplayName is DSK1: SD Memory Card

DSK1: is ready.

UTP command:Creating partitions.

Please be patient to wait...

There are 3 partitions.

EBOOT Partition 0:64MB done!

NK Partition 1:32MB done!

File Partition 2:0MB done!

UTP command:Write image.

UTP command:Image type: EBOOT SB.

UTP command:Send data.

Whole data length to be sent: 0x559b0.

Recieving data: 19% finished.

Recieving data: 38% finished.

Recieving data: 57% finished.

Recieving data: 75% finished.

Recieving data: 94% finished.

INFO: Writing EBOOT image to SD/MMC media, please wait...

INFO: Totally 685 sectors needs to be written.

INFO: Program is 0% complete

INFO: Program is 74% complete.

INFO: Program is 100% complete.

INFO: Verifying image succeeds.

INFO: Updating of image completed successfully.

INFO: Totally 685 sectors needs to be written.

INFO: Program is 0% complete

INFO: Program is 74% complete.

INFO: Program is 100% complete.

INFO: Verifying image succeeds.

INFO: Updating of image completed successfully.

UTP command:Write image.

UTP command:Image type: NK NB0.

UTP command:Send data.

Whole data length to be sent: 0x1e00000.

INFO: Totally 61440 sectors needs to be written.

Recieving data:  1% finished.

Recieving data:  2% finished.

Recieving data:  3% finished.

Recieving data:  4% finished.

Recieving data:  5% finished.

Recieving data:  6% finished.

Recieving data:  7% finished.

Recieving data:  8% finished.

Recieving data:  9% finished.

Recieving data: 10% finished.

Recieving data: 11% finished.

Recieving data: 12% finished.

Recieving data: 13% finished.

Recieving data: 14% finished.

Recieving data: 15% finished.

Recieving data: 16% finished.

Recieving data: 17% finished.

Recieving data: 18% finished.

Recieving data: 19% finished.

Recieving data: 20% finished.

Recieving data: 21% finished.

Recieving data: 22% finished.

Recieving data: 23% finished.

Recieving data: 24% finished.

Recieving data: 25% finished.

Recieving data: 26% finished.

Recieving data: 27% finished.

Recieving data: 28% finished.

Recieving data: 29% finished.

Recieving data: 30% finished.

Recieving data: 31% finished.

Recieving data: 32% finished.

Recieving data: 33% finished.

Recieving data: 34% finished.

Recieving data: 35% finished.

Recieving data: 36% finished.

Recieving data: 37% finished.

Recieving data: 38% finished.

Recieving data: 39% finished.

Recieving data: 40% finished.

Recieving data: 41% finished.

Recieving data: 42% finished.

Recieving data: 43% finished.

Recieving data: 44% finished.

Recieving data: 45% finished.

Recieving data: 46% finished.

Recieving data: 47% finished.

Recieving data: 48% finished.

Recieving data: 49% finished.

Recieving data: 50% finished.

Recieving data: 51% finished.

Recieving data: 52% finished.

Recieving data: 53% finished.

Recieving data: 54% finished.

Recieving data: 55% finished.

Recieving data: 56% finished.

Recieving data: 57% finished.

Recieving data: 58% finished.

Recieving data: 59% finished.

Recieving data: 60% finished.

Recieving data: 61% finished.

Recieving data: 62% finished.

Recieving data: 63% finished.

Recieving data: 64% finished.

Recieving data: 65% finished.

Recieving data: 66% finished.

Recieving data: 67% finished.

Recieving data: 68% finished.

Recieving data: 69% finished.

Recieving data: 70% finished.

Recieving data: 71% finished.

Recieving data: 72% finished.

Recieving data: 73% finished.

Recieving data: 74% finished.

Recieving data: 75% finished.

Recieving data: 76% finished.

Recieving data: 77% finished.

Recieving data: 78% finished.

Recieving data: 79% finished.

Recieving data: 80% finished.

Recieving data: 81% finished.

Recieving data: 82% finished.

Recieving data: 83% finished.

Recieving data: 84% finished.

Recieving data: 85% finished.

Recieving data: 86% finished.

Recieving data: 87% finished.

Recieving data: 88% finished.

Recieving data: 89% finished.

Recieving data: 90% finished.

Recieving data: 91% finished.

Recieving data: 92% finished.

Recieving data: 93% finished.

Recieving data: 94% finished.

Recieving data: 95% finished.

Recieving data: 96% finished.

Recieving data: 97% finished.

Recieving data: 98% finished.

Recieving data: 99% finished.

Recieving data: 100% finished.

INFO: Verifying image succeeds.

INFO: Updating of image completed successfully.

Recieving data: 100% finished.

UTP command:Check if folder is ready.

Please be patient to wait...

Send folder name: SDMemory.

Send time out: 10.

SDMemory disk is ready.

UTP command:Write file.

UTP command:File name to be sent: SDMemory\sandy.mp3.

CreateFile SDMemory\sandy.mp3 file.

UTP command:Send data.

Whole data length to be sent: 0x55950.

Prepare to receive file data...

Writing File :  0% is finished.

Writing File : 19% is finished.

Writing File : 38% is finished.

Writing File : 57% is finished.

Writing File : 75% is finished.

Writing File : 94% is finished.

Writing File data: 100% is finished.

Close file.

Whole update work is finished successfully. Please power off the board.

3. if I use ORIGINAL uce_ivt.sb which provided by freescale, it can create the MBR section, and debug infor is integrate, follow is a part of the normal debug log of MFG client driver.

reset GPMI module

enable bch module

ERROR: F:\WINCE600_2\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V2\NAND\FMDCOMMON\BIG_SECTOR_INTERLEAVE\.\fmd.cpp line 208: No NAND type matched!

BOT_InternalInit with Drivers\Active\06

UFN_ATTACH with key = Drivers\Active\06

UFN_CONFIGURED: BOT_OpenInterface again

UTP command:Media type: SDMMC.

UTP command:QueryStoreName.

UTP command:Check if disk is ready.

Please be patient to wait...

Send storage Friendly name: SD Memory Card.

Send time out: 10.

Find Store Device Name is DSK1:

Find Store Friendly Name is SD Memory Card

Info:Find Store by Friendly Name SD Memory Card

Get Store disk name:DSK1: by Friendly name SD Memory Card.

Opening disk DSK1: OK.

GetStoreList:szDisplayName is DSK1: SD Memory Card

Create g_pWriteBufferPool successfully!

DSK1: is ready.

UTP command:Partitions.

UTP command:Creating partitions.

Please be patient to wait...

There are 3 partitions.

EBOOT Partition 0:64MB done!

NK Partition 1:32MB done!

File Partition 2:0MB done!

WriteMBR: Write MBR to SDHC Finished!

Sleep 100 ms.

Sleep 200 ms.

Sleep 300 ms.

Sleep 400 ms.

Sleep 500 ms.

Sleep 600 ms.

Reopen disk DSK1: after SD/MMC virtual plugin.

ReCreate g_pWriteBufferPool successfully!

UTP command:Write image.

UTP command:Firmware type.

UTP command:Image type: EBOOT SB.

UTP command:Send.

UTP command:Send data.

Minimun image buffer size is : 0x10000.

Whole data length to be sent: 0x559b0.

INFO: Totally 685 sectors needs to be written.

Recieving data: 19% finished.

Recieving data: 38% finished.

Recieving data: 57% finished.

Recieving data: 75% finished.

Recieving data: 94% finished.

UTP command:Save.

INFO: Verifying image succeeds.

INFO: Updating of image completed successfully.

Recieving data: 100% finished.

UTP command:Write image.

UTP command:Firmware type.

UTP command:Image type: NK NB0.

UTP command:Send.

UTP command:Send data.

Minimun image buffer size is : 0x10000.

Whole data length to be sent: 0x300000.

INFO: Totally 6144 sectors needs to be written.

Recieving data:  3% finished.

Recieving data:  5% finished.

Recieving data:  7% finished.

Recieving data:  9% finished.

Recieving data: 11% finished.

Recieving data: 13% finished.

Recieving data: 15% finished.

Recieving data: 17% finished.

Recieving data: 19% finished.

Recieving data: 21% finished.

Recieving data: 23% finished.

Recieving data: 25% finished.

Best Regards,

Gary

0 项奖励
回复