Linux - Embedded & Single-board computerThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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'?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.