这个配置方式是不是编译buildroot 或者ubuntu都可以,我用下面的7和8都编译过,uart1都没有,我反编译了一下dtb文件,也没找到uart1的配置。
1. luckfox_lyra_buildroot_sdmmc_defconfig
2. luckfox_lyra_buildroot_spinand_defconfig
3. luckfox_lyra_plus_buildroot_sdmmc_defconfig
4. luckfox_lyra_plus_buildroot_spinand_defconfig
5. luckfox_lyra_plus_ubuntu_sdmmc_defconfig
6. luckfox_lyra_ubuntu_sdmmc_defconfig
7. luckfox_lyra_ultra-w_buildroot_emmc_defconfig
8. luckfox_lyra_ultra-w_ubuntu_emmc_defconfig
9. luckfox_lyra_ultra_buildroot_emmc_defconfig
10. luckfox_lyra_ultra_ubuntu_emmc_defconfig
luckfox/kernel-6.1/arch/arm/boot/dts/rk3506g-luckfox-lyra.dts 文件内容
Code: Select all
cat /home/hista/work/luckfox/kernel-6.1/arch/arm/boot/dts/rk3506g-luckfox-lyra.dts
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
*/
/dts-v1/;
#include "rk3506-luckfox-lyra.dtsi"
/ {
model = "Luckfox Lyra";
compatible = "rockchip,rk3506g-demo-display-control", "rockchip,rk3506";
chosen {
bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=tty1 console=ttyFIQ0 root=ubi0:rootfs ubi.mtd=2 rootfstype=ubifs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1";
};
};
/**********display**********/
&cma {
size = <0x2000000>;
};
&dsi {
status = "okay";
};
&dsi_dphy {
status = "okay";
};
&dsi_in_vop {
status = "okay";
};
&route_dsi {
status = "okay";
};
/**********ethernet**********/
&gmac1 {
status = "disabled";
};
&mdio1 {
status = "disabled";
};
/**********usb**********/
&usb20_otg0 {
dr_mode = "peripheral";
status = "okay";
};
&usb20_otg1 {
dr_mode = "host";
status = "okay";
};
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&rm_io12_uart1_tx &rm_io13_uart1_rx>;
status = "okay";
};