起動時にデバイスツリーを変更する

起動時にデバイスツリーを変更する

私のプラットフォームにはハードウェアSPIデバイスがありますが、表示されません/dev。インターネット上でboor中にデバイスツリーファイルからハードウェアの説明を読むという内容を読みました(dtb)

問題は、ファイルシステムで検索しましたが、そのようなファイルが見つからないことです。

*.dtbブートローダは起動時にどこでファイルを検索しますか?

ブート時にマザーボードが何をしているかを確認するためにブートにログインしました。これはログの一部です。

Normal Boot
    Hit any key to stop autoboot:  1  0 
    switch to partitions #0, OK
    mmc1(part 0) is current device
    switch to partitions #0, OK
    mmc1(part 0) is current device
    reading /uEnv.txt
    ** Unable to read file /uEnv.txt **
    reading /boot.scr
    ** Unable to read file /boot.scr **
    reading /zImage
    6116584 bytes read in 159 ms (36.7 MiB/s)
    Booting from mmc ...
    fdt_file=imx6ul-var-dart-emmc_wifi.dtb
    reading /imx6ul-var-dart-emmc_wifi.dtb
    30601 bytes read in 21 ms (1.4 MiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x5d54e8 ]
    ## Flattened Device Tree blob at 83000000
       Booting using the fdt blob at 0x83000000
       Using Device Tree in place at 83000000, end 8300a788

    Starting kernel ...

そしてこれ完全なログです。

私の目標は、カーネル全体を再構築しないことです。代わりに、現在のプラットフォーム用のファイルに対してのみデバイスツリーが再構築されます。

ベストアンサー1

おすすめ記事