LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-11-2012, 11:24 AM   #1
tan.n.vuong@gmail.com
LQ Newbie
 
Registered: Oct 2012
Location: san diego, california, usa
Distribution: Linux
Posts: 1

Rep: Reputation: Disabled
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'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
U-Boot: nand write problem tompo Linux - Embedded & Single-board computer 0 10-24-2011 11:04 AM
[SOLVED] What are the NAND(MTD) read and write commands? dbrazeau Linux - Software 3 11-05-2010 06:31 PM
Should I be able to write to a read-only partition?? Completely Clueless Linux - Newbie 24 04-20-2009 10:37 AM
How can I have: Root has Read-Write, user has read only for the boot filesystem? xmrkite Linux - Software 6 10-16-2008 04:31 AM
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration