From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 29 Oct 2013 11:51:24 +0100 Subject: [U-Boot] fw_setenv device not accessible In-Reply-To: <1383039837672-166275.post@n7.nabble.com> References: <1383039837672-166275.post@n7.nabble.com> Message-ID: <20131029105124.F417838061F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear pshambhu, In message <1383039837672-166275.post@n7.nabble.com> you wrote: > > I am unable to change the u-boot environment variables from the Linux > environment using fw_setenv and fw_printenv. > I am able to list out the variables from the particular partition, but i am > unable to change the variable value using fw_setenv. > > [Linux promp]# fw_setenv Status 0 > Can't open /dev/mtd4: Permission denied > Error: can't write fw_env to flash > > i tried to change the permission of /dev/mtd4 as well, but i am getting the > same problem. Obviously partition mtd4 is mapped as read-only. You need read-write mode instead. This has nothing to do with the permissions on the /dev/mtd4 special file, but with the mapping of the MTD device in the device tree or the mtdargs boot argument or however you pass that information to Linux on your system. 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: wd at denx.de A Perl script is correct if it's halfway readable and gets the job done before your boss fires you. - L. Wall & R. L. Schwartz, _Programming Perl_