dh_imx6: Switch to full DM-aware
PATCH 3/16 dh_imx6: Switch to full DM-aware
Quoted 3 lines · Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option.
Build fine, but not tested.
Hello,
due to memory limitations in the SRAM of the i.MX6S in SPL we have not used the device tree. Have the restrictions been removed in the meantime? We need a single binary for the i.MX6 q/d/dl/s variants of our system on module.
I think this patch breaks the board support for our module.
regards,
Ludwig Zenz
Quoted 50 lines
Cc Ludwig Zenz <[email protected]>Cc Andreas Geisreiter <[email protected]>Signed-off-by Jagan Teki <[email protected]>--- configs/dh_imx6_defconfig | 3 +++ include/configs/dh_imx6.h | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-)configs/dh_imx6_defconfig +3
-0@@ -49,12 +49,14 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_TIME=y CONFIG_CMD_EXT4_WRITE=y CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="imx6q-dhcom-pdk2" CONFIG_OF_LIST="imx6q-dhcom-pdk2 imx6dl-dhcom-pdk2" CONFIG_MULTI_DTB_FIT=y CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_SPL_DM=y CONFIG_DWC_AHSATA=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_DM_I2C=y@@ -100,4 +102,5 @@ CONFIG_CI_UDC=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_WATCHDOG_TIMEOUT_MSECS=60000 CONFIG_IMX_WATCHDOG=y +# CONFIG_SPL_WDT is not set CONFIG_BZIP2=yinclude/configs/dh_imx6.h +0
-7@@ -53,12 +53,6 @@/* SATA Configs */ #define CONFIG_LBA48 -/* SPI Flash Configs */ -#if defined(CONFIG_SPL_BUILD ) -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH -#endif -/* UART */ #define CONFIG_MXC_UART #define CONFIG_MXC_UART_BASE UART1_BASE --2.25.1
PATCH 3/16 dh_imx6: Switch to full DM-aware
Quoted 10 lines · Ludwig Zenz
Quoted 3 lines · Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option.
Build fine, but not tested.
Hello,
due to memory limitations in the SRAM of the i.MX6S in SPL we have not used the device tree. Have the restrictions been removed in the meantime? We need a single binary for the i.MX6 q/d/dl/s variants of our system on module.
I think this patch breaks the board support for our module.
I _think_ i.MX is making use of the generic hooks to cause build time failures when we grow too large. And we have addressed some, but not all of the concerns about DM size. Can you please test this patch? If it doesn't work doing:
Quoted 7 lines
Quoted 7 lines
include/configs/dh_imx6.h +0
-0@@ -53,12 +53,6 @@/* SATA Configs */ #define CONFIG_LBA48
Quoted 5 lines
include/configs/dh_imx6.h line 60
Quoted 5 lines
include/configs/dh_imx6.h +0
-5-/* SPI Flash Configs */ -#if defined(CONFIG_SPL_BUILD ) -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH -#endif
is still needed as we have a symbol to control DM SPI in SPL directly so the above isn't doing what you imply you want. Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200622/0dbcbe04/attachment.sig>
Quoted 23 lines · Tom Rini
Quoted 10 lines · Ludwig Zenz
Quoted 3 lines · Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option.
Build fine, but not tested.
Hello,
due to memory limitations in the SRAM of the i.MX6S in SPL we have not used the device tree. Have the restrictions been removed in the meantime? We need a single binary for the i.MX6 q/d/dl/s variants of our system on module.
I think this patch breaks the board support for our module.
I _think_ i.MX is making use of the generic hooks to cause build time failures when we grow too large. And we have addressed some, but not all of the concerns about DM size. Can you please test this patch? If it doesn't work doing:
Quoted 8 lines
Quoted 8 lines
include/configs/dh_imx6.h +0
-0@@ -53,12 +53,6 @@/* SATA Configs */ #define CONFIG_LBA48
Quoted 9 lines
Quoted 5 lines
include/configs/dh_imx6.h line 60
Quoted 5 lines
include/configs/dh_imx6.h +0
-5-/* SPI Flash Configs */ -#if defined(CONFIG_SPL_BUILD ) -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH -#endif is still needed as we have a symbol to control DM SPI in SPL directly so the above isn't doing what you imply you want. Thanks!
With the above patch the board hangs after printing "U-Boot SPL 2020.07-rc5-38776-g922c6d5d009-dirty (Jun 25 2020 - 16:34:23 +0200)".
Through some debugging i found the board hangs on calling gpio_request() in dhcom_get_ddr3_code().
Just for testing I skipped dhcom_get_ddr3_code and hardcoded the DDR3 size. Then I get:
Missing DTBfdtdec_setup() returned error -1
### ERROR ### Please RESET the board ###
Unfortunately I have not found out how the SPL should load the devicetree. Can you give me a hint for this?
regards,
Ludwig
PATCH 3/16 dh_imx6: Switch to full DM-aware
Quoted 38 lines · Ludwig Zenz
Quoted 23 lines · Tom Rini
Quoted 10 lines · Ludwig Zenz
Quoted 3 lines · Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option.
Build fine, but not tested.
Hello,
due to memory limitations in the SRAM of the i.MX6S in SPL we have not used the device tree. Have the restrictions been removed in the meantime? We need a single binary for the i.MX6 q/d/dl/s variants of our system on module.
I think this patch breaks the board support for our module.
I _think_ i.MX is making use of the generic hooks to cause build time failures when we grow too large. And we have addressed some, but not all of the concerns about DM size. Can you please test this patch? If it doesn't work doing:
Quoted 8 lines
Quoted 8 lines
include/configs/dh_imx6.h +0
-0@@ -53,12 +53,6 @@/* SATA Configs */ #define CONFIG_LBA48 Quoted 9 lines
Quoted 5 lines
include/configs/dh_imx6.h line 60
Quoted 5 lines
include/configs/dh_imx6.h +0
-5-/* SPI Flash Configs */ -#if defined(CONFIG_SPL_BUILD ) -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH -#endif is still needed as we have a symbol to control DM SPI in SPL directly so the above isn't doing what you imply you want. Thanks!
With the above patch the board hangs after printing "U-Boot SPL 2020.07-rc5-38776-g922c6d5d009-dirty (Jun 25 2020 - 16:34:23 +0200)".
Through some debugging i found the board hangs on calling
gpio_request()indhcom_get_ddr3_code().
Quoted 7 lines
Just for testing I skipped
dhcom_get_ddr3_codeand hardcoded the DDR3 size. Then I get:Missing DTB
fdtdec_setup()returned error -1
### ERROR ### Please RESET the board ###Unfortunately I have not found out how the SPL should load the devicetree. Can you give me a hint for this?
Ah, so you've not done any SPL DM migration.
So there's two paths here. Path 1, the config header snippet that got things rolling here does need to be removed as "no DM SPI in SPL" means CONFIG_SPL_DM_SPI=n and not "CONFIG_DM_SPI=n if CONFIG_SPL_BUILD". We are not now, and are not at the point where we can say we will be at some future point, saying everyone must use DM in SPL. You may want to examine the .config you get today from running dh_imx6_defconfig and seeing what can/should be disabled, if anything, that's an unexpected enabled option. Path 2, look at something like mx6cuboxi and convert to CONFIG_SPL_DM=y
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200625/7b477e8f/attachment.sig>
PATCH 3/16 dh_imx6: Switch to full DM-aware
In reply to Ludwig ZenzHi Ludwig,
Quoted 39 lines · Ludwig Zenz
Quoted 23 lines · Tom Rini
Quoted 10 lines · Ludwig Zenz
Quoted 3 lines · Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option.
Build fine, but not tested.
Hello,
due to memory limitations in the SRAM of the i.MX6S in SPL we have not used the device tree. Have the restrictions been removed in the meantime? We need a single binary for the i.MX6 q/d/dl/s variants of our system on module.
I think this patch breaks the board support for our module.
I _think_ i.MX is making use of the generic hooks to cause build time failures when we grow too large. And we have addressed some, but not all of the concerns about DM size. Can you please test this patch? If it doesn't work doing:
Quoted 8 lines
Quoted 8 lines
include/configs/dh_imx6.h +0
-0@@ -53,12 +53,6 @@/* SATA Configs */ #define CONFIG_LBA48 Quoted 9 lines
Quoted 5 lines
include/configs/dh_imx6.h line 60
Quoted 5 lines
include/configs/dh_imx6.h +0
-5-/* SPI Flash Configs */ -#if defined(CONFIG_SPL_BUILD ) -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH -#endif is still needed as we have a symbol to control DM SPI in SPL directly so the above isn't doing what you imply you want. Thanks!
With the above patch the board hangs after printing "U-Boot SPL 2020.07-rc5-38776-g922c6d5d009-dirty (Jun 25 2020 - 16:34:23 +0200)".
Through some debugging i found the board hangs on calling
gpio_request()indhcom_get_ddr3_code().
Quoted 7 lines
Just for testing I skipped
dhcom_get_ddr3_codeand hardcoded the DDR3 size. Then I get:Missing DTB
fdtdec_setup()returned error -1
### ERROR ### Please RESET the board ###Unfortunately I have not found out how the SPL should load the devicetree. Can you give me a hint for this?
The device tree is normally appended to SPL, so it is located by fdtdec_setup() at __bss_end. See board_fdt_blob_setup().
Regards,
Simon
PATCH 3/16 dh_imx6: Switch to full DM-aware
In reply to Ludwig ZenzQuoted 11 lines · Ludwig Zenz' via Amarula Linux
Quoted 3 lines · Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option.
Build fine, but not tested.
Hello,
due to memory limitations in the SRAM of the i.MX6S in SPL we have not used the device tree. Have the restrictions been removed in the meantime? We need a single binary for the i.MX6 q/d/dl/s variants of our system on module.
I think this patch breaks the board support for our module.
Have you tried platdata on SPL side?
Jagan.
Quoted 9 lines · Jagan Teki
Quoted 8 lines · Ludwig Zenz' via Amarula Linux
Quoted 3 lines · Jagan Teki
Enable DM_SPI/DM_SPI_FLASH with a related config option.
Build fine, but not tested.
Hello,
Quoted 8 lines
Quoted 3 lines
due to memory limitations in the SRAM of the i.MX6S in SPL we have not used the device tree. Have the restrictions been removed in the meantime? We need a single binary for the i.MX6 q/d/dl/s variants of our system on module.
I think this patch breaks the board support for our module.
Have you tried platdata on SPL side?
Jagan.
Hello Jagan,
I tested it briefly but it didn't work immediately and I didn't have the time to investigate it further.
Can you reference a board, which has already implemented this?
regards,
Ludwig