Skip to content

introduce genimg_get_kernel_addr()

Bryan Wu u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- move function description to header file
- fix coding style issue
- use argc < 1 check when calling genimg_get_kernel_addr() in bootm.c

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3image: introduce genimg_get_kernel_addr()common/image.c include/image.h+44 -01 reply
2/3pxe: detect image format before calling bootm/bootzcommon/cmd_pxe.c+11 -40 replies
3/3bootm: use genimg_get_kernel_addr()common/bootm.c+5 -205 replies
3/3bootm: use genimg_get_kernel_addr()+0 -01 reply
3/3bootm: use genimg_get_kernel_addr()+0 -00 replies

Reviews trailers per patch

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

PatchStephen WarrenSimon Glass
1/3T-b R-b R-b
2/3T-b R-b
3/3T-b R-b R-b
3/3T-b R-b R-b
3/3T-b R-b R-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/3] introduce genimg_get_kernel_addr()

When trying to fix the error message issue in pxe sysboot, we found it's need a real kernel address for further image format detection.

So I take out such code from boot_get_kernel() of bootm.c and create the new API functin genimg_get_kernel_addr(). Then convert pxe/sysboot and bootm.c to use it.

v2:
- move function description to header file
- fix coding style issue
- use argc < 1 check when calling genimg_get_kernel_addr() in bootm.c

Bryan Wu (3):
image: introduce genimg_get_kernel_addr()
pxe: detect image format before calling bootm/bootz
bootm: use genimg_get_kernel_addr()

 common/bootm.c   | 25 +++++--------------------
 common/cmd_pxe.c | 15 +++++++++++----
 common/image.c   | 32 ++++++++++++++++++++++++++++++++
 include/image.h  | 12 ++++++++++++
 4 files changed, 60 insertions(+), 24 deletions(-)
Signature · 1 line
1.9.1