cmd: spl: Remove ATAG support from this command
Subsystems (2)
PATCH 1/1 cmd: spl: Remove ATAG support from this command
While we continue to have some systems which support extremely legacy OS booting methods, we do not have use cases for supporting this in Falcon mode anymore. Remove this support and references from the documentation.
--- cmd/spl.c | 18 --------- doc/README.commands.spl | 14 ++----- doc/develop/falcon.rst | 84 ++++------------------------------------- include/cmd_spl.h | 3 +- 4 files changed, 11 insertions(+), 108 deletions(-)
cmd/spl.c +0 -18
@@ -27,19 +27,6 @@ static const char **subcmd_list[] = {"cmdline" ,"bdt" ,"prep" , -#endif - NULL, - }, - [SPL_EXPORT_ATAGS ] = (const char * []) { -#ifdef CONFIG_SUPPORT_PASSING_ATAGS -"start" , -"loados" , -#ifdef CONFIG_SYS_BOOT_RAMDISK_HIGH -"ramdisk" , -#endif -"cmdline" , -"bdt" , -"prep" , #endif NULL, },
@@ -96,7 +83,6 @@ static int call_bootm(int argc, char *const argv[], const char *subcommand[])static struct cmd_tbl cmd_spl_export_sub[] = {U_BOOT_CMD_MKENT (fdt,0 ,1 , (void *)SPL_EXPORT_FDT ,"" ,"" ), -U_BOOT_CMD_MKENT (atags,0 ,1 , (void *)SPL_EXPORT_ATAGS ,"" ,"" ), }; static int spl_export(struct cmd_tbl *cmdtp, int flag, int argc,
@@ -128,10 +114,6 @@ static int spl_export(struct cmd_tbl *cmdtp, int flag, int argc,#endif break ;#endif -case SPL_EXPORT_ATAGS : -printf ("Argument image is now in RAM at: 0x%p\n" , - (void *)gd->bd->bi_boot_params); -break ; } }else {/* Unrecognized command */
doc/README.commands.spl +3 -11
@@ -5,24 +5,16 @@ SUBCOMMAND EXPORT To execute the command everything has to be in place as if bootm should be used. (kernel image, initrd-image, fdt-image etc.) -export has two subcommands: - atags: exports the ATAGS +export has one subcommand: fdt: exports the FDT Call is: -spl export <fdt|atags> [kernel_addr] [initrd_addr] [fdt_addr if fdt] +spl export fdt [kernel_addr] [initrd_addr] [fdt_addr if fdt] TYPICAL CALL -on OMAP3: -nandecc hw -nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/ -spl export atags /* export ATAGS */ -nand erase 0x680000 0x20000 /* erase - one page */ -nand write 0x80000100 0x680000 0x20000 /* write the image - one page */ - -call with FDT: +on OMAP3 with FDT: nandecc hw nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/ tftpboot 0x80000100 devkit8000.dtb /* Read fdt */
doc/develop/falcon.rst +7 -77
108 lines not on this page · raw message
include/cmd_spl.h +1 -2
@@ -8,7 +8,6 @@#define SPL_EXPORT (0x00000001)#define SPL_EXPORT_FDT (0x00000001) -#define SPL_EXPORT_ATAGS (0x00000002) -#define SPL_EXPORT_LAST SPL_EXPORT_ATAGS +#define SPL_EXPORT_LAST SPL_EXPORT_FDT#endif /* _NAND_SPL_H_ */
Signature · 1 line
2.43.0
Quoted 61 lines · Tom Rini
While we continue to have some systems which support extremely legacy OS booting methods, we do not have use cases for supporting this in Falcon mode anymore. Remove this support and references from the documentation.
Signed-off-by Tom Rini <[email protected]>--- cmd/spl.c | 18 --------- doc/README.commands.spl | 14 ++----- doc/develop/falcon.rst | 84 ++++------------------------------------- include/cmd_spl.h | 3 +- 4 files changed, 11 insertions(+), 108 deletions(-)cmd/spl.c +0
-18@@ -27,19 +27,6 @@ static const char **subcmd_list[] = {"cmdline" ,"bdt" ,"prep" , -#endif - NULL, - }, - [SPL_EXPORT_ATAGS ] = (const char * []) { -#ifdef CONFIG_SUPPORT_PASSING_ATAGS -"start" , -"loados" , -#ifdef CONFIG_SYS_BOOT_RAMDISK_HIGH -"ramdisk" , -#endif -"cmdline" , -"bdt" , -"prep" , #endif NULL, },@@ -96,7 +83,6 @@ static int call_bootm(int argc, char *const argv[], const char *subcommand[])static struct cmd_tbl cmd_spl_export_sub[] = {U_BOOT_CMD_MKENT (fdt,0 ,1 , (void *)SPL_EXPORT_FDT ,"" ,"" ), -U_BOOT_CMD_MKENT (atags,0 ,1 , (void *)SPL_EXPORT_ATAGS ,"" ,"" ), }; static int spl_export(struct cmd_tbl *cmdtp, int flag, int argc,@@ -128,10 +114,6 @@ static int spl_export(struct cmd_tbl *cmdtp, int flag, int argc,#endif break ;#endif -case SPL_EXPORT_ATAGS : -printf ("Argument image is now in RAM at: 0x%p\n" , - (void *)gd->bd->bi_boot_params); -break ; } }else {/* Unrecognized command */ doc/README.commands.spl +0
-0
doc/README.commands.spl SUBCOMMAND EXPORT · line 9
Quoted 7 lines
doc/README.commands.spl +1
-2@@ -5,24 +5,16 @@ SUBCOMMAND EXPORT To execute the command everything has to be in place as if bootm should be used. (kernel image, initrd-image, fdt-image etc.) -export has two subcommands: - atags: exports the ATAGS +export has one subcommand: fdt: exports the FDT
Why do we even need the fdt subcommand anymore? Can't we just have the command be 'spl export [kernel_addr] [initrd_addr] [fdt_addr]' now?
doc/README.commands.spl SUBCOMMAND EXPORT · line 12
Quoted 5 lines
doc/README.commands.spl +1
-1Call is: -spl export <fdt|atags> [kernel_addr] [initrd_addr] [fdt_addr if fdt] +spl export fdt [kernel_addr] [initrd_addr] [fdt_addr if fdt]
Also, we should just drop the 'if fdt' from the command help.
Quoted 1 line
[snip]
include/cmd_spl.h line 13
Quoted 13 lines
include/cmd_spl.h +1
-2@@ -8,7 +8,6 @@#define SPL_EXPORT (0x00000001)#define SPL_EXPORT_FDT (0x00000001) -#define SPL_EXPORT_ATAGS (0x00000002) -#define SPL_EXPORT_LAST SPL_EXPORT_ATAGS +#define SPL_EXPORT_LAST SPL_EXPORT_FDT#endif /* _NAND_SPL_H_ */
The below diff should also be part of the patch:
arch/arm/lib/spl.c +1 -2
@@ -46,8 +46,7 @@ void __weak board_init_f(ulong dummy) }/* -* This function jumps to an image with argument. Normally an FDT or ATAGS -* image. +* This function jumps to an image with argument, usually an FDT. */ #if CONFIG_IS_ENABLED (OS_BOOT )#ifdef CONFIG_ARM64
arch/powerpc/lib/spl.c +1 -2
@@ -9,8 +9,7 @@#include <linux/compiler.h> /* -* This function jumps to an image with argument. Normally an FDT or ATAGS -* image. +* This function jumps to an image with argument, usually an FDT. */ #ifdef CONFIG_SPL_OS_BOOT void __noreturn jump_to_image_linux (struct spl_image_info *spl_image)
cmd/spl.c +2 -3
@@ -158,11 +158,10 @@ static int do_spl(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])U_BOOT_CMD ( spl,6 ,1 , do_spl,"SPL configuration" , -"export <img=atags|fdt> [kernel_addr] [initrd_addr] [fdt_addr]\n" -"\timg\t\t\"atags\" or \"fdt\"\n" +"export fdt [kernel_addr] [initrd_addr] [fdt_addr]\n" "\tkernel_addr\taddress where a kernel image is stored.\n" "\t\t\tkernel is loaded as part of the boot process, but it is not started.\n" "\tinitrd_addr\taddress of initial ramdisk\n" "\t\t\tcan be set to \"-\" if fdt_addr without initrd_addr is used.\n" -"\tfdt_addr\tin case of fdt, the address of the device tree.\n" +"\tfdt_addr\tthe address of the device tree.\n" );
---
Regards,
Anshul
Quoted 65 lines · Anshul Dalal
Quoted 64 lines · Tom Rini
While we continue to have some systems which support extremely legacy OS booting methods, we do not have use cases for supporting this in Falcon mode anymore. Remove this support and references from the documentation.
Signed-off-by Tom Rini <[email protected]>--- cmd/spl.c | 18 --------- doc/README.commands.spl | 14 ++----- doc/develop/falcon.rst | 84 ++++------------------------------------- include/cmd_spl.h | 3 +- 4 files changed, 11 insertions(+), 108 deletions(-)cmd/spl.c +0
-18@@ -27,19 +27,6 @@ static const char **subcmd_list[] = {"cmdline" ,"bdt" ,"prep" , -#endif - NULL, - }, - [SPL_EXPORT_ATAGS ] = (const char * []) { -#ifdef CONFIG_SUPPORT_PASSING_ATAGS -"start" , -"loados" , -#ifdef CONFIG_SYS_BOOT_RAMDISK_HIGH -"ramdisk" , -#endif -"cmdline" , -"bdt" , -"prep" , #endif NULL, },@@ -96,7 +83,6 @@ static int call_bootm(int argc, char *const argv[], const char *subcommand[])static struct cmd_tbl cmd_spl_export_sub[] = {U_BOOT_CMD_MKENT (fdt,0 ,1 , (void *)SPL_EXPORT_FDT ,"" ,"" ), -U_BOOT_CMD_MKENT (atags,0 ,1 , (void *)SPL_EXPORT_ATAGS ,"" ,"" ), }; static int spl_export(struct cmd_tbl *cmdtp, int flag, int argc,@@ -128,10 +114,6 @@ static int spl_export(struct cmd_tbl *cmdtp, int flag, int argc,#endif break ;#endif -case SPL_EXPORT_ATAGS : -printf ("Argument image is now in RAM at: 0x%p\n" , - (void *)gd->bd->bi_boot_params); -break ; } }else {/* Unrecognized command */ doc/README.commands.spl +0
-0@@ -5,24 +5,16 @@ SUBCOMMAND EXPORT To execute the command everything has to be in place as if bootm should be used. (kernel image, initrd-image, fdt-image etc.)
Quoted 7 lines
doc/README.commands.spl SUBCOMMAND EXPORT · line 9
Quoted 4 lines
doc/README.commands.spl +1
-2-export has two subcommands: - atags: exports the ATAGS +export has one subcommand: fdt: exports the FDTWhy do we even need the fdt subcommand anymore? Can't we just have the command be 'spl export [
kernel_addr] [initrd_addr] [fdt_addr]' now?
Because commands are part of our API.
Quoted 8 lines
doc/README.commands.spl SUBCOMMAND EXPORT · line 12
Quoted 6 lines
doc/README.commands.spl +1
-1Call is: -spl export <fdt|atags> [kernel_addr] [initrd_addr] [fdt_addr if fdt] +spl export fdt [kernel_addr] [initrd_addr] [fdt_addr if fdt]Also, we should just drop the 'if fdt' from the command help.
Yes, true, thanks.
Quoted 57 lines
Quoted 2 lines
[snip]
include/cmd_spl.h line 13
Quoted 13 lines
include/cmd_spl.h +1
-2@@ -8,7 +8,6 @@#define SPL_EXPORT (0x00000001)#define SPL_EXPORT_FDT (0x00000001) -#define SPL_EXPORT_ATAGS (0x00000002) -#define SPL_EXPORT_LAST SPL_EXPORT_ATAGS +#define SPL_EXPORT_LAST SPL_EXPORT_FDT#endif /* _NAND_SPL_H_ */ The below diff should also be part of the patch:
arch/arm/lib/spl.c +1
-2@@ -46,8 +46,7 @@ void __weak board_init_f(ulong dummy) }/* -* This function jumps to an image with argument. Normally an FDT or ATAGS -* image. +* This function jumps to an image with argument, usually an FDT. */ #if CONFIG_IS_ENABLED (OS_BOOT )#ifdef CONFIG_ARM64 arch/powerpc/lib/spl.c +1
-2@@ -9,8 +9,7 @@#include <linux/compiler.h> /* -* This function jumps to an image with argument. Normally an FDT or ATAGS -* image. +* This function jumps to an image with argument, usually an FDT. */ #ifdef CONFIG_SPL_OS_BOOT void __noreturn jump_to_image_linux (struct spl_image_info *spl_image)cmd/spl.c +0
-0@@ -158,11 +158,10 @@ static int do_spl(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) U_BOOT_CMD( spl, 6 , 1, do_spl, "SPL configuration",
cmd/spl.c static int do_spl(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) · line 167
Quoted 10 lines
cmd/spl.c +2
-3-"export <img=atags|fdt> [kernel_addr] [initrd_addr] [fdt_addr]\n" -"\timg\t\t\"atags\" or \"fdt\"\n" +"export fdt [kernel_addr] [initrd_addr] [fdt_addr]\n" "\tkernel_addr\taddress where a kernel image is stored.\n" "\t\t\tkernel is loaded as part of the boot process, but it is not started.\n" "\tinitrd_addr\taddress of initial ramdisk\n" "\t\t\tcan be set to \"-\" if fdt_addr without initrd_addr is used.\n" -"\tfdt_addr\tin case of fdt, the address of the device tree.\n" +"\tfdt_addr\tthe address of the device tree.\n" );
Ah, thanks. I'll add a Co-developed when I respin since you've changed almost as much as I have now.
Signature · 1 line
Tom
Quoted 6 lines · Tom Rini
While we continue to have some systems which support extremely legacy OS booting methods, we do not have use cases for supporting this in Falcon mode anymore. Remove this support and references from the documentation.
Signed-off-by Tom Rini <[email protected]>
After adding Anshul's changes and Co-developed-by tag, applied to u-boot/next, thanks!
Signature · 1 line
Tom