Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:general_information:tutorial:update_firmware_tftp [2017/12/14 15:16] – created schmid | en:general_information:tutorial:update_firmware_tftp [2025/01/28 11:17] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Updating existing firmware over ethernet ==== | + | ===== Updating existing firmware over ethernet ===== |
| + | \\ | ||
| + | This tutorial describes hoe to update the firmware files in U-Boot. | ||
| - | To update bootloader / kernel / devicetree in a running system you have to copy the images in your tftp directory and download them to the eMMC or SD Card.\\ | + | ==== Prerequisites ==== |
| + | * Configured TFTP Server on development host, please see [[en: | ||
| - | Please see [[en:general_information: | + | **1. Boot from eMMC or SD and stop autoboot in U-Boot**\\ |
| + | < | ||
| + | =></ | ||
| + | **2. Set U-Boot variable // | ||
| + | < | ||
| + | ++++mmcdev| | ||
| + | <wrap info> | ||
| + | //mmcdev 0// = eMMC\\ | ||
| + | //mmcdev 1// = SD Card\\ | ||
| + | \\ | ||
| + | <wrap info> | ||
| + | //mmcdev 0// = SD Card\\ | ||
| + | //mmcdev 1// = eMMC\\ | ||
| + | \\ | ||
| + | <wrap info> | ||
| + | <wrap important> | ||
| + | //mmcdev 0// = SD Card **or** eMMC | ||
| + | ++++ | ||
| + | **3. Connect | ||
| + | **4. Provide the correct network configuration in U-Boot: | ||
| - | 1. Boot from eMMC or SD and stop autoboot\\ | + | |
| - | 2. Set U-Boot variable mmcdev | + | |
| - | 3. Connect device via ethernet to a tftp server supplying the image\\ | + | |
| - | 4. Provide the correct network configuration: | + | * => setenv autoload no |
| - | * setenv autoload no | + | * => setenv serverip < |
| - | * setenv serverip < | + | * => setenv ipaddr < |
| - | * setenv ipaddr < | + | * => setenv netmask < |
| - | * setenv netmask < | + | **5. Provide U-Boot the file name of the desired image on the tftp server:** |
| - | 5.Provide U-Boot the file name of the desired image on the server: | + | * ++For U-Boot |
| - | * For U-Boot: | + | \\ |
| - | * For device tree:setenv fdt_file < | + | <wrap info> |
| - | * For Kernel: | + | => setenv uboot < |
| - | 6.Perform Update: | + | \\ |
| - | * For U-Boot: run update_uboot | + | <wrap info> |
| - | * For devicetree: run update_fdt | + | \\ |
| - | * For Kernel: run update_kernel | + | ++ |
| + | * ++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. | ||
| </ | </ | ||
| - | |||