Read and write to the environment partition of NAND U-Boot.
At the U-Boot prompt, I can use "editenv bootargs" to modify the bootargs, and "saveenv" to save the modified bootargs in the env partition.
I am looking for a way to read/write bootargs from the user space application.
Note: All parttions for Bootstrap, U-Boot, Linux Kernel, Env1, Env2, File System are in NAND. This is the value of "bootargs"
'ker=2 fs=2 console=ttyS0,115200 earlyprintk root=/dev/mtdblock7 mtdparts=atmel_nand:128k(BOOTSTRAP)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,3M@1M(kernel0),3M@4M(k ernel1),160M@7M(TNVU_spare)ro,100M@167M(ROOT) rw rootfstype=jffs2'
|