东山哪吒STU怎么更新设备树


我的步骤是
1、修改/home/ubuntu/eLinuxCore_dongshannezhastu/linux/arch/riscv/boot/dts/board.dts,make dtbs生成board.dtb
2、mount /dev/mmcblk0p3 /mnt,挂载SD卡分区
3、adb push board.dtb /root/,开发板那边执行mv /root/board.dtb /mnt/,替换设备树
但是没有任何效果。对buildroot不是很熟悉,请问东山哪吒STU怎么更新设备树文件,谢谢!

你要确认一下是不是你使用的buildroot源码不是这种最新的,可以先拉取一下最新的buildroot源码,之后再重新执行配置文件,进行编译生成,这里主要原因是kernel的设备树和uboot打包放在了一起。

屏是480*272 RGB 屏,不需要SPI配置。
git我重新拉取了一下,然后把eLinuxCore_dongshannezhastu目录里生成的boot_package.fex和board.dtb拷贝到/home/ubuntu/buildroot_dongshannezhastu/buildroot-awol/output目录下,重新make生成镜像,现在有背光了,但是还是没图像。下面是调试lcd的显示信息,我的lcd管脚配置好像还是不对,不知道要改哪里了



我的设备树配置,其他地方都没改:
&lcd0 {
lcd_used = <1>;

lcd_driver_name     = "default_lcd";

lcd_if              = <0>;
lcd_hv_if           = <0>;

lcd_width           = <52>;
lcd_height          = <52>;
lcd_x               = <480>;
lcd_y               = <272>;
lcd_dclk_freq       = <30>;
lcd_hbp             = <43>;
lcd_ht              = <535>;
lcd_hspw            = <4>;
lcd_vbp             = <12>;
lcd_vt              = <296>;
lcd_vspw            = <4>;

lcd_backlight       = <20>;
lcd_pwm_used        = <1>;
lcd_pwm_ch          = <7>;
lcd_pwm_freq        = <1000>;
lcd_pwm_pol         = <1>;
lcd_bl_en         	= <&pio PD 22 5 0 1 1>;
lcd_bright_curve_en = <0>;

lcd_frm             = <0>;
lcd_io_phase        = <0x0000>;
lcd_gamma_en        = <0>;
lcd_cmap_en         = <0>;
lcd_hv_clk_phase    = <0>;
lcd_hv_sync_polarity= <0>;

lcd_power 			= "vcc-lcd";
lcd_pin_power 		= "vcc-pd";

pinctrl-0 = <&rgb24_pins_a>;
pinctrl-1 = <&rgb24_pins_b>;

};