summaryrefslogtreecommitdiff
path: root/lib/libscan.c
Commit message (Collapse)AuthorAgeFilesLines
* ubiformat: Lower message printing frequencySascha Hauer2018-01-111-2/+7
| | | | | | | | | During scanning and formatting printing the messages on a serial line has significant overhead up to the point where it takes longer to print the messages than it takes to do the work. Lower the message printing frequency to improve performance. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ubiformat: Fix formatting devices with unreadable areasSascha Hauer2016-05-201-2/+7
| | | | | | | | | When parts of a Nand device are not readable due to excessive bit flips we should not bail out with an error as this means we can never repair the device by flashing a fresh image using ubiformat. Instead, treat a failed read as a corrupt block and ignore the read failure. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ubiformat: Ignore bitflip errorsSascha Hauer2016-05-201-1/+1
| | | | | | | | | Fixes: 1d88c66 ubiformat: Use mtd-peb API bit flips are no error, when encountering them during scanning of a device just ignore them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ubiformat: Use mtd-peb APISascha Hauer2016-04-061-13/+15
| | | | | | | | This changes ubiformat from the libmtd API to the mtd-peb API. This makes the libmtd API unnecessary and it can be removed in the next step. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: rename mtd_all_ff -> mtd_buf_all_ffSascha Hauer2016-03-151-1/+1
| | | | | | | To make clear this function checks a given buffer and not data on a mtd device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* libubi: Use global mtd_all_ff functionSascha Hauer2013-03-041-12/+1
| | | | | | We introduced a global function for this, so use it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* libmtd: rename functions from mtd_* to libmtd_*Sascha Hauer2013-02-141-1/+1
| | | | | | | | | | The kernel nowadays has mtd_read/write and other functions. In barebox we also have these functions, but with a different prototype, namely they correspond to the libmtd userspace functions. Rename these functions to libmtd_* to avoid name clashes with future mtd updates. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lib: add libscanWolfram Sang2012-12-191-0/+219
Imported from mtd-utils and stripped down to needed functionality. Add prefix to functions so we have a clean namespace. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>