ABLE Application README - detect-large-nand ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Summary The detect-large-nand tool is used to determine in a useful-to-scripting way whether the primary NAND chip on a board is small-page or large-page. Usage > detect-large-nand Options -v Output the version of the tool. -cN Select the Nth chip to examine. (Defaults to 0) Examples To set a variable based on whether or not large-nand is detected: > detect-large-nand > RES=$? > [ $RES = 0 ] && ISLARGE=yes > [ $RES = 1 ] && ISLARGE=no > [ $RES = 2 ] && ISLARGE=error > [ $RES -gt 2 ] && exit 1 Return codes The detect-large-nand tool will return zero (success) if the primary NAND device in a system has 2048 byte pages. It will return one (failure) if the NAND device has 512 byte pages, and two (error) if some issue prevents the tool from detecting the NAND properly. Possible errors encountered by the tool include being unable to detect a NAND chip, being unable to identify the hardware type, or being too old a version of detect-large-nand to recognise a particular NAND device. Copyright The `detect-large-nand' tool and all associated documentation is Copyright 2007 Simtec Electronics