Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:layerscape:tqmls10xxa:linux:yocto:how_to [2019/09/30 10:24] – added how to update firmware over ethernet liedmann | en:layerscape:tqmls10xxa:linux:yocto:how_to [2022/08/04 15:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | ~~NOCACHE~~ | + | ~~NOCACHE~~ |
- | <WRAP round important> | + | <embed en: |
- | <embed en: | + | |
<label product_type> | <label product_type> | ||
<label lang> | <label lang> | ||
Line 14: | Line 13: | ||
</ | </ | ||
\\ | \\ | ||
- | \\ | + | <nav type=" |
+ | * [[.how_to: | ||
+ | * [[.how_to: | ||
+ | </ | ||
- | ===== How to use 10Gbit ethernet on STKLS1046 with BSP REV.0003 ===== | ||
- | |||
- | In order to use the two 10 Gbit ethernet interfaces on the STKLS1046, the U-Boot bootloader has to be rebuilt with a new RCW configuration. \\ By default RCW **3333 (SerDes1)** and **5559 (SerDes2)** are configured in the TQMLS1046 U-Boot. This RCW configuration does not support 10Gbit ethernet. | ||
- | |||
- | <WRAP round important> | ||
- | In one of the next updates a U-Boot binary with a proper configuration for 10Gbit ethernet will be build by default. | ||
- | </ | ||
- | |||
- | ==== RCW Configuration 1133_5559 ==== | ||
- | |||
- | <WRAP round info 80%> | ||
- | |||
- | As an example the RCW configuration 1133(SerDes1) and 5559(SerDes2) has been chosen for this how to. \\ | ||
- | See the tables below for further information about the RCW configuration. | ||
- | </ | ||
- | ^ SerDes1 - RCW 1133 ^^^^^^ | ||
- | ^ Lane D ^ Lane C ^ Lane B ^ Lane A ^ PCIe GEN1/2 \\ PLL Mapping | ||
- | | XFI.9 | XFI.10 | ||
- | |||
- | ^ SerDes2 - RCW 5559 ^^^^^^ | ||
- | ^ Lane D ^ Lane C ^ Lane B ^ Lane A ^ PCIe GEN1/2 \\ PLL Mapping | ||
- | | Unused | ||
- | |||
- | |||
- | ==== Rebuild U-Boot with RCW configuration 1133_5559 ==== | ||
- | |||
- | - [[.: | ||
- | - After building the Yocto Image, following line has to be added to configuration file local.conf \\ < | ||
- | - Create a new Image with the following command: < | ||
- | |||
- | |||
- | ==== STKLS1046 DIP Switch Configuration ==== | ||
- | |||
- | According to the RCW 1133_5559 the DIP switches on STKLS1046 DIP must be set as follows: | ||
- | \\ | ||
- | ==== SD card RCW 1133_5559 ==== | ||
- | ^ |::: ^ S7 ||||::: ^ S8 ||||::: ^ S6 ||||::: ^ S5 ||||::: ^ S10 || | ||
- | ^ DIP |::: ^ 4 ^ 3 | ||
- | ^ OFF |::: | • | • | • | • | ::: | | • | | • |::: | | • | | |:::| • | | • | • |:::| | | | ||
- | ^ ON |::: | | | | | ::: | • | | • | |::: | • | | • | • |:::| | • | | |:::| • | • | | ||
- | |||
- | |||
- | ==== Ethernet interface assigment RCW 1133_5559 ==== | ||
- | |||
- | {{: | ||
- | |||
- | ^ 1 ^ 2 ^ 3 ^ 4 ^ 5 ^ 6 ^ 7 ^ 8 ^ 9 ^ 10 ^ 11 ^ 12 ^ | ||
- | | ++RGMII.3 | \\ U-Boot: FM1@DTSEC3\\ | ||
- | |||
- | ---- | ||
- | \\ | ||
- | ===== Updating existing firmware over ethernet ===== | ||
- | \\ | ||
- | To update bootloader / kernel / devicetree in a running system you have to copy the images to a tftp directory and upload them to the eMMC or SD Card.\\ | ||
- | |||
- | |||
- | |||
- | Please see [[en: | ||
- | |||
- | |||
- | **1. Boot Starterkit and interrupt boot process in U-Boot**\\ | ||
- | < | ||
- | =></ | ||
- | |||
- | **3. Connect device via ethernet to the TFTP server which supplies the image**\\ | ||
- | |||
- | **4. Provide the correct network configuration in U-Boot: | ||
- | <WRAP round info> | ||
- | The manual network configuration must be done if no DHCP server is available, otherwise the configuration can be done via DHCP. | ||
- | </ | ||
- | |||
- | == Manual network configuration == | ||
- | |||
- | * => setenv autoload no | ||
- | * => setenv serverip < | ||
- | * => setenv ipaddr < | ||
- | * => setenv netmask < | ||
- | |||
- | == Network configuration via DHCP == | ||
- | |||
- | * => setenv autoload no | ||
- | * => dhcp | ||
- | \\ | ||
- | **5. Set U-Boot environment variables according to the image file name stored on the tftp server: | ||
- | |||
- | * For U-Boot update on eMMC/SD Card : => setenv uboot_mmc < | ||
- | * For U-Boot update on QSPI NOR : => setenv uboot_qspi < | ||
- | |||
- | * For Device Tree update on eMMC/SD Card and QSPI NOR : => setenv fdt_file < | ||
- | | ||
- | * For Kernel update on eMMC/SD Card and QSPI NOR : => setenv kernel < | ||
- | |||
- | \\ | ||
- | **6. Perform Update: ** | ||
- | | ||
- | * U-Boot update on eMMC /SD Card : => run update_uboot_mmc | ||
- | * U-Boot update on QSPI NOR : => run update_uboot_qspi | ||
- | |||
- | * Device Tree update on eMMC /SD Card : => run update_fdt_mmc | ||
- | * Device Tree update on QSPI NOR : => run update_fdt_qspi | ||
- | |||
- | * Kernel update on eMMC /SD Card : => run update_kernel_mmc | ||
- | * Kernel update on QSPI NOR : => run update_kernel_qspi | ||