nanddump syntax

Baruch Siach baruch at tkos.co.il
Thu Nov 30 12:24:46 UTC 2017


Hi A.W.C,

On Thu, Nov 30, 2017 at 11:34:13AM +0000, A.W.C. wrote:
> BusyBox v1.10.2 (2015-09-06 10:58:05 CST) built-in shell (ash)
> I am in Busybox emergency shell, where Linux kernel is not fully loaded, and 
> MTD devices are not set.

The nanddump Busybox applet has only been introduced in Busybox version 1.18. 
The nanddump you are using is most likely from the mtd-utils package. Please 
refer to the linux-mtd list for question about mtd-utils.

baruch

> what is correct syntax to use nanddump dump do dump contecnt of nand 
> partition?
> From the kernel log at boot time, there was created 11 MTD partitions on NAND flash.
> For example, NAND partition: 
> 
> Creating 11 MTD partitions on "gen_nand":
> ... ...
> 0x01f00000-0x01f80000 : "NVRAM"
> 
> I tried command
> nanddump -o -b -f  /tmp/nonvol.bin  -s 0x01f00000 -l 0x00080000
> 
> but this not work, show error. 
> 
> I can't display MTD partitions in form of independent MTD devices by viewing cat /proc/mtd
> 
> dev:    size   erasesize  name
> ...
> mtd10: 0x01f00000  0x01f80000  "NVRAM"
> 
> because MTD devices are not set.
> 
> Are the nanddump command only for MTD-devices in form /dev/mtdx?
> 
> Regards,
> 
> nanddump Revision: 1.1.1.1
> 
> Usage: nanddump [OPTIONS] MTD-device
> Dumps the contents of a nand mtd partition.
> 
> --help	        display this help and exit
> --version	        output version information and exit
> -f file    --file=file          dump to file
> -i         --ignoreerrors       ignore errors
> -l length  --length=length      length
> -n         --noecc              read without error correction
> -o         --omitoob            omit oob data
> -b         --omitbad            omit bad blocks from the dump
> -p         --prettyprint        print nice (hexdump)
> -s addr    --startaddress=addr  start address

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -


More information about the busybox mailing list