Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:general_information:tutorial:update_firmware_tftp [2017/12/15 08:26] – schmid | en:general_information:tutorial:update_firmware_tftp [2022/08/04 15:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Updating existing firmware over ethernet ===== | ===== Updating existing firmware over ethernet ===== | ||
\\ | \\ | ||
- | To update | + | This tutorial describes hoe to update the firmware files in U-Boot. |
+ | ==== Prerequisites ==== | ||
+ | * Configured TFTP Server on development host, please see [[en: | ||
- | Please see [[en: | ||
- | + | **1. Boot from eMMC or SD and stop autoboot in U-Boot**\\ | |
- | 1. Boot from eMMC or SD and stop autoboot in U-Boot\\ | + | |
< | < | ||
=></ | =></ | ||
- | 2. Set U-Boot variable // | + | **2. Set U-Boot variable // |
- | 3. Connect device via ethernet to a tftp server supplying the image\\ | + | < |
- | 4. Provide the correct network configuration in U-Boot: | + | ++++mmcdev| |
- | * setenv autoload no | + | <wrap info> |
- | * setenv serverip < | + | //mmcdev 0// = eMMC\\ |
- | * setenv ipaddr < | + | //mmcdev 1// = SD Card\\ |
- | * setenv netmask < | + | \\ |
- | 5. Provide U-Boot the file name of the desired image on the tftp server: | + | <wrap info> |
- | * For U-Boot: | + | //mmcdev 0// = SD Card\\ |
- | * For device tree:setenv fdt_file < | + | //mmcdev 1// = eMMC\\ |
- | * For Kernel: | + | \\ |
- | 6. Perform Update: | + | <wrap info> |
- | * For U-Boot: run update_uboot | + | <wrap important> |
- | * For devicetree: run update_fdt | + | //mmcdev 0// = SD Card **or** eMMC |
- | * For Kernel: run update_kernel | + | ++++ |
+ | **3. Connect | ||
+ | **4. Provide the correct network configuration in U-Boot:** | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | * => setenv autoload no | ||
+ | * => setenv serverip < | ||
+ | * => setenv ipaddr < | ||
+ | * => setenv netmask < | ||
+ | **5. Provide U-Boot the file name of the desired image on the tftp server:** | ||
+ | * ++For U-Boot | ||
+ | \\ | ||
+ | <wrap info> | ||
+ | => setenv uboot < | ||
+ | \\ | ||
+ | <wrap info> | ||
+ | \\ | ||
+ | ++ | ||
+ | * ++For Device Tree update:| \\ | ||
+ | \\ | ||
+ | <wrap info> | ||
+ | => setenv fdt_file < | ||
+ | \\ | ||
+ | <wrap info> | ||
+ | \\ | ||
+ | ++ | ||
+ | * ++For Kernel | ||
+ | \\ | ||
+ | <wrap info> | ||
+ | => setenv | ||
+ | \\ | ||
+ | <wrap info> | ||
+ | \\ | ||
+ | ++ | ||
+ | |||
+ | **6. Perform Update:** | ||
+ | * ++U-Boot | ||
+ | <wrap info> | ||
+ | => run update_uboot\\ | ||
+ | \\ | ||
+ | <wrap info> | ||
+ | \\ | ||
+ | ++ | ||
+ | * ++Device Tree update:| \\ | ||
+ | <wrap info> | ||
+ | => run update_fdt\\ | ||
+ | \\ | ||
+ | <wrap info> | ||
+ | \\ | ||
+ | ++ | ||
+ | * ++Kernel | ||
+ | <wrap info> | ||
+ | => run update_kernel\\ | ||
+ | \\ | ||
+ | <wrap info> | ||
+ | \\ | ||
+ | ++ | ||
<WRAP round info> | <WRAP round info> | ||
The u-boot update scripts automatically implement the selection of the primary copy to boot. | The u-boot update scripts automatically implement the selection of the primary copy to boot. | ||
</ | </ | ||
- | |||