Closed reostat closed 2 years ago
Alright, I dug it deeper and here's what panned out.
Code/patch/armbian_build_a06/patch/kernel-004-panel.patch
introduces changes to the following files:
modify drivers/gpu/drm/panel/Kconfig
modify drivers/gpu/drm/panel/Makefile
create drivers/gpu/drm/panel/panel-cwd686.c
modify drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
If applied as separate patches, all but the last one stick just fine. Further investigation shows that the changes in the last one are indeed already present in the latest v5.10.y kernel version; the changes were introduced - nearly verbatim - by commit id 43c2de10 of May 28th, 2021 (2021-05-28). Removing changes to dw-mipi-dsi-rockchip.c
file from the patch make it work again.
Now, this is probably not critical since AFAIK when patch fails it fails hunk by hunk, not all together; that is, in this case all the relevant parts would still get applied and the panel is going to work with this kernel anyway. However, as Linux kernel evolves there could be other cases when critical parts of patches might get rejected during the build thus producing an image that either doesn't work or can even potentially damage the hardware. After all, by default Armbian build reports failed patches at warn
level and doesn't stop the build; locating those fails after the fact requires sifting through the build logs.
In order to prevent this from happening, I suggest doing the following.
EXIT_PATCHING_ERROR="yes"
by default so the build fails early should any of the patches failKERNELBRANCH
and BOOTBRANCH
flags. Changing these versions should be recommended for advanced users only.Together it should provide stable enough foundation for reproducible builds.
@cuu please let me know what you think. I'm working on a more Armbian-ish and less manual way to build an image in a separate fork; if the above sounds reasonable I will include it into configuration.
totally agreed and learned a lot from you
right now we are dealing the A04 kernel for armbian and if we done the A04 kernel ,we will try to update the a06 patches and test thanks very much
While building A06 image according to instructions in
Create DevTerm A06 OS image from scratch
wiki, I noticed thatkernel-004-panel.patch
fails.In order to stop the build process right at the moment it happens, run compile script with the following parameter:
Here's the output that I get: