Initilize IDE prior environment
PATCH 1/1 Initilize IDE prior environment
To allow the loading of environment from IDE (for example, using FAT) the initilization of IDE subsystem must come before the environment one.
Successfully tested on QEMU x86.
---
common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
common/board_r.c +3 -3
@@ -806,6 +806,9 @@ static init_fnc_t init_sequence_r[] = {#ifdef CONFIG_MMC initr_mmc,#endif +#if defined(CONFIG_IDE ) + initr_ide, +#endif #ifdef CONFIG_HAS_DATAFLASH initr_dataflash,#endif
@@ -878,9 +881,6 @@ static init_fnc_t init_sequence_r[] = {#if defined(CONFIG_CMD_PCMCIA ) && !defined(CONFIG_IDE ) initr_pcmcia,#endif -#if defined(CONFIG_IDE ) - initr_ide, -#endif #ifdef CONFIG_LAST_STAGE_INIT INIT_FUNC_WATCHDOG_RESET /*
Signature · 1 line
2.13.1
Quoted 27 lines · Otavio Salvador
To allow the loading of environment from IDE (for example, using FAT) the initilization of IDE subsystem must come before the environment one.
Successfully tested on QEMU x86.
Signed-off-by Otavio Salvador <[email protected]>---
common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)common/board_r.c +3
-0@@ -806,6 +806,9 @@ static init_fnc_t init_sequence_r[] = {#ifdef CONFIG_MMC initr_mmc,#endif +#if defined(CONFIG_IDE ) + initr_ide, +#endif #ifdef CONFIG_HAS_DATAFLASH initr_dataflash,#endif
common/board_r.c static init_fnc_t init_sequence_r[] = { · line 886
Quoted 9 lines
common/board_r.c +0
-3@@ -878,9 +881,6 @@ static init_fnc_t init_sequence_r[] = {#if defined(CONFIG_CMD_PCMCIA ) && !defined(CONFIG_IDE ) initr_pcmcia,#endif -#if defined(CONFIG_IDE ) - initr_ide, -#endif #ifdef CONFIG_LAST_STAGE_INIT INIT_FUNC_WATCHDOG_RESET /*
Looking at the gap between these two areas, I see that we would initialize PCI between the two areas. So there's probably boards with PCI IDE devices that'll regress if I take this now. What's the answer? Long term, device model. Short term? Is there a specific upstream platform that you're seeing the problem or, or just custom / out of tree?
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170620/d7b14a5c/attachment.sig>
Quoted 37 lines · Tom Rini
Quoted 35 lines · Otavio Salvador
To allow the loading of environment from IDE (for example, using FAT) the initilization of IDE subsystem must come before the environment one.
Successfully tested on QEMU x86.
Signed-off-by Otavio Salvador <[email protected]>---
common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)common/board_r.c +3
-3@@ -806,6 +806,9 @@ static init_fnc_t init_sequence_r[] = {#ifdef CONFIG_MMC initr_mmc,#endif +#if defined(CONFIG_IDE ) + initr_ide, +#endif #ifdef CONFIG_HAS_DATAFLASH initr_dataflash,#endif @@ -878,9 +881,6 @@ static init_fnc_t init_sequence_r[] = {#if defined(CONFIG_CMD_PCMCIA ) && !defined(CONFIG_IDE ) initr_pcmcia,#endif -#if defined(CONFIG_IDE ) - initr_ide, -#endif #ifdef CONFIG_LAST_STAGE_INIT INIT_FUNC_WATCHDOG_RESET
Quoted 8 lines
common/board_r.c static init_fnc_t init_sequence_r[] = { · line 886
Quoted 1 line
common/board_r.c +0
-0/* Looking at the gap between these two areas, I see that we would initialize PCI between the two areas. So there's probably boards with PCI IDE devices that'll regress if I take this now. What's the answer? Long term, device model. Short term? Is there a specific upstream platform that you're seeing the problem or, or just custom / out of tree?
I am using this with QEMU. I enabled environment inside FAT and it needs the IDE fix so the environment is properly loaded.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
+Simon
Quoted 38 lines · Otavio Salvador
Quoted 37 lines · Tom Rini
Quoted 35 lines · Otavio Salvador
To allow the loading of environment from IDE (for example, using FAT) the initilization of IDE subsystem must come before the environment one.
Successfully tested on QEMU x86.
Signed-off-by Otavio Salvador <[email protected]>---
common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)common/board_r.c +3
-3@@ -806,6 +806,9 @@ static init_fnc_t init_sequence_r[] = {#ifdef CONFIG_MMC initr_mmc,#endif +#if defined(CONFIG_IDE ) + initr_ide, +#endif #ifdef CONFIG_HAS_DATAFLASH initr_dataflash,#endif @@ -878,9 +881,6 @@ static init_fnc_t init_sequence_r[] = {#if defined(CONFIG_CMD_PCMCIA ) && !defined(CONFIG_IDE ) initr_pcmcia,#endif -#if defined(CONFIG_IDE ) - initr_ide, -#endif #ifdef CONFIG_LAST_STAGE_INIT INIT_FUNC_WATCHDOG_RESET
Quoted 8 lines
Quoted 8 lines
common/board_r.c static init_fnc_t init_sequence_r[] = { · line 886
Quoted 1 line
common/board_r.c +0
-0/* Looking at the gap between these two areas, I see that we would initialize PCI between the two areas. So there's probably boards with PCI IDE devices that'll regress if I take this now. What's the answer? Long term, device model. Short term? Is there a specific upstream platform that you're seeing the problem or, or just custom / out of tree?
I agree with Tom. Eventually we need convert IDE driver to driver model.
Quoted 4 lines
I am using this with QEMU. I enabled environment inside FAT and it needs the IDE fix so the environment is properly loaded.
With driver model, IDE driver can be probed when U-Boot tries to load environment from IDE.
For short term, not sure if we can accept this, Simon?
Regards,
Bin
Hi Bin,
Quoted 55 lines · Bin Meng
+Simon
Quoted 38 lines · Otavio Salvador
Quoted 37 lines · Tom Rini
Quoted 35 lines · Otavio Salvador
To allow the loading of environment from IDE (for example, using FAT) the initilization of IDE subsystem must come before the environment one.
Successfully tested on QEMU x86.
Signed-off-by Otavio Salvador <[email protected]>---
common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)common/board_r.c +3
-3@@ -806,6 +806,9 @@ static init_fnc_t init_sequence_r[] = {#ifdef CONFIG_MMC initr_mmc,#endif +#if defined(CONFIG_IDE ) + initr_ide, +#endif #ifdef CONFIG_HAS_DATAFLASH initr_dataflash,#endif @@ -878,9 +881,6 @@ static init_fnc_t init_sequence_r[] = {#if defined(CONFIG_CMD_PCMCIA ) && !defined(CONFIG_IDE ) initr_pcmcia,#endif -#if defined(CONFIG_IDE ) - initr_ide, -#endif #ifdef CONFIG_LAST_STAGE_INIT INIT_FUNC_WATCHDOG_RESET Quoted 8 lines
Quoted 8 lines
common/board_r.c static init_fnc_t init_sequence_r[] = { · line 886
Quoted 1 line
common/board_r.c +0
-0/* Looking at the gap between these two areas, I see that we would initialize PCI between the two areas. So there's probably boards with PCI IDE devices that'll regress if I take this now. What's the answer? Long term, device model. Short term? Is there a specific upstream platform that you're seeing the problem or, or just custom / out of tree?
I agree with Tom. Eventually we need convert IDE driver to driver model.
Quoted 1 line
Quoted 8 lines
Quoted 3 lines
I am using this with QEMU. I enabled environment inside FAT and it needs the IDE fix so the environment is properly loaded.
With driver model, IDE driver can be probed when U-Boot tries to load environment from IDE.
For short term, not sure if we can accept this, Simon?
If it does not break qemu and any platforms that use IDE (without PCI) then I think it is fine.
It probably is not much work to convert IDE to driver model. Less if we can remove more users :-)
Regards,
Simon
Quoted 65 lines · Simon Glass
Hi Bin,
Quoted 62 lines · Bin Meng
+Simon
Quoted 38 lines · Otavio Salvador
Quoted 37 lines · Tom Rini
Quoted 35 lines · Otavio Salvador
To allow the loading of environment from IDE (for example, using FAT) the initilization of IDE subsystem must come before the environment one.
Successfully tested on QEMU x86.
Signed-off-by Otavio Salvador <[email protected]>---
common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)common/board_r.c +3
-3@@ -806,6 +806,9 @@ static init_fnc_t init_sequence_r[] = {#ifdef CONFIG_MMC initr_mmc,#endif +#if defined(CONFIG_IDE ) + initr_ide, +#endif #ifdef CONFIG_HAS_DATAFLASH initr_dataflash,#endif @@ -878,9 +881,6 @@ static init_fnc_t init_sequence_r[] = {#if defined(CONFIG_CMD_PCMCIA ) && !defined(CONFIG_IDE ) initr_pcmcia,#endif -#if defined(CONFIG_IDE ) - initr_ide, -#endif #ifdef CONFIG_LAST_STAGE_INIT INIT_FUNC_WATCHDOG_RESET Quoted 8 lines
Quoted 8 lines
common/board_r.c static init_fnc_t init_sequence_r[] = { · line 886
Quoted 1 line
common/board_r.c +0
-0/* Looking at the gap between these two areas, I see that we would initialize PCI between the two areas. So there's probably boards with PCI IDE devices that'll regress if I take this now. What's the answer? Long term, device model. Short term? Is there a specific upstream platform that you're seeing the problem or, or just custom / out of tree?
I agree with Tom. Eventually we need convert IDE driver to driver model.
Quoted 4 lines
I am using this with QEMU. I enabled environment inside FAT and it needs the IDE fix so the environment is properly loaded.
With driver model, IDE driver can be probed when U-Boot tries to load environment from IDE.
Quoted 7 lines
Quoted 1 line
For short term, not sure if we can accept this, Simon?
If it does not break qemu and any platforms that use IDE (without PCI) then I think it is fine.
It probably is not much work to convert IDE to driver model. Less if we can remove more users :-)
So, I see configs with both CONFIG_IDE and CONFIG_PCI set, so I'm not going to take this patch. We can move env on qemu easily enough I think. Sorry.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170622/5f4d81f9/attachment.sig>
Hello,
Am 23.06.2017 um 01:49 schrieb Tom Rini:
Quoted 59 lines · Simon Glass
Quoted 58 lines
Hi Bin,
Quoted 55 lines · Bin Meng
+Simon
Quoted 38 lines · Otavio Salvador
Quoted 37 lines · Tom Rini
Quoted 35 lines · Otavio Salvador
To allow the loading of environment from IDE (for example, using FAT) the initilization of IDE subsystem must come before the environment one.
Successfully tested on QEMU x86.
Signed-off-by Otavio Salvador <[email protected]>---
common/board_r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)common/board_r.c +3
-3@@ -806,6 +806,9 @@ static init_fnc_t init_sequence_r[] = {#ifdef CONFIG_MMC initr_mmc,#endif +#if defined(CONFIG_IDE ) + initr_ide, +#endif #ifdef CONFIG_HAS_DATAFLASH initr_dataflash,#endif @@ -878,9 +881,6 @@ static init_fnc_t init_sequence_r[] = {#if defined(CONFIG_CMD_PCMCIA ) && !defined(CONFIG_IDE ) initr_pcmcia,#endif -#if defined(CONFIG_IDE ) - initr_ide, -#endif #ifdef CONFIG_LAST_STAGE_INIT INIT_FUNC_WATCHDOG_RESET Quoted 8 lines
Quoted 8 lines
common/board_r.c static init_fnc_t init_sequence_r[] = { · line 886
Quoted 1 line
common/board_r.c +0
-0/* Looking at the gap between these two areas, I see that we would initialize PCI between the two areas. So there's probably boards with PCI IDE devices that'll regress if I take this now. What's the answer? Long term, device model. Short term? Is there a specific upstream platform that you're seeing the problem or, or just custom / out of tree?
I agree with Tom. Eventually we need convert IDE driver to driver model.
Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
I am using this with QEMU. I enabled environment inside FAT and it needs the IDE fix so the environment is properly loaded.
With driver model, IDE driver can be probed when U-Boot tries to load environment from IDE.
Yup, that would be the best.
Quoted 11 lines
Quoted 7 lines
Quoted 1 line
For short term, not sure if we can accept this, Simon?
If it does not break qemu and any platforms that use IDE (without PCI) then I think it is fine.
It probably is not much work to convert IDE to driver model. Less if we can remove more users :-)
So, I see configs with both
CONFIG_IDEandCONFIG_PCIset, so I'm not going to take this patch. We can move env on qemu easily enough I think. Sorry.
May a short workaround ...
Why not loading an env.txt over ide after U-Boot is up and import it?
bye,
Heiko
Signature · 2 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany