ATF - Black screen when Secure Boot enabled (SB_EN=1) fixed by setting NXP_ROM_RSVD to 0x8000

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

ATF - Black screen when Secure Boot enabled (SB_EN=1) fixed by setting NXP_ROM_RSVD to 0x8000

Jump to solution
454 Views
daviddg
Contributor II

Hi,

I've an issue with an ls1043a soc. When the secure boot is enabled (SB_EN=1 in rcw) with the fuse blown with the keys (but ITS=0), the console stay black...

When debugging with a Jtag device, it comes out that the i/esbc is stuck in a function that looks like a panic: "0x1d0: b 0x1d0". The Scratch status register seems not initialised (random or 0 value).

And after few days of debugging and tries, I finally fixed the issue by patching the file "plat/nxp/soc-ls1043a/soc.def", changing the value of "NXP_ROM_RSVD" to"0x8000" instead of "0x5900". Actually the same change as the one done to the ls1046a in the commit hash 41556d6b428d2ae4b265bb8a87125dfb3f5bd307 (on the qoriq-atf repo)...

So, my guess is that the ls1043a soc had his ROM code updated "recently" with one similar to the ls1046a and give an issue when booting with SB_EN=1 only (no problems if the secure boot is not enabled thought).... The soc we have was bought 3 weeks ago, so it's a recent one: LS1043AXE8QQB-SBRG2206-1N96N.

As I've also an ls1046a chip, if I revert that commit for the ls1046a def, the same behaviour as the ls1043a happens: Black screen and stuck at (almost) the same location with the same assembly code (panic).

So, could someone at NXP could just confirm me my guess is right and the issue is really fixed ?

Thanks.

Regards,

David.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
322 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello, 

The issue isn't related to the chip date(neither recent nor old) , there is a there is a known issue for LS1046a/43a since LSDK21.08. the patch you applied is the correct one as workaround for the mentioned issue.  

Regards.

View solution in original post

0 Kudos
Reply
3 Replies
323 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello, 

The issue isn't related to the chip date(neither recent nor old) , there is a there is a known issue for LS1046a/43a since LSDK21.08. the patch you applied is the correct one as workaround for the mentioned issue.  

Regards.

0 Kudos
Reply
260 Views
daviddg
Contributor II
Perfect then. Thanks for the investigation and confirmation

Is there an official patch somewhere ?
0 Kudos
Reply
409 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

I'm investigating your issue, I'll update here.

%3CLINGO-SUB%20id%3D%22lingo-sub-2188371%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EATF%20-%20Black%20screen%20when%20Secure%20Boot%20enabled%20(SB_EN%3D1)%20fixed%20by%20setting%20NXP_ROM_RSVD%20to%200x8000%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2188371%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI've%20an%20issue%20with%20an%20ls1043a%20soc.%20When%20the%20secure%20boot%20is%20enabled%20(SB_EN%3D1%20in%20rcw)%20with%20the%20fuse%20blown%20with%20the%20keys%20(but%20ITS%3D0)%2C%20the%20console%20stay%20black...%3C%2FP%3E%3CP%3EWhen%20debugging%20with%20a%20Jtag%20device%2C%20it%20comes%20out%20that%20the%20i%2Fesbc%20is%20stuck%20in%20a%20function%20that%20looks%20like%20a%20panic%3A%20%220x1d0%3A%20b%200x1d0%22.%20The%20Scratch%20status%20register%20seems%20not%20initialised%20(random%20or%200%20value).%3C%2FP%3E%3CP%3EAnd%20after%20few%20days%20of%20debugging%20and%20tries%2C%20I%20finally%20fixed%20the%20issue%20by%20patching%20the%20file%20%22plat%2Fnxp%2Fsoc-ls1043a%2Fsoc.def%22%2C%20changing%20the%20value%20of%20%22NXP_ROM_RSVD%22%20to%220x8000%22%20instead%20of%20%220x5900%22.%20Actually%20the%20same%20change%20as%20the%20one%20done%20to%20the%20ls1046a%20in%20the%20commit%20hash%26nbsp%3B41556d6b428d2ae4b265bb8a87125dfb3f5bd307%20(on%20the%20qoriq-atf%20repo)...%3C%2FP%3E%3CP%3ESo%2C%20my%20guess%20is%20that%20the%20ls1043a%20soc%20had%20his%20ROM%20code%20updated%20%22recently%22%20with%20one%20similar%20to%20the%20ls1046a%20and%20give%20an%20issue%20when%20booting%20with%20SB_EN%3D1%20only%20(no%20problems%20if%20the%20secure%20boot%20is%20not%20enabled%20thought)....%20The%20soc%20we%20have%20was%20bought%203%20weeks%20ago%2C%20so%20it's%20a%20recent%20one%3A%20LS1043AXE8QQB-SBRG2206-1N96N.%3C%2FP%3E%3CP%3EAs%20I've%20also%20an%20ls1046a%20chip%2C%20if%20I%20revert%20that%20commit%20for%20the%20ls1046a%20def%2C%20the%20same%20behaviour%20as%20the%20ls1043a%20happens%3A%20Black%20screen%20and%20stuck%20at%20(almost)%20the%20same%20location%20with%20the%20same%20assembly%20code%20(panic).%3C%2FP%3E%3CP%3ESo%2C%20could%20someone%20at%20NXP%20could%20just%20confirm%20me%20my%20guess%20is%20right%20and%20the%20issue%20is%20really%20fixed%20%3F%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EDavid.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2188371%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EQorIQ%20LS1%20Devices%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197504%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ATF%20-%20Black%20screen%20when%20Secure%20Boot%20enabled%20(SB_EN%3D1)%20fixed%20by%20setting%20NXP_ROM_RSVD%20to%200x8000%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197504%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPerfect%20then.%20Thanks%20for%20the%20investigation%20and%20confirmation%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20there%20an%20official%20patch%20somewhere%20%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2196898%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ATF%20-%20Black%20screen%20when%20Secure%20Boot%20enabled%20(SB_EN%3D1)%20fixed%20by%20setting%20NXP_ROM_RSVD%20to%200x8000%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2196898%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20issue%20isn't%20related%20to%20the%20chip%20date(neither%20recent%20nor%20old)%20%2C%20there%20is%20a%20t%3CSPAN%3Ehere%20is%20a%20known%20issue%20for%20LS1046a%2F43a%20since%20LSDK21.08.%20the%20patch%20you%20applied%20is%20the%20correct%20one%20as%20workaround%20for%20the%20mentioned%20issue.%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ERegards.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189506%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ATF%20-%20Black%20screen%20when%20Secure%20Boot%20enabled%20(SB_EN%3D1)%20fixed%20by%20setting%20NXP_ROM_RSVD%20to%200x8000%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189506%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EI'm%20investigating%20your%20issue%2C%20I'll%20update%20here.%3C%2FP%3E%3C%2FLINGO-BODY%3E