board: sl28: target refresh
v4 cover board: sl28: target refresh
From: Marcel Ziswiler <[email protected]>
Note that this re-base is only compile tested.
Changes in v4:
- Re-based on top of imx/master.
Changes in v3:
- none
- use CONFIG_EFI_CAPSULE_FIRMWARE_FIT instead of
CONFIG_EFI_CAPSULE_FIRMWARE_RAW
Changes in v2:
- none
- new patch
Frieder Schrempf (1):
doc: board: kontron: sl28: Reduce section levels and change title
Michael Walle (4):
board: sl28: enable EFI_SET_TIME support
board: sl28: generate FIT update image
board: sl28: enable EFI UpdateCapsule support
board: sl28: add update image documentation
.../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 35 ++++++++++++++- configs/kontron_sl28_defconfig | 7 +++ doc/board/kontron/sl28.rst | 45 ++++++++++++------- include/configs/kontron_sl28.h | 2 + 4 files changed, 72 insertions(+), 17 deletions(-)
Signature · 1 line
2.26.2
PATCH v4 1/5 board: sl28: enable EFI_SET_TIME support
From: Michael Walle <[email protected]>
Allow EFI to actually set the time before ExitBootServices().
---
Changes in v4:
- Re-based on top of imx/master.
Changes in v3:
- none
Changes in v2:
- none
configs/kontron_sl28_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/kontron_sl28_defconfig +1 -0
@@ -94,3 +94,4 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_OF_LIBFDT_ASSUME_MASK=0x0 CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_EFI_SET_TIME=y
Signature · 1 line
2.26.2
PATCH v4 2/5 board: sl28: generate FIT update image
In reply to Marcel ZiswilerFrom: Michael Walle <[email protected]>
Generate a FIT update image during build. The image will be called "u-boot.update" and can be used to build an EFI UpdateCapsule or during DFU mode. Although, the latter isn't supported because there is no USB OTG driver yet.
---
Changes in v4:
- Re-based on top of imx/master.
Changes in v3:
- none
Changes in v2:
- new patch
.../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-)
arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi +33 -2
@@ -15,6 +15,12 @@ }; binman: binman { + multiple-images; + }; +}; + +&binman { + u_boot_rom: u-boot-rom { filename = "u-boot.rom"; pad-byte = <0xff>;
@@ -133,6 +139,31 @@ }; }; +&binman { + u-boot-update { + filename = "u-boot.update"; + + fit { + description = "FIT update image"; + + images { + u-boot-bin { + description = "U-Boot"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <0>; /* unused */ + + blob { + filename = "u-boot.rom"; + }; + }; + }; + }; + }; +}; + #ifdef CONFIG_SL28_ENABLE_SER0_CONSOLE / { chosen {
@@ -142,7 +173,7 @@ #endif #ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31 -&binman { +&u_boot_rom { fit { images { bl31 {
@@ -191,7 +222,7 @@ #endif #ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32 -&binman { +&u_boot_rom { fit { images { bl32 {
Signature · 1 line
2.26.2
PATCH v4 3/5 board: sl28: enable EFI UpdateCapsule support
In reply to Marcel ZiswilerFrom: Michael Walle <[email protected]>
Enable support for update over EFI UpdateCapsule mechanism. This board doesn't support setting EFI variables after ExitBootservices(). Therefore, we are also enabling EFI_IGNORE_OSINDICATIONS.
---
Changes in v4:
- Re-based on top of imx/master.
Changes in v3:
- use CONFIG_EFI_CAPSULE_FIRMWARE_FIT instead of
CONFIG_EFI_CAPSULE_FIRMWARE_RAW
Changes in v2:
- new patch
configs/kontron_sl28_defconfig | 6 ++++++ include/configs/kontron_sl28.h | 2 ++ 2 files changed, 8 insertions(+)
configs/kontron_sl28_defconfig +6 -0
@@ -64,6 +64,8 @@ CONFIG_FSL_CAAM=y CONFIG_SYS_FSL_DDR3=y CONFIG_DDR_ECC=y CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y +CONFIG_DFU_MMC=y +CONFIG_DFU_SF=y CONFIG_I2C_SET_DEFAULT_BUS_NUM=y CONFIG_I2C_MUX=y CONFIG_MMC_HS400_SUPPORT=y
@@ -95,3 +97,7 @@ CONFIG_USB_XHCI_DWC3=y CONFIG_OF_LIBFDT_ASSUME_MASK=0x0 CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_EFI_SET_TIME=y +CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y +CONFIG_EFI_CAPSULE_ON_DISK=y +CONFIG_EFI_IGNORE_OSINDICATIONS=y +CONFIG_EFI_CAPSULE_FIRMWARE_FIT=y
include/configs/kontron_sl28.h +2 -0
@@ -88,6 +88,8 @@"envload=env import -d -b ${env_addr}\0" \"install_rcw=source 20200000\0" \"fdtfile=freescale/fsl-ls1028a-kontron-sl28.dtb\0" \ +"dfu_alt_info=sf 0:0=u-boot-bin raw 0x210000 0x1d0000;" \ +"u-boot-env raw 0x3e0000 0x20000\0" \ENV_MEM_LAYOUT_SETTINGS \BOOTENV
Signature · 1 line
2.26.2
PATCH v4 4/5 doc: board: kontron: sl28: Reduce section levels and change title
In reply to Marcel ZiswilerFrom: Frieder Schrempf <[email protected]>
In order to add other Kontron boards to the docs alongside the existing sl28 board, we need to reduce the levels of the sections and change the title.
---
From v3 of Michael:
Frieder, Fabio, I took the liberty and added this patch to this series, because the next patch depends on it. It wasn't picked up yet in the imx queue. In fact, Frieders patches should not depend on this one, although the documentation will be incorrectly formatted, so it should be fine if this patch will go through the qoriq queue.
Changes in v4:
- Re-based on top of imx/master.
Changes in v3:
- none
Changes in v2:
- new patch
doc/board/kontron/sl28.rst | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
doc/board/kontron/sl28.rst +15 -15
@@ -1,17 +1,17 @@ .. SPDX-License-Identifier: GPL-2.0+ -Summary -======= +Kontron SMARC-sAL28 +=================== The Kontron SMARC-sAL28 board is a TSN-enabled dual-core ARM A72 processor module with an on-chip 6-port TSN switch and a 3D GPU. Quickstart -========== +---------- Compile U-Boot --------------- +^^^^^^^^^^^^^^ Configure and compile the binary::
@@ -21,7 +21,7 @@ Configure and compile the binary:: Copy u-boot.rom to a TFTP server. Install the bootloader on the board ------------------------------------ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Please note, this bootloader doesn't support the builtin watchdog (yet), therefore you have to disable it, see below. Otherwise you'll end up in
@@ -36,7 +36,7 @@ disabled the builtin watchdog you might have to manually enter failsafe mode by asserting the ``FORCE_RECOV#`` line during board reset. Disable the builtin watchdog ----------------------------- +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - boot into the failsafe bootloader, either by asserting the ``FORCE_RECOV#`` line or if you still have the original bootloader
@@ -53,7 +53,7 @@ Disable the builtin watchdog Useful I2C tricks -================= +----------------- The board has a board management controller which is not supported in u-boot (yet). But you can use the i2c command to access it.
@@ -68,7 +68,7 @@ u-boot (yet). But you can use the i2c command to access it. Non-volatile Board Configuration Bits -===================================== +------------------------------------- The board has 16 configuration bits which are stored in the CPLD and are non-volatile. These can be changed by the `sl28 nvm` command.
@@ -98,21 +98,21 @@ Please note, that if the board is in failsafe mode, the bits will have the factory defaults, ie. all bits are off. Power-On Inhibit ----------------- +^^^^^^^^^^^^^^^^ If this is set, the board doesn't automatically turn on when power is applied. Instead, the user has to either toggle the ``PWR_BTN#`` line or use any other wake-up source such as RTC alarm or Wake-on-LAN. eMMC Boot ---------- +^^^^^^^^^ If this is set, the RCW will be fetched from the on-board eMMC at offset 1MiB. For further details, have a look at the `Reset Configuration Word Documentation`_. Watchdog --------- +^^^^^^^^ By default, the CPLD watchdog is enabled in failsafe mode. Using bits 2 and 3, the user can change its mode or disable it altogether.
@@ -127,21 +127,21 @@ Bit 2 Bit 3 Description ===== ===== =============================== Clock Generator Select ----------------------- +^^^^^^^^^^^^^^^^^^^^^^ The board is prepared to supply different SerDes clock speeds. But for now, only setting 0 is supported, otherwise the CPU will hang because the PLL will not lock. Clock Output Disable And Keep Devices In Reset ----------------------------------------------- +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ To safe power, the user might disable different devices and clock output of the board. It is not supported to disable the "CPU SerDes clock #2" for now, otherwise the CPU will hang because the PLL will not lock. Automatic reset of the onboard PHYs ------------------------------------ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ By default, there is no hardware reset of the onboard PHY. This is because for Wake-on-LAN, some registers have to retain their values. If you don't
@@ -151,7 +151,7 @@ power-on reset. Further documentation -===================== +--------------------- - `Vendor Documentation`_ - `Reset Configuration Word Documentation`_
Signature · 1 line
2.26.2
PATCH v4 5/5 board: sl28: add update image documentation
In reply to Marcel ZiswilerFrom: Michael Walle <[email protected]>
Document the update image and how to use the EFI UpdateCapsule.
---
Changes in v4:
- Re-based on top of imx/master.
Changes in v3:
- none
Changes in v2:
- new patch
doc/board/kontron/sl28.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
doc/board/kontron/sl28.rst +15 -0
@@ -52,6 +52,21 @@ Disable the builtin watchdog - power-cycle the board +Update image +------------ + +After the build finished, there will be an update image called +u-boot.update. This can either be used in the DFU mode (which isn't +supported yet) or encapsulated in an EFI UpdateCapsule. + +To build the capsule use the following command + + $ tools/mkeficapsule -f u-boot.update -i 1 UpdateUboot + +Afterward you can copy this file to your ESP into the /EFI/UpdateCapsule/ +folder. On the next EFI boot this will automatically update your +bootloader. + Useful I2C tricks -----------------
Signature · 1 line
2.26.2
Hi Marcel,
Am 2021-10-23 00:19, schrieb Marcel Ziswiler:
Quoted 4 lines
From: Marcel Ziswiler <[email protected]>
Note that this re-base is only compile tested.
Care to explain what this is? Why are you taking my patchset and make a new version of it and rebasing it on the wrong tree? Did I miss something?
-michael
Hi Michael
Sorry, I did not want to upset anybody. I probably should have asked first before doing this.
Quoted 11 lines · Michael Walle
Hi Marcel,
Am 2021-10-23 00:19, schrieb Marcel Ziswiler:
Quoted 4 lines
From: Marcel Ziswiler <[email protected]>
Note that this re-base is only compile tested.
Care to explain what this is? Why are you taking my patchset and make a new version of it and rebasing it on the wrong tree?
You might have noticed that Stefano has a hard time applying some patch sets due to continuing conflicts. Therefore in trying to further the binman clean-up [1] were I am just about to post a new version as well, I took the liberty to re-fresh all the patches my series bases on which have not seen any care for more than a month. I re-based them on top of Stefano's u-boot-imx/master branch which I am very certain is exactly the tree stuff needs to be re-based to, not?
Quoted 1 line
Did I miss something?
Not sure. If you still feel my work is of no help to the community I am more than happy to abandon any of it.
[1] https://marc.info/?l=u-boot&m=163372696806292
Quoted 1 line
-michael
Cheers
Marcel
Hi Marcel,
Am 2021-10-23 01:09, schrieb Marcel Ziswiler:
Quoted 2 lines
Sorry, I did not want to upset anybody. I probably should have asked first before doing this.
You could have said the below in the cover letter. Then I'd have at least an idea what is going on ;)
Quoted 13 lines · Michael Walle
Quoted 11 lines
Hi Marcel,
Am 2021-10-23 00:19, schrieb Marcel Ziswiler:
Quoted 4 lines
From: Marcel Ziswiler <[email protected]>
Note that this re-base is only compile tested.
Care to explain what this is? Why are you taking my patchset and make a new version of it and rebasing it on the wrong tree?
Quoted 9 lines
You might have noticed that Stefano has a hard time applying some patch sets due to continuing conflicts.
Therefore in trying to further the binman clean-up [1] were I am just about to post a new version as well, I
took the liberty to re-fresh all the patches my series bases on which have not seen any care for more than a
month. I re-based them on top of Stefano's u-boot-imx/master branch which I am very certain is exactly the tree
stuff needs to be re-based to, not?
This is a layerscape SoC board whose patches usually go through u-boot-fsl-qoriq. Apart from the one doc fix there should be no dependency on the u-boot-imx tree. I just took Frieder's doc fix because my last patch depends on it, (in a sense that it doesn't apply without it). The imx tree should be fine without the fix, it's just that the generated doc is messed up for the kontron boards.
I think you don't really need this for your series.
Quoted 4 lines
Quoted 1 line
Did I miss something?
Not sure. If you still feel my work is of no help to the community I am more than happy to abandon any of it.
Now knowing why you did it, it's fine; its just the wrong tree.
-michael
Hi Michael
Quoted 32 lines · Michael Walle
Hi Marcel,
Am 2021-10-23 01:09, schrieb Marcel Ziswiler:
Quoted 2 lines
Sorry, I did not want to upset anybody. I probably should have asked first before doing this.
You could have said the below in the cover letter. Then I'd have at least an idea what is going on ;)
Quoted 13 lines · Michael Walle
Quoted 11 lines
Hi Marcel,
Am 2021-10-23 00:19, schrieb Marcel Ziswiler:
Quoted 4 lines
From: Marcel Ziswiler <[email protected]>
Note that this re-base is only compile tested.
Care to explain what this is? Why are you taking my patchset and make a new version of it and rebasing it on the wrong tree?
Quoted 9 lines
You might have noticed that Stefano has a hard time applying some patch sets due to continuing conflicts.
Therefore in trying to further the binman clean-up [1] were I am just about to post a new version as well, I
took the liberty to re-fresh all the patches my series bases on which have not seen any care for more than a
month. I re-based them on top of Stefano's u-boot-imx/master branch which I am very certain is exactly the tree
stuff needs to be re-based to, not?
Quoted 7 lines
This is a layerscape SoC board whose patches usually go through u-boot-fsl-qoriq. Apart from the one doc fix there should be no dependency on the u-boot-imx tree. I just took Frieder's doc fix because my last patch depends on it, (in a sense that it doesn't apply without it). The imx tree should be fine without the fix, it's just that the generated doc is messed up for the kontron boards.
Hm, now as you say it I am also wondering a little bit why it slipped into my dependency list. And then, of course, nobody noticed anything (;-p).
Quoted 9 lines
I think you don't really need this for your series.
Quoted 4 lines
Quoted 1 line
Did I miss something?
Not sure. If you still feel my work is of no help to the community I am more than happy to abandon any of it.
Now knowing why you did it, it's fine; its just the wrong tree.
Yep, now I see it. And my re-base does not even make any sense in this case. I guess, your v3 was and is still just fine for the u-boot-fsl-qoriq/master branch. Let me just cancel this v4 then. I am really sorry and hope I did not disturb anything.
Quoted 1 line
-michael
Cheers
Marcel
Quoted 26 lines · Marcel Ziswiler
From: Marcel Ziswiler <[email protected]>
Note that this re-base is only compile tested.
Changes in v4:
- Re-based on top of imx/master.Changes in v3:
- none
- useCONFIG_EFI_CAPSULE_FIRMWARE_FITinstead of
CONFIG_EFI_CAPSULE_FIRMWARE_RAWChanges in v2:
- none
- new patchFrieder Schrempf (1):
doc: board: kontron: sl28: Reduce section levels and change titleMichael Walle (4):
board: sl28: enableEFI_SET_TIMEsupport
board: sl28: generate FIT update image
board: sl28: enable EFI UpdateCapsule support
board: sl28: add update image documentation
Quoted 5 lines
.../dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi | 35 ++++++++++++++- configs/kontron_sl28_defconfig | 7 +++ doc/board/kontron/sl28.rst | 45 ++++++++++++------- include/configs/kontron_sl28.h | 2 +
4 files changed, 72 insertions(+), 17 deletions(-)
Sorry, there was a misunderstanding on my side. Please just disregard this v4. Thanks!