Hi All,

Thanks in Advance.
Please clarify the following.
We are using ARM9 core Samsung controller with NAND Flash & U-Boot bootloader.


è There is a partition mtd1 in NAND containing the environment variables

mtd1: 00080000 00020000 "NVRAM"

è The size of mtd1 is 512 KB. Basically mtd1 contains 4 Blocks. Each Block is 
128KB.

è The size of environment variables in 8KB.

è But this mtd1 has 4 redundant copies of environment variables .

è Block1 contains first copy of environment variables. This occupies only 8KB 
of Block1.

è Similarly Block2, Block3, Block4 each contain a copy of environment variables.

I am planning to use fw_printenv & fw_setenv in Linux to access U-Boot 
variables.

Question:
Does the below fw_env.config  configuration hold good ?

fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.

# MTD device name       Device offset   Env. size       Flash sector size
/dev/mtd1               0x00000         0x02000         0x20000
/dev/mtd1               0x20000         0x02000         0x20000
/dev/mtd1               0x40000         0x02000         0x20000
/dev/mtd1               0x60000         0x02000         0x20000



Extra Info:
MTD1 starts at 768 KiB as shown below.

CC9M2443 # flpart
Nr | Name           |  Start     | Size       | Type         | FS    | Flags
----------------------------------------------------------------------------
0 | U-Boot         |          0 |    768 KiB | U-Boot       |       | fixed
1 | NVRAM          |    768 KiB |    512 KiB | NVRAM        |       | fixed
2 | Kernel         |   1280 KiB |      3 MiB | Linux-Kernel |       |
3 | Rootfs-Jffs2 |   4352 KiB |     30 MiB | Filesystem   | JFFS2 | rootfs


Thanks & Regards
Amarendra Reddy


Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended 
recipient (s) If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to