Hi, I have an i.MX28 custom board that haven't got a NAND Flash.
It's just eMMC (Samsung klm4g1fe3b-b001, 8 bit bus) connected to the SP0 interface.
So, when I've tried to run default EBOOT using sb_loader, I had following output in terminal:
BATT:0.83V
No Battery Mode
5
U
XLDR Start
SDRAM init
SDRAM init done
XLDR done
LLLCBSP 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 = 120000000 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
Microsoft Windows CE Bootloader Common Library Version 1.4 Built Oct 17 2014 13:
41:01
Microsoft Windows CE Ethernet Bootloader 1.0 for MX28 (Oct 21 2014 21:54:47)
reset GPMI module
enable bch module
ERROR: F:\WINCE600\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V2_PDK1_9\NAND\FMDCOMMON\B
IG_SECTOR_INTERLEAVE\.\fmd.cpp line 208: no NAND type matched!
WARNING: OEMPlatformInit: Failed to initialize NAND flash device.
SD/MMC card is not found.
WARNING: OEMPlatformInit: Failed to initialize SDHC device.
WARNING: NAND device doesn't exist - unable to read image.
ERROR: LoadBootCFG: failed to load configuration.
ERROR: flash initialization failed - loading bootloader defaults...
Resetting factory default configuration...
WARNING: NAND device doesn't exist - unable to store image.
ERROR: ResetDefaultBootCFG: failed to store configuration to flash.
System ready!
Preparing for download...
INFO: Initial Eboot Screen Display...
EBOOT: DisplayInit++
Press [ENTER] to launch image stored in NAND flash or [SPACE] to cancel.
Initiating image launch in 3 seconds.
-----------------------------------------------------------------------------
Freescale iMX SOC Menu Item
-----------------------------------------------------------------------------
[0] IP Address : 192.168.111.10
[1] Set IP Mask : 255.255.255.0
[2] Boot Delay : 3
[3] DHCP : Enabled
[4] Reset to Factory Default Configuration
[5] Select Boot Device : NK from NAND
[6] Set MAC Address : 0-2-B3-92-A8-C4
[7] Format OS NAND Region
[8] Format All NAND Regions
[9] Bootloader Shell
[I] KITL Work Mode : Interrupt
[K] KITL Enable Mode : Disable
[P] KITL Passive Mode : Disable
[S] Save Settings
[D] Download Image Now
[L] Launch Existing Flash Resident Image Now
[E] Select Ether Device : ENET
[M] MMC and SD Utilities
[F] NAND Low Level Format
[U] Set UUID : 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0
Could you please help me and tell what do I change in BSP to make it work?
There are a three sets of variables:
1. BSP_NOXXX: what i'm looking for is BSP_NONAND_FMD, but it's just exclude NAND_FMD driver from platform.reg, so it doesn't resolve EBOOT nand initialization error:
ERROR: F:\WINCE600\PLATFORM\COMMON\SRC\SOC\COMMON_FSL_V2_PDK1_9\NAND\FMDCOMMON\BIG_SECTOR_INTERLEAVE\.\fmd.cpp line 208: no NAND type matched!
WARNING: OEMPlatformInit: Failed to initialize NAND flash device.
2. BSP_XXX: it refers to "i.MX28 EVK Windows Embedded CE 6.0 Reference Manual" that contains section that might helped me called "Boot from SD/MMC summary", but there was only cfimager description and nothing about disabling "nand check". Also, there are variables to configure the many of drivers (Audio, blacklight, etc...).
3. IMG_XXX: Only one variable IMGSDMMC and it seems useless in my case.
I looked at source code of bootloader (i.MX28-EVK-PDK1_9\SRC\BOOTLOADER\COMMON\main.c), and this error produced by function FMD_Init(), just as an error
"SD/MMC card is not found.
WARNING: OEMPlatformInit: Failed to initialize SDHC device."
produced by calling the SDMMC_Init() function.
And this file doesn't contain macro conditions about excluding functional, thus it's not so easy as I had hoped.
It seems there must be a lot of changes...
Hi Vitaliy
you can try to experiment with various options
and check what will suit.
Best regards
igor