开发者

How to erase flash memory in a module

开发者 https://www.devze.com 2023-02-08 02:51 出处:网络
On my Linux system I can erase flash memory from the command line by using the flash_erase program from the mtd library.

On my Linux system I can erase flash memory from the command line by using the flash_erase program from the mtd library. Bu开发者_如何学Ct I need to erase an mtd partition in a module. In the kernel include files I found linux/mtd/mtd.h, but that defines structures, not functions to call. Is there someone out there who can point me in the right direction to do this? Thanks, Han


You don't want to do this from a kernel module. Just start a user mode helper process and do it the way it is supposed to work.

0

精彩评论

暂无评论...
验证码 换一张
取 消