Compile sc16si7xx.ko for rasbian - how?

Running 2019-02-26-Raspbian-lite.img on a balenafin v1.1 (with a CM3+)

and I need to apply a patch against sc16is7xx.ko to fix hardware flow control.

I tried checking out git clone --depth=1 --branch rpi-4.19.y but this produced more dts overlays than could fit on /boot

Is there an easier way to do this?

I tried installing the stuff I compiled for the 3B+ while working out the kinks with the sc16is752 but failed to boot on the balena. If there are instructions on how to take the stock raspbian kernel and make it work with the balena / CM3 then I’ll be happy to pursure that instead.


What hardware flow control problem are you trying to fix? You might also want to ask on the Raspberry Pi forums ( for help on patching the kernel on the Rasbian Lite.

I’ll raise this up to our balenaFin engineering team and see how we can help you out.



I realized you were referring to the Raspbian Image that we do provide for the balenaFin:

I already raised your problem to the team and they would also like to help you on the patching as well. Can you let us know what hardware you are trying to run with the balenaFin? It would be nice if you can share to us your use case for what you are building.


CTS didn’t work properly with the old driver. The patch I linked to fixes it and is in the raspbian repo already; just want to get it running on the Balenafin, with the Raspbian image for now (probably using BalenaOS later).

Use case is using a SC16SI752 SPI to UART chip to add another Bluetooth low energy 5 radio using HCI uart interface. Hat is public here

(edit I suppose I also need some patches for the device tree as well, but easier to add manually (sc16is752-spi1-overlay.dts and sc16is752-spi0-overlay.dts ))


The patch you are referring to, is not merged upstream nor released yet, so you are right in thinking to manually patch kernel for this. So please detail each step you took for patching our Raspbian distro. And we will love to help you through this.