Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 149806

Forum Post: RE: AM335x U-Boot: no nand device found. Custom board.

$
0
0

I am glad u were able to get it working!!! : )

I did notice things were a little bit slower, due to the increase in page sizes but i did not change any of the defaults settings.  For the most part things still seem acceptably quick, the only real slow process is that of writing my 40MB root file system to NAND.

The default KERNEL timings (as set in the board-am335x.c file) i also did not have to change to work with this NAND flash.  However, i did need to up the timings in the Kernel for my MLC NAND (MT29F16G08CBACAWP).  The MLC worked fine with the U-Boot default settings as they are alot slower than the kernels, but i had to really up the timings in the Kernel.  Anyways maybe you could start with the original am335x Kernel timings as a starting point?

static struct gpmc_timings am335x_nand_timings = {  .sync_clk = 0,   .cs_on = 0,  .cs_rd_off = 44,  .cs_wr_off = 44,   .adv_on = 6,  .adv_rd_off = 34,  .adv_wr_off = 44,  .we_off = 40,  .oe_off = 54,   .access = 64,  .rd_cycle = 82,  .wr_cycle = 82,   .wr_access = 40,  .wr_data_mux_bus = 0, };

I Believe those settings should translate to:

#define M_NAND_GPMC_CONFIG1 0x00000800 #define M_NAND_GPMC_CONFIG2 0x00050500 #define M_NAND_GPMC_CONFIG3 0x00050401 #define M_NAND_GPMC_CONFIG4 0x04010601 #define M_NAND_GPMC_CONFIG5 0x00070909 #define M_NAND_GPMC_CONFIG6 0x04000F80 #define M_NAND_GPMC_CONFIG7 0x00000F48

My speed is sufficient enough for my purposes, but i may do some tuning in the future.  So if you come across some concrete config settings that achieve the best speed while maintaining reliability i would definitely be interested to see them : ).


Viewing all articles
Browse latest Browse all 149806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>