Skip to content

Fix to keystone2 uinitrd fixup logic

Nicholas Faustini u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Add reviewed-by tag
- Add reviewed-by tag, removed RFC/RESEND

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fdt: add call to ft_board_setup_ex() for ks2 boardscmd/fdt.c+3 -01 reply
2/2board: ks2: move uinitrd fixup logic inside ft_board_setup_exboard/ti/ks2_evm/board.c+22 -221 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchTom Rini
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/2] Fix to keystone2 uinitrd fixup logic

For ks2 devices with PAE enabled, the function ft_board_setup() (board/ti/ks2_evm/board.c) is supposed to update at runtime the /chosen fdt node by shifting the initrd start/end addresses into the 36b
it address space. Unfortunately, this mechanism doesn't work since the /chosen node has not been populated at the time of the ft_board_setup() call. The root of the issue is that, at some point in u-boot history, the call sequence of fdt_initrd() and ft_board_setup() (common/image-fdt.c) has been inverted: ft_board_setup() is called before fdt_initrd().

Error shown by Linux during startup is:

[    0.000000] INITRD: 0x8fcec000+0x00313dc8 is not a memory region - disabling initrd

I would propose to move the fdt initrd fixup logic from ft_board_setup() to ft_board_setup_ex() since the latter is called esclusively for keystone devices.

Moreover, cmd/fdt.c command should include the call of ft_board_setup_ex() since keystone2 devices will require it.

Changes in v2:
- Add reviewed-by tag
- Add reviewed-by tag, removed RFC/RESEND

Nicholas Faustini (2):
fdt: add call to ft_board_setup_ex() for ks2 boards
board: ks2: move uinitrd fixup logic inside ft_board_setup_ex

 board/ti/ks2_evm/board.c | 44 ++++++++++++++++++++--------------------
 cmd/fdt.c                |  3 +++
 2 files changed, 25 insertions(+), 22 deletions(-)
Signature · 16 lines
2.17.1


-- 
Disclaimer: This email and any files transmitted along with it may contain 
Azcom confidential and proprietary information. If you are not the intended 
recipient, you are notified that disclosing, copying, distributing or 
taking any action based on the contents of the information contained herein 
is strictly prohibited.
If you are not an intended recipient of this 
transmission and you received it in error, please inform the sender by 
reply e-mail and destroy this and all other copies of this transmission to 
which you have access.
The sender of this email or Azcom does not accept 
liability for any errors or omissions in the contents of this message that 
may occur as a result.