imx91: Using 768MBit LPDDR4 partially

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx91: Using 768MBit LPDDR4 partially

Jump to solution
429 Views
stoejs
Contributor II

Hello there,

I'm trying to get u-boot(-imx) running on my imx91 custom board. My requirement is to support different ram sizes, use the first 512 MiB and ignore the rest. I created a 512 MiB lpddr4 timing file and set 0x20000000 as the size, which is working fine.

When try to boot the same flash.bin file on a board with 768 MiB (12 Gbit) DDR, it does not boot past the SPL:

U-Boot SPL 2025.04-g56fb301b0da9-dirty (Nov 27 2025 - 13:04:08 +0100)
SOC: 0xa0009100
LC: 0x2040010
DDR: 1600MTS
ddr_init succeeded // custom print by me
Normal Boot
Trying to boot from BOOTROM
Boot Stage: USB boot
Find img info 0x88000000, size 416
Download 1661952, Total size 1662976


On the board with 512 MiB, the boot continues with

NOTICE:  TRDC init done
NOTICE:  BL31: v2.10.0	(release):automotive-15.0.0_1.3.0
NOTICE:  BL31: Built : 12:42:08, Sep  3 2025


U-Boot 2025.04-g56fb301b0da9-dirty (Nov 27 2025 - 11:44:55 +0100)

Reset Status: POR

Which made me think that imx-atf somehow does not accept the 768 MiB. What do you think? Do you have any idea how to debug this?

 

0 Kudos
Reply
1 Solution
343 Views
stoejs
Contributor II

Turns out, the nxp ddr tool only gets imx91 1.5Gb support in the next release, scheduled for 2025-12-25.

I created a timings file with 12Gbit density using the imx93 processor, edited the MTS and it runs with both the 512 MB and 768 MB DDR, assuming you'll only ever need 512 MB.

View solution in original post

0 Kudos
Reply
2 Replies
344 Views
stoejs
Contributor II

Turns out, the nxp ddr tool only gets imx91 1.5Gb support in the next release, scheduled for 2025-12-25.

I created a timings file with 12Gbit density using the imx93 processor, edited the MTS and it runs with both the 512 MB and 768 MB DDR, assuming you'll only ever need 512 MB.

0 Kudos
Reply
396 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

You should have a separate u-boot.imx for each board with different DDR size.

Best regards.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2250419%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eimx91%3A%20Using%20768MBit%20LPDDR4%20partially%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250419%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20there%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20get%20u-boot(-imx)%20running%20on%20my%20imx91%20custom%20board.%20My%20requirement%20is%20to%20support%20different%20ram%20sizes%2C%20use%20the%20first%20512%20MiB%20and%20ignore%20the%20rest.%20I%20created%20a%20512%20MiB%20lpddr4%20timing%20file%20and%20set%200x20000000%20as%20the%20size%2C%20which%20is%20working%20fine.%3C%2FP%3E%3CP%3EWhen%20try%20to%20boot%20the%20same%20flash.bin%20file%20on%20a%20board%20with%20768%20MiB%20(12%20Gbit)%20DDR%2C%20it%20does%20not%20boot%20past%20the%20SPL%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EU-Boot%20SPL%202025.04-g56fb301b0da9-dirty%20(Nov%2027%202025%20-%2013%3A04%3A08%20%2B0100)%0ASOC%3A%200xa0009100%0ALC%3A%200x2040010%0ADDR%3A%201600MTS%0Addr_init%20succeeded%20%2F%2F%20custom%20print%20by%20me%0ANormal%20Boot%0ATrying%20to%20boot%20from%20BOOTROM%0ABoot%20Stage%3A%20USB%20boot%0AFind%20img%20info%200x88000000%2C%20size%20416%0ADownload%201661952%2C%20Total%20size%201662976%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EOn%20the%20board%20with%20512%20MiB%2C%20the%20boot%20continues%20with%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ENOTICE%3A%20%20TRDC%20init%20done%0ANOTICE%3A%20%20BL31%3A%20v2.10.0%09(release)%3Aautomotive-15.0.0_1.3.0%0ANOTICE%3A%20%20BL31%3A%20Built%20%3A%2012%3A42%3A08%2C%20Sep%20%203%202025%0A%0A%0AU-Boot%202025.04-g56fb301b0da9-dirty%20(Nov%2027%202025%20-%2011%3A44%3A55%20%2B0100)%0A%0AReset%20Status%3A%20POR%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EWhich%20made%20me%20think%20that%20imx-atf%20somehow%20does%20not%20accept%20the%20768%20MiB.%20What%20do%20you%20think%3F%20Do%20you%20have%20any%20idea%20how%20to%20debug%20this%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2250574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx91%3A%20Using%20768MBit%20LPDDR4%20partially%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EYou%20should%20have%20a%20separate%20u-boot.imx%20for%20each%20board%20with%20different%20DDR%20size.%3C%2FP%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2255401%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx91%3A%20Using%20768MBit%20LPDDR4%20partially%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255401%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETurns%20out%2C%20the%20nxp%20ddr%20tool%20only%20gets%20imx91%201.5Gb%20support%20in%20the%20next%20release%2C%20scheduled%20for%202025-12-25.%3C%2FP%3E%3CP%3EI%20created%20a%20timings%20file%20with%2012Gbit%20density%20using%20the%20imx93%20processor%2C%20edited%20the%20MTS%20and%20it%20runs%20with%20both%20the%20512%20MB%20and%20768%20MB%20DDR%2C%20assuming%20you'll%20only%20ever%20need%20512%20MB.%3C%2FP%3E%3C%2FLINGO-BODY%3E