LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 03-22-2011, 04:48 AM   #1
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Rep: Reputation: 30
Auto update application in a embedded board


Hello, I've been dealing with U-boot for a couple of months now and I'm still struggling on how to implement an application to execute an auto updateof a kernel image or a root file system. According to this u-boot FAQ, it depends on how you distribute your updates (network or USB mass storage device). How do I achieve this through a USB gadget mode(not the mass storage device but the actual board itself connected to the host pc via usb port)? I made the auto_update.c as a reference to create my own auto update through the board's USB gadget mode but I'm stuck at the update. Any advice or resources will be very helpful. Hoping for your kind reply. Thank you.
 
Old 03-22-2011, 04:50 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I guess the first thing is to define what you mean by 'auto update'. When your system boots, where does it find its kernel and root filesystem? What mechanisms are available to modify those elements? Like most embedded systems issues, these kinds of things are very system-specific, and without knowing details of your system it is hard to know what might be a solution.
--- rod.
 
Old 03-22-2011, 09:22 PM   #3
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by theNbomr View Post
I guess the first thing is to define what you mean by 'auto update'. When your system boots, where does it find its kernel and root filesystem? What mechanisms are available to modify those elements? Like most embedded systems issues, these kinds of things are very system-specific, and without knowing details of your system it is hard to know what might be a solution.
--- rod.
Thank you for the reply Sir, you've been very helpful to all of my threads . Auto update, in my case, would mean updating the kernel image and/or the root fs without the end user having to type u-boot commands. U-boot supports scripting but the script (I have a script that would erase, write and read through the device's memory) has to be triggered by a command. The kernel image and the root fs already has a specific address, both are already mapped. Uhmm, is it possible to have an application residing in u-boot? If it is, I'm wondering how could it be triggered.
 
Old 03-24-2011, 12:49 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Okay, let me re-state my question. What do you mean by 'update'; never mind the 'auto' part. When your host boots, from where does it load its kernel and filesystem? How does the kernel and filesystem data get to where it is when the system boots? I don't use U-boot, but I assume that it will load from a default place, unless given some alternate interactive instructions. If so, what mechanism populates that 'default place'?

--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WIFI embedded board Suraj Swami Linux - Networking 1 03-29-2010 12:05 AM
gigabit embedded board taltman Linux - Embedded & Single-board computer 2 02-23-2008 10:06 PM
unable to turn off auto mount in suse on embedded board sharkus Linux - Kernel 3 11-27-2007 11:24 AM
SuSE on an Embedded Soekris Board? jantman Linux - Hardware 3 01-01-2007 06:24 PM
power down on an embedded board knobby67 Debian 1 03-27-2006 06:35 AM


All times are GMT -5. The time now is 07:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration