Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
HSE 108.0 HEXイメージを使用した仮想ECUレベル4でMACが生成されませんでした 説明 私たちはGMプログラム向けのレベル4仮想ECU(vECU)について、 Synopsys社と協力しています。 最新のHSE統合では、 HSEバージョン108.0を採用しました。 仮想環境での検証中に、HSEイメージのフォーマットによって異なる挙動が観察されました。 HSEエンベロープフォーマット HSE画像サイズ:約157KB HSEは仮想環境に正常にロードされました。 MACアドレスが正常に生成されました。 CYS情報ブロックは想定どおりに初期化されました。 2. HSE HEX形式 HSE画像サイズ:約378KB HSEイメージが仮想環境にロードされます。 しかし、 MACは生成されません。 MAC生成が行われていないため、 CYS情報ブロックは初期化されません。 Synopsys-GMとの話し合いに基づき、既存の PFLASH_iROMスクリプトを新しいHSE HEX画像形式にサポートし/採用するために更新する必要があると理解しています。 要求 仮想環境で発生している問題について話し合い、新しいHEXベースのHSEイメージをサポートするために必要なPFLASH_iROMスクリプト/設定の変更点について理解を深めたいと考えています。 9月4日午前9時(EST)にディスカッションの予定を組めますか?/ご都合の良い時間をお伝えください 議論中に問題を実演し、エンベロープフォーマットとHEXフォーマットの挙動を比較することができます。 環境: プログラム:GM EAGM プラットフォーム:レベル4バーチャルECU MCU:NXP S32K388 HSEバージョン:108.0 仮想化環境:Synopsys 問題領域: PFLASH_iROM スクリプトの更新 Re: MAC Not Generated in Virtual ECU Level 4 with HSE 108.0 HEX Image こんにちは、 @DhilipRaja91さん 現在使用されているHSE FWのバージョンはプレミアムバージョンであることにご注意ください。このサポートチャネルを通じたファームウェアのサポートは、自動車ソフトウェアに伴うセキュリティ制限のため必要な情報にアクセスできないため、当院の範囲外です。 このマターに関してさらにご支援いただく場合は、NXPの担当者までご連絡いただくようお願いいたします。適切なサポートと指導を提供できるでしょう。 ご理解とご協力に感謝いたします。 BR、VaneB
View full article
i.MX 95のISPチューニング 私が働いている会社は、Wi-Fi対応の内視鏡を設計しています。私たちはi.MX8Mを使用して概念実証(POC)をテストしました。使用したカメラモジュールには独自のISPがあったので、i.MX8Mを使えました。 今後は、独自のISPを搭載しているi.MX95を使用したいと考えています。しかし、使用したいイメージセンサがi.MX95 ISPカメラ互換性ガイド。OV2740かOH02A10のどちらかを使う予定です。 これらのセンサにはi.MX95 ISPを使う方法についてアドバイスをください。 Re: ISP tuning of i.MX 95 i.MX95上のOV2740やOH02A10の場合、センサはカスタムまたはサポートされていないISPのブリングアップとして扱い、すぐに使えるカメラモジュールとして扱うべきではありません。互換性ガイドにないという理由でアーキテクチャの選択をブロックするつもりはありませんが、ドライバー、デバイスツリー、メディアグラフ、ISPチューニングの作業は計画します。 要点: 項目 ガイダンス 互換性ガイドのステータス 取得したi.MX95 ISPカメラ互換性ガイドには、OmniVision OS08A20、OX05B1S、OX03C10、Onsemi AR0144などのNXP対応センサと、いくつかのパートナー対応センサがリストに掲載されています。ガイド、i.MX95ファミリドキュメント、ウェブ/コミュニティパスを確認した後、OV2740やOH02A10はリストから取得できませんでした。 i.MX95 ISP機能 i.MX95の統合ISPはマルチセンサー利用と最大500 MPixel/sの集計処理性能をサポートしているため、センサーインターフェースと帯域幅が合えばRAWカメラパイプラインにもアーキテクチャ的に適しています。 新しいセンサが実用的な理由とは何か NXPのガイダンスでは、まだサポートされていないセンサーも、RAWバイヤー出力と互換性があり、Linuxカメラサブシステムに従うV4L2/メディアコントローラーを用いて移植可能とされています。UG10215は必要な統合開発の基準となります。 ISPパス RAWカメラは、生センサー出力のデコードとポストプロセッシングにi.MX95 NEO-ISPが必要です。 必要な作業 UG10215必要な分野をカバーしています:i.MX95カメラ帯域幅計算、Linuxカーネルのイネーブルメント、新しいセンサ用のlibcamera CameraHelperの実装、ISP/uGuzzi IPA設定ファイルの更新、コンパイル・更新、キャリブレーションファイル生成、そしてuGuzzi IPA構成への新しいセンサの追加。 チューニング要件 uGuzzi IPAは、動的チューニングパラメータ(DTP)ファイルでセンサー固有のチューニングデータを使用します。したがって、新しいOV2740/OH02A10設計には、センサーストリーミングだけでなくISPのチューニング/キャリブレーション作業も含めるべきです。 私のおすすめは: スケジュールリスクが重要な場合は、i.MX95 ISP互換性ガイドに既に記載されているセンサーを好むでしょう。これらのモジュールはBSPやソフトウェアパックのイネーブルメントとISPチューニングの検証済みの資料が付いているからです。 内視鏡の光学系/形状でOV2740またはOH02A10が必要な場合は、i.MX95を使用しますが、カスタムカメラポートとして指定してください。 正確なセンサーモードを確認してください:解像度、フレームレート、RAWバイエルビット深度、レーン数、レーンレート、MIPI CSI-2タイミング、埋め込みデータ使用量; UG10215の帯域幅計算フローを使用して、i.MX95のCSI/ISP帯域幅を検証します。 Linux V4L2サブデバイスドライバーの開発または適応、 デバイスツリーエンドポイントおよびメディアコントローラーリンクを作成し、 CameraHelperを含むlibcameraのサポートを実装・更新してください; レンズ+センサ+照明環境向けのISPキャリブレーション/チューニングファイルを生成します。 医療用途の照明範囲での画像品質を検証します。 OV2740のLinuxドライバだけで十分だとは思わないでください。 i.MX93上のOV2740に関する類似のNXPコミュニティのケースでは、現在のBSP/デバイスツリー/ドライバがそのセンサーに対応しておらず、カスタムドライバー/デバイスツリー作業が必要であることが示されました。これはi.MX93ではなくi.MX93ですが、「センサーにドライバーがある」といえ「プラットフォームISP対応」とは限らないという点は有用な注意点です。 2つのセンサーのうち、互換性リストよりも、どのベンダーやモジュールサプライヤーがセンサーブロードアップパッケージを完全に提供できるかを重視します。つまり、正確なモードのレジスタテーブル、MIPIタイミング、レンズ/シェーディングデータ、カラーキャリブレーションターゲット、ISPチューニングのサポートなどです。生産用内視鏡の場合、最大のリスクは基本的なCSI撮影ではない可能性が高いです。照明、温度、レンズの変動、製造範囲の広がりにおいて安定したISP画像品質を達成することです。 結論として、OV2740/OH02A10は互換性証拠から見てプラグアンドプレイのi.MX95 ISP選択肢ではありません。完全なi.MX95 RAWバイエルセンサーポートとISPチューニングの予算を負担し、UG10215を使った最適化を行わない限り、実現可能な候補です。
View full article
关于对 IMX95 FRDM 板上的 CAN 驱动程序的支持。 您好, 我目前正在研究 i.MX95 15x15 FRDM # https://www.nxp.com/design/design-center/development-boards-and-designs/FRDM-IMX95 平台,并 在 Cortex-A55 内核上 运行 FreeRTOS 。 我正在尝试从 A55 内核启动并启用 CAN 接口。我正在寻找任何参考实现、示例项目、驱动程序代码或可用的代码库,以演示如何在 A55 内核上运行 FreeRTOS 时初始化和使用 i.MX95 上的 CAN 控制器。 我已经尝试参考 Yocto/Linux CAN 驱动程序和设备树源代码。然而,我在正确配置和路由 CAN 接口时遇到了困难,主要原因是以下几个方面: SCMI 配置 邮箱通讯 来自 I2c 的引脚复用 (IOMUX) CAN 控制器初始化和时钟/资源配置 由于这些依赖关系,很难直接将 Linux/Yocto 驱动程序和 DTB 配置适配到我的 FreeRTOS 环境中。 如果恩智浦能够提供或指引我获取以下信息,将对我非常有帮助: 任何演示在 i.MX95 A55 内核上启动 CAN 的 FreeRTOS 示例。 i.MX95 15x15 FRDM 的参考 CAN 驱动程序或电路板支持包代码。 示例展示了从 A55 内核启用 CAN 所需的 SCMI 和邮箱配置。 任何有关配置 CAN 所需的引脚复用、时钟和资源的文档或参考资料。 任何可用的参考代码、SDK示例或指导都将不胜感激。 感谢您的支持。 Re: Regarding support for the CAN driver on the IMX95 FRDM board. 你好, 有关 A55 上的 RTOS 以及在其上测试 CAN,请参阅 zephyr 文档。 https://docs.zephyrproject.org/latest/boards/nxp/imx95_evk_15x15/doc/index.html https://docs.zephyrproject.org/latest/build/dts/api/bindings/can/nxp%2Cflexcan-fd.html#std-dtcompatible-nxp-flexcan-fd 此致, 志明
View full article
IMX95 FRDMボード上のCANドライバのサポートについて。 こんにちは、 現在、 i.MX95 15x15 FRDM # https://www.nxp.com/design/design-center/development-boards-and-designs/FRDM-IMX95 プラットフォームを扱い、 Cortex-A55コア上でFreeRTOS を実行し ています 。 A55コアからCANインターフェースを呼び出して有効化しよう としています。 i.MX95上でFreeRTOSを動かす際にCANコントローラーを初期化・使用する方法を示す リ ファレンス実装、例プロジェクト、ドライバーコード、または利用可能なコードベース を探しています。 すでにYocto/LinuxのCANドライバーやデバイスツリーのソースを参照してみました。しかし、主に以下の要素が関与しているため、CANインターフェースの適切な設定とルーティングに困難を感じています。 SCMI構成 メールボックス通信 I2Cからのピン多重化(IOMUX) CANコントローラの初期化とクロック/リソース設定 これらの依存関係のため、Linux/YoctoのドライバーやDTB設定をFreeRTOS環境に直接適応させるのは難しいです。 もしNXPが以下の場所を提供していただけると非常に助かります。 i.MX95 A55コアでCANブリングアップを実証したFreeRTOSの例があれば教えてください。 i.MX95 15x15 FRDMのCANドライバまたはBSPコードの参照です。 A55コアからCANを有効にするために必要なSCMIおよびメールボックス構成の例。 CANに必要なピンマルチパクシング、クロック、リソースの設定に関するドキュメントや参考資料があれば教えてください。 利用可能な参考コード、SDKの例、またはガイダンスがあれば大変ありがたいです。 再開まで今しばらくお待ちください。 Re: Regarding support for the CAN driver on the IMX95 FRDM board. こんにちは、 A55のRTOSおよびCANテストについては、zephyrのドキュメントを参照してください。 https://docs.zephyrproject.org/latest/boards/nxp/imx95_evk_15x15/doc/index.html https://docs.zephyrproject.org/latest/build/dts/api/bindings/can/nxp%2Cflexcan-fd.html#std-dtcompatible-nxp-flexcan-fd よろしくお願いします、 志明
View full article
[RTD600 IP] S32K3X8EVB-Q289 & FRDM-A-S32K358 Standby RTC GPIO Wake-up This example project will show user how to use and configure the basic functionalities of WKPU + SIUL2 (GPIO) for wake-up from Standby mode on the S32K358 MCU, with RTC time preservation across Standby and functional reset clock sourced through SIRC. Test HW: FRDM-A-S32K358 / S32K3X8EVB-Q289 MCU: S32K358 IDE: S32DS v3.5 & S32DS v3.6.x SDK release: RTD 6.0.0 Debugger: PE Micro Target: internal_FLASH This example routine configures the WKPU unit for GPIO interrupt wake-up using pins PTH1 (WKPU0) and PTH3 (WKPU15). RTC time is preserved across Standby via the VDDBY supply domain. After wake-up, the functional reset clock is sourced from SIRC before transitioning to the main PLL. No fast wake-up path is used. The routine waits for SW5 to be pressed, then turns off the green LED, and enters Wkpu_EnterStandby() function which: Switches core clock to FIRC. Initializes the WKPU instance. Configures WKPU0 (PTH1) and WKPU15 (PTH3) as wake-up sources. Enters Standby mode (normal wake-up). After pressing USER0/SW4(PTH1), MCU wakes up, resets and polls for USER1/SW5 (PTH3)  or USER0/SW4(PTH1) to be pressed again. Terminal output Settings: 115200 baud — 8 data bits — No parity — 1 stop bit — No flow control (LPUART6) The terminal interaction follows three distinct phases each cycle: boot/wake-up banner → SW6 to read RTC time → SW5 to enter Standby. A representative session is shown below. 1 — Initial power-on (cold start) RTC Standby example, press SW5 to enter standby......... Press SW6 to print RTC date & time......... Reset reason: 15 Current RTC date & time: year 1970 month 1 day 1 hour 0 minutes 0 seconds 0 Current RTC date & time: year 1970 month 1 day 1 hour 0 minutes 0 seconds 2 2 — Enter Standby → Wake-up → RTC time preserved MCU will enter standby........ RTC Standby example, press SW5 to enter standby......... Press SW6 to print RTC date & time......... Reset reason: 28 Current RTC date & time: year 1970 month 1 day 1 hour 0 minutes 0 seconds 13 Current RTC date & time: year 1970 month 1 day 1 hour 0 minutes 0 seconds 14 Current RTC date & time: year 1970 month 1 day 1 hour 0 minutes 0 seconds 14 3 — Multiple Standby cycles (RTC keeps incrementing) MCU will enter standby........ RTC Standby example, press SW5 to enter standby......... Press SW6 to print RTC date & time......... Reset reason: 28 Current RTC date & time: year 1970 month 1 day 1 hour 0 minutes 0 seconds 59 Current RTC date & time: year 1970 month 1 day 1 hour 0 minutes 1 seconds 0 MCU will enter standby........ RTC Standby example, press SW5 to enter standby......... Press SW6 to print RTC date & time......... Reset reason: 28 Current RTC date & time: year 1970 month 1 day 1 hour 0 minutes 1 seconds 4 Current RTC date & time: year 1970 month 1 day 1 hour 0 minutes 1 seconds 6 Disclaimer — PTH3 pin on S32K3X8EVB-Q289: The EVB button mapped to PTH3 may fail to trigger a wake-up event. This is caused by the button connected to the VDD_HV_B (3.3 V) rail, while PTH3 belongs to the VDD_HV_A domain, which defaults to 5 V. The signal level mismatch prevents correct wake-up detection. Workaround: switch Jumper J23 from position 1-2 (default, 5 V) to position 2-3 (3.3 V) to align VDD_HV_A with the button voltage level before testing wake-up via PTH3. This example is provided as is with no guarantees and no support.
View full article
Example S32K358 GMAC lwIP FreeRTOS RDBESS S32DS 3.6.1 RTD600 * Detailed Description: * Updated the example lwip_FreeRTOS_s32K358 to enable pinging the lwIP stack from the command window * on the board RD-BESSK358BMU * *ping 192.168.0.209 * *Pinging 192.168.0.209 with 32 bytes of data: *Reply from 192.168.0.209: bytes=32 time=2ms TTL=255 *Reply from 192.168.0.209: bytes=32 time=1ms TTL=255 *Reply from 192.168.0.209: bytes=32 time=1ms TTL=255 *Reply from 192.168.0.209: bytes=32 time=1ms TTL=255 * *Ping statistics for 192.168.0.209: * Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), *Approximate round trip times in milli-seconds: * Minimum = 1ms, Maximum = 2ms, Average = 1ms * * * RD-BESSK358BMU: * - All jumpers in default positions * - SW2 needs to be ON * * Configuration: * - Updated pin configuration * - Updated GMAC clocks * - IP address set to 192.168.0.209 and enabled UDP_ECHO, etc. * - Eth_43_GMAC: configured for RGMII 1G * - Added DIO * * main.c * - Updated only the header * * device.c * - Added RTD workaround for DCMRWF* registers * * test.c * - Commented out the code that shuts down the TCP/IP stack after its predefined timeout * - Added LED task * * ------------------------------------------------------------------------------------------------ * Test HW: RD-BESSK358BMU SCH-91654 REV B1 * MCU: S32K358 * Debugger: Lauterbach Trace32 * Target: internal_FLASH * EVB connection: RJ45 <-> USB-to-Ethernet adapter <-> Laptop DELL, Windows 11
View full article
IMX95:MIPI DSIとデュアルチャネルLVDSを搭載したディスプレイ こんにちは、 DSIとデュアルチャンネルLVDSの両方に異なるソースを同時に出力することはできますか? これがサポートされている場合、設定方法はどのようにすればよいですか? IMX95マニュアルとデバイスツリーを参照しましたが、pixel_interleaver、LDB、MIPI-DSIの関連性が理解できません。 ありがとう。 Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS 通常のi.MX95 BSP/デバイスツリーモデルの場合、独立したMIPI-DSIディスプレイとデュアルチャネルLVDSディスプレイを同時に駆動する計画はありません。 制限点は表示出力のルーティングです。i.MX95ディスプレイコントローラは2つの独立した表示出力ストリームを持ち、デュアルチャネルLVDSは2つのLVDS側パスを消費するため、標準構成ではMIPI-DSI用の空き入力パスがありません。 重要なニュアンスがあります。NXPコミュニティ知識ベース項目では、LF-6.6.52-2.2.0向けのi.MX95トリプルディスプレイLinuxパッチ(「1 MIPI DSI + 2 LVDS」対応)と、imx95-19x19-evk-triple-display-lvds-clone.dtb という名前のDTBが挙げられていますおよび imx95-19x19-evk-triple-display-lvds-interleaver.dtb 。これは 特定のパッチ適用済みEVK/BSPユースCASE として扱うべきであり、未修正の リファレンス・マニュアル やデバイスツリーが任意の独立したDSI + デュアルチャネルLVDSルーティングをサポートしている証拠としては扱うべきではありません。 その関連性は概ね以下の通りである。 ブロック 表示パスにおける役割 ディスプレイエンジン/DPU出力 2つの表示ストリーム、DISP_IN0とDISP_IN1を生成します。 ピクセルインターリーバー これらのストリームをルーティングまたは分割します。バイパスモードでは、DISP_IN0 は PL_OUT0 に、DISP_IN1 は PL_OUT1 に送られます。インターリーバモードでは、選択された入力ストリームの 1 つがインターリーブされ、もう 1 つの入力はバイパスされます。 LVDS / LDB / ピクセルマッパー i.MX95 LVDSパスは1つまたは2つのディスプレイインターフェースストリームを受け取り、LVDS PHYを駆動します。RMはLVDS PHY1およびLVDS PHY2を駆動するピクセルマッパーを記述しています。Linuxやデバイスツリーの命名方法では「LDB」を使うこともありますが、i.MX95のアーキテクチャ上、これはピクセルインターリーバー/ピクセルマッパーの背後にあるLVDSの出力パスです。 MIPI-DSI DSIはピクセルリンクパスを通じてピクセルデータを処理します。DSIピクセルフォーマットブロックはピクセルリンクフォーマットをDSIホストDPIフォーマットに変換し、DSIピクセルリンク制御フィールドはDSIホストコントローラにコネクテッドされたピクセルリンクを選択します。 標準的な構成の場合: シングルチャネルLVDS + MIPI-DSI:実現可能;一方の表示出力パスはLVDSに、もう一方はDSIに供給可能です。 デュアルチャネルLVDSのみ:実現可能;両方のLVDSチャネルはLVDS表示のために一緒に使用されます。 独立したMIPI-DSI + デュアルチャネルLVDS:現在の証拠で説明されている標準ルーティングにはサポートされていません。NXPコミュニティの分析によると、デュアルチャネルLVDSは利用可能なDPU出力ポートの両方を予約するため、MIPI-DSIを同時にルーティングすることはできません。 設定に関しては、pixel_interleaverレジスタの値だけを手動で変更してこの問題を解決しようとはしない方が良いでしょう。Linuxでは、ルーティングはDRMデバイスツリーグラフによって確立されます。DPU/ディスプレイピクセルリンクエンドポイントはLVDS/LDBまたはMIPI-DSIのいずれかに接続する必要があります。DSIノードに有効な上りエンドポイントがない場合、ドライバはimx95-mipi-dsi ...などのエラーを報告します。有効な入力エンドポイントは検出されません。サポートされている設定の場合は、対応するBSP DTB/オーバーレイを使用してください。 LVDS専用:意図されたLVDSチャネル/モードにLVDS DTBを使用します。 DSI専用:DSIパネル/ブリッジDTBを使用してください。 シングルLVDS + DSI: 一方のピクセルリンク出力をLVDSに、もう一方をDSIにルーティングします。 トリプルディスプレイ / DSI + 2 LVDS: NXP LF-6.6.52-2.2.0 トリプルディスプレイパッチセットと付属の DTB から始めてください。ただし、そのパッチセットが BSP および EVK のベースラインと一致する場合に限ります。 結論として、通常のi.MX95 BSPでは、デュアルチャネルLVDSまたはDSI + シングルチャネルLVDSのいずれかを使用します。DSIと2つのLVDS出力の場合は、RMレジスタだけから導き出すのではなく、特定のNXPトリプルディスプレイパッチフローを使いましょう。 Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS ご回答ありがとうございます。私は多くのことを学びました。 この機能は必要ありません。これをやりたい理由は、ターゲットボードには2ch-lvdsとmipi-dsiの2つのインターフェースがあるのですが、ディスプレイをテストするために毎回fdtfileをリセットしたくないからです。 Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS NXPが独立したトリプルディスプレイサポートに関する公式文書を公開しているのでしょうか?
View full article
LSDK 21.08 OP-TEE でブートが壊れる LS1043AEを使用したカスタム基板では、OP-TEEなしでもセキュアブートが問題なく動作します。OP-TEEをシステムに導入しようとしてコンソールに出力され、そこでハングアップします。 注意:2GB DDR4、32ビット、CL=11、ECCオフ お知らせ:BL2:v2.4(リリース):LSDK-21.08-1-ga08bfddba-dirty お知らせ:BL2:ビルド日時:2026年8月31日 22:39:20 通知:SECブロックの初期化と設定を行っています。 注意:Secは既に初期化および設定済みです。 通知: RSA の検証 通知: ハッシュを検証しています 通知: RSA の検証 通知: ハッシュを検証しています 通知: RSA の検証 通知: ハッシュを検証しています 通知: BL2: BL31を起動しています お知らせ:BL31:v2.4(リリース):LSDK-21.08-1-ga08bfddba-dirty お知らせ:BL31:製造日時:2026年8月31日 22:39:48 お知らせ:ls1043aerb BL31フェーズへようこそ Google/Geminiによると、GICには問題があると考えているとのことです。ATFとOP-TEEは64kページアラインを使用しているようですが、ubootのdtsファイルでは4kページアラインになっています。この問題ではないと思う、少なくとも今のところは。OP-TEEを全く初期化していないように見えるからです。 ご意見は? QorIQ LS1デバイス Re: LSDK 21.08 OP-TEE breaks boot どうやらU-Bootに問題があるようです。 OPTEEを有効にした状態で通常のU-boot(セキュアなし)を起動できるかどうか試していただけますか? Re: LSDK 21.08 OP-TEE breaks boot 試してみるのは構わないが、それは何のためのテストなのか?現在、u-bootにどのような問題があると考えていますか?Opteeなしで動作するので、何が問題なのか、何を注意すべきか気になります。 Re: LSDK 21.08 OP-TEE breaks boot まず最初に確認すべきこと: TF-Aをデバッグモードで再構築し、正確な停止箇所を確認してください。 実用的であればDEBUG=1 LOG_LEVEL=50を使うか、初期BL31プラットフォームコードにNOTICE()のパンくずを加えることもできます: プラットフォーム設置エントリー GIC初期化 TZC/TZASC/TZPC 設定 セキュアペイロードディスパッチャー/OP-TEEセットアップ BL32エントリーポイント準備 NXPのサポートでは、同様のLS1043Aハングに対するガイダンスとして、ATF/U-Bootのデバッグプリントを追加するか、CodeWarrior/JTAGを使って実行が詰まっている箇所を点検することが挙げられます。 FIPに実際にBL32が含まれていること、そしてBL31がOP-TEEサポートで構築されているかを確認してください。 TF-A の OP-TEE の場合、ビルドには SPD=opteed と BL32= を含める必要があります。セキュア ブート/NXP CoT の場合、セキュア TF-A ビルド フローには、TRUSTED_BOARD_BOOT=1、CST_DIR=...、BL32=$TEE_BIN、SPD=opteed、および BL33=$UBOOT_SECURE_BIN も含まれます。 次のようなコマンドを実行してください。 fiptool info fip.bin BL31、BL32/OP-TEE、およびBL33がすべて存在することを確認してください。BL32が欠落している場合、またはBL31がSPD=opteedで構築されていない場合、OP-TEEは入力されません。 LS1043Aのセキュアブートにおける予約メモリの処理を確認してください。 LS1043Aのセキュアブートに関する問題が報告されていますが、plat/nxp/soc-ls1043a/soc.def NXP_ROM_RSVD の値を0x5900から0x8000に変更することで修正されます。既にセキュアブートを実施していて、さらに署名付きのFIPコンポーネントを追加するのであれば、早めに確認しておく価値があります。これは、後期のU-Boot DTS GICのアライメント問題よりも可能性が高い。 「RSA/ハッシュ検証済み」と表示されているからといって、画像レイアウトが良好であるとは限りません。 BL2ログは検証したコンポーネントの認証が成功したことを証明しますが、ランタイムアドレス、予約メモリの重複、BL32ロードアドレス、またはBL31のセキュアペイロード構成が正しいことは証明できません。BL2は、検証後にBL31/BL32/BL33をDDRにロードしてから、制御をBL31に渡すように文書化されている。 ハングがBL31: Initializing BL32に移動した場合は、OP-TEE本体にフォーカスを移します。 その後の段階では、OP-TEEのロードアドレス、セキュアDDRの切り出し、ページャー/非ページャーのレイアウト、CAAM/SECの設定、およびOP-TEEコンソールを確認します。OP-TEE/暗号化関連のコンテキストにおいて、OP-TEEの暗号化初期化が早期に行われている疑いがある場合、CFG_NXP_CAAM=nおよびCFG_CRYPTO_DRIVER=nを設定してOP-TEEの暗号化/CAAMを無効にすることを推奨するNXPのガイダンスがあります。しかし、現在のログでは、OP-TEEが入力されていることはまだ証明されていません。 私の最も強い仮説は、BL31はOP-TEEを有効にすると異なるビルドや構成がされており、OP-TEEバナーやBL32エントリーの前の初期BL31プラットフォーム/SPDセットアップで止まっているということです。 まずはBL31をGIC/プラットフォーム設定に合わせて計測し、FIP/SPD=opteed / BL32=tee.bin/secure-boot CSF レイアウトを実行してから、LS1043A NXP_ROM_RSVD=0x8000 の問題を確認してください。 Re: LSDK 21.08 OP-TEE breaks boot そこでATFをデバッグでビルドし、サイレントハングの直前に出る最後のメッセージは次の通りです: 情報:BL31:BL32の初期化中 もしあなたの指示を正しく理解していれば、今は特にOP-TEEに集中すべきですよね? Re: LSDK 21.08 OP-TEE breaks boot はい、まずOP-TEEを通常の起動(セキュアなし)で確認し、OP-TEEでのビルディングや展開手順に問題がないか確認してください。 Re: LSDK 21.08 OP-TEE breaks boot おそらく間違ったtee.binファイルを使っていたのだと思います。 私は、OP-TEEを手動でビルドした際に生成されたtee.binを使用しており、生成する必要があったobjcopyバージョンを使用していませんでした。これによりシステムは初期化してLinuxで起動できるようです。 opteeに関するカーネルログのメッセージが他にも残っていますが、この特定の問題は解決したのでこのスレッドは閉じます。
View full article
LSDK 21.08 OP-TEE breaks boot Custom board using LS1043AE have it secure booting just fine with no OP-TEE. Trying to introduce OP-TEE to the system and console outputs and hangs at: NOTICE: 2 GB DDR4, 32-bit, CL=11, ECC off NOTICE: BL2: v2.4(release):LSDK-21.08-1-ga08bfddba-dirty NOTICE: BL2: Built : 22:39:20, Aug 31 2026 NOTICE: Initializing & configuring SEC block. NOTICE: Sec is already initialized and configured. NOTICE: Verifying RSA NOTICE: Verifying hash NOTICE: Verifying RSA NOTICE: Verifying hash NOTICE: Verifying RSA NOTICE: Verifying hash NOTICE: BL2: Booting BL31 NOTICE: BL31: v2.4(release):LSDK-21.08-1-ga08bfddba-dirty NOTICE: BL31: Built : 22:39:48, Aug 31 2026 NOTICE: Welcome to ls1043aerb BL31 Phase According to Google/Gemini it thinks there is a problem with GIC. ATF and OP-TEE appear to be using 64k page aligned, but in a uboot dts it has it at a 4k page aligned. I don't think it's this issue, or at least not yet. Because it doesn't appear to Initialize OP-TEE at all. Thoughts? QorIQ LS1 Devices Re: LSDK 21.08 OP-TEE breaks boot It seems that there is problem with your u-boot. Would you please try whether it can work to boot normal u-boot(not secured) with OPTEE enabled? Re: LSDK 21.08 OP-TEE breaks boot I don't mind trying that, but what is that testing for? What are you currently thinking is possibly wrong with uboot? Since it works without optee I'm curious as to what could be wrong or what I should look for? Re: LSDK 21.08 OP-TEE breaks boot What I would check first: Rebuild TF-A in debug mode and confirm the exact stop point. Use DEBUG=1 LOG_LEVEL=50 if practical, or add NOTICE() breadcrumbs in early BL31 platform code around: platform setup entry GIC init TZC/TZASC/TZPC setup secure payload dispatcher / OP-TEE setup BL32 entry-point preparation NXP support guidance for similar LS1043A hangs is to add ATF/U-Boot debug prints or use CodeWarrior/JTAG to inspect where execution is stuck. Verify the FIP actually contains BL32 and that BL31 was built with OP-TEE support. For OP-TEE in TF-A, the build must include SPD=opteed and BL32=  ; for secure boot/NXP CoT, the secure TF-A build flow also includes TRUSTED_BOARD_BOOT=1 , CST_DIR=... , BL32=$TEE_BIN , SPD=opteed , and BL33=$UBOOT_SECURE_BIN . Run something like:  fiptool info fip.bin and confirm BL31, BL32/OP-TEE, and BL33 are all present. If BL32 is missing or BL31 was not built with SPD=opteed , OP-TEE will never be entered. Check LS1043A secure-boot reserved-memory handling. There is a reported LS1043A secure-boot issue fixed by changing plat/nxp/soc-ls1043a/soc.def NXP_ROM_RSVD from 0x5900 to 0x8000 . Since you are already secure-booting and now adding another signed FIP component, this is worth checking early. It is more plausible than a later U-Boot DTS GIC alignment issue. Do not assume “RSA/hash verified” means the image layout is good. Your BL2 log proves authentication reached success for the components it validated, but it does not prove the runtime addresses, reserved-memory overlap, BL32 load address, or BL31 secure-payload configuration are correct. BL2 is documented as loading BL31/BL32/BL33 to DDR after validation before handing control to BL31. If the hang moves to BL31: Initializing BL32 , then shift focus to OP-TEE proper. At that later stage I would look at OP-TEE load address, secure DDR carveout, pager/non-pager layout, CAAM/SEC configuration, and OP-TEE console. There is NXP guidance in a related OP-TEE/crypto context to try disabling crypto/CAAM in OP-TEE with CFG_NXP_CAAM=n and CFG_CRYPTO_DRIVER=n when early OP-TEE crypto initialization is suspected. But your current log does not yet prove OP-TEE is being entered. My strongest hypothesis: BL31 is built/configured differently when OP-TEE is enabled and is hanging in early BL31 platform/SPD setup before the OP-TEE banner or BL32 entry. I would first instrument BL31 around GIC/platform setup and verify FIP/ SPD=opteed / BL32=tee.bin /secure-boot CSF layout, then check the LS1043A NXP_ROM_RSVD=0x8000 issue. Re: LSDK 21.08 OP-TEE breaks boot So I built atf with debugging and the final message I get before silent hang is: INFO: BL31: Initializing BL32 So if I understood your recommandation correctly, I should focus on OP-TEE specifically now, correct? Re: LSDK 21.08 OP-TEE breaks boot Yes, please verify OP-TEE with normal boot(not secured) first to make sure there is no problem with your building and deployment procedure with OP-TEE. Re: LSDK 21.08 OP-TEE breaks boot I believe I was using the wrong tee.bin. I was using the tee.bin that was generated during a manual build of OP-TEE and not the objcopy version I needed to generate. That appears to allow the system to initialize and boot into linux. I do have more kernel logging messages about optee that I need to look into, but I will close this thread because this specific issue is resolved.
View full article
IMX95: Displays with a MIPI DSI and a dual-channel LVDS Hi, Can I output different sources to a DSI and a dual-channel LVDS at the same time? If this is supported, how to config the settings? I referred to IMX95 Manual and the device-trees, but I can not understand the association between pixel_interleaver , LDB and MIPI-DSI. Thanks. Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS For the normal i.MX95 BSP/device-tree model: do not plan on driving an independent MIPI-DSI display and a dual-channel LVDS display at the same time. The limiting point is the display output routing: the i.MX95 display controller has two independent display output streams, and dual-channel LVDS consumes the two LVDS-side paths, leaving no free input path for MIPI-DSI in the standard configuration . There is one important nuance: an NXP community knowledge-base item mentions i.MX95 triple-display Linux patches for LF-6.6.52-2.2.0 with “1 MIPI DSI + 2 LVDS” support and DTBs named imx95-19x19-evk-triple-display-lvds-clone.dtb and imx95-19x19-evk-triple-display-lvds-interleaver.dtb . That should be treated as a specific patched EVK/BSP use case , not as evidence that the unmodified reference manual/device trees support arbitrary independent DSI + dual-channel LVDS routing. The association is roughly: Block Role in the display path Display engines / DPU outputs Produce the two display streams, DISP_IN0 and DISP_IN1 . pixel_interleaver Routes or splits those streams. In bypass mode, DISP_IN0 goes to PL_OUT0 and DISP_IN1 goes to PL_OUT1 ; in interleaver mode, one selected input stream is interleaved while the other input is bypassed . LVDS / LDB / Pixel Mapper The i.MX95 LVDS path receives one or two display-interface streams and drives the LVDS PHYs; the RM describes the Pixel Mapper driving LVDS PHY1 and LVDS PHY2 . Some Linux/device-tree naming may still use “LDB”, but architecturally on i.MX95 this is the LVDS output path behind the pixel interleaver / pixel mapper. MIPI-DSI DSI takes pixel data through the Pixel Link path; the DSI pixel-formatting block converts Pixel Link format to DSI host DPI format, and a DSI pixel-link control field selects the pixel link connected to the DSI host controller . So, for standard configuration: Single-channel LVDS + MIPI-DSI : feasible; one display output path can feed LVDS and the other can feed DSI. Dual-channel LVDS only : feasible; both LVDS channels are used together for the LVDS display. Independent MIPI-DSI + dual-channel LVDS : not supported in the standard routing described by the current evidence; NXP community analysis states that dual-channel LVDS reserves both available DPU output ports, so MIPI-DSI cannot be routed at the same time. For configuration, I would not try to fix this by manually changing pixel_interleaver register values alone. Under Linux, the routing is established by the DRM device-tree graph: the DPU / display pixel link endpoints must connect to either LVDS/LDB or MIPI-DSI endpoints. If the DSI node has no valid upstream endpoint, the driver reports errors such as imx95-mipi-dsi ... No valid input endpoint found . For a supported setup, use the corresponding BSP DTB/overlay: LVDS-only: use the LVDS DTB for the intended LVDS channel/mode. DSI-only: use the DSI panel/bridge DTB. Single-LVDS + DSI: route one pixel-link output to LVDS and the other to DSI. Triple-display / DSI + 2 LVDS: start from the NXP LF-6.6.52-2.2.0 triple-display patch set and its provided DTBs, if that patch set matches your BSP and EVK baseline. Bottom line: with the normal i.MX95 BSP, use either dual-channel LVDS or DSI + single-channel LVDS; for DSI plus two LVDS outputs, use the specific NXP triple-display patch flow rather than trying to derive it from the RM registers alone. Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS Thanks for answering me. I learned a lot. This feature is not necessary. The reason why I want to do this is my target board has these two interface 2ch-lvds and mipi-dsi, but I don't like to reset fdtfile whenever I need to change the display to do testing. Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS Are there any official documents released by NXP for independent tripple display support?
View full article
LSDK 21.08 OP-TEE 导致启动失败 使用 LS1043AE 的定制板无需 OP-TEE 即可正常安全启动。尝试将 OP-TEE 引入系统和控制台输出时,卡在以下位置: 注意:2 GB DDR4,32 位,CL=11,ECC 关闭 注意:BL2:v2.4(版本):LSDK-21.08-1-ga08bfddba-dirty 通知:BL2:构建时间:2026年8月31日 22:39:20 注意:正在初始化和配置 高效密码学标准(SEC) 模块。 注意:高效密码学标准\(SEC\) 已初始化并配置完成。 注意:正在验证 RSA 注意:正在验证哈希值 注意:正在验证 RSA 注意:正在验证哈希值 注意:正在验证 RSA 注意:正在验证哈希值 注意:BL2:正在启动 BL31 注意:BL31:v2.4(发布版):LSDK-21.08-1-ga08bfddba-dirty 通知:BL31:版本:2026年8月31日 22:39:48 通知:欢迎来到 ls1043aerb BL31 阶段 根据谷歌/Gemini的说法,他们认为GIC存在问题。ATF 和 OP-TEE 似乎使用的是 64k 页对齐,但在 uboot dts 中却是 4k 页对齐。我不认为这是个问题,或者至少目前还不是。因为它似乎根本没有初始化 OP-TEE。 有什么想法? QorIQ LS1设备 Re: LSDK 21.08 OP-TEE breaks boot 你的 u-boot 似乎有问题。 请问您能否尝试在启用 OPTEE 的情况下,启动普通的 u-boot(非安全模式)? Re: LSDK 21.08 OP-TEE breaks boot 我不介意尝试一下,但是这个测试的目的是什么呢?你目前认为uboot可能存在什么问题?既然不用 optee 也能正常工作,我很好奇可能出了什么问题,或者我应该检查哪些方面? Re: LSDK 21.08 OP-TEE breaks boot 我首先会检查以下内容: 以调试模式重建 TF-A,并确认确切的停止点。 如果可行,请使用 DEBUG=1 LOG_LEVEL=50,或者在早期 BL31 平台代码中添加 NOTICE() 面包屑: 平台设置条目 GIC 初始化 TZC/TZASC/TZPC 设置 安全有效载荷调度器/OP-TEE 设置 BL32入口点准备 NXP 对类似 LS1043A 挂起问题的指导是添加 ATF/U-Boot 调试打印或使用 CodeWarrior/JTAG 检查执行卡在哪里。 确认 FIP 确实包含 BL32,并且 BL31 是使用 OP-TEE 支持构建的。 对于 TF-A 中的 OP-TEE,构建必须包含 SPD=opteed 和 BL32= ;对于安全启动/NXP CoT,安全 TF-A 构建流程还包括 TRUSTED_BOARD_BOOT=1、CST_DIR=...、BL32=$TEE_BIN、SPD=opteed 和 BL33=$UBOOT_SECURE_BIN。 运行类似这样的命令: fiptool info fip.bin 并确认 BL31、BL32/OP-TEE 和 BL33 都存在。如果 BL32 缺失或 BL31 没有使用 SPD=opteed 构建,则永远不会输入 OP-TEE。 检查 LS1043A 安全启动保留内存处理。 据报道,LS1043A 的安全启动问题已通过将 plat/nxp/soc-ls1043a/soc.def NXP_ROM_RSVD 的值从 0x5900 改为 0x8000 得到修复。既然您已经启用了安全启动,现在又添加了另一个已签名的 FIP 组件,那么就值得尽早检查一下。这比后来的 U-Boot DTS GIC 对齐问题更合理。 不要以为“RSA/哈希已验证”就意味着图像布局良好。 您的 BL2 日志证明其验证的组件的身份验证已成功,但并未证明运行时地址、保留内存重叠、BL32 加载地址或 BL31 安全有效载荷配置是否正确。BL2 的文档记录显示,在将控制权交给 BL31 之前,它会在验证后将 BL31/BL32/BL33 加载到 DDR。 如果挂起转移到 BL31:正在初始化 BL32,则将焦点转移到 OP-TEE 本身。 在后期阶段,我会查看 OP-TEE 加载地址、安全 DDR 分区、寻呼机/非寻呼机布局、CAAM/高效密码学标准(SEC) 配置和 OP-TEE 控制台。NXP 在相关的 OP-TEE/加密上下文中提供了指导,当怀疑 OP-TEE 加密初始化过早时,可以尝试使用 CFG_NXP_CAAM=n 和 CFG_CRYPTO_DRIVER=n 禁用 OP-TEE 中的加密/CAAM 功能。但您当前的日志尚不能证明 OP-TEE 正在被输入。 我最强烈的假设是:启用 OP-TEE 时,BL31 的构建/配置有所不同,并且在 OP-TEE 横幅或 BL32 条目之前,BL31 平台/SPD 设置早期阶段会卡住。我首先会在 GIC/平台设置周围对 BL31 进行插桩,并验证 FIP/SPD=opteed/BL32=tee.bin/secure-boot CSF 布局,然后检查 LS1043A NXP_ROM_RSVD=0x8000 问题。 Re: LSDK 21.08 OP-TEE breaks boot 所以我用调试模式编译了 atf,在程序静默挂起之前看到的最后一条信息是: 信息:BL31:正在初始化 BL32 所以如果我理解你的建议没错的话,我现在应该重点关注 OP-TEE,对吗? Re: LSDK 21.08 OP-TEE breaks boot 是的,请先使用正常启动(非安全启动)验证 OP-TEE,以确保您的 OP-TEE 构建和部署过程没有问题。 Re: LSDK 21.08 OP-TEE breaks boot 我相信我之前用错了 tee.bin 文件。 我之前使用的是手动构建 OP-TEE 时生成的 tee.bin 文件,而不是我需要生成的 objcopy 版本。这样似乎可以启动系统并进入 Linux 系统。 我还有一些关于 optee 的内核日志消息需要查看,但由于这个问题已经解决,我将关闭此帖。
View full article
AN15075 パッチは適用できません 比較的新しいユーザーマニュアルAN15075ファイル0001-add-AHAB-check-for-imxに言及しています remote-proc-process.patch AN15075SW.zipで見つけました。 このパッチファイルは以下の3行を適用します。 +#ifdef CONFIG_IMX_REMOTEPROC_AHAB +#include +#include +#endif に Linux-IMXからのdrivers/remoteproc/imx_rproc.c しかし、ファイル linux/firmware/imx/se_fw_inc.h存在しない(インターネット上のどこにも) そして、ファイル ele_base_msg はその場所には配置されていません。 Linux-imx lf-6.18.yのブランチ https://github.com/nxp-imx/linux-imx/tree/lf-6.18.y を担当しています 6.6や6.12でも見つけることができませんでした。 このパッチはどのバージョンのlinux-imxに適用すべきでしょうか? PSパッチを追加して無効にすると CONFIG_IMX_REMOTEPROC_AHAB Linux-imxもビルドしません。なぜなら、一部のコードが #ifdef で保護されているため、いくつかのプロパティが存在しなくなったからです。すべてではありません。 Re: AN15075 Patch can't be applied 当時実装したパッチは単なる概念実証に過ぎず、ソフトウェアチームはそれを上流リポジトリに統合することに同意しませんでした。 つまり、これは単なるリファレンス実装です。 その後の移植作業は継続されなかった。 Re: AN15075 Patch can't be applied Yocto Wrynose(Linux 6.18対応)のパッチはNXPで何か変更されますか? Re: AN15075 Patch can't be applied AN15075SWのカーネルパッチをlf-6.6.36-2.1.0に適用する/ BSP lf-6.6.36 。 $ git clone https://github.com/nxp-imx/linux-imx.git      $ git checkout -b lf-6.6.36-2.1.0lf-6.6.36-2.1.0 lf-6.18.y にそのまま適用できるとは期待しないでください。前方移植が必要です。 前方移植を行う場合は、インクルードパスとKconfigガードの両方を修正してください。あなたのPSは部分的なガードバグと一致しています。CONFIG_IMX_REMOTEPROC_AHABを無効にすると、既存のリモートプロシージャパスが構築可能になるはずですが、ANパッチでは、#ifdef CONFIG_IMX_REMOTEPROC_AHAB内でのみ導入された定義またはフィールドに依存する非AHABコードが残っているようです。 Re: AN15075 Patch can't be applied さらに調べてみました: このパッチでは以下のファイルが追加されるようです:[PATCH v4 6/7] firmware: imx: add ドライバ for NXP EdgeLock Enclave しかし、このコミットでは異なる方法で再適用されました:LF-13910: firmware: imx: add ドライバ for NXP EdgeLock Enclave · nxp-imx/Linux@0eff402 Re: AN15075 Patch can't be applied リモートプロシージャコードを修正してELEファームウェアを使用するようにすることは、セカンドコアでAHABを有効にするための推奨される方法でしょうか? Re: AN15075 Patch can't be applied はい。
View full article
IMX95:配备 MIPI DSI 和双通道 LVDS 的显示器 您好, 我可以同时将不同的信号源输出到 DSI 和双通道 LVDS 吗? 如果支持此功能,如何配置设置? 我参考了IMX95 手册和设备树,但我还是不明白 pixel_interleaver、LDB 和 MIPI-DSI 之间的关联。 谢谢。 Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS 对于普通的 i.MX95 电路板支持包/设备树模型:不要计划同时驱动独立的 MIPI-DSI 显示器和双通道 LVDS 显示器。限制点在于显示输出路由:i.MX95 显示控制器有两个独立的显示输出流,双通道 LVDS 占用了两个 LVDS 侧路径,在标准配置中没有为 MIPI-DSI 留下空闲的输入路径。 这里有一个重要的细节:NXP 社区知识库中的一篇文章提到了适用于 LF-6.6.52-2.2.0 的 i.MX95 三屏 Linux 补丁,支持“1 个 MIPI DSI + 2 个 LVDS”接口,以及名为 imx95-19x19-evk-triple-display-lvds-clone.dtb 的 DTB 文件。和 imx95-19x19-evk-triple-display-lvds-interleaver.dtb。这应该被视为一个经过特定补丁的 EVK/BSP 用例,而不是未修改的参考手册/设备树支持任意独立的 DSI + 双通道 LVDS 路由的证据。 该关联大致如下: 区块 在显示路径中的作用 显示引擎/DPU 输出 生成两个显示流,DISP_IN0 和 DISP_IN1。 像素交错器 对这些数据流进行路由或拆分。在旁路模式下,DISP_IN0 输出到 PL_OUT0,DISP_IN1 输出到 PL_OUT1;在交错模式下,一个选定的输入流被交错传输,而另一个输入流被旁路传输。 LVDS / LDB / 像素映射器 i.MX95 LVDS 路径接收一个或两个显示界面流并驱动 LVDS PHY;RM 描述了驱动 LVDS PHY1 和 LVDS PHY2 的像素映射器。某些 Linux/设备树命名可能仍然使用“LDB”,但在 i.MX95 的架构上,这是像素交错器/像素映射器后面的 LVDS 输出路径。 MIPI-DSI DSI 通过像素链路路径获取像素数据;DSI 像素格式化块将像素链路格式转换为 DSI 主机 DPI 格式,DSI 像素链路控制字段选择连接到 DSI 主机控制器的像素链路。 因此,对于标准配置: 单通道 LVDS + MIPI-DSI :可行;一条显示输出路径可以馈送 LVDS,另一条可以馈送 DSI。 仅支持双通道 LVDS :可行;两个 LVDS 通道同时用于 LVDS 显示。 独立 MIPI-DSI + 双通道 LVDS :当前证据所描述的标准路由不支持;NXP 社区分析指出,双通道 LVDS 会占用两个可用的 DPU 输出端口,因此 MIPI-DSI 不能同时路由。 对于配置方面,我不会尝试仅通过手动更改 pixel_interleaver 寄存器值来修复此问题。在 Linux 系统中,路由由 DRM 设备树图建立:DPU / 显示像素链路端点必须连接到 LVDS/LDB 或 MIPI-DSI 端点。如果 DSI 节点没有有效的上游端点,驱动程序会报告错误,例如 imx95-mipi-dsi ... 未找到有效的输入端点。对于受支持的设置,请使用相应的 电路板支持包。 DTB/overlay: 仅限 LVDS:使用适用于预期 LVDS 通道/模式的 LVDS DTB。 仅限 DSI:使用 DSI 面板/桥接 DTB。 单 LVDS + DSI:将一个像素链路输出路由到 LVDS,另一个路由到 DSI。 三屏显示/DSI + 2 LVDS:从 NXP LF-6.6.52-2.2.0 三屏显示补丁集及其提供的 DTB 开始,前提是该补丁集与您的 BSP 和 EVK 基线匹配。 总之:对于普通的 i.MX95 电路板支持包,可以使用双通道 LVDS 或 DSI + 单通道 LVDS;对于 DSI 加两个 LVDS 输出,请使用 NXP 特定的三屏显示补丁流程,而不是尝试仅从 RM 寄存器中导出它。 Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS 谢谢你的回复。我学到了很多。 此功能并非必需。我这样做的原因是我的目标板有两个接口:2ch-lvds 和 mipi-dsi,但我不想每次需要更换显示器进行测试时都重置 fdt 文件。 Re: IMX95: Displays with a MIPI DSI and a dual-channel LVDS NXP 是否有发布任何关于独立三屏显示支持的官方文档?
View full article
AN15075 Patch can't be applied The relativly new user manual AN15075 metions the file 0001-add-AHAB-check-for-imx remote-proc-process.patch  Which i found in the  AN15075SW.zip. This patch files applies the following 3 lines:  +#ifdef CONFIG_IMX_REMOTEPROC_AHAB +#include +#include +#endif to  drivers/remoteproc/imx_rproc.c from linux-imx but tthe file linux/firmware/imx/se_fw_inc.h doesn't exist (anywhere on the internet) And the file ele_base_msg is not placed at that location. I am working on the linux-imx lf-6.18.y branch https://github.com/nxp-imx/linux-imx/tree/lf-6.18.y I couldn't find it on the 6.6 or 6.12 either. To what version of linux-imx should this patch be applied?  P.S. If you add the patch and disable  CONFIG_IMX_REMOTEPROC_AHAB The linux-imx won't build either because some properties stopped existing because some of the code is guarded under a #ifdef but not all. Re: AN15075 Patch can't be applied The patch we implemented at that time was merely a proof of concept, and the software team did not agree to merge it into the upstream repository. So it's just a reference implementation. The subsequent porting was not continued. Re: AN15075 Patch can't be applied Is there any change NXP will update the patch for Yocto Wrynose (with linux 6.18)? Re: AN15075 Patch can't be applied Apply AN15075SW’s kernel patch to lf-6.6.36-2.1.0 / BSP lf-6.6.36 .      $ git clone https://github.com/nxp-imx/linux-imx.git      $ git checkout -b lf-6.6.36-2.1.0 lf-6.6.36-2.1.0 Do not expect it to apply cleanly to lf-6.18.y ; it must be forward-ported. If forward-porting, fix both the include paths and the Kconfig guards. Your PS is consistent with a partial guard bug: disabling CONFIG_IMX_REMOTEPROC_AHAB should leave the existing remoteproc path buildable, but the AN patch appears to leave some non-AHAB code dependent on definitions or fields introduced only inside #ifdef CONFIG_IMX_REMOTEPROC_AHAB . Re: AN15075 Patch can't be applied Did some more digging:  This patch seems to add these files: [PATCH v4 6/7] firmware: imx: add driver for NXP EdgeLock Enclave But it was reapplied differently in this commit: LF-13910: firmware: imx: add driver for NXP EdgeLock Enclave · nxp-imx/linux-imx@0eff402 Re: AN15075 Patch can't be applied Is modifying the remoteproc code to use the ELE firmware still the recommended approach to enable AHAB on the second core? Re: AN15075 Patch can't be applied Yes.
View full article
AN15075补丁无法应用 较新的用户手册 AN15075 提到了文件 0001-add-AHAB-check-for-imx 远程进程处理补丁 我在 AN15075SW.zip 文件中找到了它。 此补丁文件应用了以下 3 行代码: +#ifdef CONFIG_IMX_REMOTEPROC_AHAB +#include +#include +#endif 到 来自 linux-imx 的 drivers/remoteproc/imx_rproc.c 但是文件 linux/firmware/imx/se_fw_inc.h不存在(在互联网上的任何地方)。 文件 ele_base_msg 并未放置在该位置。 我正在使用 linux-imx lf-6.18.y 分支进行开发:https://github.com/nxp-imx/linux-imx/tree/lf-6.18.y 我在 6.6 和 6.12 版本上也没找到。 这个补丁应该应用到哪个版本的linux-imx? PS如果你添加了补丁并禁用 CONFIG_IMX_REMOTEPROC_AHAB linux-imx 也无法构建,因为某些属性不再存在,这是因为部分代码受到 #ifdef 保护,但并非所有代码都受到保护。 Re: AN15075 Patch can't be applied 我们当时实现的补丁只是一个概念验证,软件团队不同意将其合并到上游存储库中。 所以这只是一个参考实现。 后续的移植工作没有继续进行。 Re: AN15075 Patch can't be applied NXP 是否有可能更新 Yocto Wrynose(Linux 6.18)的补丁? Re: AN15075 Patch can't be applied 将 AN15075SW 的内核补丁应用到 lf-6.6.36-2.1.0/ BSP lf-6.6.36。 $ git clone https://github.com/nxp-imx/linux-imx.git $ git checkout -b lf-6.6.36-2.1.0lf-6.6.36-2.1.0 不要指望它能直接应用于 lf-6.18.y;它必须向前移植。 如果需要向前移植,请同时修复包含路径和 Kconfig 保护。您的 PS 与部分保护错误一致:禁用 CONFIG_IMX_REMOTEPROC_AHAB 应该使现有的 remoteproc 路径可构建,但 AN 补丁似乎使一些非 AHAB 代码依赖于仅在 #ifdef CONFIG_IMX_REMOTEPROC_AHAB 中引入的定义或字段。 Re: AN15075 Patch can't be applied 我又深入调查了一下: 此补丁似乎添加了以下文件: [PATCH v4 6/7] 固件:imx:添加 NXP EdgeLock Enclave 驱动程序 但在这次提交中,它以不同的方式重新应用: LF-13910:固件:imx:添加 NXP EdgeLock Enclave 的驱动程序 · nxp-imx/linux-imx@0eff402 Re: AN15075 Patch can't be applied 修改 remoteproc 代码以使用 ELE 固件仍然是在第二个核心上启用 AHAB 的推荐方法吗? Re: AN15075 Patch can't be applied 是的。
View full article
[lx2080a][lx2160a] 如何关闭 CPU 核心? 对于LX2080A,我们需要禁用8个核心中的4个。请问如何关闭8个核心中的特定4个核心? 为了进行测试,我将以下内容添加到 rcw_2200_750_3200_19_5_2.rcw 文件中,但它无法启动。 .pbi 写入 0x01e00094, 0x00000f0 。结尾 还有其他需要修改的地方吗? Re: [lx2080a][lx2160a] How do I turn off CPU cores? 如果目的是保持前四个 LX2080A 集群处于活动状态,并禁用后面四个活动核心,请使用 physical-core 位图: 复制 # 禁用物理核心 8、10、12、14 .pbi 写入 0x01e00094, 0x00005500 。结尾 Re: [lx2080a][lx2160a] How do I turn off CPU cores? 我们应用了它。但它没能启动。 .pbi 写入 0x01e60060,0x0000000f 写入 0x01e00094,0x000000f0 。结尾 因此,在未应用该版本的情况下,我从 uboot 提示符读取寄存器,如下所示。 看来活跃核心的数量是奇数。 > md.l 0x01e00094 01e00094: 00000000 00000000 00000000 00000000 ................ 01e000a4: 87360220 00000040 00000000 00000000 .6.@........... => md.l 0x01e60060 01e60060: 0000aaaa 00000000 00000000 00000000 ................ 01e60070: 00000000 00000000 00000000 00000000 ................ 这会不会是原因? 谢谢 Re: [lx2080a][lx2160a] How do I turn off CPU cores? 您设置的目标寄存器用于禁用核心是正确的,但我建议不要只做如下更改: .pbi 写入 0x01e00094, 0x00000f0 。结尾 使用完整的 32 位值,并确保启动/版本路径不会尝试启动已禁用的核心: .pbi 写入 0x01e00094, 0x000000f0   /* COREDISR: 禁用核心 4、5、6、7 */ 。结尾 0x01e00094 是 DCFG + 0x94;LX2160A/LX2080A RM 列出了 DCFG 基地址 = 0x1E0_0000 和偏移量为 0x94 的 COREDISR。COREDISR 是用于禁用/时钟门控未使用的物理内核的已记录机制,可以在 PBI 系统就绪之前对其进行编程。核心 4-7 的位/字段对应于核心 4 禁用到核心 7 禁用,因此,如果您想保留核心 0-3 并禁用核心 4-7,则 0x000000f0 是预期掩码。 另一个重要的附加项目是启动版本。对于 LX2/LS2 四核处理器,官方/内部指南建议配对: 启动 版本 @ 0x01e60060 = 0x0000000f COREDISR     @ 0x01e00094 = 0x000000f0   /* 禁用 Core7:4 */ 因此,只有核心 0-3 被释放用于启动,而核心 4-7 被禁用。启动释放寄存器 BRRL 位于 RST 基址 0x1E6_0000 + 0x60,其位 CR0...CR15 将相应的内核从启动保持状态中释放出来。还要确认主启动核心未包含在您的 COREDISR 掩码中;RM 表示可以通过 BRCORENBR[CORE_NBR] 识别启动核心。 两种用于检查启动失败的实用方法: 请使用 0x000000f0,而不是 0x00000f0,以避免任何解析器/工具歧义。 如果 RCW/PBI 映像使用 STOP-with-CRC 命令,则在更改 PBI 后重建必须更新 PBI CRC;CRC 涵盖从 Load RCW 命令到 STOP-with-CRC 命令的所有 PBI 命令。 启动后,通过读取 COREDISR 和核心禁用状态寄存器来确认结果;LX2 实验使用 COREDISABLESR @ 0x01E00990 来确认禁用核心掩码。另请注意,通过 COREDISR 禁用的核心以后不得通过软件重新启用。 对于“保留核心 0-3,禁用核心 4-7”,请使用 COREDISR = 0x000000f0,并确保启动释放掩码仅释放活动核心,例如:BRRL = 0x0000000f;否则固件可能会尝试启动您已禁用的核心。 Re: [lx2080a][lx2160a] How do I turn off CPU cores? .pbi 写入 0x01e00094,0x00005500 写入 0x01e60060,0x000000aa 。结尾 我们应用了它。但是它无法启动。 还有其他需要调查的事项吗? Re: [lx2080a][lx2160a] How do I turn off CPU cores? 系统可以启动,但结果如下。 => md.l 0x01e00094 01e00094: 0000aa00 00000000 00000000 00000000 ................ 01e000a4: 87360220 00000040 00000000 00000000 .6.@........... => md.l 0x01e60060 01e60060: 0000aaaa 00000000 00000000 00000000 ................ 01e60070: 00000000 00000000 00000000 00000000 ................ 内核还检测到 8 个 CPU。 您能在LX2080a上测试一下吗? 谢谢, Re: [lx2080a][lx2160a] How do I turn off CPU cores? LX2160A 的核心编号是按照簇组的顺序排列的。16 个核心分为 8 个簇,每个簇包含两个核心。编号如下: 核心 0 和 1 位于集群 1 中 核心 2 和 3 位于集群 2 中 ... 以此类推,直到第 14 和 15 号核心,它们位于第 8 集群中。 禁用集群中的所有核心会导致系统崩溃。所以你的目的不可能实现。 Re: [lx2080a][lx2160a] How do I turn off CPU cores? 请尝试以下配置。 .pbi 写入 0x01e00094,0x0000aa00 写入 0x01e60060,0x000000aa 。结尾 Re: [lx2080a][lx2160a] How do I turn off CPU cores? 结果似乎相同。 => md.l 0x01e00094 01e00094: 00008888 00000000 00000000 00000000 ................ 01e000a4: 87360220 00000040 00000000 00000000 .6.@.......... . => md.l 0x01e60060 01e60060: 0000aaaa 00000000 00000000 00000000 ................ 01e60070: 00000000 00000000 00000000 00000000 ................ Re: [lx2080a][lx2160a] How do I turn off CPU cores? 似乎禁用集群中的所有核心会导致系统崩溃。 我们只禁用一个集群中的一个核心。 .pbi 写入 0x01e00094, 0x00008888 写入 0x01e60060, 0x00002222 。结尾 Re: [lx2080a][lx2160a] How do I turn off CPU cores? 以下设置似乎正确。 .pbi 写入 0x01e00094, 0x00005500 写入 0x01e60060, 0x000000aa 。结尾 关于 `0x01e60060` 释放寄存器中的值 `0x0000aaaa`,我认为核心 1、3、5、7、9、11、13 和 15 是已禁用的核心(用 1 表示),而核心 0、2、4、6、8、10、12 和 14(用 0 表示)是 LX2080A 实际支持的活动核心。 每个集群连接一个核心,共八个集群,必须禁用四个集群;这样就剩下四个活动核心——每个剩余的四个集群中各有一个。但即使在修改了 `COREDISR` 和 `BRRL` 之后,`BRRL` 和 `COREDISABLESR` 寄存器仍然显示 `0x0000aaaa`。 因此,我检查了 `atf/nxp/soc-lx2160/soc.c` 中的 SoC 初始化例程(其中簇计数最初设置为 8),并将簇数更改为 4 后,系统成功启动。目前,我在 `get_num_cluster()` 中将该值硬编码为 4,但我希望得到其他建议或反馈。 => md.l 0x01e00094 01e00094: 00005500 00000000 00000000 00000000 .U.............. => md.l 0x01e60060 01e60060: 0000ffaa 00000000 00000000 00000000 ................ => md.l 0x01e00990 01e00990: 0000ffaa 00000000 00000000 00000000 ........ 谢谢。
View full article
关于移除与设备的连接 你好, 我正在尝试使用 MCUXpresso SDK 版本 26.03 实现 BLE 通信。 我有一个关于 API 函数 Gap_RemoveBond 的问题。 该说明指出:“此 API 要求在调用时不能有任何活动连接。” 1.这是否意味着它只能在没有连接设备的情况下使用? 2. 如果在存在活动连接的情况下不能使用 Gap_RemoveBond 删除绑定,那么在活动连接处于活动状态时,是否有办法删除绑定信息? 关于此问题的更多信息 假设有三种设备: ・外围设备 ・中央设备A ・中央设备B takuya08_0-1788256233203.pngtakuya08_0-1788256233203.pngtakuya08_0-1788256233203.pngtakuya08_0-1788256233203.png 外围设备已与中央 A 和中央 B 连接。 当外围设备同时与中央设备 A 和中央设备 B 连接时: takuya08_1-1788256275044.pngtakuya08_1-1788256275044.pngtakuya08_1-1788256275044.pngtakuya08_1-1788256275044.png 根据上述说明,我理解外围设备在中心 A 和中心 B 连接时无法删除它们的绑定信息。 在连接进行中,有没有办法删除绑定信息? 当外围设备仅与中央设备 A 连接时: takuya08_2-1788256364083.pngtakuya08_2-1788256364083.pngtakuya08_2-1788256364083.pngtakuya08_2-1788256364083.png 外围设备是否有可能删除中央 A 和中央 B 的绑定信息? 或者是否可以只删除中央 B 的绑定信息? 当外围设备未连接到任何设备时: takuya08_3-1788256474725.pngtakuya08_3-1788256474725.pngtakuya08_3-1788256474725.pngtakuya08_3-1788256474725.png 根据这句话,我理解在这种情况下,外围设备可以删除中央 A 和中央 B 的绑定信息。 感谢您的帮助。 Re: Regarding Removes the bond with a device @sofiaurueta 感谢您的回复。 根据您的回答,我理解即使只连接了一个设备,绑定信息也无法删除。 不过,为了确保万无一失,我想再确认一下。 2-1788256364083.png2-1788256364083.png2-1788256364083.png 如果外围设备存储了两个设备(中央 A 和中央 B)的绑定信息,并且当前连接到中央 A,则会发生下列哪种行为? 1.可以删除未连接的中央 B 的债券信息。 2. 这两条债券信息记录均不可删除。 Re: Regarding Removes the bond with a device 你好,希望你一切都好。 只有当没有活动的 BLE 连接时才能调用Gap_RemoveBond() 。API 文档明确要求在删除债券信息之前必须断开所有连接。同样的限制也适用于 Gap_RemoveAllBonds()。 目前 MCUXpresso SDK BLE 主机堆栈中没有 API 支持在任何连接处于活动状态时删除 NVM 绑定数据。 在实际使用过程中,移除绑定的推荐流程如下: 对相关的已连接对等方调用 Gap_Disconnect(deviceId),等待确认断开连接的 gConnEvtDisconnected_c 连接事件,然后调用 Gap_RemoveBond(nvmIndex)。 此致, 索菲亚。 Re: Regarding Removes the bond with a device 你好, @sofiaurueta 我们目前正在考虑删除债券信息。 请问您能提供答案吗? 感谢您的帮助。
View full article
我无法获得 .mex 域名。为 S32DS 版本中的一个全新项目生成的文件 电路板:FRDM-A-S32K312 (S32K312MINI-EVB) 并排安装的 S32DS 版本:#S32DesignStudio 3.6.5 和 3.6.6(C:\NXP\S32DS.3.6.5 和 C:\NXP\S32DS.3.6.6) 已安装 RTD: S32K3 RTD,版本 7.0.0.202601301531(已在“帮助”>“关于”>“安装详情”>“已安装软件”中确认,截图已附上——完整列表见本文末尾) AWS-LIBRARIES-S32K3 汽车-RTD 问题: S32K3 RTD/SDK 始终无法显示为可附加组件——无论是在创建新项目时,还是在尝试将其附加到现有项目时。因此,我无法获得 .mex 文件。除复制现有 .mex 文件外,任何情况下都会生成该文件。从一个示例项目中借鉴到另一个项目中。 通过“新建 > S32DS 应用程序项目”创建项目成功,但没有生成 .mex 文件。文件在生成的项目中创建(没有 SDK 选择步骤提供 RTD)。 ivaldes_0-1788256584930.png - 在现有项目中,按照文档中说明的解决方法(右键单击项目 > SDK > 附加/分离 > 全选 > 确定 > 应用)操作后,SDK 列表仅显示“FreeMASTER_S32K312”,即使已确认 S32K3 RTD/PlatformSDK 已安装,也始终未显示为选项。 ivaldes_1-1788256618159.png - 这种情况在 3.6.5 和 3.6.6 版本中都完全相同。所以这似乎与版本无关。 我找到的唯一解决方法是复制一个现有的 .mex 文件。我无法从示例项目中的一个文件导入到我的项目中——我无法为自定义项目从头开始生成文件。 我在尝试创建新项目时检查了 Eclipse 工作区日志,发现以下错误出现在同一时间戳附近: com.nxp.swtools.serdes.codegen(错误): “【工具】尝试重新编译 SerDes 配置工具的代码生成脚本时,未找到脚本文件” com.nxp.swtools.periphs.model.data(错误,重复约 11 次): [数据] 您不应参考非全局元器件“freertos”!请参阅元器件“freertos”中参考设置“general_tab”/“memory_tab”等的属性 component_id。 我找不到任何包含完全相同信息的帖子。 问题:是什么决定了已安装的 RTD/SDK 是否会在“SDK > 附加/分离”对话框和“新建项目”向导中显示为可附加的?是否有办法强制 S32DS 将已安装的 RTD 重新注册/重新索引为 SDK?或者,这两个日志错误是否有已知的原因? 附件: 1. 已安装软件截图(RTD 已确认安装) 2. SDK > 附加/分离对话框(仅列出 FreeMASTER_S32K312) 3. 新建项目向导,SDK 选择步骤(空白/不完整) 已安装的 SDK(来自“帮助”>“关于 S32 Design Studio”>“安装详情”>“已安装软件”,按“RTD”筛选): ivaldes_2-1788256655963.png 新建项目向导 - 项目管理和设置 SDK Re: I cannot get a .mex file generated for a brand new project in either S32DS version 嗨@ivaldes 请问您在创建新应用程序项目时选择了哪种工具链?S32K3 器件的 RTD 设计用于与 GCC 10.2 兼容。 BR,VaneB
View full article
Gui Guider 2.0.1 ラベルフォントサイズのバグ サイズ20の場合、表示されるフォントサイズが実際のフォントサイズよりもはるかに小さくなるというバグが発生しています。 サイズ21: c_nebe_1-1788222435551.png サイズ20: c_nebe_0-1788222422651.png サイズ19: c_nebe_2-1788222464898.png サイズ20のフォントの代わりに、サイズ14のフォントが使われているようです。 回复: Gui Guider 2.0.1 Label Font Size Bug こんにちは、 @c_nebeさん 私自身もテストしてみました。 Harry_Zhang_0-1788257251619.png Harry_Zhang_1-1788257276889.png Harry_Zhang_2-1788257288278.png ご指摘の問題は再現できませんでした。 BR ハリー
View full article
How to perform Key Gen, Enc/Dec, and Sign/Verify with SE051 via OP-TEE on Linux? Hello, NXP Community, I am currently working on integrating the Plug and Trust Middleware into OP-TEE based on the environment described in this post: How to integrate Plug and Trust MW into OP-TEE. My goal is to achieve the following operations from a user-space application running on Linux, leveraging the SE051 secure element: Generate an AES key and store it in SE051. Generate an RSA key pair and store it in SE051. Encrypt a file using the AES key stored in SE051. Decrypt the file using the AES key stored in SE051. Sign data using the RSA private key in SE051. Verify the signature using the RSA public key in SE051. Encrypt data using the RSA public key in SE051. Decrypt data using the RSA private key in SE051. Could anyone guide me on the best approach to achieve these operations? I am open to using any of the following command-line tools (or a combination of them), provided they are supported in this OP-TEE setup: openssl commands (via OpenSSL provider) ssscli tool pkcs11-tool (via PKCS#11 interface) Any examples, documentation links, or command usage samples for this specific OP-TEE environment would be greatly appreciated. SE050 Re: How to perform Key Gen, Enc/Dec, and Sign/Verify with SE051 via OP-TEE on Linux? Hi @Uc_S , There are three supported paths from Linux user-space to the SE051. All three are available with Plug & Trust MW v04.07.01: Path Library Best For PKCS#11 libsss_pkcs11.so AES, RSA key gen/sign/verify/enc/dec via pkcs11-tool OpenSSL Provider (3.x) libsss_provider.so RSA sign/verify/enc/dec via openssl pkeyutl ssscli Python CLI Key injection / provisioning only Important note for OP-TEE environment: In your OP-TEE setup ( CFG_NXP_SE05X=y ), the SE051 is accessed by OP-TEE core directly via the native I2C driver. Linux user-space applications do not own the I2C bus. All three paths above work correctly because the Plug & Trust MW Access Manager ( accessManager ) or the T1oI2C socket interface routes commands through OP-TEE's trusted world to the SE051. Operation 1: Generate an AES Key and Store It in SE051 Use ssscli to generate an AES-256 key at a specific Key ID (object ID in SE051): # Generate AES-256 key at Key ID 0x20000001 ssscli generate aes 0x20000001 256 To verify the key exists: ssscli get aes 0x20000001 aes_key_info.txt Note: AES keys are symmetric and cannot be exported from SE051. The Key ID 0x20000001 is a 32-bit object identifier stored persistently in SE051 NVM. Operation 2: Generate an RSA Key Pair and Store It in SE051 Option A — Using pkcs11-tool (recommended) RSA key labels use the format sss: : # Generate RSA-2048 key pair at Key ID 0x10101010 pkcs11-tool --module $PKCS11_MODULE --keypairgen --key-type rsa:2048 --label "sss:10101010" Option B — Using ssscli ssscli generate rsa 0x10101010 2048 AN13030 Section 3.3.8.3 notes: RSA key pairs must be DER encoded using PKCS#8 or traditional OpenSSL format when injecting externally. When retrieved via sss_key_store_get_key() , only the public key is returned. Operation 3: Encrypt a File Using the AES Key in SE051 AES symmetric encryption is performed via the SSS API ( sss_cipher_one_go ) or, for command-line use, through a small wrapper application. The MW provides a built-in symmetric example at: simw-top/sss/ex/symmetric/ex_sss_symmetric.c For direct command-line use, build and run the example: # After building the MW examples: ./se05x_symmetric_aes_cbc_encrypt --keyid 0x20000001 --input plaintext.bin --output ciphertext.bin --iv 00000000000000000000000000000000 The MW supports: kAlgorithm_SSS_AES_ECB , kAlgorithm_SSS_AES_CBC , kAlgorithm_SSS_AES_CTR , kAlgorithm_SSS_AES_GCM , kAlgorithm_SSS_AES_CCM (from Section 3.3.9.1 of AN13030). Operation 4: Decrypt a File Using the AES Key in SE051 ./se05x_symmetric_aes_cbc_decrypt --keyid 0x20000001 --input ciphertext.bin --output decrypted.bin --iv 00000000000000000000000000000000 The SSS API uses kMode_SSS_Decrypt mode with sss_cipher_one_go() for one-shot decryption, or the multi-step sss_cipher_init() / sss_cipher_update() / sss_cipher_finish() sequence for streaming. Operation 5: Sign Data Using the RSA Private Key in SE051 Using pkcs11-tool (key stays in SE051) # Sign with RSA private key (key never leaves SE051) pkcs11-tool --module $PKCS11_MODULE --sign --label sss:10101010 -m SHA256-RSA-PKCS --slot 1 -i in.der -o signature.der Supported sign mechanisms via PKCS#11: SHA256-RSA-PKCS (RSASSA-PKCS1-v1_5 with SHA-256) SHA1-RSA-PKCS , SHA384-RSA-PKCS , SHA512-RSA-PKCS RSA-PKCS-PSS (PSS padding) Using OpenSSL Provider (v3.x) # Configure OpenSSL to use the NXP provider (see /etc/ssl/openssl.cnf) openssl pkeyutl -provider nxp -sign -inkey "pkcs11:token=sss;object=sss:10101010;type=private" -in in.txt -out signature.der   Operation 6: Verify Signature Using the RSA Public Key in SE051 Step 1 — Export public key from SE051 # Method A: via ssscli ssscli get rsa pub 0x10101010 rsa_pub.der # Method B: via pkcs11-tool pkcs11-tool --module $PKCS11_MODULE --read-object --type pubkey --slot 1 --label sss:10101010 -o pubkey.der # Convert DER to PEM for OpenSSL openssl rsa -in pubkey.der -inform der -out pubkey.pem -outform pem -pubin Step 2 — Verify (host-side, no SE051 required) openssl dgst -keyform PEM -verify pubkey.pem -sha256 -signature signature.der in.txt # Expected output: Verified OK Operation 7: Encrypt Data Using the RSA Public Key in SE051 RSA encryption uses the public key (no secure element needed for encrypt): # Encrypt with public key (host side) openssl rsautl -encrypt -inkey pubkey.pem -in in.txt -pubin -out crypt.txt For OAEP padding (recommended), use: openssl pkeyutl -encrypt -inkey pubkey.pem -pubin > -pkeyopt rsa_padding_mode:oaep > -pkeyopt rsa_oaep_md:sha256 > -in in.txt -out crypt.txt AN13030 Section 3.3.5.6 lists supported algorithms including kAlgorithm_SSS_RSAES_PKCS1_OAEP_SHA256 and kAlgorithm_SSS_RSAES_PKCS1_V1_5 . Operation 8: Decrypt Data Using the RSA Private Key in SE051 The RSA private key decryption is performed entirely inside SE051. The private key never leaves the secure element. Using pkcs11-tool pkcs11-tool --module $PKCS11_MODULE --decrypt --label sss:10101010 --slot 1 -i crypt.txt -o decrypt.txt cat decrypt.txt Using OpenSSL Provider (v3.x) openssl pkeyutl -provider nxp -decrypt -inkey "pkcs11:token=sss;object=sss:10101010;type=private" -in crypt.txt -out decrypt.txt AN13030 Section 2.3.4 confirms: "RSA Encrypt and decrypt feature added in provider" (from v04.05.03 onwards, included in v04.07.01). Key ID Label Convention When using pkcs11-tool with the NXP PKCS#11 library, the Key ID label format is: sss: For example, Key ID 0x10101010 → label sss:10101010 Breaking change in v04.07.00 (PKCS#11 v4.7): The CKA_ID attribute ( --id ) is now treated as a byte array to avoid byte swapping. Pass the ID without changing endianness. PKCS#11 Token Initialization (First-Time Setup) Before using pkcs11-tool , you may need to initialize the token slot: # Initialize slot 0 pkcs11-tool --module $PKCS11_MODULE --init-token --slot 0 --label "SE051_Token" --so-pin 12345678 # Set user PIN pkcs11-tool --module $PKCS11_MODULE --init-pin --slot 0 --login --so-pin 12345678 --pin 87654321 OpenSSL 3.x Provider Configuration Add to /etc/ssl/openssl.cnf (or a custom config file): [openssl_init] providers = provider_sect [provider_sect] default = default_sect nxp = nxp_sect [default_sect] activate = 1 [nxp_sect] module = /usr/local/lib/libsss_provider.so activate = 1 The OpenSSL provider source is also available at: https://github.com/NXPPlugNTrust/se05x-openssl-provider Source Code Examples (in simw-top) The following built-in examples in the MW package directly demonstrate these operations: Operation Example Path AES encrypt/decrypt simw-top/sss/ex/symmetric/ex_sss_symmetric.c RSA sign/verify simw-top/sss/ex/rsa/ (Section 5.2.1.2 of AN13030) ECC sign/verify simw-top/sss/ex/ecc/ (Section 5.2.1.1 of AN13030) PKCS#11 scripts simw-top/sss/plugin/pkcs11/scripts/ OpenSSL Provider RSA enc simw-top/sss/plugin/openssl_provider/scripts/openssl_RsaEnc.py Known Limitations in OP-TEE Context AES offload to SE051 from OP-TEE kernel side depends on CFG_NXP_SE05X_CTR_DRV being enabled. User-space AES via PKCS#11 goes through the Access Manager and is separate from the OP-TEE crypto driver offload. RSA key generation in SE051 is CRT format by default in v04.07.01 ( RSA_CRT support added in PKCS11 v4.8). Use PKCS11_ENABLE_RSA_KEY_GEN_CRT cmake option to switch between CRT and plain RSA. SE051 NVM is limited. Many RSA key pair generations may exhaust persistent storage — delete unused objects with ssscli delete . For concurrent multi-process access (e.g., multiple user-space apps), use the Access Manager at simw-top/hostlib/hostlib/accessManager . Build with -DSMCOM:STRING=JRCP_V1_AM . Reference Documents Document Description AN13030 Plug & Trust MW Documentation (primary reference) AN12660 IEC 62443 compliance with SE05x — includes SSS API example pointers simw-top/doc/ (local HTML) Full documentation for your installed version v04.08.01 simw-top/doc/plugins/pkcs11.html PKCS#11 Standalone Library documentation simw-top/doc/demos.html Complete list of available demo examples Hope that helps, Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: How to perform Key Gen, Enc/Dec, and Sign/Verify with SE051 via OP-TEE on Linux? Hi @Uc_S , When CFG_NXP_SE05X=y is set, OP-TEE takes exclusive ownership of the I2C bus to the SE051. The Linux DTS must disable that I2C controller (as described in the integration guide). This fundamentally changes how the Plug & Trust MW is used: Layer Who Runs It How It Reaches SE051 OP-TEE Secure World OP-TEE core Native I2C driver ( CFG_IMX_I2C=y ) — direct, exclusive Linux Userspace Your application, ssscli, Access Manager Cannot use T1oI2C — I2C is disabled in Linux DTS This means your existing cmake configuration with -DPTMW_SMCOM=T1oI2C applies only when Linux directly owns I2C. In the OP-TEE setup, it applies to two separate build scenarios described below. Scenario 1: MW Build Fed into OP-TEE ( CFG_NXP_SE05X_PLUG_AND_TRUST= ) This is the most important case. The MW is compiled as a static library inside OP-TEE — you do not run cmake manually for this. OP-TEE's Makefile handles the integration automatically when you point CFG_NXP_SE05X_PLUG_AND_TRUST at your extracted MW directory: CFG_NXP_SE05X_PLUG_AND_TRUST=$HOME/linux-factory/plug-and-trust The SMCOM, Host, and Auth flags you listed are not applicable here. OP-TEE drives the SE051 via its own native I2C abstraction layer ( CFG_IMX_I2C=y ), bypassing the Linux MW communication stack entirely. Scenario 2: Linux Userspace Tools (ssscli / Access Manager / Demos) This is where your cmake flags do apply. When OP-TEE owns I2C, here is the flag-by-flag analysis of what must change: Flags That MUST Change Flag Your Current Value Recommended Value for OP-TEE Setup Reason -DPTMW_SMCOM T1oI2C JRCP_V1_AM (if using Access Manager) Linux cannot use I2C directly; Access Manager provides socket proxy -DPTMW_SE05X_Auth PlatfSCP03 None SCP03 channel is established by OP-TEE, not Linux userspace -DPTMW_SCP SCP03_SSS None Same reason — SCP03 is owned by OP-TEE secure world Flags That Stay the Same Flag Value Reason -DPTMW_Applet SE05X_C Correct for your SE051C2 variant (OEF ID A8FA) -DPTMW_SE05X_Ver 07_02 Matches applet version 7.2 seen in OP-TEE boot logs -DPTMW_Host iMXLinux Still running on i.MX Linux -DPTMW_HostCrypto OPENSSL Unchanged -DPTMW_RTOS Default Unchanged -DPTMW_OpenSSL 3_0 Unchanged for OpenSSL 3.x -DPTMW_FIPS None Unchanged -DPTMW_SBL None Unchanged -DPTMW_mbedTLS_ALT None Unchanged -DPTMW_Log Silent Unchanged -DPTMW_SE_RESET_LOGIC 1 Unchanged; new option added in v04.07.00 Recommended cmake Command for Linux Userspace Tools in OP-TEE Setup cd simw-top && mkdir build_optee_linux cmake -S . -B ./build_optee_linux/ -DPTMW_Applet=SE05X_C -DPTMW_SE05X_Ver=07_02 -DPTMW_Host=iMXLinux -DPTMW_SMCOM=JRCP_V1_AM -DPTMW_HostCrypto=OPENSSL -DPTMW_RTOS=Default -DPTMW_mbedTLS_ALT=None -DPTMW_SCP=None -DPTMW_FIPS=None -DPTMW_SBL=None -DPTMW_SE05X_Auth=None -DPTMW_Log=Silent -DCMAKE_BUILD_TYPE=Release -DPTMW_OpenSSL=3_0 -DPTMW_SE_RESET_LOGIC=1 cd build_optee_linux && make -j8 Note: JRCP_V1_AM requires the Access Manager to be running as a daemon on the target. The Access Manager itself connects to the SE051 — but see the important caveat below. Critical Caveat: The Access Manager I2C Conflict The Access Manager ( hostlib/hostLib/accessManager ) is designed to serialize concurrent I2C access from multiple Linux processes. However: When OP-TEE fully disables the I2C interface in Linux DTS (as required by CFG_NXP_SE05X=y ), the Access Manager itself cannot open I2C either. This means you have two valid deployment choices: Choice A: OP-TEE Exclusive (Recommended for Production) OP-TEE owns I2C completely. Linux userspace uses only the OP-TEE PKCS#11 TA ( libckteec.so ) for crypto operations. The Plug & Trust MW ssscli and demos are not run from Linux in this mode. Linux App → libckteec.so → OP-TEE PKCS#11 TA → SE051 This is the path described in the i.MX Linux User's Guide (UG10163) for OP-TEE-based SE05x use. Choice B: Co-existence (Testing / Provisioning) Use a Linux DTS that does not disable I2C from Linux (i.e., do NOT apply the lf-6.12.y-i2c-disabled-se050 DTS patch). In this configuration: OP-TEE uses SE051 for crypto offload (RSA/ECC) Linux userspace can still run ssscli / Access Manager using T1oI2C (your original flags) Risk: concurrent I2C access from both OP-TEE and Linux requires careful arbitration For this choice, revert SMCOM, SCP, and Auth flags to your original values and keep the original I2C DTS (do not disable it). Summary Table Use Case SMCOM SCP Auth Notes OP-TEE internal MW (static lib for OP-TEE build) N/A N/A N/A No cmake needed; handled by CFG_NXP_SE05X_PLUG_AND_TRUST= Linux userspace, OP-TEE exclusive I2C JRCP_V1_AM None None Requires Access Manager, but AM itself can't reach SE051 if I2C disabled Linux userspace, co-existence (I2C shared) T1oI2C SCP03_SSS PlatfSCP03 Your original flags — valid if Linux DTS still has I2C enabled Linux userspace via PKCS#11 TA (OP-TEE exclusive) N/A (no MW build) N/A N/A Use pkcs11-tool / openssl with libckteec.so Additional Reference AN13030 Rev. 2.4 — Section 4.4 (i.MX Linux Build), Section 8.9 (PKCS#11 Standalone Library), Access Manager documentation UG10163 i.MX Linux User's Guide — OP-TEE PKCS#11 command examples using libckteec.so (Sections 10.4.7 & 10.4.8, pages 110–114); Note: these examples use OP-TEE internal secure storage as the key backend, not SE05x directly — the command syntax is the same when SE051 is configured as the OP-TEE crypto backend via CFG_NXP_SE05X=y Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: How to perform Key Gen, Enc/Dec, and Sign/Verify with SE051 via OP-TEE on Linux? @Kan_Li  Thank you very much for the thorough and detailed response. The breakdown of the three supported paths and the command examples are extremely helpful. Regarding the OP-TEE environment, I have a follow-up question regarding the CMake build configuration for the Plug & Trust Middleware on the Linux rootfs. Previously, when running the middleware directly on Linux (without OP-TEE routing), we used the following CMake configuration flags: -DPTMW_Applet=SE05X_C -DPTMW_SE05X_Ver=07_02 -DPTMW_Host=iMXLinux -DPTMW_SMCOM=T1oI2C -DPTMW_HostCrypto=OPENSSL -DPTMW_RTOS=Default -DPTMW_mbedTLS_ALT=None -DPTMW_SCP=SCP03_SSS -DPTMW_FIPS=None -DPTMW_SBL=None -DPTMW_SE05X_Auth=PlatfSCP03 -DPTMW_Log=Silent -DCMAKE_BUILD_TYPE=Release -DPTMW_OpenSSL=3_0 -DPTMW_SE_RESET_LOGIC=1 Could you please advise which of the above settings should be changed and what their new recommended values should be for this OP-TEE setup? Details: Now that OP-TEE owns the direct I2C access to the SE051 (via CFG_NXP_SE05X=y), could you please clarify if any of these CMake flags need to be modified when building the Linux user-space middleware/tools (such as ssscli or Access Manager)? Specifically, should options like -DPTMW_SMCOM (e.g., changing from T1oI2C to JRCP_V1_AM or socket interface) or -DPTMW_Host be updated for the Linux user-space side to properly route requests through OP-TEE? Here are my environment details: Board: MCIMX8M-WEVK and OM-SE051ARD Plug and Trust MW Version: v04.07.01 OP-TEE OS Version: 3.19.0 Linux Kernel: 6.1.151 Re: How to perform Key Gen, Enc/Dec, and Sign/Verify with SE051 via OP-TEE on Linux? Thank you very much for this exceptionally detailed and clear explanation. The flag-by-flag breakdown, the build command example, and especially the critical caveat regarding the I2C conflict and the choice between Choice A (OP-TEE Exclusive via libckteec.so) and Choice B (Co-existence) have clarified our setup options. This information was exactly what we needed to determine our architecture moving forward.
View full article