|
#### myir layer
> myir-renesas-yocto/layers/meta-myir-yg2lx
```
.
├── classes
├── conf
├── COPYING.MIT
├── docs
├── include
├── README.md
├── recipes-bsp
├── recipes-common
├── recipes-demos
├── recipes-images
├── recipes-yg2lx
└── scripts
10 directories, 2 files
```
##### 支持的machine
```
conf/machine/
├── include
├── myir-yg2lx-1g.conf
└── myir-yg2lx.conf
```
##### 1G DDR和2G DDR machine的差异
涉及的2个文件
> myir-yg2lx-1g.conf
> myir-yg2lx.conf
```
#2G DDR
UBOOT_CONFIG[myc-rzg2l] = "myc-rzg2l_defconfig"
#1G DDR
#UBOOT_CONFIG[myc-rzg2l] = "myc-rzg2l_ddr1gb_defconfig"
```
#### yocto指定的kernel编译文件
myir-yg2lx-1g.conf文件中的**PREFERRED_PROVIDER_virtual/kernel="linux-myir**字段
>layers/meta-myir-yg2lx/recipes-bsp/linux-kernel/linux/linux-myir_5.10.bb
#### yocto指定的defconfig
从linux-myir_5.10.bb这个文件的**KBUILD_DEFCONFIG**字段可以看出linux编译使用的config文件是:
> arch/arm64/configs/defconfig
#### yocto指定的dts
从这两个文件中的**KERNEL_DEVICETREE**字段可以看出:
myir-yg2lx-1g.conf
myir-yg2lx.conf
```
45 KERNEL_DEVICETREE = " \
46 myir/myb-rzg2l-disp.dtb \
47 myir/myb-rzg2l-hdmi.dtb \
48 "
```
##### Myir新增的dts
***arch/arm64/boot/dts/myir***
HDMI和LVDS显示 : myb-rzg2l-hdmi.dts
LCD显示 : myb-rzg2l-hdmi.dts
```
.
├── Makefile
├── myb-rzg2l-disp.dts
├── myb-rzg2l-hdmi.dts
├── myb-rzg2l-smarc-base.dtsi
├── myb-rzg2ul-disp.dts
├── myb-rzg2ul-smarc-base.dtsi
├── r9a07g043.dtsi
├── r9a07g043u11.dtsi
├── r9a07g043u12.dtsi
├── r9a07g044.dtsi
└── r9a07g044l2.dtsi
```
#### renesas 官方的dts
***arch/arm64/boot/dts/renesas***
RZ/G2L: r9a07g044l2-smarc.dts
RZ/G2LC: r9a07g044c2-smarc.dts
```
r9a07g044c1.dtsi
r9a07g044c2.dtsi
r9a07g044c2-smarc.dts
r9a07g044.dtsi
r9a07g044l1.dtsi
r9a07g044l2-dev.dts
r9a07g044l2.dtsi
r9a07g044l2-smarc.dts
```
```
/dts-v1/;
#include "r9a07g044l2.dtsi"
#include "rzg2l-smarc-som.dtsi"
#include "rzg2l-smarc-pinfunction.dtsi"
#include "rz-smarc-common.dtsi"
#include "rzg2l-smarc.dtsi"
/ {
model = "Renesas SMARC EVK based on r9a07g044l2";
compatible = "renesas,smarc-evk", "renesas,r9a07g044l2", "renesas,r9a07g044";
};
```
|
|