P
P
Pashka232018-09-17 12:37:32
linux
Pashka23, 2018-09-17 12:37:32

How to correctly read a file from an mtd device?

Good day!
On Linux, there is a device /dev/mtd1(nand-flash) where the uImage is copied with the usual cp command, i.e.:
#cp /tmp/uImage /dev/mtd1
If I want to extract the uImage and copy it to another partition, is it enough do something like:
#cp /dev/mtd1 /dev/mtd5
or is there another way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Radjah, 2018-09-17
@Radjah

Use dd with the desired block size (bs=number). EMNIP, nand has page addressing, so it's better to specify bs as a multiple of the page size.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question