Dear Wolfgang Denk > Dear Maxime Boure, > > In message <[email protected]> you > wrote: >> >> > This is not what I asked for. What I menat was: how are the >> > envrionemnt sectors configured in your flash, i. e. what are the >> > CONFIG.*ENV settings? >> >> Is this it ? > > Nearly... > >> #define CONFIG_ENV_IS_IN_ONENAND 1 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Your environment is in OneNAND? > >> #define CONFIG_SYS_ENV_SECT_SIZE boot_flash_sec >> #define CONFIG_ENV_OFFSET boot_flash_off >> #define ONENAND_ENV_OFFSET 0x200000 /* environment starts here */ >> #define CONFIG_ENV_ADDR ONENAND_ENV_OFFSET > > Well, and what are the seffings for boot_flash_sec, boot_flash_off ? My settings : boot_flash_base 0x20000000 boot_flash_off 0x200000 boot_flash_sec 0x20000 boot_flash_env_addr 0x200000
> > Eventually you want to check the tools/env/ code if it really supports > OneNAND as well, and try to debug it. I don't think this has ever been > tested with OneNAND yet. > I don't want to bother you to much I will look into that. But can you enlighten me on the fields of the fw_env.config. Device offset --> if I set /dev/mtd2 and this mtd is the one with the environment it has to be set to 0x0000 Env. size --> the size is 0x80000 Flash sector size --> is the erase block size so in my case 0x40000 Number of sectors ---> well ... I don't really know :) I am wrong ? > Best regards, > > Wolfgang Denk > > -- > DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] > Many aligators will be slain, but the swamp will remain. > Best regards, Maxime _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

