[U-Boot] add usb_system_autoupdate command.

Marco marco.stornelli at coritel.it
Sun Nov 16 10:04:56 CET 2008


Hi Matteo,

in my opinion you should follow the "philosophy" of updater.c under the
tools folder to erase the flash. This command is very interesting, let
me know if you fix your problem.

Regards,

Marco

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> "<file_name>" <star_flash_addr_partition>
> <end_flash_addr_partition>
> 
> 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?
> 
> 
> Thanks in advance.
> Matteo Facchinetti
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list