Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi ,
> Can Flash(mtdblock1;kernel) be accessed directly by "open, read,write" routines If I want to > update the kernel in runtime, then reboot. Yes, but use the character mode device (major 90 I think) -- which needs to be enabled in your kernel configuration. Then you can open, read, write, ioctl. To erase, use the MEMERASE ioctl. See the following: include/mtd/mtd-abi.h drivers/mtd/mtdchar.c You might want to review the mtd-utils code as well. Regards, --Scott