2

I've been trying to build a kernel from the 4.14.85 version. I followed the instructions from the official documentation but instead of using the latest version you can find in the repository I reverted patches so that I ended up with the 4.14.85 version.

After reverting the patches, I just followed the instructions given in the official documentation, but at the very last step

sudo cp arch/arm/boot/dts/overlays/*.dtb* mnt/fat32/overlays/
sudo cp arch/arm/boot/dts/overlays/README mnt/fat32/overlays/

I cannot do this because the /overlays directory does not exist.

Are there any workarounds to this problem? I see that with more recent versions of the kernel, the /overlays directory does not exist, at least not in the same location.

David
  • 723
  • 5
  • 22

1 Answers1

2

As mentioned here the solution I found to building the 4.14.85 kernel was to simply clone the Raspberry Pi Linux repository with

git clone --depth=1 --branch rpi-4.14.y https://github.com/raspberrypi/linux

and then apply the incremental kernel patches in reverse, until reaching the 85-86 patch.

patch -R -p1 < ../patches-linux/patch-4.14.85-86
David
  • 723
  • 5
  • 22