Hi,
I am trying to bring up WinCE 7 on a Sitara AM3505 from 8-bit NAND flash (as opposed to 16-bit on the Logic PD reference board).
I started with the TI ARM A8 version 2 BSP, and modified the code to do 8-bit NAND including:
BSP_GPMC_NAND_CONFIG1 set to 0x00000800
In FMD.C:
Shifting the ECC bytes in by removing 1 'bad block' from the NAND_SPARE_AREA data structure (now offset 1-12 vs 2-13)
Setting ECCCfg with GPMC_ECC_CONFIG_8BIT instead of GPMC_ECC_CONFIG_16BIT
Modifying the bad block detection by only looking at the one bad block in NAND_SPARE_AREA
I really struggled to get the XLDR to come up until I settled into the changes listed above, but eventually got it to load eboot, and then used eboot to develop an OS image.
Now that I've got an OS build in shape, I wanted to burn it into flash so some stand-alone testing could be done. And now the whole thing is unraveling on me again.
I can download the OS image, but it won't load from flash. It gets the wrong header info and does the wrong thing. If I have the bootloader read back the beginning of the burned image, it looks OK. But dumping further in reveals chunks of unprogrammed memory.
Another strange thing is that we seem to have a lot of bad blocks. I'm not sure why, but even the TI Flash tool (version 1.6) reports bad blocks. I force erased them all out of frustration so they would all look good, but this doesn't work as I would hope. I realize I've lost the factory bad block markings, but I've run code that will mark blocks as bad and things still don't work as they should (even when noticing and skipping 'bad' blocks.
So - I think I could use some help in untangling my flash situation. I've got a state now where I can build / download / run an AM35x-nand.raw (XLDR + EBOOT) and do KITL, but can't flash that OS image (without KITL) and successfully boot it up.
I've kept all offsets the same - it still reserves 60 MB for the NK.BIN, and mine is only 21MB, so I'm at a loss as to why I can flash some stuff (like the bootloader) but not the OS image. Any ideas would be greatly appreciated.
thanks,
Lynne