From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Cavallini Date: Sun, 16 Nov 2008 09:39:27 +0100 Subject: [U-Boot] add usb_system_autoupdate command. In-Reply-To: <491EF8C6.1020905@sirius-es.it> References: <491EF8C6.1020905@sirius-es.it> Message-ID: <491FDC3F.1050009@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Matteo Facchinetti ha scritto: > Hi, > > I have add the possibility to automatic update entire flash using a USB > pendrive. > > To make it, need the following steps: > 1) insert usb pendrive. In pendrive must be present these files: > install.dat and the files we want to copy. > 2) from uboot console: => usb_system_autoupdate > 3) the system update start, reading information from install.dat file. > > The install.dat file raws has this syntax: > "" > > > file_type values: kernel, uboot, fdt, rootfs. > > In attachment there's an example of install.dat and the source code. > > Now using it on my system (mpc5200, uboot_1.3.1) but there's a problem > that I can't fix: > if try to update uboot partition, it freeze in line 211 when call > do_flerase(). > > debugging I can see that it freeze in: > cmd_flash.c > 434: printf ("Erased %d sectors\n", erased); > after uboot partition erasing. > > > Can you help me? Posting output messages of the procedure may help. Cordiali Saluti / Kindest Regards / mit freundlichen Gr?ssen -- Marco Cavallini | KOAN sas | Bergamo - Italia embedded and real-time software engineering Phone:+39-035-255.235 - Fax:+39-178-22.39.748 http://www.KoanSoftware.com