Do not release JR0 to NS as it can be used by HAB

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

Do not release JR0 to NS as it can be used by HAB

862 Views
mmader87
Contributor I

I am seeing the notice "Do not release JR0 to NS as it can be used by HAB" in SPL.

However, I do not understand what this means. I believe it has something to do with the Arm Trusted Firmware but I do not understand what I am supposed to do with this information or if it can be ignored.

U-Boot SPL 2024.04+g4afa334bd1+p0 (Jul 24 2024 - 11:13:33 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x0, pagesize 0x200, ivt offset 0x0
NOTICE: Do not release JR0 to NS as it can be used by HAB
NOTICE: BL31: v2.10.0 (release):lf-6.6.23-2.0.0
NOTICE: BL31: Built : 10:04:22, May 29 2024


I found the message is being printed in imx8m_caam.c

/* config CAAM JRaMID set MID to Cortex A */
if (mmio_read_32(CAAM_JR0MID) == HAB_JR0_DID) {
NOTICE("Do not release JR0 to NS as it can be used by HAB\n");
} else {
mmio_write_32(CAAM_JR0MID, CAAM_NS_MID);
}

0 Kudos
Reply
9 Replies

746 Views
mmader87
Contributor I

@JorgeCas- Do you need any further information to assist you in answering this question?

0 Kudos
Reply

733 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

No, I think I do not need additional information. Did you try to re-flash the image or switching to NTFS and verify helps with the issue?

Best regards.

0 Kudos
Reply

712 Views
mmader87
Contributor I

I am using the UUU tool to flash a kickstart (WKS) file. The WKS file does not support NTFS according the Yocto documentation. Is there a different partition type you recommend. The default boot partition fstype is vfat.

mmader87_0-1722509967291.png
* Screen shot source: https://docs.yoctoproject.org/ref-manual/kickstart.html

 

0 Kudos
Reply

705 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Could you please share the command you are using to flash the board?

The issue is not presented on our EVK.

Best regards.

0 Kudos
Reply

843 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Could you please share me which processor and BSP are you using?

I have seen this issue before and was caused by a wrong flash process or format the boot source using FAT32, switching to NTFS solved the issue.

Best regards.

0 Kudos
Reply

517 Views
mmader87
Contributor I

Hi @JorgeCas - Do you have any other thoughts on this? If not, can you elaborate more on how to use NTFS using the UUU tool? I do not believe this is a valid partition type for U-Boot.

0 Kudos
Reply

497 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

That change was on a SD card, in think there is not an option to do it in eMMC. In general, this is not issue since it is only notifying that HAB feature of i.MX8M family requires that JR0 is reserved exclusively in S-only world.

Best regards.

0 Kudos
Reply

702 Views
mmader87
Contributor I

I am using 'sudo uuu uuu.auto' where the contents of uuu.auto are as follows

 

```

uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f <image_name>.bin-flash_evk

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f <image_name>.bin-flash_evk

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f <image_name>.bin-flash_evk -offset 0x57c00
SDPU: jump
# }

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f <image_name>.bin-flash_evk -skipspl
SDPV: jump
# }

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all <image_name>rootfs.wic.zst/*
FB: flash bootloader <image_name>.bin-flash_evk
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: done
```

0 Kudos
Reply

835 Views
mmader87
Contributor I

I am using the IMX8M Plus processor and the latest NXP Scarthgap Yocto package

0 Kudos
Reply