From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aras Vaichas Date: Tue, 25 Mar 2008 10:19:20 +1100 Subject: [U-Boot-Users] [PATCH] USB Storage, add meaningful return value Message-ID: <47E836F8.6090702@magtech.com.au> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This patch changes the "usb storage" command to return success iff it finds a USB storage device, otherwise it returns error. This enables you to check for a USB storage device before trying to access it: if usb storage; then fatload usb 0 $loadaddr $filename; fi ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: u-boot-1.3.2-USB-storage-test.patch Type: text/x-patch Size: 1289 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20080325/190ad0d1/attachment.bin