On my Linux system I can erase flash memory from the command line by using the flash_erase program from the mtd library. But 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
How to erase flash memory in a module
1k Views Asked by Han Koster At
1
There are 1 best solutions below
Related Questions in FLASH
- How to create an ActionScript 3.0 in Flash to display Current Date, Time and Day of Week
- textinput.needsSoftKeyboard does not work (air for android)
- Flash erase image with mask - gotoandplay next frame
- Flash CS3: Text appears on button mouse over or text mouse over
- import a sound externally or from the library? AS3
- How to use Database in Flash App?
- undefined method loadCompressedDataFromByteArray through a reference with static type flash.media:Sound
- Cam streaming Flash client/widget
- Pairing a draggable object to a target object in AS3
- update flashVars of flowplayer to change video via swfObject
- Adobe Flash Pro: Locate asset with missing font
- Making an HTML Jigsaw Puzzle in Flash CC
- Passing data between MXML files and opening one after Click on another
- Moving things inside a two-dimensional array in as3?
- AS3 + webcam. Dispatch event on presence
Related Questions in EMBEDDED-LINUX
- How to offload NAPI poll function to workqueue
- Why Device Tree Structure (DTS) file is needed both in bootloader and kernel source code?
- Qtwebengine on Embedded linux, with qtwayland and OpenGL not working, black rectangles seen on browser
- board firmware update through uefi capsule feature from Linux
- How to get list of programs which can open a particular file extension in Linux?
- u-boot select boot partition based on GPIO state
- Bit Bang with SPI (fwirte, write performance)
- How to setup test SMTP server for devices on local network
- Documentation for regulator framework with device tree
- TechWell TW6869 driver does not generate interrupts on embedded device
- How to change tty group on Linux (build with buildroot)
- How to save console log from chrome in local file without any third party tool?
- Raw access on eMMC with alternating speeds
- Qt application randomly failing to properly paint the interface showing black screen instead
- Trouble implementing android_serialport_api into my own application
Related Questions in ERASE
- Object's container field is empty after move and erase
- Different behavior observed upon doing erase(iterator) on vector and map
- erase file by batches
- Erase only one element of a string(C++)
- Drawing App, How to Erase
- Safely remove key from memory in Python
- Out of Range Error with for statement
- How to erase values in a map with a struct? [C++]
- C++ Erasing element from a vector of pointers
- C++ remove certain elements of vector
- segmentation fault while erasing set
- Erasing elements from a vector, if they are also in another vector
- Debug Assertion failure when deleting object
- vector.erase(begin(vector)) will remove LAST element of vector
- How do I implement an erase function for a hash table?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.