cancel
Showing results for 
Search instead for 
Did you mean: 

Updating OpenSTLinux image after editing DTS file.

ienecode
Associate III

Hi,

I am built OpenSTLinux with below configuration:

 

uild Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-ostl-linux-gnueabi"
MACHINE              = "stm32mp1"
DISTRO               = "openstlinux-eglfs"
DISTRO_VERSION       = "4.0.19-snapshot-20250205"
TUNE_FEATURES        = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU           = "hard"
DISTRO_CODENAME      = "kirkstone"
ACCEPT_EULA_stm32mp1 = "1"
GCCVERSION           = "11.%"
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"
meta-python          
meta-oe              
meta-gnome           
meta-initramfs       
meta-multimedia      
meta-networking      
meta-webserver       
meta-filesystems     
meta-perl            = "HEAD:402affcc073db39f782c1ebfd718edd5f11eed4c"
meta-st-stm32mp      = "HEAD:b7accec80a2903c75d4129cf2b3bf6e15f5410c0"
meta-qt5             = "HEAD:ae8a97f79364bed1abc297636f7933d0e35f22be"
meta-st-openstlinux  = "HEAD:613b158e6ee5b575e7de1251eae389c72e376043"
meta                 = "HEAD:ab2649ef6c83f0ae7cac554a72e6bea4dcda0e99"

 

I flashed image to STM32MP1 and works everything !

Problem is appear when I try edit *.dts file , because after change, I have to manually compile device tree., like is described:

How_to_compile_the_device_tree_with_the_Developer_Package 

and send to target device with earlier prepared system image.

 

According to information found on the Internet I should only edit *.dts file in location:

 

cd ostlecosys4.1.2/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work-shared/stm32mp1/kernel-source/arch/arm/boot/dts 

 

Then go back to the directory:

 

developer@developer-VirtualBox:~/ostlecosys4.1.2$ ls
build-openstlinuxeglfs-stm32mp1  layers

 

and run the build :

 

DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh
bitbake st-example-image-qt

 

Once built, the image doesn't update. No change according with edited *dts file.

 

Please help , what did I do wrong ?

 

2 REPLIES 2
Christophe Guibout
ST Employee

Hello @ienecode,

According to information found on the Internet I should only edit *.dts file in location:

cd ostlecosys4.1.2/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work-shared/stm32mp1/kernel-source/arch/arm/boot/dts  

The problem is there : if you modify the file in the working directory, your modification will be erased on the next build.
I would recommand to follow the instructions from the wiki page named : How to cross-compile with the Distribution Package.

To summarize, use devtool to get the source code, make your modifications, and then rebuild as usual.

 

BR,

Christophe

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
ienecode
Associate III

@Christophe Guibout  thankf for tips . now works.

But I have question about link to wiki paged send by you, them is wiritn about editing .dtsi file.

I thought thta DTSI files are used as-is and should NOT be edited!  Something was change ?