Software upgrade using U-boot
Hi All,
I have a linux 2.6 kernel running on ARM9 based target. i have a U-Boot as boot loader. I need to do a software upgrade.I am explaining my approach :-
My system is having a well defined GUI with touch screen on it.So when running linux application with GUI and touchscreen
user can send a command that he wants to upgrade the software ( include kernel + root file system + application) via touchscreen GUI.
As far as my understanding goes i think application need to write something on flash( let us say change flag=1) so that next time when system reboots it U-boot read the variable status from same flash location so that it should not boot from flash and use tftfp downlaod and when download gets completed it changes the status of variable in order to make u-boot loading image from flash for next time onwards.
Is it possible to do the software upgrade like the way i have explained , if not pls suggest a better way of doing it using U-boot.But my only requirement is, i dont want to go to U-boot command prompt and do the upgrades manually. I need some kind of automatic approach which basically start when my application is running.
Thanks
KVM
----- Forwarded Message ----
From: "[email protected]" <[email protected]>
To: goforhemant at yahoo.com
Sent: Monday, August 13, 2007 11:37:48 AM
Subject: confirm 4543b731a50e1ede9a5a508a8182f823f5cdb6ca
Mailing list subscription confirmation notice for mailing list U-Boot-Users
We have received a request from 10.3.1.94 for subscription of your email address, "goforhemant at yahoo.com", to the u-boot-users at lists.sourceforge.net mailing list. To confirm that you want to be added to this mailing list, simply reply to this message, keeping the Subject: header intact. Or visit this web page:
https://lists.sourceforge.net/lists/confirm/u-boot-users/4543b731a50e1ede9a5a508a8182f823f5cdb6ca
Or include the following line -- and only the following line -- in a message to u-boot-users-request at lists.sourceforge.net:
confirm 4543b731a50e1ede9a5a508a8182f823f5cdb6ca
Note that simply sending a `reply' to this message should work from most mail readers, since that usually leaves the Subject: line in the right form (additional "Re:" text in the Subject: is okay).
If you do not wish to be subscribed to this list, please simply disregard this message. If you think you are being maliciously subscribed to the list, or have any other questions, send them to u-boot-users-owner at lists.sourceforge.net.
____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070813/2393ec17/attachment.htm
Hello,
Quoted 3 lines · in message <[email protected]> you wrote:
My system is having a well defined GUI with touch screen on it.So when running linux application with GUI and touchscreen user can send a command that he wants to upgrade the software ( include kernel + root file system + application) via touchscreen GUI.
Please mind the Netiquette and restrict your line leght to some 70 characters or so.
Quoted 2 lines
As far as my understanding goes i think application need to write something on flash( let us say change flag=1) so that next time when system reboots it U-boot read the variable status from same flash location so that it should not boot from flash and use tftfp downlaod and when download gets completed it changes the status of variable in order to make u-boot loading image from flash for next time onwards.
This is one of the many ways to do this..
Quoted 2 lines
Is it possible to do the software upgrade like the way i have explained , if not pls suggest a better way of doing it using U-boot.But my only requirement is, i dont want to go to U-boot command prompt and do the upgrades manually. I need some kind of a utomatic approach which basically start when my application is running.
There are many, many ways to do suftware updates, and U-Boot supports many of them. Of course, a lot of stuff can also be done under Linux.
It is impossible to give good recommendations without knowing your exact project requirements. Here a few questions you should contemplate about:
- Is it allowed to run the update under U-Boot (when the normal function of your device is not available), r do you need more or less uninterruptd operation, so you must at least perform the installation of the new code under Linux?
- How important is an (automatic?) fall back for you, i. e. how are you goingt to handle the situations when a software update gets interrupted or fails or if it completed but the new installed software fails to run correctly for some reason?
- Do you always require network access for updates? How about other installation methods, like using a USB memory stick?
etc.
Quoted 9 lines
----- Forwarded Message ----
From: "u-boot-users-request at lists.sourceforge.net" <[email protected]>
To: goforhemant at yahoo.com
Sent: Monday, August 13, 2007 11:37:48 AM
Subject: confirm4543b731a50e1ede9a5a508a8182f823f5cdb6caMailing list subscription confirmation notice for mailing list U-Boot-Users
Please mind the netiquette and NEVER quote completely unrelated stuff here.
Also, never top post / full quote.
Please read http://www.netmeister.org/news/learn2quote.html
Quoted 6 lines
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: quoted-printable<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he= ad><body><div style=3D"font-family:times new roman, new york, times, serif;= font-size:12pt"><DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman=
And never, never ever again post HTML here!
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] The software required `Windows 95 or better', so I installed Linux.