I am trying to build image for CutiePi which is based on Raspberry PI 4 compute module. It turned out, that kernel contains probably all necessary modules already. I had to modify config.txt and cmdline.txt
I would like to use linux-rpi4 package, but I would like to replace those two files automatically. What way would you suggest?
I can fork the package, and change following script as needed
But I would like to avoid maintaining kernel package. I would rater ship small package which updates only *.txt files.
I am using the *.txt files from cutiepi images downloaded from
The cmdline.txt and config.txt files will not be changed if it’s already there. They will only get added by the kernel package, if they don’t exist. So if you install the your custom package with the .txt files before the kernel gets installed, it should keep those.
Not knowing what steps you have taken to get your issue I will say what I do know:
As @Strit stated the kernel .INSTALL will not not mess with the .txt files if they exist.
While building an image in a chroot with the manjaro-arm-tools using buildarmimage when the kernel gets installed it is unable to set the PARTUUID in cmdline.txt for some odd reason so it is done later on in the process with the funtions.sh script which is part of manjaro-arm-tools starting at this line:
It does only if a certain situation exists. That is there because RPi changed the way doing things with the newer kernels and it brings the cmdline.txt up to speed for the newer kernels if some one still had the config for the older kernels.
It used to be that way but there were conflicts in certain situations where you would wind up with 2 partitions with the same LABEL mounted.