[PATCH 0/1] nandsim: add names parameter
Tj
tj.iam.tj at proton.me
Thu Sep 25 09:18:15 PDT 2025
Allow naming of partitions to aid exact simulation of real devices.
Gives the ability to execute firmware update tooling that expects
defined partition names on foreign hosts and architectures.
In this example it is simulating an armel architecure Dahua IP camera on
an amd64 host.
$ sudo modprobe nandsim id_bytes=0x2c,0xac,0x90,0x15 parts=8,8,8,8,26,26,44,64,64,204,32,32,32 names=U-boot,hwid,updateflag,partition,custom,product,kernel,romfs,web,user,syslog,config,backu p
$ cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "U-boot"
mtd1: 00100000 00020000 "hwid"
mtd2: 00100000 00020000 "updateflag"
mtd3: 00100000 00020000 "partition"
mtd4: 00340000 00020000 "custom"
mtd5: 00340000 00020000 "product"
mtd6: 00580000 00020000 "kernel"
mtd7: 00800000 00020000 "romfs"
mtd8: 00800000 00020000 "web"
mtd9: 01980000 00020000 "user"
mtd10: 00400000 00020000 "syslog"
mtd11: 00400000 00020000 "config"
mtd12: 00400000 00020000 "backup"
mtd13: 1ba80000 00020000 "NAND simulator partition 13"
Tj (1):
nandsim: add names parameter
drivers/mtd/nand/raw/nandsim.c | 7 +++++++
1 file changed, 7 insertions(+)
--
2.39.5
More information about the linux-mtd
mailing list