Read/Write the RCW values from Linux userspace?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Read/Write the RCW values from Linux userspace?

Jump to solution
1,819 Views
ts1234
Contributor III

How do I read/write the RCW values on a running device from Linux userspace?

0 Kudos
Reply
1 Solution
1,810 Views
yipingwang
NXP TechSupport
NXP TechSupport

RCW is stored in beginning of flash.

In Linux, you could use mtd_debug(from package mtd-utils) to read/write flash sectors as the following.

./mtd_debug read <device><offset> <dest-filename> <len>

./mtd_debug write <device><offset> <source-filename> [len]

./mtd_debug erase <device><offset> <len>

# mtd_debug erase /dev/mtd1 0x1000000 0x100000

View solution in original post

0 Kudos
Reply
1 Reply
1,811 Views
yipingwang
NXP TechSupport
NXP TechSupport

RCW is stored in beginning of flash.

In Linux, you could use mtd_debug(from package mtd-utils) to read/write flash sectors as the following.

./mtd_debug read <device><offset> <dest-filename> <len>

./mtd_debug write <device><offset> <source-filename> [len]

./mtd_debug erase <device><offset> <len>

# mtd_debug erase /dev/mtd1 0x1000000 0x100000

0 Kudos
Reply