AnsweredAssumed Answered

How to add a new NAND Flash support in iMX31 WinCE5.0 BSP,which files  i need to modify ?

Question asked by zhencai zhang on Oct 12, 2017

Hello Everyone,
Currently,I have a WinCE5.0 imx31 Board need to change nandflash from SamSung K9F2G08U0CSCB to Skynix H27U4G8F2DTR. I modify  the   K9F2G08U0A.h the .h file of  SamSung K9F2G08U0CSCB in my project E:\WINCE500\PLATFORM\JS313\Src\Common\Nandfmd directory  like 

#define NAND_BLOCK_CNT (4096)  //Samsung   2048 //Skynix   4096

#define NAND_MAKER_CODE 0xad // Samsung  ec    // Skynix  AD
#define NAND_DEVICE_CODE 0xdc //da                     //DC

But my board cant boot normally . This is the  log 

 

///////////////////////////////////////////////////////The log of H27U4G8F2DTR////////////////////////////////////////////////

INFO: Using device name: 'MX3121862'
INFO: Reading NK image to NAND (please wait)...
INFO: Copying NK image to RAM address 0xA8100000
INFO: Load is 100% complete.
INFO: Copy of NK completed successfully.
Download successful!  Jumping to image at 0x0@(physical 0x80100000)...
INFO:OALLogSetZones: g_oalLogMask: 0xb
INFO: PBC Version = 0x0
Windows CE Kernel for ARM (Thumb Enabled) Built on Jun 24 2004 at 18:25:00
ProcessorType=0b36 Revision=4
sp_abt=ffff5000 sp_irq=ffff2800 sp_undef=ffffc800 OEMAddressTable = 88101584
OEMInit: SREV = 0x29
PBC debug switch settings: 0x0
SSI1 clock frequency: pBSPArgs->clockFreq[DDK_CLOCK_SIGNAL_SSI1] = 1719900 Hz
SSI1 clock frequency: mcuPllFreq = 532000000 Hz
SSI1 clock frequency: BSP_CLK_USBPLL_FREQ = 240000000 Hz
SSI1 clock frequency: BSP_CLK_SERPLL_FREQ = 220147200 Hz
SSI1 clock frequency: div = 128
BSP System Configuration:
L2 CACHE ENABLED
MCU PLL = 532000000 Hz
USB PLL = 240000000 Hz
SER PLL = 220147200 Hz
ARM CLOCK = 266000000 Hz
IPU CLOCK = 133000000 Hz
AHB CLOCK = 133000000 Hz
IPG CLOCK = 66500000 Hz
NFC CLOCK = 26600000 Hz
GACC CLOCK = 66500000 Hz
PER CLOCK = 66500000 Hz
SSI1 CLOCK = 1719900 Hz
SSI2 CLOCK = 1719900 Hz
FIRI CLOCK = 1875000 Hz
CSI CLOCK = 429975 Hz
USB CLOCK = 60000000 Hz
SIM CLOCK = 66500000 Hz
OEMInit: L2 cache is enabled (AUXCR = 0x3001b)
SWITCHING TO HIGH SPEED ARM CLOCK = 532000000 Hz
OEMInit: @@@@@ Version: JS313 @@@@@
KEVIN: Now we use AUO WVGA Display.
OEMInit: @@@@@ LCDInit() @@@@@
OEMInit: @@@@@ OALKitlStart() @@@@@
OEMInit: @@@@@ RNGA_Init(); @@@@@
OEMInit: @@@@@ ConfigureGPIO(); @@@@@
Sp=ffffc7cc

OEMIoControl: Unsupported Code 0x101008c - device 0x0101 func 35

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////The normal log of K9F2G08U0CSCB ////////////////////////////////////////////////

Initiating image launch in 0 seconds.
Launching flash image ...
INFO: Using device name: 'MX3117542'
INFO: Reading NK image to NAND (please wait)...
INFO: Copying NK image to RAM address 0xA8100000
INFO: Load is 100% complete.
INFO: Copy of NK completed successfully.
Download successful!  Jumping to image at 0x0@(physical 0x80100000)...
INFO:OALLogSetZones: g_oalLogMask: 0xb
INFO: PBC Version = 0x0
Windows CE Kernel for ARM (Thumb Enabled) Built on Jun 24 2004 at 18:25:00
ProcessorType=0b36 Revision=4
sp_abt=ffff5000 sp_irq=ffff2800 sp_undef=ffffc800 OEMAddressTable = 88101584
OEMInit: SREV = 0x29
PBC debug switch settings: 0x0
SSI1 clock frequency: pBSPArgs->clockFreq[DDK_CLOCK_SIGNAL_SSI1] = 1719900 Hz
SSI1 clock frequency: mcuPllFreq = 532000000 Hz
SSI1 clock frequency: BSP_CLK_USBPLL_FREQ = 240000000 Hz
SSI1 clock frequency: BSP_CLK_SERPLL_FREQ = 220147200 Hz
SSI1 clock frequency: div = 128
BSP System Configuration:
L2 CACHE ENABLED
MCU PLL = 532000000 Hz
USB PLL = 240000000 Hz
SER PLL = 220147200 Hz
ARM CLOCK = 266000000 Hz
IPU CLOCK = 133000000 Hz
AHB CLOCK = 133000000 Hz
IPG CLOCK = 66500000 Hz
NFC CLOCK = 26600000 Hz
GACC CLOCK = 66500000 Hz
PER CLOCK = 66500000 Hz
SSI1 CLOCK = 1719900 Hz
SSI2 CLOCK = 1719900 Hz
FIRI CLOCK = 1875000 Hz
CSI CLOCK = 429975 Hz
USB CLOCK = 60000000 Hz
SIM CLOCK = 66500000 Hz
OEMInit: L2 cache is enabled (AUXCR = 0x3001b)
SWITCHING TO HIGH SPEED ARM CLOCK = 532000000 Hz
OEMInit: @@@@@ Version: JS313 @@@@@
KEVIN: Now we use AUO WVGA Display.
Sp=ffffc7cc
OEMIoControl: Unsupported Code 0x101008c - device 0x0101 func 35
OEMIoControl: Unsupported Code 0x10100c4 - device 0x0101 func 49
OEMIoControl: Unsupported Code 0x10100c4 - device 0x0101 func 49
GetICHSDataFromReg: mode_lift = 1
CExeUpdateFilesDlg::MainFunc( version 1 ).
watchdog reboot count = 54
Have NOT TestApp.exe in Hard Disk,then judge the data files!
Have NOT DATA File in Hard Disk!
Have TestApp.exe in Nand Disk!
INFO:OALLogSetZones: g_oalLogMask: 0xb
INFO: PBC Version = 0xff

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Can someone give me some suggestion .

Original Attachment has been moved to: Nandfmd.rar

Original Attachment has been moved to: H27U4G8F2DTR-log.txt.zip

Original Attachment has been moved to: K9F2G08U0CSCB-log.txt.zip

Outcomes