Skip to content

RFC bootm refactoring

Kumar Gala u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 of 15 patches 0 repliesNew

9 of 15 patches are in this archive. The cover letter announces 15.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15Update linux bootm to support ePAPR client interfacelib_ppc/bootm.c+23 -100 replies
2/15add ability to disable ft_board_setup as part of bootmlib_ppc/bootm.c+2 -10 replies
3/15Clean up usage of icache_disable/dcache_disableboard/Marvell/db64360/db64360.c board/Marvell/db64460/db64460.c board/esd/cpci750/cpci750.c +5 more+8 -200 replies
4/15fdt: added the ability to set initrd start/end via chosen commandcommon/cmd_fdt.c+17 -40 replies
5/15fdt: fdt addr w/o any args reports back the current working addresscommon/cmd_fdt.c+8 -00 replies
6/15bootm: refactor entry point codecommon/cmd_bootm.c include/image.h lib_arm/bootm.c +9 more+37 -1820 replies
7/15bootm: refactor ramdisk locating codecommon/cmd_bootm.c include/image.h lib_arm/bootm.c +6 more+60 -670 replies
8/15bootm: refactor fdt locating and relocation codecommon/cmd_bootm.c common/image.c include/image.h +1 more+533 -4840 replies
9/15bootm: Set working fdt address as part of the bootm flowcommon/cmd_bootm.c common/cmd_fdt.c common/image.c +1 more+17 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [RFC][PATCH 00/15] bootm refactoring

[PATCH 01/15] Update linux bootm to support ePAPR client interface [PATCH 02/15] add ability to disable ft_board_setup as part of bootm

possibly drop this patch if the boots method is acceptable

[PATCH 03/15] Clean up usage of icache_disable/dcache_disable
[PATCH 04/15] fdt: added the ability to set initrd start/end via chosen command [PATCH 05/15] fdt: fdt addr w/o any args reports back the current working address [PATCH 06/15] bootm: refactor entry point code
[PATCH 07/15] bootm: refactor ramdisk locating code
[PATCH 08/15] bootm: refactor fdt locating and relocation code [PATCH 09/15] bootm: Set working fdt address as part of the bootm flow [PATCH 10/15] bootm: move lmb into the bootm_headers_t structure [PATCH 11/15] bootm: refactor image detection and os load steps [PATCH 12/15] fdt: refactor fdt resize code
[PATCH 13/15] fdt: refactor initrd related code
[PATCH 14/15] fdt: Added resize command
[PATCH 15/15] boots: start of sub commands

I believe all the patches except 15/15 should be in a reasonable state for u-boot-testing. I need to add an 'interrupt enable/disable' command but with a small hack I'm able to mimic the bootm command on ppc by:

boots start <A> <B> <C>
boots load_os /* hacked to disable interrupts */
boots prep_os
boots initrd_relocate
boots fdt_relocate
fdt chosen $initrd_start $initrd_end
fdt boardsetup
boots jump

Right now 15/15 is focused on only PPC w/Linux. If this looks acceptable I'll split 15/15 into proper patches an add support for the other ARCHes and OSes.

- k