Linux Web Server firmware update, remote firmware upgrade/update [1]

Source: Internet
Author: User

[Mr. Right: blog.csdn.net/lanmanck]

For Embedded Linux systems, firmware update is a required feature. Google does not seem to talk much about it. If you know xdjm, please leave a message. I will update it.

Now let's talk about the update idea. We will update this article later.

1. First, set up the system architecture, such as partition function. For example, layout of nandflash:

1) bootloader

2) Kernel

3) ramfs

4) rootfs

After parsing, we will not talk about boot and kernel. ramfs is specially used for upgrade. For example, when I start it, I press a button on the circuit board, the bootloader copies ramfs to Ram and then mounts the kernel to ramdisk. Finally, run the Upgrade Program in ramdisk to upgrade all the others.

2. The upgrade method can be implemented through SD card, USB, and network. Now let's talk about the network, that is, webserver upgrade.

All those who have used vrouters know that after logging on to the vro, a firmware update function is implemented through webserver. How does this happen?

First, we need a wevserver, then a UI, namely the HTML interface, and finally a program to analyze your firmware, such as CGI. You can use the following expression to solve the problem:

Lighttpd + CGI + ipkg

Next lecture.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.