Hi All, I'm trying to set the uboot environment from linux, but I am unable to set and variables using fw_setenv. I can read variables with fw_printenv with just this as my /etc/fw_env.config file: # MTD device name Device offset Env. size Flash sector size /dev/mtd0 0x40000 0x20000 0x20000 fw_setenv var=value returns: Can't open /dev/mtd0: Permission denied Error: can't write fw_env to flash I suspect that I have the wrong values in my fw_env.config file. Can anyone tell me how to calculate the correct values? cat /proc/mtd returns dev: size erasesize name mtd0: 00080000 00020000 "Bootloader" mtd1: 00500000 00020000 "Kernel" mtd2: 3fa80000 00020000 "File System" Thanks, Colin.
mini6410 fw_env.config
MTD partition 0 (mtd0) is defined as *READ-ONLY* in arch/arm/mach-s3c64xx/mach-mini6410.c (for SLC) --------------------------- .name = "Bootloader", .offset = 0, .size = (4 * 128 *SZ_1K), .mask_flags = MTD_CAP_NANDFLASH, --------------------------- and drivers/mtd/nand/s3c-nand.c (for MLC). You can modify to .mask_flags = 0, or simply remove it
Dear, I'm not able to compile fw_setenv tool for my mini6410. Can you send me the executable please? Thanks a lot !!!!!!!!!!!