1*537c852bSwiz.\" $NetBSD: flashctl.8,v 1.2 2011/02/27 23:28:12 wiz Exp $ 2f338bae6Sahoka.\" 3f338bae6Sahoka.\" Copyright (c) 2011 Department of Software Engineering, 4f338bae6Sahoka.\" University of Szeged, Hungary 5f338bae6Sahoka.\" Copyright (c) 2011 Adam Hoka <ahoka@NetBSD.org> 6f338bae6Sahoka.\" All rights reserved. 7f338bae6Sahoka.\" 8f338bae6Sahoka.\" This code is derived from software contributed to The NetBSD Foundation 9f338bae6Sahoka.\" by the Department of Software Engineering, University of Szeged, Hungary 10f338bae6Sahoka.\" 11f338bae6Sahoka.\" Redistribution and use in source and binary forms, with or without 12f338bae6Sahoka.\" modification, are permitted provided that the following conditions 13f338bae6Sahoka.\" are met: 14f338bae6Sahoka.\" 1. Redistributions of source code must retain the above copyright 15f338bae6Sahoka.\" notice, this list of conditions and the following disclaimer. 16f338bae6Sahoka.\" 2. Redistributions in binary form must reproduce the above copyright 17f338bae6Sahoka.\" notice, this list of conditions and the following disclaimer in the 18f338bae6Sahoka.\" documentation and/or other materials provided with the distribution. 19f338bae6Sahoka.\" 20f338bae6Sahoka.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21f338bae6Sahoka.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22f338bae6Sahoka.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23f338bae6Sahoka.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24f338bae6Sahoka.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 25f338bae6Sahoka.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 26f338bae6Sahoka.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 27f338bae6Sahoka.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 28f338bae6Sahoka.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29f338bae6Sahoka.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30f338bae6Sahoka.\" SUCH DAMAGE. 31f338bae6Sahoka.\" 32f338bae6Sahoka.Dd February 27, 2011 33f338bae6Sahoka.Dt FLASHCTL 8 34f338bae6Sahoka.Os 35f338bae6Sahoka.Sh NAME 36f338bae6Sahoka.Nm flashctl 37f338bae6Sahoka.Nd a program to manipulate flash devices 38f338bae6Sahoka.Sh SYNOPSIS 39f338bae6Sahoka.Nm 40f338bae6Sahoka.Ar device 41f338bae6Sahoka.Ar command 42f338bae6Sahoka.Oo 43f338bae6Sahoka.Ar arg Oo ... 44f338bae6Sahoka.Oc 45f338bae6Sahoka.Oc 46f338bae6Sahoka.Sh DESCRIPTION 47f338bae6Sahoka.Nm 48f338bae6Sahokacould be used to invoke low level operations specific to flash devices. 49f338bae6SahokaIt is used by specifying a device to manipulate, 50f338bae6Sahokathe command to perform, and any arguments the command may require. 51f338bae6Sahoka.Sh DEVICE COMMANDS 52f338bae6SahokaThe following commands may be used on flash devices: 53f338bae6Sahoka.Bl -tag -width erase_offset_size 54*537c852bSwiz.It Cm badblocks 55*537c852bSwizList the bad blocks on the device. 56f338bae6Sahoka.It Cm erase Ar offset Ar size 57f338bae6SahokaErase 58f338bae6Sahoka.Ar size 59*537c852bSwizamount of flash memory from 60f338bae6Sahoka.Ar offset . 61f338bae6SahokaSize could be 62f338bae6Sahoka.Ar all , 63f338bae6Sahokawhich means the rest of the flash after 64f338bae6Sahoka.Ar offset 65*537c852bSwizwill be erased. 66*537c852bSwiz.It Cm identify 67*537c852bSwizIdentify the specified device, displaying the device's vendor, product 68*537c852bSwizstrings, and the device's capabilities. 69f338bae6Sahoka.It Cm markbad Ar offset 70*537c852bSwizMark the block given by its 71f338bae6Sahoka.Ar offset 72f338bae6Sahokaas bad. 73f338bae6Sahoka.El 74f338bae6Sahoka.Sh SEE ALSO 75f338bae6Sahoka.Xr flash 4 76f338bae6Sahoka.Sh HISTORY 77f338bae6SahokaThe 78f338bae6Sahoka.Nm 79f338bae6Sahokacommand first appeared in 80f338bae6Sahoka.Nx 6.0 . 81f338bae6Sahoka.Sh AUTHORS 82f338bae6SahokaThe 83f338bae6Sahoka.Nm 84*537c852bSwizcommand was written by 85*537c852bSwiz.An Adam Hoka . 86