public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] add usb_system_autoupdate command.
@ 2008-11-15 16:28 Matteo Facchinetti
  2008-11-16  8:39 ` Marco Cavallini
  2008-11-16  9:04 ` Marco
  0 siblings, 2 replies; 5+ messages in thread
From: Matteo Facchinetti @ 2008-11-15 16:28 UTC (permalink / raw)
  To: u-boot

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







-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmd_usb_system_autoupdate.c
Type: text/x-csrc
Size: 7013 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20081115/6a8fb823/attachment.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: install.dat
Type: chemical/x-mopac-input
Size: 185 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20081115/6a8fb823/attachment.dat 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-09 23:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-15 16:28 [U-Boot] add usb_system_autoupdate command Matteo Facchinetti
2008-11-16  8:39 ` Marco Cavallini
2008-11-16  9:04 ` Marco
2008-11-17 13:50   ` Matteo Facchinetti
2008-12-09 23:06     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox