x86: x86-common.h: Add CONFIG_BOOTDELAY
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
Without this CONFIG_BOOTDELAY, autobooting does not work at all. As autoboot_command() from common/* will not get called. So lets define CONFIG_BOOTDELAY, so that auto-booting works on x86.
--- include/configs/x86-common.h | 2 ++ 1 file changed, 2 insertions(+)
include/configs/x86-common.h +2 -0
@@ -235,4 +235,6 @@"tftpboot $loadaddr $bootfile;" \ "zboot $loadaddr" +#define CONFIG_BOOTDELAY 2 +#endif /* __CONFIG_H */
Signature · 1 line
2.6.5
PATCH 2/2 x86: x86-common.h: Add generic FS commands
This patch adds the generic FS commands (ls, load) to all x86 boards.
--- include/configs/x86-common.h | 1 + 1 file changed, 1 insertion(+)
include/configs/x86-common.h +1 -0
@@ -100,6 +100,7 @@* Command line configuration. */ #define CONFIG_CMD_DATE +#define CONFIG_CMD_FS_GENERIC #define CONFIG_CMD_FPGA_LOADMK #define CONFIG_CMD_IO #define CONFIG_CMD_IRQ
Signature · 1 line
2.6.5
PATCH 2/2 x86: x86-common.h: Add generic FS commands
Quoted 10 lines · Stefan Roese
This patch adds the generic FS commands (ls, load) to all x86 boards.
Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 1 + 1 file changed, 1 insertion(+)
PATCH 2/2 x86: x86-common.h: Add generic FS commands
Quoted 12 lines · Bin Meng
Quoted 10 lines · Stefan Roese
This patch adds the generic FS commands (ls, load) to all x86 boards.
Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 1 + 1 file changed, 1 insertion(+)
Quoted 1 line
Acked-by Bin Meng <[email protected]>
applied to u-boot-x86/master, thanks!
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
In reply to Stefan Roese2016-01-18 21:49 GMT+08:00 Stefan Roese <[email protected]>:
Quoted 24 lines
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 2 ++ 1 file changed, 2 insertions(+)include/configs/x86-common.h +2
-1@@ -235,4 +235,6 @@"tftpboot $loadaddr $bootfile;" \ "zboot $loadaddr" +#define CONFIG_BOOTDELAY 2 +#endif /* __CONFIG_H */ --
Quoted 2 lines
2.6.5
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
In reply to Stefan RoeseQuoted 4 lines · Stefan Roese
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.
Quoted 8 lines
Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 2 ++ 1 file changed, 2 insertions(+)
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
Hi Stefan,
Quoted 14 lines · Bin Meng
Quoted 4 lines · Stefan Roese
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.Quoted 8 lines
Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 2 ++ 1 file changed, 2 insertions(+)
Quoted 1 line
Acked-by Bin Meng <[email protected]>
Sorry, this patch does not build for efi-x86.
x86: + efi-x86
+../common/autoboot.c: In function 'process_fdt_options':+../common/autoboot.c:296:36: error: 'CONFIG_SYS_TEXT_BASE' undeclared (first use in this function)
+ setenv_addr("kernaddr", (void *)(CONFIG_SYS_TEXT_BASE + addr));
+ ^+../common/autoboot.c:296:36: note: each undeclared identifier is reported only once for each function it appears in +make[2]: *** [common/autoboot.o] Error 1
+make[1]: *** [common] Error 2
+make: *** [sub-make] Error 2
Could you please fix this? Sorry I did not run buildman earlier.
Regards,
Bin
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
Hi Bin,
Quoted 31 lines · Bin Meng
Quoted 14 lines · Bin Meng
Quoted 4 lines · Stefan Roese
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.Quoted 8 lines
Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 2 ++ 1 file changed, 2 insertions(+)Quoted 1 line
Acked-by Bin Meng <[email protected]>Sorry, this patch does not build for efi-x86.
x86: + efi-x86
+../common/autoboot.c: In function 'process_fdt_options':+../common/autoboot.c:296:36: error: 'CONFIG_SYS_TEXT_BASE' undeclared (first use in this function)(quoted diff) +3
-0+ setenv_addr("kernaddr", (void *)(CONFIG_SYS_TEXT_BASE + addr)); + ^ +../common/autoboot.c:296:36: note: each undeclared identifier isreported only once for each function it appears in
(quoted diff) +3
-0+make[2]: *** [common/autoboot.o] Error 1 +make[1]: *** [common] Error 2 +make: *** [sub-make] Error 2
Quoted 1 line
Could you please fix this? Sorry I did not run buildman earlier.
No need to be sorry for you. I should have spotted this problem before submitting. I'll fix this soon and will resubmit.
Thanks,
Stefan
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
In reply to Bin MengHi Bin,
(added Simon to Cc)
Quoted 31 lines · Bin Meng
Quoted 14 lines · Bin Meng
Quoted 4 lines · Stefan Roese
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.Quoted 8 lines
Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 2 ++ 1 file changed, 2 insertions(+)Quoted 1 line
Acked-by Bin Meng <[email protected]>Sorry, this patch does not build for efi-x86.
x86: + efi-x86
+../common/autoboot.c: In function 'process_fdt_options':+../common/autoboot.c:296:36: error: 'CONFIG_SYS_TEXT_BASE' undeclared (first use in this function)(quoted diff) +3
-0+ setenv_addr("kernaddr", (void *)(CONFIG_SYS_TEXT_BASE + addr)); + ^ +../common/autoboot.c:296:36: note: each undeclared identifier isreported only once for each function it appears in
(quoted diff) +3
-0+make[2]: *** [common/autoboot.o] Error 1 +make[1]: *** [common] Error 2 +make: *** [sub-make] Error 2
Quoted 1 line
Could you please fix this? Sorry I did not run buildman earlier.
I'm a bit hesitant on how to fix this. As I don't really know this "efi-x86" target in detail. Is this code in process_fdt_options() really needed for this target? To configure the env variables "kernaddr" and "rootaddr" dynamically from the DT properties "kernel-offset" and "rootdisk-offset". I can't find any references to these DT properties anywhere?
Simon, you introduced this env variable handling with the patch [fdt: Set kernaddr if fdt indicates a kernel is present] (git ID fcabc24f) in October 2012.
Perhaps its best to assign TEXT_BASE to 0 if its not defined at all? Or is this in general the correct value for the "efi-x86" target and should be set specifically for it?
Thanks,
Stefan
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
Hi Stefan,
Quoted 51 lines · Stefan Roese
Hi Bin,
(added Simon to Cc)
Quoted 35 lines · Bin Meng
Quoted 16 lines · Bin Meng
Quoted 5 lines · Stefan Roese
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.Quoted 8 lines
Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 2 ++ 1 file changed, 2 insertions(+)Quoted 1 line
Acked-by Bin Meng <[email protected]>Sorry, this patch does not build for efi-x86.
x86: + efi-x86
+../common/autoboot.c: In function 'process_fdt_options':+../common/autoboot.c:296:36: error: 'CONFIG_SYS_TEXT_BASE' undeclared (first use in this function)(quoted diff) +3
-0+ setenv_addr("kernaddr", (void *)(CONFIG_SYS_TEXT_BASE + addr)); + ^ +../common/autoboot.c:296:36: note: each undeclared identifier isreported only once for each function it appears in
(quoted diff) +3
-0+make[2]: *** [common/autoboot.o] Error 1 +make[1]: *** [common] Error 2 +make: *** [sub-make] Error 2Quoted 1 line
Could you please fix this? Sorry I did not run buildman earlier.
I'm a bit hesitant on how to fix this. As I don't really know this "efi-x86" target in detail. Is this code in
process_fdt_options()really needed for this target? To configure the env variables "kernaddr" and "rootaddr" dynamically from the DT properties "kernel-offset" and "rootdisk-offset". I can't find any references to these DT properties anywhere?
Quoted 7 lines
Simon, you introduced this env variable handling with the patch [fdt: Set kernaddr if fdt indicates a kernel is present] (git ID
fcabc24f) in October 2012.Perhaps its best to assign
TEXT_BASEto 0 if its not defined at all? Or is this in general the correct value for the "efi-x86" target and should be set specifically for it?
It is a funny target since we actually produce a relocatable ELF. I'd suggest putting #ifdef CONFIG_SYS_TEXT_BASE around it.
Regards,
Simon
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
Hi Simon,
Quoted 58 lines · Simon Glass
Hi Stefan,
Quoted 55 lines · Stefan Roese
Hi Bin,
(added Simon to Cc)
Quoted 35 lines · Bin Meng
Quoted 16 lines · Bin Meng
Quoted 5 lines · Stefan Roese
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.Quoted 8 lines
Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 2 ++ 1 file changed, 2 insertions(+)Quoted 1 line
Acked-by Bin Meng <[email protected]>Sorry, this patch does not build for efi-x86.
x86: + efi-x86
+../common/autoboot.c: In function 'process_fdt_options':+../common/autoboot.c:296:36: error: 'CONFIG_SYS_TEXT_BASE' undeclared (first use in this function)(quoted diff) +3
-0+ setenv_addr("kernaddr", (void *)(CONFIG_SYS_TEXT_BASE + addr)); + ^ +../common/autoboot.c:296:36: note: each undeclared identifier isreported only once for each function it appears in
(quoted diff) +3
-0+make[2]: *** [common/autoboot.o] Error 1 +make[1]: *** [common] Error 2 +make: *** [sub-make] Error 2Quoted 1 line
Could you please fix this? Sorry I did not run buildman earlier.
I'm a bit hesitant on how to fix this. As I don't really know this "efi-x86" target in detail. Is this code in
process_fdt_options()really needed for this target? To configure the env variables "kernaddr" and "rootaddr" dynamically from the DT properties "kernel-offset" and "rootdisk-offset". I can't find any references to these DT properties anywhere?Simon, you introduced this env variable handling with the patch [fdt: Set kernaddr if fdt indicates a kernel is present] (git ID
fcabc24f) in October 2012.
Quoted 6 lines
Quoted 3 lines
Perhaps its best to assign
TEXT_BASEto 0 if its not defined at all? Or is this in general the correct value for the "efi-x86" target and should be set specifically for it?It is a funny target since we actually produce a relocatable ELF. I'd suggest putting #ifdef
CONFIG_SYS_TEXT_BASEaround it.
Okay. I'll "solve" it this way.
Thanks,
Stefan
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
In reply to Bin MengQuoted 14 lines · Bin Meng
Quoted 4 lines · Stefan Roese
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.Quoted 8 lines
Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>--- include/configs/x86-common.h | 2 ++ 1 file changed, 2 insertions(+)
Quoted 1 line
Acked-by Bin Meng <[email protected]>
applied to u-boot-x86/master, thanks!
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
In reply to Stefan RoeseQuoted 8 lines · Stefan Roese
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>
I think the right direction (and I haven't had time myself) is to make x86 use the generic distro framework. Dennis Gilmore pointed out a while ago Fedora at least can be easily made to generate the extlinux file on x86 even so it'll just work there :)
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160119/fe059120/attachment.sig>
PATCH 1/2 x86: x86-common.h: Add CONFIG_BOOTDELAY
Hi Tom,
Quoted 11 lines · Tom Rini
Quoted 8 lines · Stefan Roese
Without this
CONFIG_BOOTDELAY, autobooting does not work at all. Asautoboot_command()from common/* will not get called. So lets defineCONFIG_BOOTDELAY, so that auto-booting works on x86.Signed-off-by Stefan Roese <[email protected]>Cc Miao Yan <[email protected]>Cc Bin Meng <[email protected]>Cc Simon Glass <[email protected]>
Quoted 4 lines
I think the right direction (and I haven't had time myself) is to make x86 use the generic distro framework. Dennis Gilmore pointed out a while ago Fedora at least can be easily made to generate the extlinux file on x86 even so it'll just work there :)
Yes, this is definitely the "right direction". Unfortunately I'm a bit limited with the time I could spend on this. And frankly, I have not much experience with the generic distro framework. So I would like to postpone this distro rework for a bit now. And since x86 does not support auto-booting at all without CONFIG_BOOTDELAY, I think it makes sense to apply this patch now. And add the distro stuff a bit later.
Thanks,
Stefan